@tldraw/sync-core 4.5.0-canary.ea6778d1533e → 4.5.0-next.a4da812dd479

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.
@@ -5,14 +5,14 @@ import { Emitter } from 'nanoevents';
5
5
  import { RecordsDiff } from '@tldraw/store';
6
6
  import { RecordType } from '@tldraw/store';
7
7
  import { SerializedSchema } from '@tldraw/store';
8
- import { SerializedSchemaV2 } from '@tldraw/store';
8
+ import { SerializedSchemaV2 } from 'tldraw';
9
9
  import { Signal } from '@tldraw/state';
10
10
  import { Store } from '@tldraw/store';
11
11
  import { StoreSchema } from '@tldraw/store';
12
12
  import { StoreSnapshot } from '@tldraw/store';
13
13
  import { SynchronousStorage } from '@tldraw/store';
14
- import { TLDocument } from '@tldraw/tlschema';
15
- import { TLPage } from '@tldraw/tlschema';
14
+ import { TLDocument } from 'tldraw';
15
+ import { TLPage } from 'tldraw';
16
16
  import { TLRecord } from '@tldraw/tlschema';
17
17
  import { TLStoreSnapshot } from '@tldraw/tlschema';
18
18
  import { TLStoreSnapshot as TLStoreSnapshot_2 } from 'tldraw';
@@ -113,7 +113,7 @@ export declare class InMemorySyncStorage<R extends UnknownRecord> implements TLS
113
113
  /* Excluded from this release type: tombstoneHistoryStartsAtClock */
114
114
  private notifier;
115
115
  onChange(callback: (arg: TLSyncStorageOnChangeCallbackProps) => unknown): () => void;
116
- constructor({ snapshot, onChange, }?: {
116
+ constructor({ snapshot, onChange }?: {
117
117
  onChange?(arg: TLSyncStorageOnChangeCallbackProps): unknown;
118
118
  snapshot?: RoomSnapshot;
119
119
  });
@@ -419,7 +419,7 @@ export declare class SQLiteSyncStorage<R extends UnknownRecord> implements TLSyn
419
419
  static getDocumentClock(storage: TLSyncSqliteWrapper): null | number;
420
420
  private readonly stmts;
421
421
  private readonly sql;
422
- constructor({ sql, snapshot, onChange, }: {
422
+ constructor({ sql, snapshot, onChange }: {
423
423
  onChange?(arg: TLSyncStorageOnChangeCallbackProps): unknown;
424
424
  snapshot?: RoomSnapshot | StoreSnapshot<R>;
425
425
  sql: TLSyncSqliteWrapper;
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
- "4.5.0-canary.ea6778d1533e",
64
+ "4.5.0-next.a4da812dd479",
65
65
  "cjs"
66
66
  );
67
67
  //# sourceMappingURL=index.js.map
@@ -5,14 +5,14 @@ import { Emitter } from 'nanoevents';
5
5
  import { RecordsDiff } from '@tldraw/store';
6
6
  import { RecordType } from '@tldraw/store';
7
7
  import { SerializedSchema } from '@tldraw/store';
8
- import { SerializedSchemaV2 } from '@tldraw/store';
8
+ import { SerializedSchemaV2 } from 'tldraw';
9
9
  import { Signal } from '@tldraw/state';
10
10
  import { Store } from '@tldraw/store';
11
11
  import { StoreSchema } from '@tldraw/store';
12
12
  import { StoreSnapshot } from '@tldraw/store';
13
13
  import { SynchronousStorage } from '@tldraw/store';
14
- import { TLDocument } from '@tldraw/tlschema';
15
- import { TLPage } from '@tldraw/tlschema';
14
+ import { TLDocument } from 'tldraw';
15
+ import { TLPage } from 'tldraw';
16
16
  import { TLRecord } from '@tldraw/tlschema';
17
17
  import { TLStoreSnapshot } from '@tldraw/tlschema';
18
18
  import { TLStoreSnapshot as TLStoreSnapshot_2 } from 'tldraw';
@@ -113,7 +113,7 @@ export declare class InMemorySyncStorage<R extends UnknownRecord> implements TLS
113
113
  /* Excluded from this release type: tombstoneHistoryStartsAtClock */
114
114
  private notifier;
115
115
  onChange(callback: (arg: TLSyncStorageOnChangeCallbackProps) => unknown): () => void;
116
- constructor({ snapshot, onChange, }?: {
116
+ constructor({ snapshot, onChange }?: {
117
117
  onChange?(arg: TLSyncStorageOnChangeCallbackProps): unknown;
118
118
  snapshot?: RoomSnapshot;
119
119
  });
@@ -419,7 +419,7 @@ export declare class SQLiteSyncStorage<R extends UnknownRecord> implements TLSyn
419
419
  static getDocumentClock(storage: TLSyncSqliteWrapper): null | number;
420
420
  private readonly stmts;
421
421
  private readonly sql;
422
- constructor({ sql, snapshot, onChange, }: {
422
+ constructor({ sql, snapshot, onChange }: {
423
423
  onChange?(arg: TLSyncStorageOnChangeCallbackProps): unknown;
424
424
  snapshot?: RoomSnapshot | StoreSnapshot<R>;
425
425
  sql: TLSyncSqliteWrapper;
@@ -36,7 +36,7 @@ import {
36
36
  } from "./lib/TLSyncStorage.mjs";
37
37
  registerTldrawLibraryVersion(
38
38
  "@tldraw/sync-core",
39
- "4.5.0-canary.ea6778d1533e",
39
+ "4.5.0-next.a4da812dd479",
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": "4.5.0-canary.ea6778d1533e",
4
+ "version": "4.5.0-next.a4da812dd479",
5
5
  "author": {
6
6
  "name": "tldraw GB Ltd.",
7
7
  "email": "hello@tldraw.com"
@@ -48,17 +48,17 @@
48
48
  "@types/uuid-readable": "^0.0.3",
49
49
  "react": "^19.2.1",
50
50
  "react-dom": "^19.2.1",
51
- "tldraw": "4.5.0-canary.ea6778d1533e",
51
+ "tldraw": "4.5.0-next.a4da812dd479",
52
52
  "typescript": "^5.8.3",
53
53
  "uuid-by-string": "^4.0.0",
54
54
  "uuid-readable": "^0.0.2",
55
55
  "vitest": "^3.2.4"
56
56
  },
57
57
  "dependencies": {
58
- "@tldraw/state": "4.5.0-canary.ea6778d1533e",
59
- "@tldraw/store": "4.5.0-canary.ea6778d1533e",
60
- "@tldraw/tlschema": "4.5.0-canary.ea6778d1533e",
61
- "@tldraw/utils": "4.5.0-canary.ea6778d1533e",
58
+ "@tldraw/state": "4.5.0-next.a4da812dd479",
59
+ "@tldraw/store": "4.5.0-next.a4da812dd479",
60
+ "@tldraw/tlschema": "4.5.0-next.a4da812dd479",
61
+ "@tldraw/utils": "4.5.0-next.a4da812dd479",
62
62
  "nanoevents": "^7.0.1",
63
63
  "ws": "^8.18.0"
64
64
  },