@react-native-firebase/firestore 18.5.0 → 18.6.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 +4 -0
- package/__tests__/firestore.test.ts +9 -9
- package/android/build.gradle +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
## [18.6.0](https://github.com/invertase/react-native-firebase/compare/v18.5.0...v18.6.0) (2023-10-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @react-native-firebase/firestore
|
|
9
|
+
|
|
6
10
|
## [18.5.0](https://github.com/invertase/react-native-firebase/compare/v18.4.0...v18.5.0) (2023-09-22)
|
|
7
11
|
|
|
8
12
|
### Features
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from '@jest/globals';
|
|
2
2
|
|
|
3
|
-
import firestore, { firebase
|
|
3
|
+
import firestore, { firebase } from '../lib';
|
|
4
4
|
|
|
5
5
|
const COLLECTION = 'firestore';
|
|
6
6
|
|
|
@@ -310,22 +310,22 @@ describe('Storage', function () {
|
|
|
310
310
|
});
|
|
311
311
|
|
|
312
312
|
it('does not throw when Date is provided instead of Timestamp', async function () {
|
|
313
|
-
type BarType = {
|
|
314
|
-
|
|
315
|
-
};
|
|
313
|
+
// type BarType = {
|
|
314
|
+
// myDate: FirebaseFirestoreTypes.Timestamp;
|
|
315
|
+
// };
|
|
316
316
|
|
|
317
|
-
const docRef = firebase.firestore().doc
|
|
317
|
+
const docRef = firebase.firestore().doc(`${COLLECTION}/bar`);
|
|
318
318
|
await docRef.set({
|
|
319
319
|
myDate: new Date(),
|
|
320
320
|
});
|
|
321
321
|
});
|
|
322
322
|
|
|
323
323
|
it('does not throw when serverTimestamp is provided instead of Timestamp', async function () {
|
|
324
|
-
type BarType = {
|
|
325
|
-
|
|
326
|
-
};
|
|
324
|
+
// type BarType = {
|
|
325
|
+
// myDate: FirebaseFirestoreTypes.Timestamp;
|
|
326
|
+
// };
|
|
327
327
|
|
|
328
|
-
const docRef = firebase.firestore().doc
|
|
328
|
+
const docRef = firebase.firestore().doc(`${COLLECTION}/bar`);
|
|
329
329
|
await docRef.set({
|
|
330
330
|
myDate: firestore.FieldValue.serverTimestamp(),
|
|
331
331
|
});
|
package/android/build.gradle
CHANGED
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
module.exports = '18.
|
|
2
|
+
module.exports = '18.6.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-firebase/firestore",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.6.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": "18.
|
|
30
|
+
"@react-native-firebase/app": "18.6.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "adbbd4171adb1e3c2306da1285520abbaf9313b8"
|
|
36
36
|
}
|