@tldraw/sync-core 5.4.0-canary.6850000c4a2a → 5.4.0-canary.6ee2eda9898e

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.
@@ -116,7 +116,7 @@ export declare class InMemorySyncStorage<R extends UnknownRecord> implements TLS
116
116
  /* Excluded from this release type: tombstoneHistoryStartsAtClock */
117
117
  private notifier;
118
118
  onChange(callback: (arg: TLSyncStorageOnChangeCallbackProps) => unknown): () => void;
119
- constructor({ snapshot, objectTypes, onChange }?: {
119
+ constructor({ snapshot, objectTypes, onChange, }?: {
120
120
  /**
121
121
  * Record type names stored in the object-store lane. Records of these types are routed to
122
122
  * a separate partition: excluded from `getSnapshot()`, returned by `getObjectsSnapshot()`.
@@ -453,7 +453,7 @@ export declare class SQLiteSyncStorage<R extends UnknownRecord> implements TLSyn
453
453
  private readonly stmts;
454
454
  private readonly sql;
455
455
  /* Excluded from this release type: objectTypes */
456
- constructor({ sql, snapshot, objectTypes, onChange }: {
456
+ constructor({ sql, snapshot, objectTypes, onChange, }: {
457
457
  /**
458
458
  * Record type names stored in the object-store lane. Records of these types are routed to
459
459
  * a separate table: excluded from `getSnapshot()`, returned by `getObjectsSnapshot()`.
@@ -1614,23 +1614,23 @@ export declare const TLSyncErrorCloseEventCode: 4099;
1614
1614
  */
1615
1615
  export declare const TLSyncErrorCloseEventReason: {
1616
1616
  /** Client exceeded rate limits */
1617
- readonly RATE_LIMITED: "RATE_LIMITED";
1617
+ readonly RATE_LIMITED: 'RATE_LIMITED';
1618
1618
  /** Client protocol version too old */
1619
- readonly CLIENT_TOO_OLD: "CLIENT_TOO_OLD";
1619
+ readonly CLIENT_TOO_OLD: 'CLIENT_TOO_OLD';
1620
1620
  /** Client sent invalid or corrupted record data */
1621
- readonly INVALID_RECORD: "INVALID_RECORD";
1621
+ readonly INVALID_RECORD: 'INVALID_RECORD';
1622
1622
  /** Room has reached maximum capacity */
1623
- readonly ROOM_FULL: "ROOM_FULL";
1623
+ readonly ROOM_FULL: 'ROOM_FULL';
1624
1624
  /** Room or resource not found */
1625
- readonly NOT_FOUND: "NOT_FOUND";
1625
+ readonly NOT_FOUND: 'NOT_FOUND';
1626
1626
  /** Server protocol version too old */
1627
- readonly SERVER_TOO_OLD: "SERVER_TOO_OLD";
1627
+ readonly SERVER_TOO_OLD: 'SERVER_TOO_OLD';
1628
1628
  /** Unexpected server error occurred */
1629
- readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
1629
+ readonly UNKNOWN_ERROR: 'UNKNOWN_ERROR';
1630
1630
  /** User authentication required or invalid */
1631
- readonly NOT_AUTHENTICATED: "NOT_AUTHENTICATED";
1631
+ readonly NOT_AUTHENTICATED: 'NOT_AUTHENTICATED';
1632
1632
  /** User lacks permission to access the room */
1633
- readonly FORBIDDEN: "FORBIDDEN";
1633
+ readonly FORBIDDEN: 'FORBIDDEN';
1634
1634
  };
1635
1635
 
1636
1636
  /**
package/dist-cjs/index.js CHANGED
@@ -61,7 +61,7 @@ var import_TLSyncRoom = require("./lib/TLSyncRoom");
61
61
  var import_TLSyncStorage = require("./lib/TLSyncStorage");
62
62
  (0, import_utils.registerTldrawLibraryVersion)(
63
63
  "@tldraw/sync-core",
64
- "5.4.0-canary.6850000c4a2a",
64
+ "5.4.0-canary.6ee2eda9898e",
65
65
  "cjs"
66
66
  );
67
67
  //# sourceMappingURL=index.js.map
@@ -116,7 +116,7 @@ export declare class InMemorySyncStorage<R extends UnknownRecord> implements TLS
116
116
  /* Excluded from this release type: tombstoneHistoryStartsAtClock */
117
117
  private notifier;
118
118
  onChange(callback: (arg: TLSyncStorageOnChangeCallbackProps) => unknown): () => void;
119
- constructor({ snapshot, objectTypes, onChange }?: {
119
+ constructor({ snapshot, objectTypes, onChange, }?: {
120
120
  /**
121
121
  * Record type names stored in the object-store lane. Records of these types are routed to
122
122
  * a separate partition: excluded from `getSnapshot()`, returned by `getObjectsSnapshot()`.
@@ -453,7 +453,7 @@ export declare class SQLiteSyncStorage<R extends UnknownRecord> implements TLSyn
453
453
  private readonly stmts;
454
454
  private readonly sql;
455
455
  /* Excluded from this release type: objectTypes */
456
- constructor({ sql, snapshot, objectTypes, onChange }: {
456
+ constructor({ sql, snapshot, objectTypes, onChange, }: {
457
457
  /**
458
458
  * Record type names stored in the object-store lane. Records of these types are routed to
459
459
  * a separate table: excluded from `getSnapshot()`, returned by `getObjectsSnapshot()`.
@@ -1614,23 +1614,23 @@ export declare const TLSyncErrorCloseEventCode: 4099;
1614
1614
  */
1615
1615
  export declare const TLSyncErrorCloseEventReason: {
1616
1616
  /** Client exceeded rate limits */
1617
- readonly RATE_LIMITED: "RATE_LIMITED";
1617
+ readonly RATE_LIMITED: 'RATE_LIMITED';
1618
1618
  /** Client protocol version too old */
1619
- readonly CLIENT_TOO_OLD: "CLIENT_TOO_OLD";
1619
+ readonly CLIENT_TOO_OLD: 'CLIENT_TOO_OLD';
1620
1620
  /** Client sent invalid or corrupted record data */
1621
- readonly INVALID_RECORD: "INVALID_RECORD";
1621
+ readonly INVALID_RECORD: 'INVALID_RECORD';
1622
1622
  /** Room has reached maximum capacity */
1623
- readonly ROOM_FULL: "ROOM_FULL";
1623
+ readonly ROOM_FULL: 'ROOM_FULL';
1624
1624
  /** Room or resource not found */
1625
- readonly NOT_FOUND: "NOT_FOUND";
1625
+ readonly NOT_FOUND: 'NOT_FOUND';
1626
1626
  /** Server protocol version too old */
1627
- readonly SERVER_TOO_OLD: "SERVER_TOO_OLD";
1627
+ readonly SERVER_TOO_OLD: 'SERVER_TOO_OLD';
1628
1628
  /** Unexpected server error occurred */
1629
- readonly UNKNOWN_ERROR: "UNKNOWN_ERROR";
1629
+ readonly UNKNOWN_ERROR: 'UNKNOWN_ERROR';
1630
1630
  /** User authentication required or invalid */
1631
- readonly NOT_AUTHENTICATED: "NOT_AUTHENTICATED";
1631
+ readonly NOT_AUTHENTICATED: 'NOT_AUTHENTICATED';
1632
1632
  /** User lacks permission to access the room */
1633
- readonly FORBIDDEN: "FORBIDDEN";
1633
+ readonly FORBIDDEN: 'FORBIDDEN';
1634
1634
  };
1635
1635
 
1636
1636
  /**
@@ -36,7 +36,7 @@ import {
36
36
  } from "./lib/TLSyncStorage.mjs";
37
37
  registerTldrawLibraryVersion(
38
38
  "@tldraw/sync-core",
39
- "5.4.0-canary.6850000c4a2a",
39
+ "5.4.0-canary.6ee2eda9898e",
40
40
  "esm"
41
41
  );
42
42
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/sync-core",
3
3
  "description": "tldraw infinite canvas SDK (multiplayer sync).",
4
- "version": "5.4.0-canary.6850000c4a2a",
4
+ "version": "5.4.0-canary.6ee2eda9898e",
5
5
  "author": {
6
6
  "name": "tldraw GB Ltd.",
7
7
  "email": "hello@tldraw.com"
@@ -49,17 +49,17 @@
49
49
  "@types/uuid-readable": "^0.0.3",
50
50
  "react": "^19.2.1",
51
51
  "react-dom": "^19.2.1",
52
- "tldraw": "5.4.0-canary.6850000c4a2a",
53
- "typescript": "^5.8.3",
52
+ "tldraw": "5.4.0-canary.6ee2eda9898e",
53
+ "typescript": "^7.0.2",
54
54
  "uuid-by-string": "^4.0.0",
55
55
  "uuid-readable": "^0.0.2",
56
56
  "vitest": "^4.1.7"
57
57
  },
58
58
  "dependencies": {
59
- "@tldraw/state": "5.4.0-canary.6850000c4a2a",
60
- "@tldraw/store": "5.4.0-canary.6850000c4a2a",
61
- "@tldraw/tlschema": "5.4.0-canary.6850000c4a2a",
62
- "@tldraw/utils": "5.4.0-canary.6850000c4a2a",
59
+ "@tldraw/state": "5.4.0-canary.6ee2eda9898e",
60
+ "@tldraw/store": "5.4.0-canary.6ee2eda9898e",
61
+ "@tldraw/tlschema": "5.4.0-canary.6ee2eda9898e",
62
+ "@tldraw/utils": "5.4.0-canary.6ee2eda9898e",
63
63
  "nanoevents": "^7.0.1",
64
64
  "ws": "^8.18.0"
65
65
  },