Skip to content

v1.0.1

Compare
Choose a tag to compare
@sachinraja sachinraja released this 29 Apr 02:23
· 60 commits to main since this release
4d1149e

Changes

Properties are now correctly handled as identifiers or string literals.
example input:

const schema = z.object({
  'needs-quotes': z.string()
})

output before update (not valid TS):

{
  needs-quotes: string
}

output after update:

{
  "needs-quotes": string
}

Additionally, numeric values in enums are now handled correctly (only string values could be passed before).

Full Changelog: v1.0.0...v1.0.1