@react-native-firebase/firestore 20.2.0 → 20.3.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 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
+ ## [20.3.0](https://github.com/invertase/react-native-firebase/compare/v20.2.1...v20.3.0) (2024-07-19)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/firestore
9
+
10
+ ## [20.2.1](https://github.com/invertase/react-native-firebase/compare/v20.2.0...v20.2.1) (2024-07-17)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **firestore:** Filter typing. `Filter.or` & `Filter.and` can accept each other ([#7904](https://github.com/invertase/react-native-firebase/issues/7904)) ([f6c12ec](https://github.com/invertase/react-native-firebase/commit/f6c12ec208f15c4a8dd2132810fcfe914b675251))
15
+
6
16
  ## [20.2.0](https://github.com/invertase/react-native-firebase/compare/v20.1.0...v20.2.0) (2024-07-15)
7
17
 
8
18
  ### Features
package/lib/index.d.ts CHANGED
@@ -55,7 +55,7 @@ export namespace FirebaseFirestoreTypes {
55
55
 
56
56
  export type QueryFilterType = 'OR' | 'AND';
57
57
 
58
- export interface QueryFilterConstraint {
58
+ export interface QueryFieldFilterConstraint {
59
59
  fieldPath: keyof T | FieldPath;
60
60
  operator: WhereFilterOp;
61
61
  value: any;
@@ -63,8 +63,11 @@ export namespace FirebaseFirestoreTypes {
63
63
 
64
64
  export interface QueryCompositeFilterConstraint {
65
65
  operator: QueryFilterType;
66
- queries: QueryFilterConstraint[];
66
+ queries: QueryFieldFilterConstraint[];
67
67
  }
68
+
69
+ export type QueryFilterConstraint = QueryFieldFilterConstraint | QueryCompositeFilterConstraint;
70
+
68
71
  /**
69
72
  * The Filter functions used to generate an instance of Filter.
70
73
  */
@@ -73,7 +76,11 @@ export namespace FirebaseFirestoreTypes {
73
76
  * The Filter function used to generate an instance of Filter.
74
77
  * e.g. Filter('name', '==', 'Ada')
75
78
  */
76
- (fieldPath: keyof T | FieldPath, operator: WhereFilterOp, value: any): QueryFilterConstraint;
79
+ (
80
+ fieldPath: keyof T | FieldPath,
81
+ operator: WhereFilterOp,
82
+ value: any,
83
+ ): QueryFieldFilterConstraint;
77
84
  /**
78
85
  * The Filter.or() static function used to generate a logical OR query using multiple Filter instances.
79
86
  * e.g. Filter.or(Filter('name', '==', 'Ada'), Filter('name', '==', 'Bob'))
@@ -1412,7 +1419,7 @@ export namespace FirebaseFirestoreTypes {
1412
1419
  *
1413
1420
  * @param filter The filter to apply to the query.
1414
1421
  */
1415
- where(filter: QueryFilterConstraint | QueryCompositeFilterConstraint): Query<T>;
1422
+ where(filter: QueryFilterConstraint): Query<T>;
1416
1423
  }
1417
1424
 
1418
1425
  /**
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '20.2.0';
2
+ module.exports = '20.3.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/firestore",
3
- "version": "20.2.0",
3
+ "version": "20.3.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": "20.2.0"
30
+ "@react-native-firebase/app": "20.3.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "82c50138d07e673213cd8dee5ce9a2f9b5656649"
35
+ "gitHead": "a916b37b022cf40588fa0fd915b7ab901e2458d0"
36
36
  }