Skip to content

Commit 18e512f

Browse files
authored
v2.1.7
* fix(auth): payload of `AUTH_UPDATE_SUCCESS` action dispatch fixed - prescottprue#507 - @stefanhar * feat(build): added node 10 to build matrix * feat(build): switched node maintenance LTS version to latest 6 (was still set to 6.11.5) * feat(build): deploy to npm on node 10 build * feat(build): deploy to npm from `next` branch (publishes to `@next` tag) * feat(deps): update `firebase-server` to fix security warnings
2 parents ed6e98d + 6de1ac1 commit 18e512f

File tree

7 files changed

+15165
-10567
lines changed

7 files changed

+15165
-10567
lines changed

.travis.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ sudo: false
33
language: node_js
44

55
node_js:
6-
- 6.11.5 # Cloud Functions Runtime (Used for firebase-functions)
7-
- 8
8-
- 9
6+
- 6 # Maintenance
7+
- 8 # Active
8+
- 10 # Current release
99

1010
notifications:
1111
# Only send notifications when travis status changes
@@ -31,13 +31,21 @@ script:
3131
- npm run test:cov
3232

3333
deploy:
34-
skip_cleanup: true
35-
provider: npm
36-
email: $NPM_EMAIL
37-
api_key: $NPM_TOKEN
38-
on:
39-
node: '9'
40-
branch: 'master'
34+
- provider: npm
35+
skip_cleanup: true
36+
email: $NPM_EMAIL
37+
api_key: $NPM_TOKEN
38+
on:
39+
node: '10'
40+
branch: 'master'
41+
- provider: npm
42+
skip_cleanup: true
43+
email: $NPM_EMAIL
44+
api_key: $NPM_TOKEN
45+
tag: next
46+
on:
47+
node: '10'
48+
branch: 'next'
4149

4250
after_success:
4351
- npm install -g codeclimate-test-reporter

docs/queries.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,22 @@ compose(
221221

222222
### Types Of Queries
223223

224-
#### Once
225-
To load a firebase location once instead of binding, type `'once'` can be used:
224+
Just [like with Firebase's SDK different event types can be passed to listeners](https://firebase.google.com/docs/reference/js/firebase.database.Reference#on). To Switch the event type of your listener simply pass the `type` parameter to the query config:
226225

227226
```javascript
228227
firebaseConnect([
229228
{ type: 'once', path: '/todos' }
230229
])
231230
```
232231

232+
The options for event type on queries are as follows:
233+
* 'value' - (default) This event will trigger once with the initial data stored at this location, and then trigger again each time the data changes.
234+
* 'once' - Listens for exactly one event of the specified event type, and then stops listening (internally calls [Firebase's `once`](https://firebase.google.com/docs/reference/js/firebase.database.Reference#once))
235+
* 'child_added' - This event will be triggered once for each initial child at this location, and it will be triggered again every time a new child is added
236+
* 'child_removed' - This event will be triggered once every time a child is removed
237+
* 'child_changed' - This event will be triggered when the data stored in a child (or any of its descendants) changes
238+
* 'child_moved' - This event will be triggered when a child's sort order changes such that its position relative to its siblings changes
239+
233240
### Query Params
234241

235242
Query parameters can be passed through the `queryParams` parameter if using object notation, and following a `#` if using string notation.

0 commit comments

Comments
 (0)