@tldraw/validate 3.16.0-next.fe14f1b4181f → 4.0.0

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
@@ -41,7 +41,7 @@ var T = __toESM(require("./lib/validation"));
41
41
  var import_validation = require("./lib/validation");
42
42
  (0, import_utils.registerTldrawLibraryVersion)(
43
43
  "@tldraw/validate",
44
- "3.16.0-next.fe14f1b4181f",
44
+ "4.0.0",
45
45
  "cjs"
46
46
  );
47
47
  //# sourceMappingURL=index.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./lib/validation.mjs";
10
10
  registerTldrawLibraryVersion(
11
11
  "@tldraw/validate",
12
- "3.16.0-next.fe14f1b4181f",
12
+ "4.0.0",
13
13
  "esm"
14
14
  );
15
15
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tldraw/validate",
3
3
  "description": "A runtime validation library by tldraw.",
4
- "version": "3.16.0-next.fe14f1b4181f",
4
+ "version": "4.0.0",
5
5
  "author": {
6
6
  "name": "tldraw Inc.",
7
7
  "email": "hello@tldraw.com"
@@ -44,7 +44,7 @@
44
44
  "context": "yarn run -T tsx ../../internal/scripts/context.ts"
45
45
  },
46
46
  "dependencies": {
47
- "@tldraw/utils": "3.16.0-next.fe14f1b4181f"
47
+ "@tldraw/utils": "4.0.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "lazyrepo": "0.0.0-alpha.27"
@@ -136,6 +136,9 @@ describe('T.indexKey', () => {
136
136
  expect(() => T.indexKey.validate('a')).toThrowErrorMatchingInlineSnapshot(
137
137
  `[ValidationError: At null: Expected an index key, got "a"]`
138
138
  )
139
+ expect(() => T.indexKey.validate('a00')).toThrowErrorMatchingInlineSnapshot(
140
+ `[ValidationError: At null: Expected an index key, got "a00"]`
141
+ )
139
142
  expect(() => T.indexKey.validate('')).toThrowErrorMatchingInlineSnapshot(
140
143
  `[ValidationError: At null: Expected an index key, got ""]`
141
144
  )