@react-native-firebase/firestore 22.0.0 → 22.1.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 +6 -0
- package/lib/index.d.ts +5 -5
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.1.0](https://github.com/invertase/react-native-firebase/compare/v22.0.0...v22.1.0) (2025-04-30)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **firestore, types:** exist -> exists() change reflected in types ([339834d](https://github.com/invertase/react-native-firebase/commit/339834d940f1260ddd9a142cc17def1e876ff0fa))
|
|
11
|
+
|
|
6
12
|
## [22.0.0](https://github.com/invertase/react-native-firebase/compare/v21.14.0...v22.0.0) (2025-04-25)
|
|
7
13
|
|
|
8
14
|
### ⚠ 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`
|
|
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
|
-
*
|
|
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
|
|
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.
|
|
2
|
+
module.exports = '22.1.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-firebase/firestore",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.1.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.
|
|
30
|
+
"@react-native-firebase/app": "22.1.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public",
|
|
34
34
|
"provenance": true
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "af6096ed9df878f0f169e899564b0aab68d396e5"
|
|
37
37
|
}
|