Skip to content

Releases: RobinTail/express-zod-api

v25.4.0

08 Sep 17:50
Compare
Choose a tag to compare

Feature

Chores

Full Changelog: express-zod-api-v25.3.1...express-zod-api-v25.4.0

v25.3.1

26 Aug 08:48
Compare
Choose a tag to compare

Patch

Chores

Full Changelog: express-zod-api-v25.3.0...express-zod-api-v25.3.1

v25.3.0

16 Aug 11:51
Compare
Choose a tag to compare

Minor

Full Changelog: express-zod-api-v25.2.0...express-zod-api-v25.3.0

v25.2.0

07 Aug 19:59
Compare
Choose a tag to compare

Minor

Chores

Full Changelog: express-zod-api-v25.1.0...express-zod-api-v25.2.0

v25.1.0

05 Aug 20:21
Compare
Choose a tag to compare

Feature

Chores

Full Changelog: express-zod-api-v25.0.0...express-zod-api-v25.1.0

v25.0.0

02 Aug 09:48
Compare
Choose a tag to compare

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:
  • Supported zod version: ^4.0.0;
    • Compatibility with zod@^3 is dropped;
    • You SHOULD now import { z } from "zod" without the /v4 suffix;
  • 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 with examples property being an array;
  • Changes to the Middleware class:
    • When the input schema is not defined, the input argument of the handler method is now unknown;
  • Changes to publicly exposed method:
    • The getExamples() helper is removed, use .meta().examples or globalRegistry.get().examples instead.

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

29 Jul 21:20
Compare
Choose a tag to compare

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

29 Jul 20:36
Compare
Choose a tag to compare

Fix

  • Negative response MIME type for arrayResultHandler by @RobinTail in #2857

Chores

Full Changelog: express-zod-api-v24.7.1...express-zod-api-v24.7.2

v24.7.1

25 Jul 21:55
Compare
Choose a tag to compare

Patch

  • Plugin: Restoring metadata example and examples props by @RobinTail in #2841

Chores

Full Changelog: express-zod-api-v24.7.0...express-zod-api-v24.7.1

v24.7.0

20 Jul 11:30
Compare
Choose a tag to compare

Feature

Chores

Full Changelog: express-zod-api-v24.6.2...express-zod-api-v24.7.0