Releases: RobinTail/express-zod-api
Releases · RobinTail/express-zod-api
v18.6.3
Fixes
- Backport of #1773 for v18 by @RobinTail in #1774
Chores
- Bump tsx from 4.10.0 to 4.10.1 by @dependabot in #1759
- Ref: serving documentation example: establish in async
beforeRouting
by @RobinTail in #1761 - Compat: testing against Jest 30 Alpha 4. by @RobinTail in #1763
- Bump tsx from 4.10.1 to 4.10.2 by @dependabot in #1764
- Upgrading all dependencies by @RobinTail in #1765
Full Changelog: v18.6.2...v18.6.3
v19.1.2
Fixes
- Logger instance recognition failure by @RobinTail in #1773
Chores
- Bump tsx from 4.10.2 to 4.10.3 by @dependabot in #1771
- Bump @types/node from 20.12.11 to 20.12.12 by @dependabot in #1770
Full Changelog: v19.1.1...v19.1.2
v19.1.1
Fixes
- Header params are missing or duplicated by @RobinTail in #1769
Full Changelog: v19.1.0...v19.1.1
v19.1.0
What's Changed
- Feat: support custom brands handling in Documentation and Integration by @RobinTail in #1750
Full Changelog: v19.0.0...v19.1.0
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
v18.6.2
Refactoring
- Ref: disabling dynamic imports in CJS build by @RobinTail in #1757
Chores
- Bump tsx from 4.9.4 to 4.10.0 by @dependabot in #1758
Full Changelog: v18.6.1...v18.6.2
v18.6.1
- Documentation update on using
.addOptions
with caution.
Full Changelog: v18.6.0...v18.6.1
v18.6.0
Feature
- Feat: Support async functions by
.addOptions()
by @RobinTail in #1753
Chores
- Ref: DNRY for the quoted prop name in
Integration
by @RobinTail in #1740 - Exposing the expected request content type by @RobinTail in #1739
- Bump zod from 3.23.6 to 3.23.7 by @dependabot in #1742
- Bump @types/node from 20.12.10 to 20.12.11 by @dependabot in #1743
- Bump zod from 3.23.7 to 3.23.8 by @dependabot in #1744
- Bump eslint-plugin-unicorn from 52.0.0 to 53.0.0 by @dependabot in #1751
- Bump tsx from 4.9.3 to 4.9.4 by @dependabot in #1752
Full Changelog: v18.5.2...v18.6.0
v18.5.2
Changes
- Muting upload logs related to non-eligible requests by @RobinTail in #1733
- Expressing
Method
viaIRouter
by @RobinTail in #1735 - Prefer
Array::slice()
overArray.from()
by @RobinTail in #1737
Chores
- Bump tsx from 4.9.1 to 4.9.3 by @dependabot in #1732
- Bump @types/node from 20.12.8 to 20.12.9 by @dependabot in #1734
- Bump @types/node from 20.12.9 to 20.12.10 by @dependabot in #1738
Full Changelog: v18.5.1...v18.5.2
v18.5.1
Changes
- Prefer
Map
dictionaries by @RobinTail in #1731
Chores
- Bump @types/ramda from 0.29.12 to 0.30.0 by @dependabot in #1727
- Bump tsx from 4.9.0 to 4.9.1 by @dependabot in #1728
- Upgrading all dependencies by @RobinTail in #1729
Full Changelog: v18.5.0...v18.5.1