Releases: RobinTail/express-zod-api
Releases · RobinTail/express-zod-api
v25.4.0
Feature
- Configurable query parser by @RobinTail in #2922
Chores
- Root
tsconfig
by @RobinTail in #2890 - Upgrading some dependencies by @RobinTail in #2911
- renovate[bot] in #2908, #2883, #2909, #2914, #2915, #2916, #2918, #2919
Full Changelog: express-zod-api-v25.3.1...express-zod-api-v25.4.0
v25.3.1
Patch
- Improving the disposal of
Diagnostics
by @RobinTail in #2904 - Fix the type of
examples
prop fordateIn
anddateOut
params by @RobinTail in #2903
Chores
- Upgrading some dependencies by @RobinTail in #2896
- renovate in #2891, #2892, #2893, #2897, #2898, #2899, #2900, #2901, #2902, #2905, #2906, #2907
Full Changelog: express-zod-api-v25.3.0...express-zod-api-v25.3.1
v25.3.0
v25.2.0
Minor
- Detaching Zod plugin by @RobinTail in #2869
Chores
- Recursive testing by @RobinTail in #2873
- Fix test concurrency limit by @RobinTail in #2876
- renovate[bot] in #2874, #2875
Full Changelog: express-zod-api-v25.1.0...express-zod-api-v25.2.0
v25.1.0
Feature
- Configurable depiction of the
HEAD
method by @RobinTail in #2872
Chores
Full Changelog: express-zod-api-v25.0.0...express-zod-api-v25.1.0
v25.0.0
v25 is for Sara Millerey González
Breaking changes
- Supported Node.js versions:
^20.19.0 || ^22.12.0 || ^24.0.0
; - The framework distribution is now ESM-only (finally);
- All the Node.js versions listed above support
require(ESM)
syntax; - If facing TypeScript error
TS1479
, ensure either:- using the recommended tsconfig base for Node 20+;
- or switching your project to ESM by setting
"type": "module"
inpackage.json
;
- All the Node.js versions listed above support
- Supported
zod
version:^4.0.0
;- Compatibility with
zod@^3
is dropped; - You SHOULD now
import { z } from "zod"
without the/v4
suffix;
- Compatibility with
- Changes to the Zod plugin and metadata processing:
- Dropped support of examples that are given as
example
property of.meta()
argument; - Dropped support of examples given within an object-based value of
examples
property of.meta()
argument; - Use either
.example()
method or.meta()
method withexamples
property being an array;
- Dropped support of examples that are given as
- Changes to the
Middleware
class:- When the
input
schema is not defined, theinput
argument of thehandler
method is nowunknown
;
- When the
- Changes to publicly exposed method:
- The
getExamples()
helper is removed, use.meta().examples
orglobalRegistry.get().examples
instead.
- The
Migration
Consider the automated migration.
- z.string().meta({ example: "test" });
- z.string().meta({ examples: { one: { value: "test" } } });
+ z.string().meta({ examples: ["test"] });
+ z.string().example("test").example("another"); // plugin method
- getExamples(schema);
+ schema.meta()?.examples || [];
+ globalRegistry.get(schema)?.examples || [];
Full Changelog: express-zod-api-v24.7.3...express-zod-api-v25.0.0
v24.7.3
Fix
- Removing body depiction from negative response to
HEAD
requests by @RobinTail in #2859
Full Changelog: express-zod-api-v24.7.2...express-zod-api-v24.7.3
v24.7.2
Fix
- Negative response MIME type for
arrayResultHandler
by @RobinTail in #2857
Chores
- Adopting Berlin Code of Conduct for Express Zod API by @RobinTail in #2845
- Using typed
R.renameKeys
from Ramda 0.31.0 by @RobinTail in #2851 - renovate[bot] in #2852 and #2854
Full Changelog: express-zod-api-v24.7.1...express-zod-api-v24.7.2
v24.7.1
Patch
- Plugin: Restoring metadata
example
andexamples
props by @RobinTail in #2841
Chores
- Upgrading some dependencies by @RobinTail in #2837
- renovate[bot] in #2834, #2835, #2838, #2839, #2840
Full Changelog: express-zod-api-v24.7.0...express-zod-api-v24.7.1
v24.7.0
Feature
HEAD
method handling by @RobinTail in #2816
Chores
- Improving methods inheritance by @RobinTail in #2833
Full Changelog: express-zod-api-v24.6.2...express-zod-api-v24.7.0