@firebase/database 0.14.0 → 0.14.1-20230117221326

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,18 @@
1
1
  # Unreleased
2
2
 
3
+ ## 0.14.1-20230117221326
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d8af08feb`](https://github.com/firebase/firebase-js-sdk/commit/d8af08febfd4507a28bcda38d475b8010ef20f92) [#6883](https://github.com/firebase/firebase-js-sdk/pull/6883) (fixes [#6853](https://github.com/firebase/firebase-js-sdk/issues/6853)) - Fixed issue where connectDatabaseToEmulator can be called twice during a hot reload
8
+
9
+ - [`a4056634a`](https://github.com/firebase/firebase-js-sdk/commit/a4056634a5119dd3f2ca935cae23b90fc99d84ee) [#6916](https://github.com/firebase/firebase-js-sdk/pull/6916) - Replace `innerHTML` call with `textContent`.
10
+
11
+ - Updated dependencies [[`e9bcd4c43`](https://github.com/firebase/firebase-js-sdk/commit/e9bcd4c43a0628ebce570f03f1e91dfa93fffca2), [`d4114a4f7`](https://github.com/firebase/firebase-js-sdk/commit/d4114a4f7da3f469c0c900416ac8beee58885ec3), [`06dc1364d`](https://github.com/firebase/firebase-js-sdk/commit/06dc1364d7560f4c563e1ccc89af9cad4cd91df8)]:
12
+ - @firebase/auth-interop-types@0.2.1-20230117221326
13
+ - @firebase/util@1.9.0-20230117221326
14
+ - @firebase/component@0.6.1-20230117221326
15
+
3
16
  ## 0.14.0
4
17
 
5
18
  ### Minor Changes
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
4
4
  import { Logger, LogLevel } from '@firebase/logger';
5
5
 
6
6
  const name = "@firebase/database";
7
- const version = "0.14.0";
7
+ const version = "0.14.1-20230117221326";
8
8
 
9
9
  /**
10
10
  * @license
@@ -1580,8 +1580,8 @@ class FirebaseIFrameScriptHolder {
1580
1580
  if (this.myIFrame) {
1581
1581
  //We have to actually remove all of the html inside this iframe before removing it from the
1582
1582
  //window, or IE will continue loading and executing the script tags we've already added, which
1583
- //can lead to some errors being thrown. Setting innerHTML seems to be the easiest way to do this.
1584
- this.myIFrame.doc.body.innerHTML = '';
1583
+ //can lead to some errors being thrown. Setting textContent seems to be the safest way to do this.
1584
+ this.myIFrame.doc.body.textContent = '';
1585
1585
  setTimeout(() => {
1586
1586
  if (this.myIFrame !== null) {
1587
1587
  document.body.removeChild(this.myIFrame);
@@ -13617,9 +13617,11 @@ function getDatabase(app = getApp(), url) {
13617
13617
  const db = _getProvider(app, 'database').getImmediate({
13618
13618
  identifier: url
13619
13619
  });
13620
- const emulator = getDefaultEmulatorHostnameAndPort('database');
13621
- if (emulator) {
13622
- connectDatabaseEmulator(db, ...emulator);
13620
+ if (!db._instanceStarted) {
13621
+ const emulator = getDefaultEmulatorHostnameAndPort('database');
13622
+ if (emulator) {
13623
+ connectDatabaseEmulator(db, ...emulator);
13624
+ }
13623
13625
  }
13624
13626
  return db;
13625
13627
  }