@tldraw/sync-core 4.6.0-next.1f489710ee41 → 4.6.0-next.4dde09fa17ab

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.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.6.0-next.1f489710ee41",
64
+ "4.6.0-next.4dde09fa17ab",
65
65
  "cjs"
66
66
  );
67
67
  //# sourceMappingURL=index.js.map
@@ -36,7 +36,7 @@ import {
36
36
  } from "./lib/TLSyncStorage.mjs";
37
37
  registerTldrawLibraryVersion(
38
38
  "@tldraw/sync-core",
39
- "4.6.0-next.1f489710ee41",
39
+ "4.6.0-next.4dde09fa17ab",
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.6.0-next.1f489710ee41",
4
+ "version": "4.6.0-next.4dde09fa17ab",
5
5
  "author": {
6
6
  "name": "tldraw GB Ltd.",
7
7
  "email": "hello@tldraw.com"
@@ -35,7 +35,7 @@
35
35
  "test-ci": "yarn run -T vitest run --passWithNoTests",
36
36
  "test": "yarn run -T vitest --passWithNoTests",
37
37
  "test-coverage": "yarn run -T vitest run --coverage --passWithNoTests",
38
- "lint": "cd ../.. && yarn run -T oxlint packages/sync-core",
38
+ "lint": "yarn run -T tsx ../../internal/scripts/lint.ts",
39
39
  "build": "yarn run -T tsx ../../internal/scripts/build-package.ts",
40
40
  "build-api": "yarn run -T tsx ../../internal/scripts/build-api.ts",
41
41
  "prepack": "yarn run -T tsx ../../internal/scripts/prepack.ts",
@@ -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.6.0-next.1f489710ee41",
51
+ "tldraw": "4.6.0-next.4dde09fa17ab",
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.6.0-next.1f489710ee41",
59
- "@tldraw/store": "4.6.0-next.1f489710ee41",
60
- "@tldraw/tlschema": "4.6.0-next.1f489710ee41",
61
- "@tldraw/utils": "4.6.0-next.1f489710ee41",
58
+ "@tldraw/state": "4.6.0-next.4dde09fa17ab",
59
+ "@tldraw/store": "4.6.0-next.4dde09fa17ab",
60
+ "@tldraw/tlschema": "4.6.0-next.4dde09fa17ab",
61
+ "@tldraw/utils": "4.6.0-next.4dde09fa17ab",
62
62
  "nanoevents": "^7.0.1",
63
63
  "ws": "^8.18.0"
64
64
  },
@@ -2,10 +2,12 @@ import {
2
2
  Editor,
3
3
  TLRecord,
4
4
  TLStore,
5
+ UserRecordType,
5
6
  computed,
6
7
  createPresenceStateDerivation,
7
8
  createTLSchema,
8
9
  createTLStore,
10
+ createUserId,
9
11
  isRecordsDiffEmpty,
10
12
  mockUniqueId,
11
13
  uniqueId,
@@ -83,12 +85,13 @@ class FuzzTestInstance extends RandomSource {
83
85
  this.editor = new FuzzEditor(this.id, this.seed, this.store)
84
86
  },
85
87
  presence: createPresenceStateDerivation(
86
- computed('', () => ({
87
- id: this.id,
88
- name: 'test',
89
- color: 'red',
90
- locale: 'en',
91
- }))
88
+ computed('', () =>
89
+ UserRecordType.create({
90
+ id: createUserId(this.id),
91
+ name: 'test',
92
+ color: 'red',
93
+ })
94
+ )
92
95
  )(this.store),
93
96
  })
94
97