v0.24.0
What's changed
This is a relatively small release, mostly focused on a few notable bug fixes. Also contains some improvements to generated zod-v4 schemas.
🐛 Bug Fixes
Axios Client Default Timeout
(potentially breaking)
- Previously this was ignored (since forever apparently 😬)
- This meant that unless you passed an
axiosinstance that itself had a default timeout configured, theaxiosdefault of no timeout was used - Now the
defaultTimeoutvalue will be respected, overriding that of the passedaxiosinstance - #463
This may cause some request timeouts, if you previously had too low of a timeout. It may prevent seeming "hung" requests under certain network conditions that you may have previously experienced.
Browser compatibility for fetch / axios runtimes
- The previous v0.23.0 release inadvertently broke including the fetch / axios runtimes in eg: NextJS applications
- Now solved, with
tsdownconfiguration updated to prevent re-occurrence - #471
✨ Features
zod-v4schema generation now usesz.object({...foo.shape, ...bar.shape})ors_Foo.extend(z.object({...}))as appropriate, instead of the deprecatedmergefunction. According to the documentation this may bring some boost totsc/ language server performance (#468)- (potentially breaking)
zod-v4schema generation will now validateformat: dateandformat: timeusingz.iso.date()/z.iso.time()(#467) - (potentially breaking) enums with a single possible value will now be treated as closed by default / as a literal. This better fits the typical usage in discriminated union type schemas. (#466)
Full Changes
- chore: bump deps by @mnahkies in #462
- fix: axios client respects the defaultTimeout by @mnahkies in #463
- docs: add AGENTS.md / docs/architecture.md by @mnahkies in #464
- chore: reduce tsdown log verbosity and fail on warnings by @mnahkies in #465
- feat!: enum of 1 is a literal by @mnahkies in #466
- feat: support format: date / time by @mnahkies in #467
- chore: refresh data / deps by @mnahkies in #469
- test: add some more e2e query parameter assertions by @mnahkies in #470
- feat: zod v4 uses spread / extend by @mnahkies in #468
- fix: extranous runtime deps bundled by @mnahkies in #471
Full Changelog: v0.23.0...v0.24.0