Update dependency zod to v3.23.8 #111
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.21.4->3.23.8Release Notes
colinhacks/zod (zod)
v3.23.8Compare Source
Commits:
0f4d403Add Bronze logos (#3470)1968731Tweak tiers (#3471)eda7df3Change RefinementCtx to interfaceca42965v3.23.8v3.23.7Compare Source
v3.23.6Compare Source
v3.23.5Compare Source
v3.23.4Compare Source
Commits:
157b18dAdd 3.23 announcementaedf93fRevert change to default Input45107f7v3.23.4v3.23.3Compare Source
v3.23.2Compare Source
Commits:
c340558Update protocolef588d0Fix t3env9df70dd3.23.2v3.23.1Compare Source
v3.23.0Compare Source
Zod 3.23 is now available. This is the final
3.xrelease before Zod 4.0. To try it out:Features
z.string().date()Zod can now validate ISO 8601 date strings. Thanks @igalklebanov! https://github.com/colinhacks/zod/pull/1766
z.string().time()Zod can now validate ISO 8601 time strings. Thanks @igalklebanov! https://github.com/colinhacks/zod/pull/1766
You can specify sub-second precision using the
precisionoption:z.string().duration()Zod can now validate ISO 8601 duration strings. Thanks @mastermatt! https://github.com/colinhacks/zod/pull/3265
Improvements to
z.string().datetime()Thanks @bchrobot https://github.com/colinhacks/zod/pull/2522
You can now allow unqualified (timezone-less) datetimes using the
local: trueflag.Plus, Zod now validates the day-of-month correctly to ensure no invalid dates (e.g. February 30th) pass validation. Thanks @szamanr! https://github.com/colinhacks/zod/pull/3391
z.string().base64()Zod can now validate base64 strings. Thanks @StefanTerdell! https://github.com/colinhacks/zod/pull/3047
Improved discriminated unions
The following can now be used as discriminator keys in
z.discriminatedUnion():ZodOptionalZodNullableZodReadonlyZodBrandedZodCatchMisc
Breaking changes
There are no breaking changes to the public API of Zod. However some changes can impact ecosystem tools that rely on Zod internals.
ZodFirstPartySchemaTypesThree new types have been added to the
ZodFirstPartySchemaTypesunion. This may impact some codegen libraries. https://github.com/colinhacks/zod/pull/3247Default generics in
ZodTypeThe third argument of the
ZodTypebase class now defaults tounknown. This makes it easier to define recursive schemas and write generic functions that accept Zod schemas.Unrecognized keys in
.pick()and.omit()This version fixes a bug where unknown keys were accidentally accepted in
.pick()andomit(). This has been fixed, which could cause compiler errors in some user code. https://github.com/colinhacks/zod/pull/3255Bugfixes and performance
ZodFirstPartySchemaTypesby @MatthijsMud in https://github.com/colinhacks/zod/pull/3247inputof.required()readonly by @KATT in https://github.com/colinhacks/zod/pull/3301addQuestionMarks, fix #2184 by @colinhacks in https://github.com/colinhacks/zod/pull/3352srcforbun testby @rotu in https://github.com/colinhacks/zod/pull/3038Docs and ecosystem
zod-devutility to eco-system section by @schalkventer in https://github.com/colinhacks/zod/pull/3113orvalto "X to Zod" ecosystems by @soartec-lab in https://github.com/colinhacks/zod/pull/3397New Contributors
Full Changelog: colinhacks/zod@v3.22.4...v3.23.0
v3.22.5Compare Source
v3.22.4Compare Source
Commits:
d931ea3Lint8e634bdFix prettier4018d88docs: add @sanity-typed/zod to ecosystem (#2731)15ba5a4docs: addzod-sandboxto README ecosystem links (#2707)699ccaeExport jsdoc with@deprecatedwhen building (#2717)dfe3719Fix sanity-typed links (#2840)cd7991efix ulid regex (#2225)7cb4ba2Remove stalebot9340fd5Lazy emojiRegexe7a9b9b3.22.4v3.22.3Compare Source
Commits:
1e23990Commit9bd3879docs: remove obsolete text about readonly types (#2676)f59be09clarify datetime ISO 8601 (#2673)64dcc8eUpdate sponsors18115a8Formatting28c1927Update sponsorsad2ee9c2718 Updated Custom Schemas documentation example to use type narrowing (#2778)ae0f7a2docs: update ref to discriminated-unions docs (#2485)2ba00fe[2609] fix ReDoS vulnerability in email regex (#2824)1e61d763.22.3v3.22.2Compare Source
Commits:
13d9e6bFix lint0d49f10docs: add typeschema to ecosystem (#2626)8e4af7bX to Zod: add app.quicktype.io (#2668)792b3efFix superrefine typesv3.22.1Compare Source
Commits:
Fix handing of
thisin ZodFunction schemas. The parse logic for function schemas now requires theReflectAPI.932cc47Initial prototype fix for issue #2651 (#2652)0a055e73.22.1v3.22.0Compare Source
ZodReadonlyThis release introduces
ZodReadonlyand the.readonly()method onZodType.Calling
.readonly()on any schema returns aZodReadonlyinstance that wraps the original schema. The new schema parses all inputs using the original schema, then callsObject.freeze()on the result. The inferred type is also marked asreadonly.The inferred type uses TypeScript's built-in readonly types when relevant.
Commits:
6dad907Comments56ace68Fix deno test3809d54Add superformsd1ad522Add transloadita3bb701Testing on Typescript 5.0 (#2221)51e14bedocs: update deprecated link (#2219)a263814fixed Datetime & IP TOC links502384edocs: add mobx-zod-form to form integrations (#2299)a8be450docs: Addzockerto Ecosystem section (#2416)15de22aAllow subdomains and hyphens inZodString.email(#2274)00f5783Addzod-openapito ecosystem (#2434)0a17340docs: fix minor typo (#2439)60a2134Add masterborn0a90ed1chore: moveexports.typesfield to first spot @ package.json. (#2443)67f35b1docs: allow Zod to be used in dev tools at site (#2432)6795c57Fix not working Deno doc link. (#2428)37e9c55Generalize uuidRegex0969950adds ctx to preprocess (#2426)af08390fix: super refinement function types (#2420)36fef58Make email regex reasonable (#2157)f627d14Document canarye06321cdocs: add tapiduck to API libraries (#2410)11e507cdocs: add ts as const example in zod enums (#2412)5427565docs: add zod-fixture to mocking ecosystem (#2409)d3bf7e6docs: addzodockto mocking ecosystem (#2394)2270ae5remove "as any" casts in createZodEnum (#2332)00bdd0afix proto pollution vulnerability (#2239)a3c5256Fix error_handling unrecognized_keys example4f75cbcAdds getters to Map for key + value (#2356)ca7b032FMC (#2346)6fec8bddocs: fix typo in link fragment (#2329)16f90bdUpdate README.md2c80250Update readmeeaf64e0Update sponsorsc576311Update readme5e23b4fAdd*.mdpattern to prettier (#2476)898dcedRevamp tests6309322Update test runnersc0aece1Add vitest config73a5610Update script8d8e1a2Fix deno test bug9eb2508Clean up configscfbc7b3Fix root jest config8677f68docs(comparison-yup): Yup added partial() and deepPartial() in v1 (#2603)fb00edddocs: add VeeValidate form library for Vue.js (#2578)ab8e717docs: fix typo in z.object (#2570)d870407docs: fix incomplete Records example (#2579)5adae24docs: add conform form integration (#2577)8b8ab3eUpdate README.md (#2562)6aab901fix typo test name (#2542)81a89f5Update nullish documentation to correct chaining order (#2457)78a4090docs: update comparison withruntypes(#2536)1ecd624Fix prettier981d4b5Add ZodReadonly (#2634)fba438c3.22.0Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.