@react-native-firebase/firestore 15.2.0 → 15.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
+ # [15.3.0](https://github.com/invertase/react-native-firebase/compare/v15.2.0...v15.3.0) (2022-08-07)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **firestore:** merge option should not always be true if passed ([#6436](https://github.com/invertase/react-native-firebase/issues/6436)) ([85585da](https://github.com/invertase/react-native-firebase/commit/85585da91fc82308a44f52063ffb612d651db7c7))
11
+
12
+ ### Features
13
+
14
+ - add GeoPoint toJSON() method ([b062e74](https://github.com/invertase/react-native-firebase/commit/b062e743303c1c98334ff1ce1a82df59e87eebc4))
15
+
6
16
  # [15.2.0](https://github.com/invertase/react-native-firebase/compare/v15.1.1...v15.2.0) (2022-07-21)
7
17
 
8
18
  **Note:** Version bump only for package @react-native-firebase/firestore
@@ -66,4 +66,11 @@ export default class FirestoreGeoPoint {
66
66
 
67
67
  return this._latitude === other._latitude && this._longitude === other._longitude;
68
68
  }
69
+
70
+ toJSON() {
71
+ return {
72
+ latitude: this._latitude,
73
+ longitude: this._longitude,
74
+ };
75
+ }
69
76
  }
package/lib/index.d.ts CHANGED
@@ -808,6 +808,11 @@ export namespace FirebaseFirestoreTypes {
808
808
  * @param other The `GeoPoint` to compare against.
809
809
  */
810
810
  isEqual(other: GeoPoint): boolean;
811
+
812
+ /**
813
+ * Returns a JSON-serializable representation of this GeoPoint.
814
+ */
815
+ toJSON(): { latitude: number; longitude: number };
811
816
  }
812
817
 
813
818
  /**
@@ -91,7 +91,7 @@ export function parseSetOptions(options) {
91
91
  throw new Error("'options.merge' must be a boolean value.");
92
92
  }
93
93
 
94
- out.merge = true;
94
+ out.merge = options.merge;
95
95
  }
96
96
 
97
97
  if (!isUndefined(options.mergeFields)) {
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '15.2.0';
2
+ module.exports = '15.3.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/firestore",
3
- "version": "15.2.0",
3
+ "version": "15.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": "15.2.0"
30
+ "@react-native-firebase/app": "15.3.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "8fb859fb000d5c2c6bbb81dffc685e94ef1ba350"
35
+ "gitHead": "97f6e273efaac64d8a62eae4be390289e69d506b"
36
36
  }