v19.0.0
Version 19 is for Dime
This version is focused on making express-zod-api
a complete zod
plugin. In this regard withMeta
is removed in favor of the recommended approach on extending zod
functionality, which opens up opportunities for new features and simplifies the consumer experience. Another improvement has been made for parsers: they are now applied selectively depending on the type of expected request.
Breaking changes
- Increased the minimum supported versions:
- For Node.js: 18.18.0, 20.9.0 or 22.0.0;
- For
zod
: 3.23.0; - For
express
: 4.19.2; - For
express-fileupload
and@types/express-fileupload
: 1.5.0.
- Removed the deprecated method
(see v18.5.0 for details);withMeta()
- Removed support for static options by
EndpointsFactory::addOptions()
(see v18.6.0 for details); - Freezed the arrays returned by the methods or exposed by properties of
Endpoint
andDependsOnMethod
; - Changed interface for
ez.raw()
: additional properties should be supplied as its argument, not via.extend()
; - Changed the following config options:
- The function assigned to
server.upload.beforeUpload
now acceptsrequest
instead ofapp
; - The function assigned to
server.beforeRouting
is now called before parsing too.
- The function assigned to
Features
- New configurable level
info
for built-in logger (higher thandebug
, but lower thanwarn
); - Selective parsers equipped with a child logger.
Migration
Find the migration guide in the Changelog