@react-native-firebase/firestore 22.0.0 → 22.2.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
+ ## [22.2.0](https://github.com/invertase/react-native-firebase/compare/v22.1.0...v22.2.0) (2025-05-12)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/firestore
9
+
10
+ ## [22.1.0](https://github.com/invertase/react-native-firebase/compare/v22.0.0...v22.1.0) (2025-04-30)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **firestore, types:** exist -> exists() change reflected in types ([339834d](https://github.com/invertase/react-native-firebase/commit/339834d940f1260ddd9a142cc17def1e876ff0fa))
15
+
6
16
  ## [22.0.0](https://github.com/invertase/react-native-firebase/compare/v21.14.0...v22.0.0) (2025-04-25)
7
17
 
8
18
  ### ⚠ BREAKING CHANGES
package/lib/index.d.ts CHANGED
@@ -523,13 +523,13 @@ export namespace FirebaseFirestoreTypes {
523
523
  * .`data()` or `.get(:field)` to get a specific field.
524
524
  *
525
525
  * For a DocumentSnapshot that points to a non-existing document, any data access will return 'undefined'.
526
- * You can use the `exists` property to explicitly verify a document's existence.
526
+ * You can use the `exists()` method to explicitly verify a document's existence.
527
527
  */
528
528
  export interface DocumentSnapshot<T extends DocumentData = DocumentData> {
529
529
  /**
530
- * Property of the `DocumentSnapshot` that signals whether or not the data exists. True if the document exists.
530
+ * Method of the `DocumentSnapshot` that signals whether or not the data exists. True if the document exists.
531
531
  */
532
- exists: boolean;
532
+ exists(): boolean;
533
533
 
534
534
  /**
535
535
  * Property of the `DocumentSnapshot` that provides the document's ID.
@@ -597,14 +597,14 @@ export namespace FirebaseFirestoreTypes {
597
597
  * The document is guaranteed to exist and its data can be extracted with .data() or .get(:field) to get a specific field.
598
598
  *
599
599
  * A QueryDocumentSnapshot offers the same API surface as a DocumentSnapshot.
600
- * Since query results contain only existing documents, the exists property will always be true and data() will never return 'undefined'.
600
+ * Since query results contain only existing documents, the exists() method will always be true and data() will never return 'undefined'.
601
601
  */
602
602
  export interface QueryDocumentSnapshot<T extends DocumentData = DocumentData>
603
603
  extends DocumentSnapshot<T> {
604
604
  /**
605
605
  * A QueryDocumentSnapshot is always guaranteed to exist.
606
606
  */
607
- exists: true;
607
+ exists(): true;
608
608
 
609
609
  /**
610
610
  * Retrieves all fields in the document as an Object.
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '22.0.0';
2
+ module.exports = '22.2.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/firestore",
3
- "version": "22.0.0",
3
+ "version": "22.2.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,11 +27,11 @@
27
27
  "firestore"
28
28
  ],
29
29
  "peerDependencies": {
30
- "@react-native-firebase/app": "22.0.0"
30
+ "@react-native-firebase/app": "22.2.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public",
34
34
  "provenance": true
35
35
  },
36
- "gitHead": "e9fee87b413c90e243347d5c60272f07f41d99b8"
36
+ "gitHead": "b302210509ceac8078b5fb9fd0b24e68f0641c6a"
37
37
  }