This repository was archived by the owner on Jun 8, 2023. It is now read-only.
Update dependency zod to v3.21.4#304
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
af30f4a to
2481da1
Compare
2481da1 to
0a4b605
Compare
0a4b605 to
2caa70b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.20.6->3.21.4Release Notes
colinhacks/zod
v3.21.4Compare Source
Commits:
22f3cc63.21.4v3.21.3Compare Source
Commits:
14c08d8added more.pipeexamples006e652Fix npm canary action paths pattern (#β2148)bdcff0fRemove logging in testsa5830c6Reverted #β1564c458381Fix tests2db0dca3.21.3v3.21.2Compare Source
Commits:
b276d71Improve typings in generics4d016b7Improve type inference in genericsf9895abImprove types inside generic functionsac0135ePass input into catchValuev3.21.1Compare Source
Features
Support for ULID validation
Commits:
4f89461Prettierbd6527aUpdate deps126c77baddedtoLowerCaseandtoUpperCaseback in for v3.21.01749657Update README.mddabe63dupdatedz.customexample again :D6b8f655docs: improve cn readme (#β2143)9012dc7add.includes(value, options?)@βZodString. (#β1887)67b981eMake safeParse().error a getter346fde03.21.0-canary.20230304T235951b50d871Add canary release CIb20cca2Fix canaryf7f5c50Move action to .github/workflowsf01fa0eTry to fix canary CIf5e8067No git tag5b304aeNo dry run20df80eAdd tsc compilation testead93d3Document .pipe()d8e8653Update headers03c0ab1Cache the evaluation of ParseInputLazyPath.path() for a moderate perf improvement (#β2137)e7b3b7bImprove string docs83478f5Remove zod dep2f1868dSpecify paths for canarye599966Add sponsors950bd17Tweak x.custom example728e56aClose #β212764883e4feat: z.string().ulid() - add support for ulids (#β2049)e0d709b3.20.19c33194Remove comments, clean up utils942e2dbFix testsv3.21.0Compare Source
Features
z.string().emoji()Thanks @βjoseph-lozano for https://github.com/colinhacks/zod/pull/2045! To validate that all characters in a string are emoji:
...if that's something you want to do for some reason.
z.string().cuid2()Thanks @βjoulev for https://github.com/colinhacks/zod/pull/1813! To validate CUIDv2:
z.string().ip()Thanks @βfvckDesa for https://github.com/colinhacks/zod/pull/2066. To validate that a string is a valid IP address:
To specify a particular
version:z.bigint().{gt|gte|lt|lte}()Thanks @βigalklebanov for
#1711!ZodBigIntgets the same set of methods found onZodNumber:z.enum(...).extract()andz.enum(...).exclude()Thanks @βsantosmarco-caribou for https://github.com/colinhacks/zod/pull/1652! To add or remove elements from a
ZodEnum:This API is inspired by the
ExcludeandExtractTypeScript built-ins.Pass a function to
.catch()Thanks @β0xWryth for https://github.com/colinhacks/zod/pull/2087! The
.catch()method now accepts a function that receives the caught error:Compiler performance
Zod 3.20.2 introduced an accidental type recursion that caused long compilation times for some users. These kinds of bugs are very hard to diagnose. Big shoutout to @βgydroperit for some heroic efforts here: https://github.com/colinhacks/zod/pull/2107 Zod 3.21 resolves these issues:
Commits:
3c54461fix typo in readmec244fb6feat: z.string().emoji() (#β2045)39cbb69Fix emoji validation, fix lintd8f07bbFix emoji9b7dd81Improve variable name clarity (#β2048)5cec187Add documentation for the param parameter of z.custom654f529Merge pull request #β2057 from trygveaa/add-documentation-for-z-custom-params981af65Merge pull request #β2019 from vbud/patch-1a7c2969Update error_handling8f3d028BRAND Record to Non Partial (#β2097)5ec98e1Fix email issues in pull request #β1982 (#β2058)7d40ba5feat(#β2059): z.string.ip() - add support for IP address (#β2066)e559605feat: add.catcherror (#β2087)defdab9Fix record tests8de36ebFIX: emoji regex and tests (#β2090)16beeb5lowercase method for ZodString (#β2038)75cb9e8add checks @βZodBigInt. (#β1711)c4d4e49Update ERROR_HANDLING.md (#β2022)d6f0890added link to deno land4cf1960Refactoring of ZodFormattedError type to improve tsc check time (#β2107)867a921Bump http-cache-semantics from 4.1.0 to 4.1.1 (#β1985)edc3a67Deprecate deepPartiale59f639Add custom testsa6b44edRemove logginga1fc3fbcommented outtoLowerCaseandtoUpperCasee71cc52Update README_ZH.md (#β2139)3af38fbaddZodNumber.safe()&ZodNumber.isSafe. (#β1753)6ef82eeAdd benchmark flags5463593Support brands in recursive types8074523Update readmeb6794a4Add index signature for passthrough3c6cdd2Make generic optional in objectOutputTypebc43ad1Fix rollup build6a0545a3.21.07c07339Fix brand0aa6021Clean up testsConfiguration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Enabled.
β» 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 has been generated by Mend Renovate. View repository job log here.