@tldraw/sync-core 5.3.0 → 5.4.0-canary.074b19f2c11f
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-cjs/index.d.ts +11 -11
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.d.mts +11 -11
- package/dist-esm/index.mjs +1 -1
- package/package.json +7 -7
package/dist-cjs/index.d.ts
CHANGED
|
@@ -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:
|
|
1617
|
+
readonly RATE_LIMITED: 'RATE_LIMITED';
|
|
1618
1618
|
/** Client protocol version too old */
|
|
1619
|
-
readonly CLIENT_TOO_OLD:
|
|
1619
|
+
readonly CLIENT_TOO_OLD: 'CLIENT_TOO_OLD';
|
|
1620
1620
|
/** Client sent invalid or corrupted record data */
|
|
1621
|
-
readonly INVALID_RECORD:
|
|
1621
|
+
readonly INVALID_RECORD: 'INVALID_RECORD';
|
|
1622
1622
|
/** Room has reached maximum capacity */
|
|
1623
|
-
readonly ROOM_FULL:
|
|
1623
|
+
readonly ROOM_FULL: 'ROOM_FULL';
|
|
1624
1624
|
/** Room or resource not found */
|
|
1625
|
-
readonly NOT_FOUND:
|
|
1625
|
+
readonly NOT_FOUND: 'NOT_FOUND';
|
|
1626
1626
|
/** Server protocol version too old */
|
|
1627
|
-
readonly SERVER_TOO_OLD:
|
|
1627
|
+
readonly SERVER_TOO_OLD: 'SERVER_TOO_OLD';
|
|
1628
1628
|
/** Unexpected server error occurred */
|
|
1629
|
-
readonly UNKNOWN_ERROR:
|
|
1629
|
+
readonly UNKNOWN_ERROR: 'UNKNOWN_ERROR';
|
|
1630
1630
|
/** User authentication required or invalid */
|
|
1631
|
-
readonly NOT_AUTHENTICATED:
|
|
1631
|
+
readonly NOT_AUTHENTICATED: 'NOT_AUTHENTICATED';
|
|
1632
1632
|
/** User lacks permission to access the room */
|
|
1633
|
-
readonly 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.
|
|
64
|
+
"5.4.0-canary.074b19f2c11f",
|
|
65
65
|
"cjs"
|
|
66
66
|
);
|
|
67
67
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.d.mts
CHANGED
|
@@ -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:
|
|
1617
|
+
readonly RATE_LIMITED: 'RATE_LIMITED';
|
|
1618
1618
|
/** Client protocol version too old */
|
|
1619
|
-
readonly CLIENT_TOO_OLD:
|
|
1619
|
+
readonly CLIENT_TOO_OLD: 'CLIENT_TOO_OLD';
|
|
1620
1620
|
/** Client sent invalid or corrupted record data */
|
|
1621
|
-
readonly INVALID_RECORD:
|
|
1621
|
+
readonly INVALID_RECORD: 'INVALID_RECORD';
|
|
1622
1622
|
/** Room has reached maximum capacity */
|
|
1623
|
-
readonly ROOM_FULL:
|
|
1623
|
+
readonly ROOM_FULL: 'ROOM_FULL';
|
|
1624
1624
|
/** Room or resource not found */
|
|
1625
|
-
readonly NOT_FOUND:
|
|
1625
|
+
readonly NOT_FOUND: 'NOT_FOUND';
|
|
1626
1626
|
/** Server protocol version too old */
|
|
1627
|
-
readonly SERVER_TOO_OLD:
|
|
1627
|
+
readonly SERVER_TOO_OLD: 'SERVER_TOO_OLD';
|
|
1628
1628
|
/** Unexpected server error occurred */
|
|
1629
|
-
readonly UNKNOWN_ERROR:
|
|
1629
|
+
readonly UNKNOWN_ERROR: 'UNKNOWN_ERROR';
|
|
1630
1630
|
/** User authentication required or invalid */
|
|
1631
|
-
readonly NOT_AUTHENTICATED:
|
|
1631
|
+
readonly NOT_AUTHENTICATED: 'NOT_AUTHENTICATED';
|
|
1632
1632
|
/** User lacks permission to access the room */
|
|
1633
|
-
readonly FORBIDDEN:
|
|
1633
|
+
readonly FORBIDDEN: 'FORBIDDEN';
|
|
1634
1634
|
};
|
|
1635
1635
|
|
|
1636
1636
|
/**
|
package/dist-esm/index.mjs
CHANGED
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
|
+
"version": "5.4.0-canary.074b19f2c11f",
|
|
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.
|
|
53
|
-
"typescript": "^
|
|
52
|
+
"tldraw": "5.4.0-canary.074b19f2c11f",
|
|
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.
|
|
60
|
-
"@tldraw/store": "5.
|
|
61
|
-
"@tldraw/tlschema": "5.
|
|
62
|
-
"@tldraw/utils": "5.
|
|
59
|
+
"@tldraw/state": "5.4.0-canary.074b19f2c11f",
|
|
60
|
+
"@tldraw/store": "5.4.0-canary.074b19f2c11f",
|
|
61
|
+
"@tldraw/tlschema": "5.4.0-canary.074b19f2c11f",
|
|
62
|
+
"@tldraw/utils": "5.4.0-canary.074b19f2c11f",
|
|
63
63
|
"nanoevents": "^7.0.1",
|
|
64
64
|
"ws": "^8.18.0"
|
|
65
65
|
},
|