@react-native-firebase/auth 14.5.1 → 14.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 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
+ # [14.6.0](https://github.com/invertase/react-native-firebase/compare/v14.5.1...v14.6.0) (2022-03-23)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **auth:** allow emulator hostnames to contain hyphens ([#6141](https://github.com/invertase/react-native-firebase/issues/6141)) ([98eb1ce](https://github.com/invertase/react-native-firebase/commit/98eb1ce3663bb0c0c507f7e8129ad094a53898b5))
11
+
6
12
  ## [14.5.1](https://github.com/invertase/react-native-firebase/compare/v14.5.0...v14.5.1) (2022-03-05)
7
13
 
8
14
  **Note:** Version bump only for package @react-native-firebase/auth
@@ -42,6 +42,11 @@ describe('Auth', function () {
42
42
  const bar = auth().useEmulator('http://127.0.0.1:9099');
43
43
  expect(bar).toEqual(['10.0.2.2', 9099]);
44
44
  });
45
+
46
+ it('useEmulator allows hyphens in the hostname', function () {
47
+ const result = auth().useEmulator('http://my-host:9099');
48
+ expect(result).toEqual(['my-host', 9099]);
49
+ });
45
50
  });
46
51
 
47
52
  describe('tenantId', function () {
package/lib/index.js CHANGED
@@ -381,7 +381,7 @@ class FirebaseAuthModule extends FirebaseModule {
381
381
  }
382
382
 
383
383
  // Native calls take the host and port split out
384
- const hostPortRegex = /^http:\/\/([\w\d.]+):(\d+)$/;
384
+ const hostPortRegex = /^http:\/\/([\w\d-.]+):(\d+)$/;
385
385
  const urlMatches = _url.match(hostPortRegex);
386
386
  if (!urlMatches) {
387
387
  throw new Error('firebase.auth().useEmulator() unable to parse host and port from URL');
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- module.exports = '14.5.1';
2
+ module.exports = '14.6.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/auth",
3
- "version": "14.5.1",
3
+ "version": "14.6.0",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - The authentication module provides an easy-to-use API to integrate an authentication workflow into new and existing applications. React Native Firebase provides access to all Firebase authentication methods and identity providers.",
6
6
  "main": "lib/index.js",
@@ -22,10 +22,10 @@
22
22
  "auth"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@react-native-firebase/app": "14.5.1"
25
+ "@react-native-firebase/app": "14.6.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "5c3c69b2c67488f7fcf3a8ab7b51221872c1e7c5"
30
+ "gitHead": "0d0f0d1f839af2a3343c8a0edb08d7749623d4de"
31
31
  }