@tldraw/store 5.2.0-canary.c61eb676972d → 5.2.0-canary.c846d28135d5
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/README.md +5 -1
- package/dist-cjs/index.js +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +4 -4
- package/src/lib/devFreeze.test.ts +1 -0
- package/src/lib/test/recordStore.test.ts +7 -7
package/README.md
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
## Documentation
|
|
8
8
|
|
|
9
|
+
Documentation for the most recent release can be found on [tldraw.dev/docs](https://tldraw.dev/docs), including [reference docs](https://tldraw.dev/reference/editor/Editor). Our release notes can be found [here](https://tldraw.dev/releases).
|
|
10
|
+
|
|
11
|
+
For more agent-friendly docs, see our [LLMs.txt](https://tldraw.dev/llms.txt).
|
|
12
|
+
|
|
9
13
|
A `DOCS.md` file is included alongside this README in the published package, with detailed API documentation and usage examples.
|
|
10
14
|
|
|
11
15
|
# Usage
|
|
@@ -343,7 +347,7 @@ A diff describing the changes to a collection.
|
|
|
343
347
|
|
|
344
348
|
## Contribution
|
|
345
349
|
|
|
346
|
-
|
|
350
|
+
Found a bug? Please [submit an issue](https://github.com/tldraw/tldraw/issues/new).
|
|
347
351
|
|
|
348
352
|
## License
|
|
349
353
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -56,7 +56,7 @@ var import_StoreSchema = require("./lib/StoreSchema");
|
|
|
56
56
|
var import_StoreSideEffects = require("./lib/StoreSideEffects");
|
|
57
57
|
(0, import_utils.registerTldrawLibraryVersion)(
|
|
58
58
|
"@tldraw/store",
|
|
59
|
-
"5.2.0-canary.
|
|
59
|
+
"5.2.0-canary.c846d28135d5",
|
|
60
60
|
"cjs"
|
|
61
61
|
);
|
|
62
62
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/store",
|
|
3
3
|
"description": "tldraw infinite canvas SDK (store).",
|
|
4
|
-
"version": "5.2.0-canary.
|
|
4
|
+
"version": "5.2.0-canary.c846d28135d5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@tldraw/state": "5.2.0-canary.
|
|
48
|
-
"@tldraw/utils": "5.2.0-canary.
|
|
47
|
+
"@tldraw/state": "5.2.0-canary.c846d28135d5",
|
|
48
|
+
"@tldraw/utils": "5.2.0-canary.c846d28135d5"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"react": "^18.2.0 || ^19.2.1"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@peculiar/webcrypto": "^1.5.0",
|
|
55
55
|
"lazyrepo": "0.0.0-alpha.27",
|
|
56
56
|
"raf": "^3.4.1",
|
|
57
|
-
"vitest": "^
|
|
57
|
+
"vitest": "^4.1.7"
|
|
58
58
|
},
|
|
59
59
|
"module": "dist-esm/index.mjs",
|
|
60
60
|
"source": "src/index.ts",
|
|
@@ -46,6 +46,7 @@ describe('devFreeze', () => {
|
|
|
46
46
|
describe('development mode behavior', () => {
|
|
47
47
|
beforeEach(() => {
|
|
48
48
|
// Mock development environment
|
|
49
|
+
;(isDev as MockedFunction<typeof isDev>).mockReturnValue(true)
|
|
49
50
|
vi.stubGlobal('process', { env: { NODE_ENV: 'development' } })
|
|
50
51
|
})
|
|
51
52
|
|
|
@@ -1278,15 +1278,15 @@ describe('callbacks', () => {
|
|
|
1278
1278
|
numPages: 1,
|
|
1279
1279
|
})
|
|
1280
1280
|
|
|
1281
|
-
let onAfterCreate: ReturnType<typeof vi.fn
|
|
1282
|
-
let onAfterChange: ReturnType<typeof vi.fn
|
|
1283
|
-
let onAfterDelete: ReturnType<typeof vi.fn
|
|
1281
|
+
let onAfterCreate: ReturnType<typeof vi.fn<(...args: any[]) => any>>
|
|
1282
|
+
let onAfterChange: ReturnType<typeof vi.fn<(...args: any[]) => any>>
|
|
1283
|
+
let onAfterDelete: ReturnType<typeof vi.fn<(...args: any[]) => any>>
|
|
1284
1284
|
|
|
1285
|
-
let onBeforeCreate: ReturnType<typeof vi.fn
|
|
1286
|
-
let onBeforeChange: ReturnType<typeof vi.fn
|
|
1287
|
-
let onBeforeDelete: ReturnType<typeof vi.fn
|
|
1285
|
+
let onBeforeCreate: ReturnType<typeof vi.fn<(...args: any[]) => any>>
|
|
1286
|
+
let onBeforeChange: ReturnType<typeof vi.fn<(...args: any[]) => any>>
|
|
1287
|
+
let onBeforeDelete: ReturnType<typeof vi.fn<(...args: any[]) => any>>
|
|
1288
1288
|
|
|
1289
|
-
let onOperationComplete: ReturnType<typeof vi.fn
|
|
1289
|
+
let onOperationComplete: ReturnType<typeof vi.fn<(...args: any[]) => any>>
|
|
1290
1290
|
|
|
1291
1291
|
beforeEach(() => {
|
|
1292
1292
|
store = new Store({
|