@liveblocks/core 2.8.0-beta4 → 2.8.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.d.mts CHANGED
@@ -92,12 +92,6 @@ declare type EventSource<T> = Observable<T> & {
92
92
  * Notify all subscribers about the event.
93
93
  */
94
94
  notify(event: T): void;
95
- /**
96
- * Clear all registered event listeners. None of the registered functions
97
- * will ever get called again. Be careful when using this API, because the
98
- * subscribers may not have any idea they won't be notified anymore.
99
- */
100
- clear(): void;
101
95
  /**
102
96
  * Returns the number of active subscribers.
103
97
  */
package/dist/index.d.ts CHANGED
@@ -92,12 +92,6 @@ declare type EventSource<T> = Observable<T> & {
92
92
  * Notify all subscribers about the event.
93
93
  */
94
94
  notify(event: T): void;
95
- /**
96
- * Clear all registered event listeners. None of the registered functions
97
- * will ever get called again. Be careful when using this API, because the
98
- * subscribers may not have any idea they won't be notified anymore.
99
- */
100
- clear(): void;
101
95
  /**
102
96
  * Returns the number of active subscribers.
103
97
  */
package/dist/index.js 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.8.0-beta4";
9
+ var PKG_VERSION = "2.8.1";
10
10
  var PKG_FORMAT = "cjs";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -132,7 +132,7 @@ function makeEventSource() {
132
132
  _onetimeObservers.clear();
133
133
  _observers.forEach((callback) => callback(event));
134
134
  }
135
- function clear() {
135
+ function _forceClear() {
136
136
  _onetimeObservers.clear();
137
137
  _observers.clear();
138
138
  }
@@ -144,7 +144,7 @@ function makeEventSource() {
144
144
  notify: notifyOrBuffer,
145
145
  subscribe,
146
146
  subscribeOnce,
147
- clear,
147
+ _forceClear,
148
148
  count,
149
149
  waitUntil,
150
150
  pause,