-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Snyk] Upgrade zod from 3.21.4 to 3.23.8 #862
base: main
Are you sure you want to change the base?
Conversation
Snyk has created this PR to upgrade zod from 3.21.4 to 3.23.8. See this package in npm: zod See this project in Snyk: https://app.snyk.io/org/sammytezzy/project/056d8995-75bd-4eb4-bca0-bc2ecbc2ba91?utm_source=github&utm_medium=referral&page=upgrade-pr
Run & review this pull request in StackBlitz Codeflow. |
|
Reviewer's Guide by SourceryThis PR updates the zod package from version 3.21.4 to 3.23.8. The update includes several new features, bug fixes, and performance improvements. The upgrade addresses multiple security vulnerabilities, including high-severity issues related to Regular Expression Denial of Service (ReDoS) and Arbitrary Code Execution. No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have skipped reviewing this pull request. Here's why:
- It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
- We don't review packaging changes - Let us know if you'd like us to change this.
Snyk has created this PR to upgrade zod from 3.21.4 to 3.23.8.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 93 versions ahead of your current version.
The recommended version was released on 7 months ago.
Issues fixed by the recommended upgrade:
SNYK-JS-CROSSSPAWN-8303230
SNYK-JS-IMPORTINTHEMIDDLE-5826054
SNYK-JS-ZOD-5925617
SNYK-JS-FASTXMLPARSER-7573289
SNYK-JS-INFLIGHT-6095116
Release notes
Package name: zod
Commits:
Commits:
Commits:
Commits:
Commits:
Commits:
Commits:
This changes the default generics back to
any
to prevent breakages with common packager like@ hookform/resolvers
:Commits:
Zod 3.23 is now available. This is the final
3.x
release before Zod 4.0. To try it out:Features
z.string().date()
Zod can now validate ISO 8601 date strings. Thanks @ igalklebanov! #1766
z.string().time()
Zod can now validate ISO 8601 time strings. Thanks @ igalklebanov! #1766
You can specify sub-second precision using the
precision
option:z.string().duration()
Zod can now validate ISO 8601 duration strings. Thanks @ mastermatt! #3265
Improvements to
z.string().datetime()
Thanks @ bchrobot #2522
You can now allow unqualified (timezone-less) datetimes using the
local: true
flag.Plus, Zod now validates the day-of-month correctly to ensure no invalid dates (e.g. February 30th) pass validation. Thanks @ szamanr! #3391
z.string().base64()
Zod can now validate base64 strings. Thanks @ StefanTerdell! #3047
Improved discriminated unions
The following can now be used as discriminator keys in
z.discriminatedUnion()
:ZodOptional
ZodNullable
ZodReadonly
ZodBranded
ZodCatch
Misc
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.
ZodFirstPartySchemaTypes
Three new types have been added to the
ZodFirstPartySchemaTypes
union. This may impact some codegen libraries. #3247Unrecognized 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. #3255Bugfixes and performance
ZodFirstPartySchemaTypes
by @ MatthijsMud in #3247input
of.required()
readonly by @ KATT in #3301addQuestionMarks
, fix #2184 by @ colinhacks in #3352src
forbun test
by @ rotu in #3038Docs and ecosystem
zod-dev
utility to eco-system section by @ schalkventer in #3113orval
to "X to Zod" ecosystems by @ soartec-lab in #3397New Contributors