@firebase/database 0.13.7 → 0.13.8-20221010203322

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
@@ -1,5 +1,17 @@
1
1
  # Unreleased
2
2
 
3
+ ## 0.13.8-20221010203322
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5aa48d0ab`](https://github.com/firebase/firebase-js-sdk/commit/5aa48d0ab432002ccf49d65bf2ff637e82a2b402) [#6583](https://github.com/firebase/firebase-js-sdk/pull/6583) - Fixed `endBefore` and `push` documentation typos in RTDB
8
+
9
+ * [`171b78b76`](https://github.com/firebase/firebase-js-sdk/commit/171b78b762826a640d267dd4dd172ad9459c4561) [#6673](https://github.com/firebase/firebase-js-sdk/pull/6673) - Handle IPv6 addresses in emulator autoinit.
10
+
11
+ * Updated dependencies [[`171b78b76`](https://github.com/firebase/firebase-js-sdk/commit/171b78b762826a640d267dd4dd172ad9459c4561), [`29d034072`](https://github.com/firebase/firebase-js-sdk/commit/29d034072c20af394ce384e42aa10a37d5dfcb18)]:
12
+ - @firebase/util@1.7.1-20221010203322
13
+ - @firebase/component@0.5.19-20221010203322
14
+
3
15
  ## 0.13.7
4
16
 
5
17
  ### Patch Changes
@@ -1,10 +1,10 @@
1
1
  import { getApp, _getProvider, SDK_VERSION as SDK_VERSION$1, _registerComponent, registerVersion } from '@firebase/app';
2
2
  import { Component } from '@firebase/component';
3
- import { stringify, jsonEval, contains, assert, isNodeSdk, base64, stringToByteArray, Sha1, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, getModularInstance, getDefaultEmulatorHost, createMockUserToken } from '@firebase/util';
3
+ import { stringify, jsonEval, contains, assert, isNodeSdk, base64, stringToByteArray, Sha1, deepCopy, base64Encode, isMobileCordova, stringLength, Deferred, safeGet, isAdmin, isValidFormat, isEmpty, isReactNative, assertionError, map, querystring, errorPrefix, getModularInstance, getDefaultEmulatorHostnameAndPort, createMockUserToken } from '@firebase/util';
4
4
  import { Logger, LogLevel } from '@firebase/logger';
5
5
 
6
6
  const name = "@firebase/database";
7
- const version = "0.13.7";
7
+ const version = "0.13.8-20221010203322";
8
8
 
9
9
  /**
10
10
  * @license
@@ -12704,8 +12704,8 @@ function onDisconnect(ref) {
12704
12704
  * resulting list of items is chronologically sorted. The keys are also
12705
12705
  * designed to be unguessable (they contain 72 random bits of entropy).
12706
12706
  *
12707
- * See {@link https://firebase.google.com/docs/database/web/lists-of-data#append_to_a_list_of_data | Append to a list of data}
12708
- * </br>See {@link ttps://firebase.googleblog.com/2015/02/the-2120-ways-to-ensure-unique_68.html | The 2^120 Ways to Ensure Unique Identifiers}
12707
+ * See {@link https://firebase.google.com/docs/database/web/lists-of-data#append_to_a_list_of_data | Append to a list of data}.
12708
+ * See {@link https://firebase.googleblog.com/2015/02/the-2120-ways-to-ensure-unique_68.html | The 2^120 Ways to Ensure Unique Identifiers}.
12709
12709
  *
12710
12710
  * @param parent - The parent location.
12711
12711
  * @param value - Optional value to be written at the generated location.
@@ -13149,8 +13149,8 @@ class QueryEndBeforeConstraint extends QueryConstraint {
13149
13149
  *
13150
13150
  * The ending point is exclusive. If only a value is provided, children
13151
13151
  * with a value less than the specified value will be included in the query.
13152
- * If a key is specified, then children must have a value lesss than or equal
13153
- * to the specified value and a a key name less than the specified key.
13152
+ * If a key is specified, then children must have a value less than or equal
13153
+ * to the specified value and a key name less than the specified key.
13154
13154
  *
13155
13155
  * @param value - The value to end before. The argument type depends on which
13156
13156
  * `orderBy*()` function was used in this query. Specify a value that matches
@@ -13704,10 +13704,9 @@ function getDatabase(app = getApp(), url) {
13704
13704
  const db = _getProvider(app, 'database').getImmediate({
13705
13705
  identifier: url
13706
13706
  });
13707
- const databaseEmulatorHost = getDefaultEmulatorHost('database');
13708
- if (databaseEmulatorHost) {
13709
- const [host, port] = databaseEmulatorHost.split(':');
13710
- connectDatabaseEmulator(db, host, parseInt(port, 10));
13707
+ const emulator = getDefaultEmulatorHostnameAndPort('database');
13708
+ if (emulator) {
13709
+ connectDatabaseEmulator(db, ...emulator);
13711
13710
  }
13712
13711
  return db;
13713
13712
  }