@react-native-firebase/firestore 21.13.0 → 22.0.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,22 @@
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.0.0](https://github.com/invertase/react-native-firebase/compare/v21.14.0...v22.0.0) (2025-04-25)
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ - **firestore:** alter all use of DocumentSnapshot `exists` to `exists()` - should be a method not a property
11
+
12
+ ### Bug Fixes
13
+
14
+ - **android:** use `=` assignment vs deprecated space-assignment ([39c2ecb](https://github.com/invertase/react-native-firebase/commit/39c2ecb0069a8a5a65b04fb7f86ccecf83273868))
15
+ - enable provenance signing during publish ([4535f0d](https://github.com/invertase/react-native-firebase/commit/4535f0d5756c89aeb8f8e772348c71d8176348be))
16
+ - **firestore:** DocumentSnapshot.exists() should be a method not a property ([#8483](https://github.com/invertase/react-native-firebase/issues/8483)) ([346272c](https://github.com/invertase/react-native-firebase/commit/346272cf9d6545ab5c1a2c30127bc4079700c2d1))
17
+
18
+ ## [21.14.0](https://github.com/invertase/react-native-firebase/compare/v21.13.0...v21.14.0) (2025-04-14)
19
+
20
+ **Note:** Version bump only for package @react-native-firebase/firestore
21
+
6
22
  ## [21.13.0](https://github.com/invertase/react-native-firebase/compare/v21.12.3...v21.13.0) (2025-03-31)
7
23
 
8
24
  ### Bug Fixes
@@ -62,20 +62,20 @@ project.ext {
62
62
  android {
63
63
  def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')[0].toInteger()
64
64
  if (agpVersion >= 7) {
65
- namespace 'io.invertase.firebase.firestore'
65
+ namespace = 'io.invertase.firebase.firestore'
66
66
  }
67
67
 
68
68
  defaultConfig {
69
- multiDexEnabled true
69
+ multiDexEnabled = true
70
70
  }
71
71
  lintOptions {
72
72
  disable 'GradleCompatible'
73
- abortOnError false
73
+ abortOnError = false
74
74
  }
75
75
  if (agpVersion < 8) {
76
76
  compileOptions {
77
- sourceCompatibility JavaVersion.VERSION_11
78
- targetCompatibility JavaVersion.VERSION_11
77
+ sourceCompatibility = JavaVersion.VERSION_11
78
+ targetCompatibility = JavaVersion.VERSION_11
79
79
  }
80
80
  }
81
81
  sourceSets {
@@ -33,10 +33,6 @@ export default class FirestoreDocumentSnapshot {
33
33
  this._exists = nativeData.exists;
34
34
  }
35
35
 
36
- get exists() {
37
- return this._exists;
38
- }
39
-
40
36
  get id() {
41
37
  return this._ref.id;
42
38
  }
@@ -49,6 +45,10 @@ export default class FirestoreDocumentSnapshot {
49
45
  return this._ref;
50
46
  }
51
47
 
48
+ exists() {
49
+ return this._exists;
50
+ }
51
+
52
52
  data() {
53
53
  // TODO: ehesp: Figure out how to handle this.
54
54
  // const snapshotOptions = {};
@@ -114,7 +114,7 @@ export default class FirestoreDocumentSnapshot {
114
114
  }
115
115
 
116
116
  if (
117
- this.exists !== other.exists ||
117
+ this.exists() !== other.exists() ||
118
118
  !this.metadata.isEqual(other.metadata) ||
119
119
  !this.ref.isEqual(other.ref)
120
120
  ) {
@@ -65,7 +65,7 @@ export default class FirestoreQuery {
65
65
 
66
66
  const documentSnapshot = docOrField;
67
67
 
68
- if (!documentSnapshot.exists) {
68
+ if (!documentSnapshot.exists()) {
69
69
  throw new Error(
70
70
  `firebase.firestore().collection().${cursor}(*) Can't use a DocumentSnapshot that doesn't exist.`,
71
71
  );
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '21.13.0';
2
+ module.exports = '22.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/firestore",
3
- "version": "21.13.0",
3
+ "version": "22.0.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,11 @@
27
27
  "firestore"
28
28
  ],
29
29
  "peerDependencies": {
30
- "@react-native-firebase/app": "21.13.0"
30
+ "@react-native-firebase/app": "22.0.0"
31
31
  },
32
32
  "publishConfig": {
33
- "access": "public"
33
+ "access": "public",
34
+ "provenance": true
34
35
  },
35
- "gitHead": "d4d02d15431a0be091a7417833e0180479f5e788"
36
+ "gitHead": "e9fee87b413c90e243347d5c60272f07f41d99b8"
36
37
  }