Skip to content

v0.24.0

Choose a tag to compare

@mnahkies mnahkies released this 27 May 20:32
· 33 commits to main since this release
7ecd4e4

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 axios instance that itself had a default timeout configured, the axios default of no timeout was used
  • Now the defaultTimeout value will be respected, overriding that of the passed axios instance
  • #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 tsdown configuration updated to prevent re-occurrence
  • #471

✨ Features

  • zod-v4 schema generation now uses z.object({...foo.shape, ...bar.shape}) or s_Foo.extend(z.object({...})) as appropriate, instead of the deprecated merge function. According to the documentation this may bring some boost to tsc / language server performance (#468)
  • (potentially breaking) zod-v4 schema generation will now validate format: date and format: time using z.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

Full Changelog: v0.23.0...v0.24.0