@react-native-firebase/firestore 21.12.3 → 21.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/lib/FirestoreFilter.js +4 -4
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [21.14.0](https://github.com/invertase/react-native-firebase/compare/v21.13.0...v21.14.0) (2025-04-14)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @react-native-firebase/firestore
|
|
9
|
+
|
|
10
|
+
## [21.13.0](https://github.com/invertase/react-native-firebase/compare/v21.12.3...v21.13.0) (2025-03-31)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **firestore:** a single or/and filter is allowed, 2+ not required ([2308183](https://github.com/invertase/react-native-firebase/commit/23081838321d4c8f0548461917c52a0c00bdc96e))
|
|
15
|
+
|
|
6
16
|
## [21.12.3](https://github.com/invertase/react-native-firebase/compare/v21.12.2...v21.12.3) (2025-03-26)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @react-native-firebase/firestore
|
package/lib/FirestoreFilter.js
CHANGED
|
@@ -42,8 +42,8 @@ export function _Filter(fieldPath, operator, value, filterOperator, queries) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
Filter.and = function and(...queries) {
|
|
45
|
-
if (queries.length > 10 || queries.length <
|
|
46
|
-
throw new Error(`Expected
|
|
45
|
+
if (queries.length > 10 || queries.length < 1) {
|
|
46
|
+
throw new Error(`Expected 1-10 instances of Filter, but got ${queries.length} Filters`);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const validateFilters = queries.every(filter => filter instanceof _Filter);
|
|
@@ -60,8 +60,8 @@ function hasOrOperator(obj) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
Filter.or = function or(...queries) {
|
|
63
|
-
if (queries.length > 10 || queries.length <
|
|
64
|
-
throw new Error(`Expected
|
|
63
|
+
if (queries.length > 10 || queries.length < 1) {
|
|
64
|
+
throw new Error(`Expected 1-10 instances of Filter, but got ${queries.length} Filters`);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
const validateFilters = queries.every(filter => filter instanceof _Filter);
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
module.exports = '21.
|
|
2
|
+
module.exports = '21.14.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-firebase/firestore",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.14.0",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "React Native Firebase - Cloud Firestore is a NoSQL cloud database to store and sync data between your React Native application and Firebase's database. The API matches the Firebase Web SDK whilst taking advantage of the native SDKs performance and offline capabilities.",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"firestore"
|
|
28
28
|
],
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@react-native-firebase/app": "21.
|
|
30
|
+
"@react-native-firebase/app": "21.14.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "7c7beaab9cf8a619927a33ef7a15b8000e2874c2"
|
|
36
36
|
}
|