Skip to content

Commit 5a95032

Browse files
samtsternpuf
andauthored
Release standalone geofire-utils library (#203)
Co-authored-by: Frank van Puffelen <[email protected]> Co-authored-by: Frank van Puffelen <[email protected]>
1 parent ed5da6f commit 5a95032

32 files changed

+15067
-3530
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
2828

2929
- run: npm install
30+
- run: npm run bootstrap
3031
- run: npm run lint
3132
- run: npm run test
3233
- run: npm run coverage
@@ -35,3 +36,4 @@ jobs:
3536
uses: coverallsapp/github-action@master
3637
with:
3738
github-token: ${{ secrets.GITHUB_TOKEN }}
39+
path-to-lcov: packages/geofire/coverage/lcov.info

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* [`GeoCallbackRegistration`](#geocallbackregistration)
1919
- [`cancel()`](#geocallbackregistrationcancel)
2020
* [Helper Methods](#helper-methods)
21-
- [`GeoFire.distance(location1, location2)`](#geofiredistancelocation1-location2)
21+
- [`distanceBetween((location1, location2)`](#geofiredistancelocation1-location2)
2222
* [Promises](#promises)
2323

2424

@@ -292,7 +292,7 @@ var onKeyExitedRegistration = geoQuery.on("key_exited", function(key, location,
292292

293293
## Helper Methods
294294

295-
### GeoFire.distance(location1, location2)
295+
### distanceBetween((location1, location2)
296296

297297
Static helper method which returns the distance, in kilometers, between `location1` and `location2`.
298298

@@ -302,7 +302,7 @@ Static helper method which returns the distance, in kilometers, between `locatio
302302
var location1 = [10.3, -55.3];
303303
var location2 = [-78.3, 105.6];
304304

305-
var distance = GeoFire.distance(location1, location2); // distance === 12378.536597423461
305+
var distance = distanceBetween((location1, location2); // distance === 12378.536597423461
306306
```
307307
308308

lerna.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"version": "5.0.1",
3+
"packages": [
4+
"packages/*"
5+
]
6+
}

0 commit comments

Comments
 (0)