Skip to content

Commit 31352f9

Browse files
authored
v0.6.0-alpha
* feat(query): composite `storeAs` - @demoran23 * feat(build): publishing to npm now happens using node 10 * feat(build): publishing npm now happens on the `next` branch (published to `@next` tag)
2 parents 00d7ae4 + 9e0d4dc commit 31352f9

14 files changed

+479
-952
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
indent_style = space
10+
11+
[*.{js,jsx}]
12+
insert_final_newline = true
13+
indent_size = 2

.travis.yml

+23-13
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ sudo: false
33
language: node_js
44

55
node_js:
6-
- 6.14.0 # Cloud Functions Runtime
7-
- 9
8-
- 10
6+
- 6 # Maintenance
7+
- 8 # Active
8+
- 10 # Current release
99

1010
notifications:
1111
email:
@@ -14,21 +14,14 @@ notifications:
1414
on_success: change
1515

1616
cache:
17+
bundler: true
1718
directories:
18-
- node_modules
19+
- $HOME/.npm
1920

2021
branches:
2122
only:
2223
- master
23-
24-
deploy:
25-
skip_cleanup: true
26-
provider: npm
27-
email: $NPM_EMAIL
28-
api_key: $NPM_KEY
29-
on:
30-
node: '10'
31-
branch: 'master'
24+
- next
3225

3326
script:
3427
- npm run lint
@@ -37,3 +30,20 @@ script:
3730
after_success:
3831
- codeclimate-test-reporter < coverage/lcov.info
3932
- npm run codecov
33+
34+
deploy:
35+
- provider: npm
36+
skip_cleanup: true
37+
email: $NPM_EMAIL
38+
api_key: $NPM_TOKEN
39+
on:
40+
node: '10'
41+
branch: 'master'
42+
- provider: npm
43+
skip_cleanup: true
44+
email: $NPM_EMAIL
45+
api_key: $NPM_TOKEN
46+
tag: next
47+
on:
48+
node: '10'
49+
branch: 'next'

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,21 @@ Multiple `where` queries are as simple as passing multiple argument arrays (each
305305
},
306306
```
307307

308+
Firestore doesn't alow you to create `or` style queries. Instead, you should pass in multiple queries and compose your data.
309+
310+
``` javascript
311+
['sally', 'john', 'peter'].map(friendId => ({
312+
collection: 'users',
313+
where: [
314+
['id', '==', friendId],
315+
['isOnline', '==', true]
316+
]
317+
storeAs: 'onlineFriends'
318+
}));
319+
```
320+
321+
Since the results must be composed, a query like this is unable to be properly ordered. The results should be pulled from `data`.
322+
308323
*Can only be used with collections*
309324

310325
##### orderBy

0 commit comments

Comments
 (0)