@firebase/database 0.13.5-canary.f88805e48 → 0.13.6

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,11 @@
1
1
  # Unreleased
2
2
 
3
+ ## 0.13.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f35533594`](https://github.com/firebase/firebase-js-sdk/commit/f355335942b874ba390bcbf3be6de44a3d33dce8) [#6560](https://github.com/firebase/firebase-js-sdk/pull/6560) - Included experimental support for Deno
8
+
3
9
  ## 0.13.5
4
10
 
5
11
  ### Patch Changes
@@ -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.5-canary.f88805e48";
7
+ const version = "0.13.6";
8
8
 
9
9
  /**
10
10
  * @license
@@ -674,8 +674,17 @@ const beingCrawled = function () {
674
674
  */
675
675
  const setTimeoutNonBlocking = function (fn, time) {
676
676
  const timeout = setTimeout(fn, time);
677
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
678
- if (typeof timeout === 'object' && timeout['unref']) {
677
+ // Note: at the time of this comment, unrefTimer is under the unstable set of APIs. Run with --unstable to enable the API.
678
+ if (typeof timeout === 'number' &&
679
+ // @ts-ignore Is only defined in Deno environments.
680
+ typeof Deno !== 'undefined' &&
681
+ // @ts-ignore Deno and unrefTimer are only defined in Deno environments.
682
+ Deno['unrefTimer']) {
683
+ // @ts-ignore Deno and unrefTimer are only defined in Deno environments.
684
+ Deno.unrefTimer(timeout);
685
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
686
+ }
687
+ else if (typeof timeout === 'object' && timeout['unref']) {
679
688
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
680
689
  timeout['unref']();
681
690
  }