@react-native-firebase/firestore 15.1.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,24 @@
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
+
16
+ # [15.2.0](https://github.com/invertase/react-native-firebase/compare/v15.1.1...v15.2.0) (2022-07-21)
17
+
18
+ **Note:** Version bump only for package @react-native-firebase/firestore
19
+
20
+ ## [15.1.1](https://github.com/invertase/react-native-firebase/compare/v15.1.0...v15.1.1) (2022-06-28)
21
+
22
+ **Note:** Version bump only for package @react-native-firebase/firestore
23
+
6
24
  # [15.1.0](https://github.com/invertase/react-native-firebase/compare/v15.0.0...v15.1.0) (2022-06-28)
7
25
 
8
26
  **Note:** Version bump only for package @react-native-firebase/firestore
@@ -34,7 +34,6 @@ def firebaseBomVersion = appPackageJson['sdkVersions']['android']['firebase']
34
34
  def jsonMinSdk = appPackageJson['sdkVersions']['android']['minSdk']
35
35
  def jsonTargetSdk = appPackageJson['sdkVersions']['android']['targetSdk']
36
36
  def jsonCompileSdk = appPackageJson['sdkVersions']['android']['compileSdk']
37
- def jsonBuildTools = appPackageJson['sdkVersions']['android']['buildTools']
38
37
  def coreVersionDetected = appPackageJson['version']
39
38
  def coreVersionRequired = packageJson['peerDependencies'][appPackageJson['name']]
40
39
  // Only log after build completed so log warning appears at the end
@@ -51,9 +50,6 @@ project.ext {
51
50
  minSdk : jsonMinSdk,
52
51
  targetSdk : jsonTargetSdk,
53
52
  compileSdk: jsonCompileSdk,
54
- // optional as gradle.buildTools comes with one by default
55
- // overriding here though to match the version RN uses
56
- buildTools: jsonBuildTools
57
53
  ],
58
54
 
59
55
  firebase: [
@@ -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.1.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.1.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.1.0"
30
+ "@react-native-firebase/app": "15.3.0"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "f9a50496bddab6a4bb740cd18dd7407d219fbda2"
35
+ "gitHead": "97f6e273efaac64d8a62eae4be390289e69d506b"
36
36
  }