Skip to content

Releases: RobinTail/express-zod-api

v23.0.0

14 Apr 11:32
2b235fc
Compare
Choose a tag to compare

v23 is for Sonia

This version of the framework aims to improve its maintainability and perform several corrections. Since Express v5.1 finally tagged latest, the support of Express 4 is dropped in order to take advantage of the better support of asynchronous handlers. The default value for wrongMethodBehavior changed from 404 to 405 as the more suitable one for response in that case. Removed errorHandler option from testMiddleware() to avoid confusion with config option having same name. Several public methods and properties intended for internal usage are removed from types declaration so that potential changes to them would not be considered breaking, enabling more improvements in the future.

Breaking changes

  • Minimum version of express (required peer dependency) is 5.1.0 (first release of v5 marked as latest);
  • Minimum version of compression (optional peer dependency) is 1.8.0 (it supports Brotli);
  • The default value for wrongMethodBehavior config option is changed to 405;
  • Publicly exposed interfaces: CustomHeaderSecurity renamed to HeaderSecurity, NormalizedResponse removed.
  • The errorHandler property removed from testMiddleware() argument in favor of config option having same name;
  • Only the following methods remained public, while other methods and properties were marked internal or removed:
    • Endpoint: .execute() and .deprecated();
    • Middleware: .execute();
    • ResultHandler: .execute();
    • DependsOnMethod: .deprecated();
    • Documentation: constructor only;
    • Integration: .print() and .printFormatted();
    • ServeStatic: constructor only;

Migration

Consider the automated migration using the built-in ESLint rule.

// eslint.config.mjs — minimal ESLint 9 config to apply migrations automatically using "eslint --fix"
import parser from "@typescript-eslint/parser";
import migration from "express-zod-api/migration";

export default [
  { languageOptions: { parser }, plugins: { migration } },
  { files: ["**/*.ts"], rules: { "migration/v23": "error" } },
];

Full Changelog: v22.13.2...v23.0.0

v22.13.2

09 Apr 14:02
Compare
Choose a tag to compare

Fix

Chores

Full Changelog: v22.13.1...v22.13.2

v22.13.1

07 Apr 19:01
Compare
Choose a tag to compare

Fix

Chores

Full Changelog: v22.13.0...v22.13.1

v22.13.0

07 Apr 07:24
Compare
Choose a tag to compare

Feature

Fixes

Chores

New Contributors

Full Changelog: v22.12.0...v22.13.0

v22.12.0

05 Apr 16:50
Compare
Choose a tag to compare

Feature

Chores

Full Changelog: v22.11.2...v22.12.0

v22.11.2

25 Feb 19:39
Compare
Choose a tag to compare

Fix

Chores

Full Changelog: v22.11.1...v22.11.2

v22.11.1

24 Feb 10:47
Compare
Choose a tag to compare

Fix

Chores

Full Changelog: v22.11.0...v22.11.1

v22.11.0

23 Feb 11:05
Compare
Choose a tag to compare

Feature

Chores

Full Changelog: v22.10.1...v22.11.0

v22.10.1

20 Feb 20:37
Compare
Choose a tag to compare

Fix

Chores

  • Upgrading all dependencies by @github-actions in #2426

Full Changelog: v22.10.0...v22.10.1

v22.10.0

20 Feb 15:18
Compare
Choose a tag to compare

Enhancement

Refactoring

Chores

Full Changelog: v22.9.1...v22.10.0