Update dependency zod to v3.23.8 #1154
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.22.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
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.