Lazily loads Emoji regex to avoid incompatibility with some environments. Thanks Jacob Lee!
3.23.1
Best-effort RegEx flag support by Spappz! Some minor fixes and additions, such as the title option.
3.23.0
Adds support for base64, date, time, duration and nanoid string validations. A warm welcome and a big thanks to Colin, the creator of Zod, joining in as a contributor :)
3.22.5
Adds new z.date() parsing options and override callback
3.22.4
Adds fix for nullable references in OpenAPI mode
3.22.3
Adjust root path from "#/" to "#" according to RFC 6901
3.22.2
Adds "output" pipe strategy
3.22.1
Fixes broken imports when using some bundlers
3.22.0
Support readonly. Export both CJS and ESM. Export everything from index. Alternative map parser. Improved pattern handling and updated sources.
3.21.4
Fixes missing support for exact array length
3.21.3
Fixes issue #77 (Reference path to nullable schemas in Open-API mode)
3.21.2
Adds "integer" type Date output to support min/max checks, markdownDescription option, fixes "none" refStrategy by adding "seen" and adds an option to use "pattern" with Zods' email enum instead of "format".
3.21.1
New target (2019-09) along with improved intersection schemas, improved mutual recursion references in definitions, descriptions respected in union parser and not removed in collapsed
3.21.0
Added new string validations (ip, emoji, etc) and BigInt checks to support Zod 3.21
3.20.5
Added uniqueItems to Set and an option to disregard pipe schemas
3.20.4
Bugfixes and improved record parsing for openApi3
3.20.3
Added Cuid2 support introduced in Zod 3.20.3
3.20.2
Reintroduced conditional simplified return-type for when target is OpenAPI 3
3.20.1
Fixed inconsistent casing in imports
3.20.0
Adds support for Zod 3.20 with catch and pipe parser as well as new string validations. Refactored Ref handling; adding definitions no longer considered experimental. Main API function refactored and simplified; output type less defined but a lot easier to maintain. Doubt anyone will miss it. Narrator: Someone did in fact miss it
3.19.4
Adds custom error message support
3.19.3
Mark definitions as experimental in the readme
3.19.2
Added definitions option
3.19.1
Strict unions fix
3.19.0
No new features added in Zod, parity bump
3.18.2
Fixes support for native enums
3.18.1
Add strictUnions options
3.18.0
Added support for branded types
3.17.2
Fix for reference paths when supplying name option string.
3.17.1
Added startsWith and endsWith string checks. Merge multiple pattern checks into allOf array.
3.17.0
Added switch case handler for new trim "check". No changes to functionality.
3.15.x - 3.16.x
Skipped: Did not change the Zod API in any way relevant for this package.
3.14.1
Dependabot security updates
3.14.0
Moves Zod into peerDependencies. Supports checks for sets, NaN-type (sort of), discriminated union type and standalone optional properties (as unions with undefined)
3.12.x - 3.13.x
Skipped
3.11.3
Joins unions of enums into single enum and allows enums as keys of records
3.11.2
Adds option to target Open API 3 spec (paths) instead of Json Schema 7.
3.11.1
Performance boost when using $refStrategy none and internal improvements.
3.11.0
Added description support introduced in Zod 3.11.5
3.10.x
Skipped: Minor 10 did not change the Zod API
3.9.5
Type bug fix: used dev dependency types in package
3.9.4
Path bug fix and test case when using optional definitions path
3.9.3
Added option to change definition property name to $defs
3.9.2
Added option to handle transform results as any instead of relying on their input schema.
3.9.1
Refactored the way reference pointers are passed around and added options pattern to main function without braking backwards compatibility! You can now add a base path, change the reference strategy (or opt out), and still set the schema name inside the options object or outside as before.
3.9.0
Added support for multipleOf number validaion, .rest() schemas for tuples and key validation for records (only compatible with string keys due to JSON Schema limitation).
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
All deployment options
- [Deploy build 9696 of `identity:identity-gateway` to CODE](https://riffraff.gutools.co.uk/deployment/deployAgain?project=identity%3Aidentity-gateway&build=9696&stage=CODE&updateStrategy=MostlyHarmless&action=deploy)
- [Deploy parts of build 9696 to CODE by previewing it first](https://riffraff.gutools.co.uk/preview/yaml?project=identity%3Aidentity-gateway&build=9696&stage=CODE&updateStrategy=MostlyHarmless)
- [What's on CODE right now?](https://riffraff.gutools.co.uk/deployment/history?projectName=identity%3Aidentity-gateway&stage=CODE)
Bumps zod-to-json-schema from 3.23.1 to 3.23.2.
Changelog
Sourced from zod-to-json-schema's changelog.
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show