@firebase/database 0.13.2-canary.d3336a9cd → 0.13.3-20220707184205
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 +12 -0
- package/dist/index.esm2017.js +1 -17
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1 -18
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +1 -18
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +0 -17
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +1 -17
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Unreleased
|
|
2
2
|
|
|
3
|
+
## 0.13.3-20220707184205
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c187446a2`](https://github.com/firebase/firebase-js-sdk/commit/c187446a202d881f55800be167cdb37b4d0e4a13) [#6410](https://github.com/firebase/firebase-js-sdk/pull/6410) - Removed uuid as a dependency for @firebase/database
|
|
8
|
+
|
|
9
|
+
* [`b12af44a5`](https://github.com/firebase/firebase-js-sdk/commit/b12af44a5c7500e1192d6cc1a4afc4d77efadbaf) [#6340](https://github.com/firebase/firebase-js-sdk/pull/6340) (fixes [#6036](https://github.com/firebase/firebase-js-sdk/issues/6036)) - Forced `get()` to wait until db is online to resolve.
|
|
10
|
+
|
|
11
|
+
* Updated dependencies [[`b12af44a5`](https://github.com/firebase/firebase-js-sdk/commit/b12af44a5c7500e1192d6cc1a4afc4d77efadbaf)]:
|
|
12
|
+
- @firebase/util@1.6.3-20220707184205
|
|
13
|
+
- @firebase/component@0.5.17-20220707184205
|
|
14
|
+
|
|
3
15
|
## 0.13.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.esm2017.js
CHANGED
|
@@ -4,7 +4,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, base64, stringToByteA
|
|
|
4
4
|
import { Logger, LogLevel } from '@firebase/logger';
|
|
5
5
|
|
|
6
6
|
const name = "@firebase/database";
|
|
7
|
-
const version = "0.13.
|
|
7
|
+
const version = "0.13.3-20220707184205";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @license
|
|
@@ -3180,7 +3180,6 @@ class VisibilityMonitor extends EventEmitter {
|
|
|
3180
3180
|
*/
|
|
3181
3181
|
const RECONNECT_MIN_DELAY = 1000;
|
|
3182
3182
|
const RECONNECT_MAX_DELAY_DEFAULT = 60 * 5 * 1000; // 5 minutes in milliseconds (Case: 1858)
|
|
3183
|
-
const GET_CONNECT_TIMEOUT = 3 * 1000;
|
|
3184
3183
|
const RECONNECT_MAX_DELAY_FOR_ADMINS = 30 * 1000; // 30 seconds for admin clients (likely to be a backend server)
|
|
3185
3184
|
const RECONNECT_DELAY_MULTIPLIER = 1.3;
|
|
3186
3185
|
const RECONNECT_DELAY_RESET_TIMEOUT = 30000; // Reset delay back to MIN_DELAY after being connected for 30sec.
|
|
@@ -3279,21 +3278,6 @@ class PersistentConnection extends ServerActions {
|
|
|
3279
3278
|
this.outstandingGets_.push(outstandingGet);
|
|
3280
3279
|
this.outstandingGetCount_++;
|
|
3281
3280
|
const index = this.outstandingGets_.length - 1;
|
|
3282
|
-
if (!this.connected_) {
|
|
3283
|
-
setTimeout(() => {
|
|
3284
|
-
const get = this.outstandingGets_[index];
|
|
3285
|
-
if (get === undefined || outstandingGet !== get) {
|
|
3286
|
-
return;
|
|
3287
|
-
}
|
|
3288
|
-
delete this.outstandingGets_[index];
|
|
3289
|
-
this.outstandingGetCount_--;
|
|
3290
|
-
if (this.outstandingGetCount_ === 0) {
|
|
3291
|
-
this.outstandingGets_ = [];
|
|
3292
|
-
}
|
|
3293
|
-
this.log_('get ' + index + ' timed out on connection');
|
|
3294
|
-
deferred.reject(new Error('Client is offline.'));
|
|
3295
|
-
}, GET_CONNECT_TIMEOUT);
|
|
3296
|
-
}
|
|
3297
3281
|
if (this.connected_) {
|
|
3298
3282
|
this.sendGet_(index);
|
|
3299
3283
|
}
|