chore(deps): update dependency zod to ^3.20.6 #355
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.11.6->^3.20.6Release Notes
colinhacks/zod
v3.20.6Compare Source
Commits:
e6939193.20.6v3.20.5Compare Source
Commits:
e71c7beFix extract/exclude type errorv3.20.4Compare Source
Commits:
b8d731fSet input type of ZodCatch to unknown06c237cRevert merge changesc8ce27e3.20.4v3.20.3Compare Source
Features
ZodNumber.isFinite, makeZodNumber.isInttrue if.multipleOf(int). by @igalklebanov in https://github.com/colinhacks/zod/pull/1714extract/excludemethods toZodEnumby @santosmarco-caribou in https://github.com/colinhacks/zod/pull/1652Fixes and documentation
z.coerce. by @igalklebanov in https://github.com/colinhacks/zod/pull/1680isAsynctype guard by @aaronccasanova in https://github.com/colinhacks/zod/pull/1719ZodCatchby @santosmarco-caribou in https://github.com/colinhacks/zod/pull/1733deno/lib/README.mdto matchzod/README.mdby @JacobWeisenburger in https://github.com/colinhacks/zod/pull/1791.describe()by @rattrayalex in https://github.com/colinhacks/zod/pull/1819.pick,.omit,.partial&.required. by @igalklebanov in https://github.com/colinhacks/zod/pull/1875ZodObject's.omit(mask),.pick(mask),.required(mask)&.partial(mask)at compile time. by @igalklebanov in https://github.com/colinhacks/zod/pull/1564New Contributors
Full Changelog: colinhacks/zod@v3.20.2...v3.20.3
v3.20.2Compare Source
Commits:
d7d49e7Clarify boolean coercionf49cbcbFix formatting0b62f8cRevert email regex changes68919aa3.20.2c9e4ed4Fix string testv3.20.1Compare Source
Commits:
1298d26Update readmeb3b0ecfOnly call .catch() method when parsing fails (#1674)957b55bFixing ZodString::isDatetime. (#1678)29ec1f8Add default1161b8f3.20.1v3.20.0: -betaCompare Source
Breaking changes
There are no breaking API changes, however TypeScript versions
4.4and earlier are no longer officially supported.New features
The most feature-packed release since Zod 3.0!
.pipe()A new schema method
.pipe()is now available on all schemas. which can be used to chain multiple schemas into a "validation pipeline". Typically this will be used in conjunction with.transform().The
.pipe()method returns aZodPipelineinstance.z.coerceZod now provides a more convenient way to coerce primitive values.
During the parsing step, the input is passed through the
String()function, which is a JavaScript built-in for coercing data into strings. Note that the returned schema is aZodStringinstance so you can use all string methods.All primitive types support coercion.
.catch()A new schema method
.catch()is now available on all schemas. It can be used to provide a "catchall" value that will be returned in the event of a parsing error.The
.catch()method returns aZodCatchinstance.z.symbol()A long-missing hole in Zod's type system is finally filled! Thanks @santosmarco-caribou.
Relatedly, you can also pass symbols into
z.literal().z.string().datetime()A new method has been added to
ZodStringto validate ISO datetime strings. Thanks @samchungy!This method defaults to only allowing UTC datetimes (the ones that end in
"Z"). No timezone offsets are allowed; arbitrary sub-second precision is supported.Offsets can be supported with the
offsetparameter.You can additionally constrain the allowable
precision. This specifies the number of digits that should follow the decimal point.z.number().finite()Restrict a number schema to finite values. Thanks @igalklebanov.
What's Changed
maskparameter to.requiredmethod by @SrBrahma in https://github.com/colinhacks/zod/pull/1315fataltoZodIssue. by @igalklebanov in https://github.com/colinhacks/zod/pull/1555.finite()@ZodNumber. by @igalklebanov in https://github.com/colinhacks/zod/pull/1546.required()doesn't remove optional flag from the result of.nullish(). by @igalklebanov in https://github.com/colinhacks/zod/pull/1542datetime()string formats by @samchungy in https://github.com/colinhacks/zod/pull/1494pathparameter into account within.parseAsync()by @RobinTail in https://github.com/colinhacks/zod/pull/1513ZodSymbolby @santosmarco-caribou in https://github.com/colinhacks/zod/pull/1448New Contributors
Full Changelog: colinhacks/zod@v3.19.1...v3.20.0
v3.19.1Compare Source
Commits:
d04b303Update stalee933143Fix typo in readme (#1385)6011b67Update readme033088dOptimize object strip case (#1393)d40a5ebFix refine with type guard signature (#1404)2893e16Make unknown input type for preprocess3b75ae53.19.1v3.19.0Compare Source
Features
Commits:
9066b9edocs: fix links to anatine plugins in README (#1363)0a2c9abdocs: Update readme keyof typo (#1330)af086b6Update readmee75f348Add brand to tocf1dfabb3.19.0 (#1383)v3.18.0Compare Source
Commits:
b3e623edocs: add zodios to zod ecosystem (#1283)6fe152fAdded Avana Wallet as sponsor (#1281)d041b76docs: add link to runtyping (#1305)f923706Refactor type checks (#1280)814c1ebdocs: fix link to z.preprocess in Supporting date strings (#1319)88e94efdocs: fix link to Node/npm (#1312)7c113abAdd branded types (#1279)59768243.18 (#1323)v3.17.10Compare Source
Commits:
d9c3637fix typo afterac2fb4a(#1267)4ade47aFix transform example (#1276)b29cee1Fix endsWith default message (#1273)a19acb83.17.10v3.17.9Compare Source
Commits:
1d16205feat(enum): return enum from object keys (#1216)8b9dabaDon't use invalid_type_error forundefinedfields. (#1175)0348e9bFixed typing mistake in README.md (#1160)15aa4abConvert "an nullable" to "a nullable" (#1162)55d27443.17.9v3.17.8Compare Source
Commits:
dcc1483Add deno release workflowac2fb4aAdded native support for min and max date validations (#1222)e0ea1f6Fix deno release workflow121a2e23.17.8v3.17.7Compare Source
Commits:
a59c384Fix inferred function typesv3.17.6Compare Source
Commits:
f73eabcAddzod-xlsxto the ecosystem section in README (#1203)cbfe704Add bigint support for literals (#1242)v3.17.5Compare Source
Commits:
63f4819Allow empty commitsff43b2eAllow empty commit799fbb1Add string.startsWith and string.endsWith (#1235)d9b85503.17.5v3.17.4Compare Source
What's Changed
New Contributors
Full Changelog: colinhacks/zod@v3.17.3...v3.17.4
v3.17.3Compare Source
Commits:
847cedfRemove type only importsb899edfFix typesv3.17.2Compare Source
Commits:
44916feRemove circular dependency0b4bc1dFix picking nonexistent keysv3.17.0Compare Source
Commits:
4459e75feat: trim method for ZodString (#681)ff5de24Added README for deno (#1157)4284011Add error parameters to createZodEnumcb5db0f3.17.0What's Changed
New Contributors
Full Changelog: colinhacks/zod@v3.16.1...v3.17.0
v3.16.1Compare Source
Commits:
3aedba5Update docsa944dd7COnfigure docsify0e5acd4Flatten schema docs26d234dClean up docs7a37dacTweak styling1b7b529Fix table of contents styling6bf9ea7Fix toc4628c35Improve styling4fcdbe7Remove hash router811da4cAdd metadata625721dAdd favicons0367cdcAdd oneliner7ba4f67Add onelinerd362b93Add oneliner4c9cbc6Add onelinerbef9153Remove local assets3ca7cffImprove lighthouse scoresb3ccd4cFix docsee40cb8doc: fix link (#1130)d8d3806Add docs link (#1133)401c4c4Update index.html7d1de14Fix preloadd506b08Fix syntax highlighting347332cImprove JSDoc deprecation warning for nonempty (#1152)7836900Instanceof issue fatal (#1131)b57a25cmod an example that is not correct (#1134)51e93e7Added test for enums with defaults (#1149)12214aaAdd Test for Union Recursive Type (#1148)65d8f4f3.16.1v3.16.0Compare Source
Commits:
cb2b86cUpdate README.md (#1125)b726328Addnestjs-graphql-zodto ecosystem links (#1126)ab8a371Fix ctx.addIssue in transform to work correctly with parseAsync (#1129)da0a42fUpdate ZodError.ts (#1127)c4740a6Restore existing type inference behaviour of z.ZodObject (#1122)c536694Added expected and received properties to enum and native enum (#1123)8f9ad5bUpdate type signature for ZodInvalidEnumValueIssue27121fd3.16v3.15.1Compare Source
Commits:
f814ef2Improve docsc190a84Clean up type signature of ZodFormattedErrorv3.15.0Compare Source
Commits:
d54ba35feat: allow ctx.addIssue from transform (#1056)36f4e883.15.0v3.14.5Compare Source
Commits:
21aab2afix(readme): Use Correct Test Link753f627Merge pull request #1054 from FlorianWendelborn/patch-1a6e13ccRemove hanging string expressions (#1073)c7792deAdd UMD build (#1067)f11ba8fStandardize ZodError type helpers. Document ZodError.format(). Add mapper support to .format()5ea9f87Add Astro (#1076)5ba2cc3Update sponsors (#1081)cdca0dbdocs: inferLiteralfrom the schema in JSON type example (#1083)f6981f8Small typo in readme (contraining => constraining) (#1096)7296aaeAdd zod-to-openapi to Ecosystem in the Readme (#1109)4cf7e7cdocs: fix typo on the error handling guide (#1111)fa4eebbImprove IDE integration for inferred object properties to support Go To Definition, Rename Symbol, etc. (#1117)v3.14.4Compare Source
Commits:
823dda9Add invalid_literal issued109f67Merge pull request #1052 from colinhacks/literal-error222df66Fully remove typeCache22d418cFully remove typeCache0acd6f6Merge pull request #1058 from tmcw/fully-remove-typecache024257cFaster extra keys detection157f8c5Merge pull request #1057 from tmcw/faster-extra-keys819fb493.14.4v3.14.3Compare Source
Commits:
66f044bImprove precommit hooks60acdc0Fix prepublish361c789Test husky2348c00Test husky0dbd4ecTest huskyac187faReformat4fb3a29Add filesb6006f3Merge pull request #1034 from colinhacks/husky35a74f5Remove coverage badge generation, fix release CI1974cfbAdd codecov4bd66a4Remove coverage6173d5cMerge pull request #1035 from colinhacks/coverage0780ee3Fix CI badgef59df39Faster paths3662eb2Update src/types.ts2ffcd8dUpdate ZodMap for new ParseInputLazyPath structure0ad9e12Merge pull request #1036 from tmcw/fast-path2d8628e1Add fastify-type-provider-zod1713b0aAdd Supervillain to Ecosystem sectionf3db867Merge pull request #1047 from Southclaws/patch-12ccce07Add generic functions guide to READMEbaf9b53Add default for first argument of ZodTypev3.14.2Compare Source
Commits:
76d2fe0Faster optional & nullable values38cc89dMerge pull request #1028 from tmcw/faster-optionals9004904Implement release CI5d356ddRemove logs in build.mjs25b41e6Dry-run: false6a703d8Rename workflows0a5f644Update release, remove fix.yml01ca116Generate Deno before testing25bab35Update script namescc458a0Prevent duplicate jobsa3e3d45Prevent duplicate jobsb5a93f2Fix prettier command3a27c0cUpgrade eslint versioncadfa20Fix job id863346bchore: Format, lint, build Denoe02a9caRemove dryrundb4c8bfAdd deno88d1239Update release1a4a1c2Merge pull request #1030 from colinhacks/ciConfiguration
📅 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 has been generated by Renovate Bot.