Split text into semantic chunks, up to a desired chunk size. Supports calculating length by characters and tokens, and is callable from Rust and Python.
Best-effort RegEx flag support by Justin! 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).
3.7.x - 3.8.x
Skipped to reach functional parity with Zod versioning.
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 major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the minor group in /docs with 4 updates: caniuse-lite, electron-to-chromium, shiki and zod-to-json-schema.
Updates
caniuse-lite
from 1.0.30001634 to 1.0.30001636Commits
82d7003
Update caniuse-db 1.0.3000163646f586b
Update ESLintf8d039e
Update pnpm, CI actions and CI Node.jsf51086a
Update caniuse-db 1.0.30001635d56cfb4
Merge pull request #127 from browserslist/dependabot/npm_and_yarn/braces-3.0.354d3f71
Bump braces from 3.0.2 to 3.0.3Updates
electron-to-chromium
from 1.4.802 to 1.4.803Commits
fa10299
1.4.80313c4e19
generate new versionUpdates
shiki
from 1.6.4 to 1.6.5Release notes
Sourced from shiki's releases.
Commits
742bef1
chore: release v1.6.540785d0
chore: update depsUpdates
zod-to-json-schema
from 3.23.0 to 3.23.1Changelog
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