@liveblocks/core 2.23.0 → 2.23.1
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.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var __export = (target, all) => {
|
|
|
6
6
|
|
|
7
7
|
// src/version.ts
|
|
8
8
|
var PKG_NAME = "@liveblocks/core";
|
|
9
|
-
var PKG_VERSION = "2.23.
|
|
9
|
+
var PKG_VERSION = "2.23.1";
|
|
10
10
|
var PKG_FORMAT = "cjs";
|
|
11
11
|
|
|
12
12
|
// src/dupe-detection.ts
|
|
@@ -395,7 +395,7 @@ function makeEventSource() {
|
|
|
395
395
|
subscribeOnce,
|
|
396
396
|
count,
|
|
397
397
|
waitUntil,
|
|
398
|
-
|
|
398
|
+
dispose() {
|
|
399
399
|
_observers.clear();
|
|
400
400
|
},
|
|
401
401
|
// Publicly exposable subscription API
|
|
@@ -434,8 +434,8 @@ function makeBufferableEventSource() {
|
|
|
434
434
|
notify: notifyOrBuffer,
|
|
435
435
|
pause,
|
|
436
436
|
unpause,
|
|
437
|
-
|
|
438
|
-
eventSource2
|
|
437
|
+
dispose() {
|
|
438
|
+
eventSource2.dispose();
|
|
439
439
|
if (_buffer !== null) {
|
|
440
440
|
_buffer.length = 0;
|
|
441
441
|
}
|
|
@@ -504,8 +504,8 @@ var AbstractSignal = class {
|
|
|
504
504
|
this.subscribe = this.subscribe.bind(this);
|
|
505
505
|
this.subscribeOnce = this.subscribeOnce.bind(this);
|
|
506
506
|
}
|
|
507
|
-
|
|
508
|
-
this.#eventSource
|
|
507
|
+
dispose() {
|
|
508
|
+
this.#eventSource.dispose();
|
|
509
509
|
this.#eventSource = "(disposed)";
|
|
510
510
|
this.equals = "(disposed)";
|
|
511
511
|
}
|
|
@@ -561,8 +561,8 @@ var Signal = class extends AbstractSignal {
|
|
|
561
561
|
super(equals);
|
|
562
562
|
this.#value = freeze(value);
|
|
563
563
|
}
|
|
564
|
-
|
|
565
|
-
super
|
|
564
|
+
dispose() {
|
|
565
|
+
super.dispose();
|
|
566
566
|
this.#value = "(disposed)";
|
|
567
567
|
}
|
|
568
568
|
get() {
|
|
@@ -626,7 +626,7 @@ var DerivedSignal = class _DerivedSignal extends AbstractSignal {
|
|
|
626
626
|
this.#sources = /* @__PURE__ */ new Set();
|
|
627
627
|
this.#transform = transform;
|
|
628
628
|
}
|
|
629
|
-
|
|
629
|
+
dispose() {
|
|
630
630
|
for (const src of this.#sources) {
|
|
631
631
|
src.removeSink(this);
|
|
632
632
|
}
|
|
@@ -701,8 +701,8 @@ var MutableSignal = class extends AbstractSignal {
|
|
|
701
701
|
super();
|
|
702
702
|
this.#state = initialState;
|
|
703
703
|
}
|
|
704
|
-
|
|
705
|
-
super
|
|
704
|
+
dispose() {
|
|
705
|
+
super.dispose();
|
|
706
706
|
this.#state = "(disposed)";
|
|
707
707
|
}
|
|
708
708
|
get() {
|
|
@@ -7866,7 +7866,7 @@ ${Array.from(traces).join("\n\n")}`
|
|
|
7866
7866
|
destroy: () => {
|
|
7867
7867
|
const { roomWillDestroy, ...eventsExceptDestroy } = eventHub;
|
|
7868
7868
|
for (const source of Object.values(eventsExceptDestroy)) {
|
|
7869
|
-
source
|
|
7869
|
+
source.dispose();
|
|
7870
7870
|
}
|
|
7871
7871
|
eventHub.roomWillDestroy.notify();
|
|
7872
7872
|
_optionalChain([context, 'access', _167 => _167.yjsProvider, 'optionalAccess', _168 => _168.off, 'call', _169 => _169("status", yjsStatusDidChange)]);
|
|
@@ -7874,7 +7874,7 @@ ${Array.from(traces).join("\n\n")}`
|
|
|
7874
7874
|
syncSourceForYjs.destroy();
|
|
7875
7875
|
uninstallBgTabSpy();
|
|
7876
7876
|
managedSocket.destroy();
|
|
7877
|
-
roomWillDestroy
|
|
7877
|
+
roomWillDestroy.dispose();
|
|
7878
7878
|
},
|
|
7879
7879
|
// Presence
|
|
7880
7880
|
updatePresence,
|