@jxsuite/collab 0.2.1 → 0.3.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/ws-client.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxsuite/collab",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Realtime co-editing for Jx Studio — Y.Doc schema, op bridge, structural differ, wire envelope, and provider contracts shared by every collab backend",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "test:coverage": "bun test --isolate --coverage"
33
33
  },
34
34
  "dependencies": {
35
- "@jxsuite/schema": "^0.35.0",
35
+ "@jxsuite/schema": "^1.0.0",
36
36
  "lib0": "^0.2.99",
37
37
  "y-protocols": "^1.0.6",
38
38
  "yjs": "13.6.27"
package/src/ws-client.ts CHANGED
@@ -204,7 +204,7 @@ export function createWsCollabConnection(options: WsCollabConnectionOptions): Ws
204
204
  entry.resolveOpen?.(false);
205
205
  entry.resolveOpen = null;
206
206
  }
207
- return;
207
+ break;
208
208
  }
209
209
  default: {
210
210
  break;
@@ -290,7 +290,7 @@ export function createWsCollabConnection(options: WsCollabConnectionOptions): Ws
290
290
  }
291
291
  case "awareness": {
292
292
  applyAwarenessUpdate(awareness, frame.body, "remote");
293
- return;
293
+ break;
294
294
  }
295
295
  default: {
296
296
  break;