@react-native-firebase/firestore 13.0.1 → 13.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.js +5 -2
- 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
|
+
# [13.1.0](https://github.com/invertase/react-native-firebase/compare/v13.0.1...v13.1.0) (2021-12-02)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **android, emulator:** add firebase.json config element to bypass localhost remap ([#5852](https://github.com/invertase/react-native-firebase/issues/5852)) ([ddf3f5f](https://github.com/invertase/react-native-firebase/commit/ddf3f5f43d2c8547879934c3169d3e01c0db44c0))
|
|
11
|
+
|
|
6
12
|
## [13.0.1](https://github.com/invertase/react-native-firebase/compare/v13.0.0...v13.0.1) (2021-11-05)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @react-native-firebase/firestore
|
package/lib/index.js
CHANGED
|
@@ -101,12 +101,15 @@ class FirebaseFirestoreModule extends FirebaseModule {
|
|
|
101
101
|
throw new Error('firebase.firestore().useEmulator() takes a non-empty host and port');
|
|
102
102
|
}
|
|
103
103
|
let _host = host;
|
|
104
|
-
|
|
104
|
+
const androidBypassEmulatorUrlRemap =
|
|
105
|
+
typeof this.firebaseJson.android_bypass_emulator_url_remap === 'boolean' &&
|
|
106
|
+
this.firebaseJson.android_bypass_emulator_url_remap;
|
|
107
|
+
if (!androidBypassEmulatorUrlRemap && isAndroid && _host) {
|
|
105
108
|
if (_host === 'localhost' || _host === '127.0.0.1') {
|
|
106
109
|
_host = '10.0.2.2';
|
|
107
110
|
// eslint-disable-next-line no-console
|
|
108
111
|
console.log(
|
|
109
|
-
'Mapping firestore host to "10.0.2.2" for android emulators. Use real IP on real devices.',
|
|
112
|
+
'Mapping firestore host to "10.0.2.2" for android emulators. Use real IP on real devices. You can bypass this behaviour with "android_bypass_emulator_url_remap" flag.',
|
|
110
113
|
);
|
|
111
114
|
}
|
|
112
115
|
}
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
module.exports = '13.0
|
|
2
|
+
module.exports = '13.1.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-firebase/firestore",
|
|
3
|
-
"version": "13.0
|
|
3
|
+
"version": "13.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,10 +27,10 @@
|
|
|
27
27
|
"firestore"
|
|
28
28
|
],
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@react-native-firebase/app": "13.0
|
|
30
|
+
"@react-native-firebase/app": "13.1.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "0a9621b1ad2d6592de9906157d121c8ba5460a75"
|
|
36
36
|
}
|