zod-compiler 1.22.4 → 1.22.5

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Compile Zod schemas into zero-overhead validation functions at build time.**
4
4
 
5
- Keep your existing Zod schemas. Get **2-45x faster** validation. No code changes required.
5
+ Keep your existing Zod schemas. Get **2-43x faster** validation. No code changes required.
6
6
 
7
7
  - [What Gets Compiled](#what-gets-compiled)
8
8
  - [Schema Hoisting](#schema-hoisting)
@@ -287,8 +287,10 @@ app.post("/users", zValidator("json", UserSchema), (c) => c.json(c.req.valid("js
287
287
  useForm({ resolver: zodResolver(SignupSchema) });
288
288
  ```
289
289
 
290
- The same applies to any [Standard Schema](https://standardschema.dev) consumer `~standard` is
291
- preserved and routes through the compiled validator.
290
+ The same applies to any [Standard Schema](https://standardschema.dev) consumer. `~standard.validate`
291
+ is re-installed on top of the compiled path — Zod's own builds it around its internal parse, so
292
+ leaving it alone would have handed these consumers plain Zod. Its `version`/`vendor` are unchanged,
293
+ and an async refinement still resolves through Zod.
292
294
 
293
295
  ## Schema Diagnostics
294
296
 
@@ -341,7 +343,7 @@ npx zod-compiler check src/schemas.ts --json --fail-under 80
341
343
 
342
344
  ## What Gets Compiled
343
345
 
344
- ### Fully Compiled (2-45x faster)
346
+ ### Fully Compiled (2-43x faster)
345
347
 
346
348
  Every Zod type except the fallbacks below — all primitives, `object` / `strictObject` / `looseObject`,
347
349
  `array`, `tuple`, `record`, `set`, `map`, `union`, `discriminatedUnion`, `intersection`, `pipe`,
@@ -389,42 +391,42 @@ is always a fresh object.
389
391
 
390
392
  | Scenario | Zod v3 | Zod v4 | **zod-compiler** | Typia | AJV | vs Zod v4 |
391
393
  | ----------------------------------------------- | ------ | ------ | ---------------- | ----- | ----- | --------- |
392
- | simple string | 12.9M | 14.5M | **16.9M** | 17.2M | 17.5M | 1.2x |
393
- | string (min/max) | 12.1M | 7.6M | **16.3M** | 17.6M | 14.9M | 2.1x |
394
- | number (int+positive) | 11.5M | 7.7M | **16.5M** | 16.8M | 17.7M | 2.1x |
395
- | enum | 11.8M | 12.2M | **16.8M** | 17.1M | 17.2M | 1.4x |
396
- | bigint (min/max) | 11.4M | 7.6M | **15.9M** | — | — | 2.1x |
397
- | tuple [string, int, bool] | 5.5M | 6.3M | **15.9M** | 16.8M | 15.3M | 2.5x |
398
- | record\<string, number\> | 3.2M | 2.7M | **15.5M** | 12.3M | 15.3M | 5.7x |
399
- | set\<string\> (5 items) | 3.6M | 2.3M | **15.0M** | — | — | 6.6x |
400
- | set\<string\> (20 items) | 1.3M | 695K | **11.9M** | — | — | **17x** |
401
- | map\<string, number\> (5 entries) | 2.0M | 1.3M | **12.4M** | — | — | 9.5x |
402
- | map\<string, number\> (20 entries) | 613K | 352K | **8.3M** | — | — | **24x** |
403
- | pipe (non-transform) | 8.7M | 5.6M | **16.8M** | — | — | 3.0x |
404
- | discriminatedUnion (3 variants) | 3.4M | 4.0M | **16.7M** | 16.0M | 7.9M | 4.1x |
405
- | discriminatedUnion (8 variants, rotating) | 2.7M | 3.5M | **9.8M** | — | — | 2.8x |
406
- | plain union of 8 tagged objects (auto-discrim.) | 358K | 646K | **9.5M** | — | — | **15x** |
407
- | strict object (DB row) | 1.8M | 3.1M | **11.0M** | — | — | 3.6x |
408
- | medium object (valid) | 1.5M | 2.3M | **9.4M** | 10.9M | 7.4M | 4.0x |
409
- | medium object (extra keys stripped) | 1.8M | 2.2M | **9.4M** | — | — | 4.3x |
410
- | medium object (invalid) | 536K | 79K | **14.2M** | 3.0M | 7.7M | **180x** |
411
- | large object (10 items) | 118K | 162K | **5.2M** | 5.8M | 1.2M | **32x** |
412
- | large object (100 items) | 13K | 18K | **811K** | 1.4M | 125K | **45x** |
413
- | recursive tree (7 nodes) | 589K | 2.1M | **8.1M** | 11.9M | 4.9M | 3.8x |
414
- | recursive tree (121 nodes) | 32K | 128K | **803K** | 1.9M | 386K | 6.3x |
415
- | nested recursion (7 nodes) | 395K | 1.0M | **7.1M** | 8.8M | 2.5M | 7.0x |
416
- | nested recursion (121 nodes) | 23K | 61K | **804K** | 1.4M | 184K | **13x** |
417
- | deeply nested object (243 leaves) | 11K | 20K | **832K** | 1.0M | 124K | **42x** |
418
- | event log (combined) | 377K | 623K | **7.3M** | — | — | **12x** |
419
- | object with transform (zero-capture) | 1.1M | 2.0M | **6.0M** | — | — | 3.0x |
420
- | array 10 × transform (zero-capture) | 120K | 204K | **3.7M** | — | — | **18x** |
421
- | array 50 × transform (zero-capture) | 25K | 41K | **963K** | — | — | **24x** |
422
- | object with captured transform | 1.3M | 6.1M | **15.2M** | — | — | 2.5x |
423
- | object with captured refine (cross-field) | 1.6M | 2.5M | **13.7M** | — | — | 5.5x |
424
- | object with superRefine (cross-field) | 1.5M | 2.3M | **11.7M** | — | — | 5.0x |
394
+ | simple string | 12.6M | 14.3M | **16.5M** | 17.8M | 17.6M | 1.2x |
395
+ | string (min/max) | 12.5M | 7.5M | **15.9M** | 17.0M | 15.2M | 2.1x |
396
+ | number (int+positive) | 12.3M | 7.8M | **16.6M** | 16.8M | 17.3M | 2.1x |
397
+ | enum | 11.7M | 12.1M | **16.2M** | 17.7M | 17.3M | 1.3x |
398
+ | bigint (min/max) | 12.0M | 7.7M | **15.9M** | — | — | 2.1x |
399
+ | tuple [string, int, bool] | 5.8M | 6.5M | **15.7M** | 17.1M | 16.3M | 2.4x |
400
+ | record\<string, number\> | 3.2M | 2.8M | **15.2M** | 12.1M | 15.2M | 5.5x |
401
+ | set\<string\> (5 items) | 3.7M | 2.3M | **14.7M** | — | — | 6.4x |
402
+ | set\<string\> (20 items) | 1.3M | 683K | **12.0M** | — | — | **18x** |
403
+ | map\<string, number\> (5 entries) | 2.1M | 1.4M | **13.1M** | — | — | 9.6x |
404
+ | map\<string, number\> (20 entries) | 635K | 362K | **8.3M** | — | — | **23x** |
405
+ | pipe (non-transform) | 8.6M | 5.6M | **15.9M** | — | — | 2.8x |
406
+ | discriminatedUnion (3 variants) | 3.3M | 4.0M | **15.8M** | 15.5M | 7.7M | 4.0x |
407
+ | discriminatedUnion (8 variants, rotating) | 2.7M | 3.4M | **9.2M** | — | — | 2.7x |
408
+ | plain union of 8 tagged objects (auto-discrim.) | 363K | 632K | **9.1M** | — | — | **14x** |
409
+ | strict object (DB row) | 1.8M | 3.1M | **10.9M** | — | — | 3.5x |
410
+ | medium object (valid) | 1.9M | 2.4M | **9.7M** | 11.2M | 7.7M | 4.1x |
411
+ | medium object (extra keys stripped) | 1.8M | 2.3M | **9.4M** | — | — | 4.2x |
412
+ | medium object (invalid) | 504K | 80K | **14.7M** | 2.9M | 7.7M | **184x** |
413
+ | large object (10 items) | 122K | 166K | **5.3M** | 5.9M | 1.2M | **32x** |
414
+ | large object (100 items) | 13K | 18K | **781K** | 1.3M | 125K | **43x** |
415
+ | recursive tree (7 nodes) | 569K | 2.1M | **8.2M** | 11.6M | 4.8M | 3.9x |
416
+ | recursive tree (121 nodes) | 32K | 135K | **800K** | 1.9M | 372K | 5.9x |
417
+ | nested recursion (7 nodes) | 391K | 1.0M | **7.9M** | 11.1M | 3.1M | 7.8x |
418
+ | nested recursion (121 nodes) | 24K | 62K | **818K** | 1.6M | 218K | **13x** |
419
+ | deeply nested object (243 leaves) | 11K | 20K | **828K** | 1.1M | 117K | **42x** |
420
+ | event log (combined) | 368K | 609K | **8.2M** | — | — | **13x** |
421
+ | object with transform (zero-capture) | 1.2M | 1.9M | **6.5M** | — | — | 3.4x |
422
+ | array 10 × transform (zero-capture) | 121K | 214K | **4.2M** | — | — | **20x** |
423
+ | array 50 × transform (zero-capture) | 25K | 44K | **1.0M** | — | — | **24x** |
424
+ | object with captured transform | 1.4M | 6.3M | **15.1M** | — | — | 2.4x |
425
+ | object with captured refine (cross-field) | 1.6M | 2.4M | **15.3M** | — | — | 6.3x |
426
+ | object with superRefine (cross-field) | 1.6M | 2.3M | **11.6M** | — | — | 5.0x |
425
427
 
426
428
  _ops/s, higher is better. `vitest bench` on an Apple M4 Max (zod 4.3.6, zod v3 3.23.8, typia 12, ajv 8),
427
- best of two runs. The harness costs ~55 ns per iteration, so the fastest rows sit at that floor and gaps
429
+ best of three runs. The harness costs ~55 ns per iteration, so the fastest rows sit at that floor and gaps
428
430
  between the AOT columns there are noise, not real._
429
431
 
430
432
  Nested objects, arrays and recursive types gain the most. Rejection is fast because a failed
@@ -127,8 +127,26 @@ export declare const FINZ_DECL = "function __zcFinZ(z,i){return new __ZcFailZ(z,
127
127
  * partial fc can pass-through valid input but its `false` does not imply
128
128
  * rejection (a default/catch may still succeed), so it would be unsound as a
129
129
  * standalone guard.
130
+ *
131
+ * `~standard` is REPLACED, not merely preserved. Zod builds it lazily as
132
+ * `validate: (v) => safeParse(inst, v)` — the core FUNCTION, which goes straight
133
+ * to `inst._zod.run`. It never reads the schema's own `safeParse` property, so
134
+ * installing the compiled one leaves this route entirely uncompiled: measured
135
+ * 271.7 ns against the compiled 26.6 ns on the same schema, i.e. Standard Schema
136
+ * consumers (tRPC, Hono, TanStack) were getting plain Zod.
137
+ *
138
+ * Zod's own validate is captured first and kept as the throw path: it catches a
139
+ * synchronous throw and retries through `safeParseAsync`, which is how an async
140
+ * refinement resolves and how a throwing check surfaces as a rejected promise
141
+ * rather than a synchronous throw. The compiled validator cannot reproduce that
142
+ * (async schemas delegate to Zod anyway), so deferring to the original is both
143
+ * simpler and exact.
144
+ *
145
+ * Installed with defineProperty rather than assignment: Zod's lazy setter
146
+ * redefines the slot as non-writable, so a second `__zcMkv` on the same schema
147
+ * object — two exports aliasing one schema — would throw under ESM strict mode.
130
148
  */
131
- export declare const MK_VALIDATOR_DECL = "function __zcMkv(fn,schema,fc,is){var w=schema||{};w.parse=fc?function(input){if(fc(input))return input;var r=fn(input);if(r.success)return r.data;throw r.error;}:function(input){var r=fn(input);if(r.success)return r.data;throw r.error;};w.safeParse=fn;w.safeParseAsync=function(input){return Promise.resolve(fn(input));};w.parseAsync=fc?function(input){if(fc(input))return Promise.resolve(input);var r=fn(input);if(r.success)return Promise.resolve(r.data);return Promise.reject(r.error);}:function(input){var r=fn(input);if(r.success)return Promise.resolve(r.data);return Promise.reject(r.error);};w.is=is||function(input){return fn(input).success;};return w;}";
149
+ export declare const MK_VALIDATOR_DECL: string;
132
150
  /**
133
151
  * Generate a `/* @__PURE__ * /` IIFE wrapping a compiled validator.
134
152
  *
@@ -1 +1 @@
1
- {"version":3,"file":"iife.d.ts","sourceRoot":"","sources":["../../src/core/iife.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,2GAC0E,CAAC;AAEzG,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,mDAAmD,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,eAAe,QAMe,CAAC;AAE5C;yEACyE;AACzE,eAAO,MAAM,QAAQ,sGACgF,CAAC;AAEtG;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,iBAAiB,+DAA+D,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,gBAAgB,QAG4B,CAAC;AAE1D,qGAAqG;AACrG,eAAO,MAAM,SAAS,uDAAuD,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,iBAAiB,0pBAC2nB,CAAC;AAU1pB;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GAC5C,MAAM,CAuBR"}
1
+ {"version":3,"file":"iife.d.ts","sourceRoot":"","sources":["../../src/core/iife.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,2GAC0E,CAAC;AAEzG,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,mDAAmD,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,eAAe,QAMe,CAAC;AAE5C;yEACyE;AACzE,eAAO,MAAM,QAAQ,sGACgF,CAAC;AAEtG;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,iBAAiB,+DAA+D,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,gBAAgB,QAG4B,CAAC;AAE1D,qGAAqG;AACrG,eAAO,MAAM,SAAS,uDAAuD,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,eAAO,MAAM,iBAAiB,QAIhB,CAAC;AAUf;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAC1B,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GAC5C,MAAM,CAuBR"}
package/dist/core/iife.js CHANGED
@@ -133,8 +133,29 @@ export const FINZ_DECL = "function __zcFinZ(z,i){return new __ZcFailZ(z,i);}";
133
133
  * partial fc can pass-through valid input but its `false` does not imply
134
134
  * rejection (a default/catch may still succeed), so it would be unsound as a
135
135
  * standalone guard.
136
+ *
137
+ * `~standard` is REPLACED, not merely preserved. Zod builds it lazily as
138
+ * `validate: (v) => safeParse(inst, v)` — the core FUNCTION, which goes straight
139
+ * to `inst._zod.run`. It never reads the schema's own `safeParse` property, so
140
+ * installing the compiled one leaves this route entirely uncompiled: measured
141
+ * 271.7 ns against the compiled 26.6 ns on the same schema, i.e. Standard Schema
142
+ * consumers (tRPC, Hono, TanStack) were getting plain Zod.
143
+ *
144
+ * Zod's own validate is captured first and kept as the throw path: it catches a
145
+ * synchronous throw and retries through `safeParseAsync`, which is how an async
146
+ * refinement resolves and how a throwing check surfaces as a rejected promise
147
+ * rather than a synchronous throw. The compiled validator cannot reproduce that
148
+ * (async schemas delegate to Zod anyway), so deferring to the original is both
149
+ * simpler and exact.
150
+ *
151
+ * Installed with defineProperty rather than assignment: Zod's lazy setter
152
+ * redefines the slot as non-writable, so a second `__zcMkv` on the same schema
153
+ * object — two exports aliasing one schema — would throw under ESM strict mode.
136
154
  */
137
- export const MK_VALIDATOR_DECL = "function __zcMkv(fn,schema,fc,is){var w=schema||{};w.parse=fc?function(input){if(fc(input))return input;var r=fn(input);if(r.success)return r.data;throw r.error;}:function(input){var r=fn(input);if(r.success)return r.data;throw r.error;};w.safeParse=fn;w.safeParseAsync=function(input){return Promise.resolve(fn(input));};w.parseAsync=fc?function(input){if(fc(input))return Promise.resolve(input);var r=fn(input);if(r.success)return Promise.resolve(r.data);return Promise.reject(r.error);}:function(input){var r=fn(input);if(r.success)return Promise.resolve(r.data);return Promise.reject(r.error);};w.is=is||function(input){return fn(input).success;};return w;}";
155
+ export const MK_VALIDATOR_DECL = "function __zcMkv(fn,schema,fc,is){var w=schema||{};w.parse=fc?function(input){if(fc(input))return input;var r=fn(input);if(r.success)return r.data;throw r.error;}:function(input){var r=fn(input);if(r.success)return r.data;throw r.error;};w.safeParse=fn;w.safeParseAsync=function(input){return Promise.resolve(fn(input));};w.parseAsync=fc?function(input){if(fc(input))return Promise.resolve(input);var r=fn(input);if(r.success)return Promise.resolve(r.data);return Promise.reject(r.error);}:function(input){var r=fn(input);if(r.success)return Promise.resolve(r.data);return Promise.reject(r.error);};w.is=is||function(input){return fn(input).success;};" +
156
+ 'var s=w["~standard"],zv=s&&s.validate;' +
157
+ 'Object.defineProperty(w,"~standard",{configurable:true,value:{version:1,vendor:(s&&s.vendor)||"zod",validate:function(input){var r;try{if(fc&&fc(input))return{value:input};r=fn(input);}catch(e){if(zv)return zv(input);throw e;}return r.success?{value:r.data}:{issues:r.error.issues};}}});' +
158
+ "return w;}";
138
159
  function extractFunctionName(functionDef) {
139
160
  const match = /^function\s+(\w+)\s*\(/.exec(functionDef);
140
161
  if (!match?.[1]) {
@@ -1 +1 @@
1
- {"version":3,"file":"iife.js","sourceRoot":"","sources":["../../src/core/iife.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAC5B,sGAAsG,CAAC;AAEzG,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,gDAAgD,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,eAAe,GAC1B,+FAA+F;IAC/F,qFAAqF;IACrF,4BAA4B;IAC5B,gDAAgD;IAChD,wIAAwI;IACxI,yCAAyC,CAAC;AAE5C;yEACyE;AACzE,MAAM,CAAC,MAAM,QAAQ,GACnB,mGAAmG,CAAC;AAEtG;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,4DAA4D,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAC3B,oFAAoF;IACpF,sFAAsF;IACtF,uDAAuD,CAAC;AAE1D,qGAAqG;AACrG,MAAM,CAAC,MAAM,SAAS,GAAG,oDAAoD,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAC5B,upBAAupB,CAAC;AAE1pB,SAAS,mBAAmB,CAAC,WAAmB;IAC9C,MAAM,KAAK,GAAG,wBAAwB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IACzD,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAChB,MAAM,IAAI,K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C,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zod-compiler",
3
- "version": "1.22.4",
3
+ "version": "1.22.5",
4
4
  "description": "Compile Zod schemas into zero-overhead validation functions",
5
5
  "keywords": [
6
6
  "aot",