@ata-project/valibot 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -60,14 +60,14 @@ code generation blocked.
60
60
 
61
61
  One representative API-boundary object schema (nine fields, nested arrays of
62
62
  objects, picklist, nullable), interleaved medians of 7 rounds on an M-series
63
- Mac, Node 25, valibot 1.4.2, ata-validator 1.13.2:
63
+ Mac, Node 25, valibot 1.5.0, ata-validator 1.25.0:
64
64
 
65
65
  | | valibot `safeParse` | this package |
66
66
  |---|---|---|
67
- | accept, verdict only | 1,051 ns | **20 ns** |
68
- | reject, verdict only | 1,117 ns | **83 ns** |
69
- | reject, `safeParse` | 1,117 ns | **84 ns** |
70
- | accept, `safeParse` | 1,051 ns | 1,062 ns |
67
+ | accept, verdict only | 740 ns | **21 ns** |
68
+ | reject, verdict only | 818 ns | **82 ns** |
69
+ | reject, `safeParse` | 818 ns | **83 ns** |
70
+ | accept, `safeParse` | 740 ns | 763 ns |
71
71
 
72
72
  The last row is by design, not a gap: an accepted value's output is valibot's
73
73
  to make. Plain `v.object` strips unknown keys, defaults fill, transforms
@@ -81,7 +81,7 @@ number constraints they drop to the bare engine verdict.
81
81
 
82
82
  With code generation blocked, the way a strict CSP or a locked-down edge
83
83
  runtime blocks it: valibot stays at its usual speed, and the bridge falls back
84
- to ata's interpreted engine at 624 ns for accepts and 187 ns for rejects,
84
+ to ata's interpreted engine at 627 ns for accepts and 184 ns for rejects,
85
85
  still ahead on both.
86
86
 
87
87
  ## Ahead of time, for the browser
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ata-project/valibot",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Run valibot schemas on the ata engine: same answers, verdicts in nanoseconds",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@valibot/to-json-schema": "^1.3.0",
30
- "ata-validator": "^1.13.2"
30
+ "ata-validator": "^1.25.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "valibot": "^1.0.0"
@@ -35,7 +35,7 @@
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.5.0",
37
37
  "typescript": "^5.6.0",
38
- "valibot": "^1.0.0"
38
+ "valibot": "^1.5.0"
39
39
  },
40
40
  "exports": {
41
41
  ".": {