@automerge/automerge-repo-react-hooks 2.5.4 → 2.5.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/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/dist/useRemoteAwareness.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/useRemoteAwareness.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -6241,13 +6241,6 @@ const REUSE_BUFFER_MODE = 512;
|
|
|
6241
6241
|
const RESET_BUFFER_MODE = 1024;
|
|
6242
6242
|
const THROW_ON_ITERABLE = 2048;
|
|
6243
6243
|
|
|
6244
|
-
/**
|
|
6245
|
-
* FinalizationRegistry for automatic cleanup of Ref instances.
|
|
6246
|
-
* This ensures subscriptions are cleaned up when Refs are garbage collected,
|
|
6247
|
-
* even if dispose() is never called.
|
|
6248
|
-
*/
|
|
6249
|
-
new FinalizationRegistry(cleanup => cleanup());
|
|
6250
|
-
|
|
6251
6244
|
var sha256$1 = {exports: {}};
|
|
6252
6245
|
|
|
6253
6246
|
var sha256 = sha256$1.exports;
|
|
@@ -6688,6 +6681,20 @@ requireSha256();
|
|
|
6688
6681
|
|
|
6689
6682
|
debug("automerge-repo:collectionsync");
|
|
6690
6683
|
|
|
6684
|
+
/**
|
|
6685
|
+
* FinalizationRegistry for automatic cleanup of Ref instances.
|
|
6686
|
+
* This ensures subscriptions are cleaned up when Refs are garbage collected,
|
|
6687
|
+
* even if dispose() is never called.
|
|
6688
|
+
*/
|
|
6689
|
+
new FinalizationRegistry(cleanup => cleanup());
|
|
6690
|
+
|
|
6691
|
+
/* c8 ignore start */
|
|
6692
|
+
/**
|
|
6693
|
+
* A promise that never settles
|
|
6694
|
+
*/
|
|
6695
|
+
new Promise(() => { });
|
|
6696
|
+
/* c8 ignore end */
|
|
6697
|
+
|
|
6691
6698
|
const DEFAULT_HEARTBEAT_INTERVAL_MS = 15_000;
|
|
6692
6699
|
const DEFAULT_PEER_TTL_MS = 3 * DEFAULT_HEARTBEAT_INTERVAL_MS;
|
|
6693
6700
|
const PRESENCE_MESSAGE_MARKER = "__presence";
|