@tldraw/tlschema 3.16.0-canary.da857364642e → 3.16.0-canary.df6f20cb3147

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
@@ -177,7 +177,7 @@ var import_TLVerticalAlignStyle = require("./styles/TLVerticalAlignStyle");
177
177
  var import_translations = require("./translations/translations");
178
178
  (0, import_utils.registerTldrawLibraryVersion)(
179
179
  "@tldraw/tlschema",
180
- "3.16.0-canary.da857364642e",
180
+ "3.16.0-canary.df6f20cb3147",
181
181
  "cjs"
182
182
  );
183
183
  //# sourceMappingURL=index.js.map
@@ -172,7 +172,7 @@ import {
172
172
  } from "./translations/translations.mjs";
173
173
  registerTldrawLibraryVersion(
174
174
  "@tldraw/tlschema",
175
- "3.16.0-canary.da857364642e",
175
+ "3.16.0-canary.df6f20cb3147",
176
176
  "esm"
177
177
  );
178
178
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/tlschema",
3
3
  "description": "tldraw infinite canvas SDK (schema).",
4
- "version": "3.16.0-canary.da857364642e",
4
+ "version": "3.16.0-canary.df6f20cb3147",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -32,33 +32,29 @@
32
32
  "src"
33
33
  ],
34
34
  "scripts": {
35
- "test-ci": "lazy inherit",
36
- "test": "yarn run -T jest",
37
- "test-coverage": "lazy inherit",
35
+ "test-ci": "yarn run -T vitest run --passWithNoTests",
36
+ "test": "yarn run -T vitest --passWithNoTests",
37
+ "test-coverage": "yarn run -T vitest run --coverage --passWithNoTests",
38
38
  "format": "yarn run -T prettier --write --cache \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
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",
42
42
  "postpack": "../../internal/scripts/postpack.sh",
43
43
  "pack-tarball": "yarn pack",
44
- "lint": "yarn run -T tsx ../../internal/scripts/lint.ts"
44
+ "lint": "yarn run -T tsx ../../internal/scripts/lint.ts",
45
+ "context": "yarn run -T tsx ../../internal/scripts/context.ts"
45
46
  },
46
47
  "devDependencies": {
47
48
  "kleur": "^4.1.5",
48
49
  "lazyrepo": "0.0.0-alpha.27",
49
- "react": "^18.3.1"
50
- },
51
- "jest": {
52
- "preset": "../../internal/config/jest/node/jest-preset.js",
53
- "moduleNameMapper": {
54
- "^~(.*)": "<rootDir>/src/$1"
55
- }
50
+ "react": "^18.3.1",
51
+ "vitest": "^3.2.4"
56
52
  },
57
53
  "dependencies": {
58
- "@tldraw/state": "3.16.0-canary.da857364642e",
59
- "@tldraw/store": "3.16.0-canary.da857364642e",
60
- "@tldraw/utils": "3.16.0-canary.da857364642e",
61
- "@tldraw/validate": "3.16.0-canary.da857364642e"
54
+ "@tldraw/state": "3.16.0-canary.df6f20cb3147",
55
+ "@tldraw/store": "3.16.0-canary.df6f20cb3147",
56
+ "@tldraw/utils": "3.16.0-canary.df6f20cb3147",
57
+ "@tldraw/validate": "3.16.0-canary.df6f20cb3147"
62
58
  },
63
59
  "peerDependencies": {
64
60
  "react": "^18.2.0 || ^19.0.0",
@@ -1,5 +1,6 @@
1
1
  import { Migration, MigrationId } from '@tldraw/store'
2
2
  import { mockUniqueId, structuredClone } from '@tldraw/utils'
3
+ import { vi } from 'vitest'
3
4
  import { createTLSchema } from '../createTLSchema'
4
5
 
5
6
  let nextNanoId = 0
@@ -9,9 +10,9 @@ export const testSchema = createTLSchema()
9
10
 
10
11
  // mock all migrator fns
11
12
  for (const migration of testSchema.sortedMigrations) {
12
- ;(migration as any).up = jest.fn(migration.up as any)
13
+ ;(migration as any).up = vi.fn(migration.up as any)
13
14
  if (typeof migration.down === 'function') {
14
- ;(migration as any).down = jest.fn(migration.down as any)
15
+ ;(migration as any).down = vi.fn(migration.down as any)
15
16
  }
16
17
  }
17
18