@react-native-firebase/firestore 18.7.3 → 18.9.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,19 @@
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
+ ## [18.9.0](https://github.com/invertase/react-native-firebase/compare/v18.8.0...v18.9.0) (2024-02-21)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **firestore, types:** Add string type to `DocumentSnapshot.get` ([#7593](https://github.com/invertase/react-native-firebase/issues/7593)) ([d5b66ca](https://github.com/invertase/react-native-firebase/commit/d5b66ca94fe133a14058c1052ec767f1e4a1ee8a))
11
+
12
+ ## [18.8.0](https://github.com/invertase/react-native-firebase/compare/v18.7.3...v18.8.0) (2024-01-25)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **firestore, types:** string is also correct type for orderBy ([#7570](https://github.com/invertase/react-native-firebase/issues/7570)) ([1ea166a](https://github.com/invertase/react-native-firebase/commit/1ea166aa1f06d9c332eab150cd2049a3cdd6c472))
17
+ - **firestore:** increase amount of maximum disjunctions in firebase ([#7543](https://github.com/invertase/react-native-firebase/issues/7543)) ([c576f87](https://github.com/invertase/react-native-firebase/commit/c576f875bcf1e1de338f107796d64e2b1805b831))
18
+
6
19
  ## [18.7.3](https://github.com/invertase/react-native-firebase/compare/v18.7.2...v18.7.3) (2023-12-13)
7
20
 
8
21
  **Note:** Version bump only for package @react-native-firebase/firestore
@@ -471,9 +471,9 @@ export default class FirestoreQuery {
471
471
  );
472
472
  }
473
473
 
474
- if (value.length > 10) {
474
+ if (value.length > 30) {
475
475
  throw new Error(
476
- `firebase.firestore().collection().where(_, _, *) 'value' is invalid. '${opStr}' filters support a maximum of 10 elements in the value array.`,
476
+ `firebase.firestore().collection().where(_, _, *) 'value' is invalid. '${opStr}' filters support a maximum of 30 elements in the value array.`,
477
477
  );
478
478
  }
479
479
  }
package/lib/index.d.ts CHANGED
@@ -565,7 +565,7 @@ export namespace FirebaseFirestoreTypes {
565
565
  *
566
566
  * @param fieldPath The path (e.g. 'foo' or 'foo.bar') to a specific field.
567
567
  */
568
- get<fieldType extends DocumentFieldType>(fieldPath: keyof T | FieldPath): fieldType;
568
+ get<fieldType extends DocumentFieldType>(fieldPath: keyof T | string | FieldPath): fieldType;
569
569
 
570
570
  /**
571
571
  * Returns true if this `DocumentSnapshot` is equal to the provided one.
@@ -1288,7 +1288,7 @@ export namespace FirebaseFirestoreTypes {
1288
1288
  * @param fieldPath The field to sort by. Either a string or FieldPath instance.
1289
1289
  * @param directionStr Optional direction to sort by (`asc` or `desc`). If not specified, order will be ascending.
1290
1290
  */
1291
- orderBy(fieldPath: keyof T | FieldPath, directionStr?: 'asc' | 'desc'): Query<T>;
1291
+ orderBy(fieldPath: keyof T | string | FieldPath, directionStr?: 'asc' | 'desc'): Query<T>;
1292
1292
 
1293
1293
  /**
1294
1294
  * Creates and returns a new Query that starts after the provided document (exclusive). The start
@@ -56,9 +56,8 @@ export declare type AddPrefixToKeys<Prefix extends string, T extends Record<stri
56
56
  *
57
57
  * See https://www.typescriptlang.org/docs/handbook/advanced-types.html#distributive-conditional-types
58
58
  */
59
- export declare type ChildUpdateFields<K extends string, V> = V extends Record<string, unknown>
60
- ? AddPrefixToKeys<K, UpdateData<V>>
61
- : never;
59
+ export declare type ChildUpdateFields<K extends string, V> =
60
+ V extends Record<string, unknown> ? AddPrefixToKeys<K, UpdateData<V>> : never;
62
61
 
63
62
  /**
64
63
  * For each field (e.g. 'bar'), find all nested keys (e.g. {'bar.baz': T1, 'bar.qux': T2}).
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '18.7.3';
2
+ module.exports = '18.9.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/firestore",
3
- "version": "18.7.3",
3
+ "version": "18.9.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": "18.7.3"
30
+ "@react-native-firebase/app": "18.9.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "605a0df8171c451513125629355027bda2ea5e5d"
35
+ "gitHead": "695265641dcf2243ab9f27b25776f11616225f68"
36
36
  }