Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependency zod to v3.24.1 (#344)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [zod](https://zod.dev) ([source](https://redirect.github.com/colinhacks/zod)) | [`3.21.4` -> `3.24.1`](https://renovatebot.com/diffs/npm/zod/3.21.4/3.24.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.21.4/3.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.21.4/3.24.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>colinhacks/zod (zod)</summary> ### [`v3.24.1`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.24.1) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.24.0...v3.24.1) #### Commits: - [`0c6cbbd`](https://redirect.github.com/colinhacks/zod/commit/0c6cbbdd1315683dd3d589fbdc5765c26431dcc9) Undeprecate .nonempty() - [`4e219d6`](https://redirect.github.com/colinhacks/zod/commit/4e219d6ad9d5e56e20afd7423092f506400a29e4) Bump min TS version to 5.0 - [`65adeea`](https://redirect.github.com/colinhacks/zod/commit/65adeeacef0274abbda5438470a3d2bfd376256d) v3.24.1 ### [`v3.24.0`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.24.0) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.23.8...v3.24.0) #### Implement `@standard-schema/spec` This is the first version of Zod to implement the [Standard Schema](https://redirect.github.com/standard-schema/standard-schema) spec. This is a new community effort among several validation library authors to implement a common interface, with the goal of simplifying the process of integrating schema validators with the rest of the ecosystem. Read more about the project and goals [here](https://redirect.github.com/standard-schema/standard-schema). #### `z.string().jwt()` Thanks to [@​Mokshit06](https://redirect.github.com/Mokshit06) and [@​Cognition-Labs](https://redirect.github.com/Cognition-Labs) for this contribution! To verify that a string is a valid 3-part JWT. z.string().jwt(); >⚠️ This does not *verify* your JWT cryptographically! It merely ensures its in the proper format. Use a library like [`jsonwebtoken`](https://redirect.github.com/auth0/node-jsonwebtoken) to verify the JWT signature, parse the token, and read the claims. To constrain the JWT to a specific algorithm: ```ts z.string().jwt({ alg: "RS256" }); ``` #### `z.string().base64url()` Thank you to [@​marvinruder](https://redirect.github.com/marvinruder)! To complement the JWT validation, Zod 3.24 implements a standalone `.base64url()` string validation API. (The three elements of JWTs are base64url-encoded JSON strings.) ```ts z.string().base64url() ``` This functionality is available along the standard `z.string().base64()` validator added in Zod 3.23. #### `z.string().cidr()` Thanks to [@​wataryooou](https://redirect.github.com/wataryooou) for their work on this! A validator for [CIDR notation](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) for specifying IP address ranges, e.g. `192.24.12.0/22`. ```ts z.string().cidr() ``` To specify an IP version: ```ts z.string().cidr({ version: "v4" }) z.string().cidr({ version: "v6" }) ``` *** View the full diff from 3.23.8: colinhacks/zod@v3.23.8...v3.24.0 - [`294f54f`](https://redirect.github.com/colinhacks/zod/commit/294f54f418bd1506d807b351213c66dbffd8ac31) Update README_ZH.md about Discriminated unions ([#​3493](https://redirect.github.com/colinhacks/zod/issues/3493)) - [`1247caf`](https://redirect.github.com/colinhacks/zod/commit/1247caf58d1c189155bd04c068be1c758ab77c1c) Add Kubb as X-to-Zod community tool ([#​3508](https://redirect.github.com/colinhacks/zod/issues/3508)) - [`62b7842`](https://redirect.github.com/colinhacks/zod/commit/62b7842c46dd7f1004f41e2220284abb75378fb7) Update default branch - [`c6bc80d`](https://redirect.github.com/colinhacks/zod/commit/c6bc80de5091c634a371cc81877df816a269e965) Fix issue [#​3582](https://redirect.github.com/colinhacks/zod/issues/3582) : ULID should be case insensitive ([#​3593](https://redirect.github.com/colinhacks/zod/issues/3593)) - [`a5b9dc3`](https://redirect.github.com/colinhacks/zod/commit/a5b9dc34d4086e8e084a059f71a481618a336303) docs: add zod-schema-faker to ecosystem ([#​3605](https://redirect.github.com/colinhacks/zod/issues/3605)) - [`9818d0e`](https://redirect.github.com/colinhacks/zod/commit/9818d0eba1a5877a2b1917296d018a8b4e31b211) Add zod-sockets ([#​3609](https://redirect.github.com/colinhacks/zod/issues/3609)) - [`7173d0b`](https://redirect.github.com/colinhacks/zod/commit/7173d0bcc2105777102e22d36a2866196e2830f3) Add drizzle-zod library to X to Zod README.md section ([#​3648](https://redirect.github.com/colinhacks/zod/issues/3648)) - [`c5a4edc`](https://redirect.github.com/colinhacks/zod/commit/c5a4edcaf7a7c434b0f94a18123750bd1151c2cf) Add 'schemql' in Powered by Zod ([#​3800](https://redirect.github.com/colinhacks/zod/issues/3800)) - [`85916b3`](https://redirect.github.com/colinhacks/zod/commit/85916b32002e4302cccd77fcf64574f34f2e8595) docs: add zod-form-renderer to form integration docs ([#​3697](https://redirect.github.com/colinhacks/zod/issues/3697)) - [`51f1dc3`](https://redirect.github.com/colinhacks/zod/commit/51f1dc3950d93e4a1c11467b7e92069cd372d450) docs: add unplugin-environment in powered by zod ([#​3778](https://redirect.github.com/colinhacks/zod/issues/3778)) - [`8e74db3`](https://redirect.github.com/colinhacks/zod/commit/8e74db34cd0c673d21fe3b8b62c9de4c785e3de2) fix: ipv6 regex validation ([#​3513](https://redirect.github.com/colinhacks/zod/issues/3513)) - [`1f4f0da`](https://redirect.github.com/colinhacks/zod/commit/1f4f0dacf313a2dba45563d78171e6f016096925) refactor: rename ip version types ([#​3755](https://redirect.github.com/colinhacks/zod/issues/3755)) - [`f487d74`](https://redirect.github.com/colinhacks/zod/commit/f487d74ecd3ae703ef8932462d14d643e31658b3) Remove faulty ip test case - [`48f1c47`](https://redirect.github.com/colinhacks/zod/commit/48f1c4793b21b19714d68f970ae3d739263e2b1d) docs: Remove invalid semicolon in ERROR_HANDLING.md ([#​3857](https://redirect.github.com/colinhacks/zod/issues/3857)) - [`1d0a4b9`](https://redirect.github.com/colinhacks/zod/commit/1d0a4b95300a2c470b175ed4524fe3cf04ef9b19) fix: bigint coerce crash ([#​3822](https://redirect.github.com/colinhacks/zod/issues/3822)) - [`14dceaa`](https://redirect.github.com/colinhacks/zod/commit/14dceaa2d2b27ef448b48c4f0641413e3ead974d) Add API library ([#​3814](https://redirect.github.com/colinhacks/zod/issues/3814)) - [`f82f817`](https://redirect.github.com/colinhacks/zod/commit/f82f817252c1f1342d81a2a5ae9adf426cb32cec) feat: z.string.cidr() - support CIDR notation ([#​3820](https://redirect.github.com/colinhacks/zod/issues/3820)) - [`71a0c33`](https://redirect.github.com/colinhacks/zod/commit/71a0c33c01ca7e2be16e27f763ec1c3e9dee6943) docs: add info on unqualified local datetime strings ([#​3760](https://redirect.github.com/colinhacks/zod/issues/3760)) - [`b85686a`](https://redirect.github.com/colinhacks/zod/commit/b85686ab852bc75919fd9d853dfca4b0968301dd) Add support for `base64url` strings ([#​3712](https://redirect.github.com/colinhacks/zod/issues/3712)) - [`6407bed`](https://redirect.github.com/colinhacks/zod/commit/6407bed5a229f330b9353e086f7798f1422e2bb7) Allow creation of discriminated unions with a readonly array of options ([#​3535](https://redirect.github.com/colinhacks/zod/issues/3535)) - [`3755146`](https://redirect.github.com/colinhacks/zod/commit/37551462f4a534f86e6190aafea1747b010eca7a) Remove createParams cascade from .array() ([#​3530](https://redirect.github.com/colinhacks/zod/issues/3530)) - [`963386d`](https://redirect.github.com/colinhacks/zod/commit/963386df253360fde67ca10c6bf47fec1fcc476a) Fix lint - [`69a1798`](https://redirect.github.com/colinhacks/zod/commit/69a1798ce2df65555bda0a8978a6baadd7d5588e) Implement Standard Schema spec ([#​3850](https://redirect.github.com/colinhacks/zod/issues/3850)) - [`c1dd537`](https://redirect.github.com/colinhacks/zod/commit/c1dd537baa9e4fad781ea365643399707fea91be) Adds `frrm` package to documentation ([#​3818](https://redirect.github.com/colinhacks/zod/issues/3818)) - [`b68c05f`](https://redirect.github.com/colinhacks/zod/commit/b68c05fea12d8060000aa06abc1e95b08f061378) feat: Add JWT string validator ([#​3893](https://redirect.github.com/colinhacks/zod/issues/3893)) ### [`v3.23.8`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.23.8) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.23.7...v3.23.8) #### Commits: - [`0f4d403`](https://redirect.github.com/colinhacks/zod/commit/0f4d403558ae0490c711e4c2bfcf6c200bd14e11) Add Bronze logos ([#​3470](https://redirect.github.com/colinhacks/zod/issues/3470)) - [`1968731`](https://redirect.github.com/colinhacks/zod/commit/19687315b5b24bbd1ff6c346bfc2975700221748) Tweak tiers ([#​3471](https://redirect.github.com/colinhacks/zod/issues/3471)) - [`eda7df3`](https://redirect.github.com/colinhacks/zod/commit/eda7df314399929f7ed737423868a5a0780cd944) Change RefinementCtx to interface - [`ca42965`](https://redirect.github.com/colinhacks/zod/commit/ca42965df46b2f7e2747db29c40a26bcb32a51d5) v3.23.8 ### [`v3.23.7`](https://redirect.github.com/colinhacks/zod/compare/v3.23.6...f985b5b922cb357dbf4b25bb43814d19f838e046) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.23.6...v3.23.7) ### [`v3.23.6`](https://redirect.github.com/colinhacks/zod/compare/v3.23.5...93b480b12ec3466cbd3b4182f7ce292e5c61528c) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.23.5...v3.23.6) ### [`v3.23.5`](https://redirect.github.com/colinhacks/zod/compare/v3.23.4...541a862e978f96eb391849a6bf16be84231aa1b3) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.23.4...v3.23.5) ### [`v3.23.4`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.23.4) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.23.3...v3.23.4) #### Commits: - [`157b18d`](https://redirect.github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7) Add 3.23 announcement - [`aedf93f`](https://redirect.github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1) Revert change to default Input - [`45107f7`](https://redirect.github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4) v3.23.4 ### [`v3.23.3`](https://redirect.github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.23.2...v3.23.3) ### [`v3.23.2`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.23.2) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.23.1...v3.23.2) #### Commits: - [`c340558`](https://redirect.github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3) Update protocol - [`ef588d0`](https://redirect.github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0) Fix t3env - [`9df70dd`](https://redirect.github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df) 3.23.2 ### [`v3.23.1`](https://redirect.github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.23.0...v3.23.1) ### [`v3.23.0`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.23.0) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/e7a9b9b3033991be6b4225f1be21da39c250bbb0...v3.23.0) Zod 3.23 is now available. This is the final `3.x` release before Zod 4.0. To try it out: ```sh npm install zod ``` #### Features ##### `z.string().date()` Zod can now validate ISO 8601 date strings. Thanks [@​igalklebanov](https://redirect.github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://redirect.github.com/colinhacks/zod/pull/1766) ```ts const schema = z.string().date(); schema.parse("2022-01-01"); // OK ``` ##### `z.string().time()` Zod can now validate ISO 8601 time strings. Thanks [@​igalklebanov](https://redirect.github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://redirect.github.com/colinhacks/zod/pull/1766) ```ts const schema = z.string().time(); schema.parse("12:00:00"); // OK ``` You can specify sub-second precision using the `precision` option: ```ts const schema = z.string().time({ precision: 3 }); schema.parse("12:00:00.123"); // OK schema.parse("12:00:00.123456"); // Error schema.parse("12:00:00"); // Error ``` ##### `z.string().duration()` Zod can now validate ISO 8601 duration strings. Thanks [@​mastermatt](https://redirect.github.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://redirect.github.com/colinhacks/zod/pull/3265) ```ts const schema = z.string().duration(); schema.parse("P3Y6M4DT12H30M5S"); // OK ``` ##### Improvements to `z.string().datetime()` Thanks [@​bchrobot](https://redirect.github.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://redirect.github.com/colinhacks/zod/pull/2522) You can now allow *unqualified* (timezone-less) datetimes using the `local: true` flag. ```ts const schema = z.string().datetime({ local: true }); schema.parse("2022-01-01T12:00:00"); // OK ``` Plus, Zod now validates the day-of-month correctly to ensure no invalid dates (e.g. February 30th) pass validation. Thanks [@​szamanr](https://redirect.github.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://redirect.github.com/colinhacks/zod/pull/3391) ##### `z.string().base64()` Zod can now validate base64 strings. Thanks [@​StefanTerdell](https://redirect.github.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://redirect.github.com/colinhacks/zod/pull/3047) ```ts const schema = z.string().base64(); schema.parse("SGVsbG8gV29ybGQ="); // OK ``` ##### Improved discriminated unions The following can now be used as discriminator keys in `z.discriminatedUnion()`: - `ZodOptional` - `ZodNullable` - `ZodReadonly` - `ZodBranded` - `ZodCatch` ```ts const schema = z.discriminatedUnion("type", [ z.object({ type: z.literal("A").optional(), value: z.number() }), z.object({ type: z.literal("B").nullable(), value: z.string() }), z.object({ type: z.literal("C").readonly(), value: z.boolean() }), z.object({ type: z.literal("D").brand<"D">(), value: z.boolean() }), z.object({ type: z.literal("E").catch("E"), value: z.unknown() }), ]); ``` ##### Misc - feature: allow falsy error message by [@​fernandollisboa](https://redirect.github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://redirect.github.com/colinhacks/zod/pull/3178) - feature: add attribute message to enum validatiion by [@​fernandollisboa](https://redirect.github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://redirect.github.com/colinhacks/zod/pull/3169) #### 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. [https://github.com/colinhacks/zod/pull/3247](https://redirect.github.com/colinhacks/zod/pull/3247) ```diff + | ZodPipeline<any, any> + | ZodReadonly<any> + | ZodSymbol; ``` ##### Default generics in `ZodType` The third argument of the `ZodType` base class now defaults to `unknown`. This makes it easier to define recursive schemas and write generic functions that accept Zod schemas. ```diff - class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {} + class ZodType<Output = unknown, Def extends ZodTypeDef = ZodTypeDef, Input = unknown> {} ``` ##### Unrecognized keys in `.pick()` and `.omit()` This version fixes a bug where unknown keys were accidentally accepted in `.pick()` and `omit()`. This has been fixed, which could cause compiler errors in some user code. [https://github.com/colinhacks/zod/pull/3255](https://redirect.github.com/colinhacks/zod/pull/3255) ```ts z.object({ name: z.string() }).pick({ notAKey: true // no longer allowed }) ``` #### Bugfixes and performance - Bugfix: Enum.extract/exclude should not remove error mapping by [@​shaharke](https://redirect.github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3240](https://redirect.github.com/colinhacks/zod/pull/3240) - Added latest stable Node and TypeScript versions to test matrix for up-to-date testing. by [@​m10rten](https://redirect.github.com/m10rten) in [https://github.com/colinhacks/zod/pull/3278](https://redirect.github.com/colinhacks/zod/pull/3278) - Add types to `ZodFirstPartySchemaTypes` by [@​MatthijsMud](https://redirect.github.com/MatthijsMud) in [https://github.com/colinhacks/zod/pull/3247](https://redirect.github.com/colinhacks/zod/pull/3247) - fix: make `input` of `.required()` readonly by [@​KATT](https://redirect.github.com/KATT) in [https://github.com/colinhacks/zod/pull/3301](https://redirect.github.com/colinhacks/zod/pull/3301) - add never props to safe parse return types by [@​schicks](https://redirect.github.com/schicks) in [https://github.com/colinhacks/zod/pull/3295](https://redirect.github.com/colinhacks/zod/pull/3295) - Reporting errors of the preprocess that is the second property of object by [@​yukukotani](https://redirect.github.com/yukukotani) in [https://github.com/colinhacks/zod/pull/2912](https://redirect.github.com/colinhacks/zod/pull/2912) - Improve `addQuestionMarks`, fix [#​2184](https://redirect.github.com/colinhacks/zod/issues/2184) by [@​colinhacks](https://redirect.github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3352](https://redirect.github.com/colinhacks/zod/pull/3352) - fix for njs by [@​dvv](https://redirect.github.com/dvv) in [https://github.com/colinhacks/zod/pull/3063](https://redirect.github.com/colinhacks/zod/pull/3063) - only look in `src` for `bun test` by [@​rotu](https://redirect.github.com/rotu) in [https://github.com/colinhacks/zod/pull/3038](https://redirect.github.com/colinhacks/zod/pull/3038) - Restrict .pick()/.omit() mask type to only known properties by [@​petrovmiroslav](https://redirect.github.com/petrovmiroslav) in [https://github.com/colinhacks/zod/pull/3255](https://redirect.github.com/colinhacks/zod/pull/3255) - Make EnumValues generic by [@​IlyaSemenov](https://redirect.github.com/IlyaSemenov) in [https://github.com/colinhacks/zod/pull/2338](https://redirect.github.com/colinhacks/zod/pull/2338) - perf: avoid unnecessary error maps by [@​xuxucode](https://redirect.github.com/xuxucode) in [https://github.com/colinhacks/zod/pull/2532](https://redirect.github.com/colinhacks/zod/pull/2532) - Bugfix: z.record().parse should not filter out undefined values by [@​raik-casimiro](https://redirect.github.com/raik-casimiro) in [https://github.com/colinhacks/zod/pull/3251](https://redirect.github.com/colinhacks/zod/pull/3251) - Use Set.has instead of Array.indexOf for enum comparison (perf improvement) by [@​jmike](https://redirect.github.com/jmike) in [https://github.com/colinhacks/zod/pull/2659](https://redirect.github.com/colinhacks/zod/pull/2659) - \[2888] fix emails with single quotes failing validation by [@​Mansehej](https://redirect.github.com/Mansehej) in [https://github.com/colinhacks/zod/pull/2889](https://redirect.github.com/colinhacks/zod/pull/2889) - Bugfix: Commas are incorrectly allowed in email regex. by [@​mokemoko](https://redirect.github.com/mokemoko) in [https://github.com/colinhacks/zod/pull/3286](https://redirect.github.com/colinhacks/zod/pull/3286) - Fix regex in cuid2 validation to be what cuid2 library expects by [@​etareduction](https://redirect.github.com/etareduction) in [https://github.com/colinhacks/zod/pull/2961](https://redirect.github.com/colinhacks/zod/pull/2961) - Make depcruise pass by [@​rotu](https://redirect.github.com/rotu) in [https://github.com/colinhacks/zod/pull/3037](https://redirect.github.com/colinhacks/zod/pull/3037) - Faster ipv4 parsing by [@​colinhacks](https://redirect.github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3413](https://redirect.github.com/colinhacks/zod/pull/3413) #### Docs and ecosystem - chore: add pastel package to ecosystem by [@​jlarmstrongiv](https://redirect.github.com/jlarmstrongiv) in [https://github.com/colinhacks/zod/pull/2949](https://redirect.github.com/colinhacks/zod/pull/2949) - added required styles. by [@​Ansh101112](https://redirect.github.com/Ansh101112) in [https://github.com/colinhacks/zod/pull/2955](https://redirect.github.com/colinhacks/zod/pull/2955) - Feature/better chinese translate by [@​NWYLZW](https://redirect.github.com/NWYLZW) in [https://github.com/colinhacks/zod/pull/2988](https://redirect.github.com/colinhacks/zod/pull/2988) - Fix z.instanceof example by [@​alexnault](https://redirect.github.com/alexnault) in [https://github.com/colinhacks/zod/pull/3003](https://redirect.github.com/colinhacks/zod/pull/3003) - Add documentation to Zod enum exclude/extract functions by [@​shaharke](https://redirect.github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3044](https://redirect.github.com/colinhacks/zod/pull/3044) - Add docs for coercing nullish values by [@​rbuetzer](https://redirect.github.com/rbuetzer) in [https://github.com/colinhacks/zod/pull/3067](https://redirect.github.com/colinhacks/zod/pull/3067) - Adds `zod-dev` utility to eco-system section by [@​schalkventer](https://redirect.github.com/schalkventer) in [https://github.com/colinhacks/zod/pull/3113](https://redirect.github.com/colinhacks/zod/pull/3113) - Add zhttp library to docs by [@​evertdespiegeleer](https://redirect.github.com/evertdespiegeleer) in [https://github.com/colinhacks/zod/pull/3134](https://redirect.github.com/colinhacks/zod/pull/3134) - fixed Readme typo in NaNs example by [@​RashJrEdmund](https://redirect.github.com/RashJrEdmund) in [https://github.com/colinhacks/zod/pull/3181](https://redirect.github.com/colinhacks/zod/pull/3181) - adds zod-config library to the ecosystem by [@​alexmarqs](https://redirect.github.com/alexmarqs) in [https://github.com/colinhacks/zod/pull/3200](https://redirect.github.com/colinhacks/zod/pull/3200) - docs: update link and description of conform integration by [@​g1eny0ung](https://redirect.github.com/g1eny0ung) in [https://github.com/colinhacks/zod/pull/3238](https://redirect.github.com/colinhacks/zod/pull/3238) - Update README.md by [@​yugmade13](https://redirect.github.com/yugmade13) in [https://github.com/colinhacks/zod/pull/3317](https://redirect.github.com/colinhacks/zod/pull/3317) - feat: overhaul generics section of readme to include more details on z.ZodTypeAny usage by [@​braden-w](https://redirect.github.com/braden-w) in [https://github.com/colinhacks/zod/pull/3321](https://redirect.github.com/colinhacks/zod/pull/3321) - Fix small typos by [@​mmorearty](https://redirect.github.com/mmorearty) in [https://github.com/colinhacks/zod/pull/3336](https://redirect.github.com/colinhacks/zod/pull/3336) - docs: update Chinese docs and correct some of the typos by [@​jiechen257](https://redirect.github.com/jiechen257) in [https://github.com/colinhacks/zod/pull/3338](https://redirect.github.com/colinhacks/zod/pull/3338) - docs: improve chinese readme by [@​luckrnx09](https://redirect.github.com/luckrnx09) in [https://github.com/colinhacks/zod/pull/3371](https://redirect.github.com/colinhacks/zod/pull/3371) - Add java-to-zod in X to Zod section by [@​ivangreene](https://redirect.github.com/ivangreene) in [https://github.com/colinhacks/zod/pull/3385](https://redirect.github.com/colinhacks/zod/pull/3385) - docs: add `orval` to "X to Zod" ecosystems by [@​soartec-lab](https://redirect.github.com/soartec-lab) in [https://github.com/colinhacks/zod/pull/3397](https://redirect.github.com/colinhacks/zod/pull/3397) #### New Contributors - [@​jlarmstrongiv](https://redirect.github.com/jlarmstrongiv) made their first contribution in [https://github.com/colinhacks/zod/pull/2949](https://redirect.github.com/colinhacks/zod/pull/2949) - [@​Ansh101112](https://redirect.github.com/Ansh101112) made their first contribution in [https://github.com/colinhacks/zod/pull/2955](https://redirect.github.com/colinhacks/zod/pull/2955) - [@​NWYLZW](https://redirect.github.com/NWYLZW) made their first contribution in [https://github.com/colinhacks/zod/pull/2988](https://redirect.github.com/colinhacks/zod/pull/2988) - [@​alexnault](https://redirect.github.com/alexnault) made their first contribution in [https://github.com/colinhacks/zod/pull/3003](https://redirect.github.com/colinhacks/zod/pull/3003) - [@​shaharke](https://redirect.github.com/shaharke) made their first contribution in [https://github.com/colinhacks/zod/pull/3044](https://redirect.github.com/colinhacks/zod/pull/3044) - [@​rbuetzer](https://redirect.github.com/rbuetzer) made their first contribution in [https://github.com/colinhacks/zod/pull/3067](https://redirect.github.com/colinhacks/zod/pull/3067) - [@​schalkventer](https://redirect.github.com/schalkventer) made their first contribution in [https://github.com/colinhacks/zod/pull/3113](https://redirect.github.com/colinhacks/zod/pull/3113) - [@​evertdespiegeleer](https://redirect.github.com/evertdespiegeleer) made their first contribution in [https://github.com/colinhacks/zod/pull/3134](https://redirect.github.com/colinhacks/zod/pull/3134) - [@​RashJrEdmund](https://redirect.github.com/RashJrEdmund) made their first contribution in [https://github.com/colinhacks/zod/pull/3181](https://redirect.github.com/colinhacks/zod/pull/3181) - [@​alexmarqs](https://redirect.github.com/alexmarqs) made their first contribution in [https://github.com/colinhacks/zod/pull/3200](https://redirect.github.com/colinhacks/zod/pull/3200) - [@​JonnyBurger](https://redirect.github.com/JonnyBurger) made their first contribution in [https://github.com/colinhacks/zod/pull/3214](https://redirect.github.com/colinhacks/zod/pull/3214) - [@​fernandollisboa](https://redirect.github.com/fernandollisboa) made their first contribution in [https://github.com/colinhacks/zod/pull/3178](https://redirect.github.com/colinhacks/zod/pull/3178) - [@​g1eny0ung](https://redirect.github.com/g1eny0ung) made their first contribution in [https://github.com/colinhacks/zod/pull/3238](https://redirect.github.com/colinhacks/zod/pull/3238) - [@​m10rten](https://redirect.github.com/m10rten) made their first contribution in [https://github.com/colinhacks/zod/pull/3278](https://redirect.github.com/colinhacks/zod/pull/3278) - [@​MatthijsMud](https://redirect.github.com/MatthijsMud) made their first contribution in [https://github.com/colinhacks/zod/pull/3247](https://redirect.github.com/colinhacks/zod/pull/3247) - [@​yugmade13](https://redirect.github.com/yugmade13) made their first contribution in [https://github.com/colinhacks/zod/pull/3317](https://redirect.github.com/colinhacks/zod/pull/3317) - [@​braden-w](https://redirect.github.com/braden-w) made their first contribution in [https://github.com/colinhacks/zod/pull/3321](https://redirect.github.com/colinhacks/zod/pull/3321) - [@​mmorearty](https://redirect.github.com/mmorearty) made their first contribution in [https://github.com/colinhacks/zod/pull/3336](https://redirect.github.com/colinhacks/zod/pull/3336) - [@​schicks](https://redirect.github.com/schicks) made their first contribution in [https://github.com/colinhacks/zod/pull/3295](https://redirect.github.com/colinhacks/zod/pull/3295) - [@​yukukotani](https://redirect.github.com/yukukotani) made their first contribution in [https://github.com/colinhacks/zod/pull/2912](https://redirect.github.com/colinhacks/zod/pull/2912) - [@​jiechen257](https://redirect.github.com/jiechen257) made their first contribution in [https://github.com/colinhacks/zod/pull/3338](https://redirect.github.com/colinhacks/zod/pull/3338) - [@​luckrnx09](https://redirect.github.com/luckrnx09) made their first contribution in [https://github.com/colinhacks/zod/pull/3371](https://redirect.github.com/colinhacks/zod/pull/3371) - [@​dvv](https://redirect.github.com/dvv) made their first contribution in [https://github.com/colinhacks/zod/pull/3063](https://redirect.github.com/colinhacks/zod/pull/3063) - [@​rotu](https://redirect.github.com/rotu) made their first contribution in [https://github.com/colinhacks/zod/pull/3038](https://redirect.github.com/colinhacks/zod/pull/3038) - [@​petrovmiroslav](https://redirect.github.com/petrovmiroslav) made their first contribution in [https://github.com/colinhacks/zod/pull/3255](https://redirect.github.com/colinhacks/zod/pull/3255) - [@​ivoilic](https://redirect.github.com/ivoilic) made their first contribution in [https://github.com/colinhacks/zod/pull/2364](https://redirect.github.com/colinhacks/zod/pull/2364) - [@​telemakhos](https://redirect.github.com/telemakhos) made their first contribution in [https://github.com/colinhacks/zod/pull/3388](https://redirect.github.com/colinhacks/zod/pull/3388) - [@​bchrobot](https://redirect.github.com/bchrobot) made their first contribution in [https://github.com/colinhacks/zod/pull/2522](https://redirect.github.com/colinhacks/zod/pull/2522) - [@​szamanr](https://redirect.github.com/szamanr) made their first contribution in [https://github.com/colinhacks/zod/pull/3391](https://redirect.github.com/colinhacks/zod/pull/3391) - [@​ivangreene](https://redirect.github.com/ivangreene) made their first contribution in [https://github.com/colinhacks/zod/pull/3385](https://redirect.github.com/colinhacks/zod/pull/3385) - [@​xuxucode](https://redirect.github.com/xuxucode) made their first contribution in [https://github.com/colinhacks/zod/pull/2532](https://redirect.github.com/colinhacks/zod/pull/2532) - [@​raik-casimiro](https://redirect.github.com/raik-casimiro) made their first contribution in [https://github.com/colinhacks/zod/pull/3251](https://redirect.github.com/colinhacks/zod/pull/3251) - [@​jmike](https://redirect.github.com/jmike) made their first contribution in [https://github.com/colinhacks/zod/pull/2659](https://redirect.github.com/colinhacks/zod/pull/2659) - [@​Mansehej](https://redirect.github.com/Mansehej) made their first contribution in [https://github.com/colinhacks/zod/pull/2889](https://redirect.github.com/colinhacks/zod/pull/2889) - [@​mokemoko](https://redirect.github.com/mokemoko) made their first contribution in [https://github.com/colinhacks/zod/pull/3286](https://redirect.github.com/colinhacks/zod/pull/3286) - [@​etareduction](https://redirect.github.com/etareduction) made their first contribution in [https://github.com/colinhacks/zod/pull/2961](https://redirect.github.com/colinhacks/zod/pull/2961) - [@​mastermatt](https://redirect.github.com/mastermatt) made their first contribution in [https://github.com/colinhacks/zod/pull/3265](https://redirect.github.com/colinhacks/zod/pull/3265) - [@​soartec-lab](https://redirect.github.com/soartec-lab) made their first contribution in [https://github.com/colinhacks/zod/pull/3397](https://redirect.github.com/colinhacks/zod/pull/3397) **Full Changelog**: colinhacks/zod@v3.22.4...v3.23.0 ### [`v3.22.5`](https://redirect.github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0) ### [`v3.22.4`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.22.4) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.22.3...v3.22.4) #### Commits: - [`d931ea3`](https://redirect.github.com/colinhacks/zod/commit/d931ea3f0f15a6ae64f5f68e3c03912dffb2269d) Lint - [`8e634bd`](https://redirect.github.com/colinhacks/zod/commit/8e634bd600093b7161487bed705279c892395118) Fix prettier - [`4018d88`](https://redirect.github.com/colinhacks/zod/commit/4018d88f0e94992b2987428c4fda387b99ae2a53) docs: add [@​sanity-typed/zod](https://redirect.github.com/sanity-typed/zod) to ecosystem ([#​2731](https://redirect.github.com/colinhacks/zod/issues/2731)) - [`15ba5a4`](https://redirect.github.com/colinhacks/zod/commit/15ba5a4d4cb5be5af23771de0ba1346b4ba20a0e) docs: add `zod-sandbox` to README ecosystem links ([#​2707](https://redirect.github.com/colinhacks/zod/issues/2707)) - [`699ccae`](https://redirect.github.com/colinhacks/zod/commit/699ccae13b875d4fcadac268fd789c93b6ce8aef) Export jsdoc with `@deprecated` when building ([#​2717](https://redirect.github.com/colinhacks/zod/issues/2717)) - [`dfe3719`](https://redirect.github.com/colinhacks/zod/commit/dfe3719eae250ab3eca2d276da6c292867899cc6) Fix sanity-typed links ([#​2840](https://redirect.github.com/colinhacks/zod/issues/2840)) - [`cd7991e`](https://redirect.github.com/colinhacks/zod/commit/cd7991e04a550868bfcb5b5d46e5eb5bc7edf5f3) fix ulid regex ([#​2225](https://redirect.github.com/colinhacks/zod/issues/2225)) - [`7cb4ba2`](https://redirect.github.com/colinhacks/zod/commit/7cb4ba2f85dd6b28290dda5de80ed54dfd2a793c) Remove stalebot - [`9340fd5`](https://redirect.github.com/colinhacks/zod/commit/9340fd51e48576a75adc919bff65dbc4a5d4c99b) Lazy emojiRegex - [`e7a9b9b`](https://redirect.github.com/colinhacks/zod/commit/e7a9b9b3033991be6b4225f1be21da39c250bbb0) 3.22.4 ### [`v3.22.3`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.22.3) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.22.2...v3.22.3) ##### Commits: - [`1e23990`](https://redirect.github.com/colinhacks/zod/commit/1e23990bcdd33d1e81b31e40e77a031fcfd87ce1) Commit - [`9bd3879`](https://redirect.github.com/colinhacks/zod/commit/9bd3879b482f139fd03d5025813ee66a04195cdd) docs: remove obsolete text about readonly types ([#​2676](https://redirect.github.com/colinhacks/zod/issues/2676)) - [`f59be09`](https://redirect.github.com/colinhacks/zod/commit/f59be093ec21430d9f32bbcb628d7e39116adf34) clarify datetime ISO 8601 ([#​2673](https://redirect.github.com/colinhacks/zod/issues/2673)) - [`64dcc8e`](https://redirect.github.com/colinhacks/zod/commit/64dcc8e2b16febe48fa8e3c82c47c92643e6c9e3) Update sponsors - [`18115a8`](https://redirect.github.com/colinhacks/zod/commit/18115a8f128680b4526df58ce96deab7dce93b93) Formatting - [`28c1927`](https://redirect.github.com/colinhacks/zod/commit/28c19273658b164c53c149785fa7a8187c428ad4) Update sponsors - [`ad2ee9c`](https://redirect.github.com/colinhacks/zod/commit/ad2ee9ccf723c4388158ff6b8669c2a6cdc85643) 2718 Updated Custom Schemas documentation example to use type narrowing ([#​2778](https://redirect.github.com/colinhacks/zod/issues/2778)) - [`ae0f7a2`](https://redirect.github.com/colinhacks/zod/commit/ae0f7a2c15e7741ee1b23c03a3bfb9acebd86551) docs: update ref to discriminated-unions docs ([#​2485](https://redirect.github.com/colinhacks/zod/issues/2485)) - [`2ba00fe`](https://redirect.github.com/colinhacks/zod/commit/2ba00fe2377f4d53947a84b8cdb314a63bbd6dd4) \[2609] fix ReDoS vulnerability in email regex ([#​2824](https://redirect.github.com/colinhacks/zod/issues/2824)) - [`1e61d76`](https://redirect.github.com/colinhacks/zod/commit/1e61d76cdec05de9271fc0df58798ddf9ce94923) 3.22.3 ### [`v3.22.2`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.22.2) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.22.1...v3.22.2) ##### Commits: - [`13d9e6b`](https://redirect.github.com/colinhacks/zod/commit/13d9e6bda286cbd4c1b177171273695d8309e5de) Fix lint - [`0d49f10`](https://redirect.github.com/colinhacks/zod/commit/0d49f10b3c25a8e4cbb6534cc0773b195c56d06d) docs: add typeschema to ecosystem ([#​2626](https://redirect.github.com/colinhacks/zod/issues/2626)) - [`8e4af7b`](https://redirect.github.com/colinhacks/zod/commit/8e4af7b56df6f2e3daf0dd825b986f1d963025ce) X to Zod: add app.quicktype.io ([#​2668](https://redirect.github.com/colinhacks/zod/issues/2668)) - [`792b3ef`](https://redirect.github.com/colinhacks/zod/commit/792b3ef0d41c144cd10641c6966b98dae1222d82) Fix superrefine types ### [`v3.22.1`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.22.1) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.22.0...v3.22.1) #### Commits: Fix handing of `this` in ZodFunction schemas. The parse logic for function schemas now requires the `Reflect` API. ```ts const methodObject = z.object({ property: z.number(), method: z.function().args(z.string()).returns(z.number()), }); const methodInstance = { property: 3, method: function (s: string) { return s.length + this.property; }, }; const parsed = methodObject.parse(methodInstance); parsed.method("length=8"); // => 11 (8 length + 3 property) ``` - [`932cc47`](https://redirect.github.com/colinhacks/zod/commit/932cc472d2e66430d368a409b8d251909d7d8d21) Initial prototype fix for issue [#​2651](https://redirect.github.com/colinhacks/zod/issues/2651) ([#​2652](https://redirect.github.com/colinhacks/zod/issues/2652)) - [`0a055e7`](https://redirect.github.com/colinhacks/zod/commit/0a055e726ac210ef6efc69aa70cd2491767f6060) 3.22.1 ### [`v3.22.0`](https://redirect.github.com/colinhacks/zod/releases/tag/v3.22.0) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v3.21.4...v3.22.0) #### `ZodReadonly` This release introduces `ZodReadonly` and the `.readonly()` method on `ZodType`. Calling `.readonly()` on any schema returns a `ZodReadonly` instance that wraps the original schema. The new schema parses all inputs using the original schema, then calls `Object.freeze()` on the result. The inferred type is also marked as `readonly`. ```ts const schema = z.object({ name: string }).readonly(); type schema = z.infer<typeof schema>; // Readonly<{name: string}> const result = schema.parse({ name: "fido" }); result.name = "simba"; // error ``` The inferred type uses TypeScript's built-in readonly types when relevant. ```ts z.array(z.string()).readonly(); // readonly string[] z.tuple([z.string(), z.number()]).readonly(); // readonly [string, number] z.map(z.string(), z.date()).readonly(); // ReadonlyMap<string, Date> z.set(z.string()).readonly(); // ReadonlySet<Promise<string>> ``` #### Commits: - [`6dad907`](https://redirect.github.com/colinhacks/zod/commit/6dad90785398885f7b058f5c0760d5ae5476b833) Comments - [`56ace68`](https://redirect.github.com/colinhacks/zod/commit/56ace682e4cc89132c034a3ae2c13b2d5b1a0115) Fix deno test - [`3809d54`](https://redirect.github.com/colinhacks/zod/commit/3809d54fc8c5dd0a0ce367bd2575fe3fdadf087d) Add superforms - [`d1ad522`](https://redirect.github.com/colinhacks/zod/commit/d1ad5221900af640bc3093a2fb0476ec0c94953e) Add transloadit - [`a3bb701`](https://redirect.github.com/colinhacks/zod/commit/a3bb701757127ffe05e773a2e449136b9b7efcb3) Testing on Typescript 5.0 ([#​2221](https://redirect.github.com/colinhacks/zod/issues/2221)) - [`51e14be`](https://redirect.github.com/colinhacks/zod/commit/51e14beeab2f469fcbf18e3df44653e1643f5487) docs: update deprecated link ([#​2219](https://redirect.github.com/colinhacks/zod/issues/2219)) - [`a263814`](https://redirect.github.com/colinhacks/zod/commit/a263814fc430db8d47430cd2884d2cea6b11c671) fixed Datetime & IP TOC links - [`502384e`](https://redirect.github.com/colinhacks/zod/commit/502384e56fe2b1f8173735df6c3b0d41bce04edc) docs: add mobx-zod-form to form integrations ([#​2299](https://redirect.github.com/colinhacks/zod/issues/2299)) - [`a8be450`](https://redirect.github.com/colinhacks/zod/commit/a8be4500851923aa865e009fe9c2855e80482047) docs: Add `zocker` to Ecosystem section ([#​2416](https://redirect.github.com/colinhacks/zod/issues/2416)) - [`15de22a`](https://redirect.github.com/colinhacks/zod/commit/15de22a3ba6144c7d8d2276e8e56174bcdfa7225) Allow subdomains and hyphens in `ZodString.email` ([#​2274](https://redirect.github.com/colinhacks/zod/issues/2274)) - [`00f5783`](https://redirect.github.com/colinhacks/zod/commit/00f5783602ccbe423deb0dbd76ecf13a276bc54d) Add `zod-openapi` to ecosystem ([#​2434](https://redirect.github.com/colinhacks/zod/issues/2434)) - [`0a17340`](https://redirect.github.com/colinhacks/zod/commit/0a17340e9fc4b909d10ca3687b6bc6454903ff21) docs: fix minor typo ([#​2439](https://redirect.github.com/colinhacks/zod/issues/2439)) - [`60a2134`](https://redirect.github.com/colinhacks/zod/commit/60a21346086d32ca9f39efc2771f5db37c835c03) Add masterborn - [`0a90ed1`](https://redirect.github.com/colinhacks/zod/commit/0a90ed1461dafa62ff50ce0d5d5434fd4a2a4a20) chore: move `exports.types` field to first spot @​ package.json. ([#​2443](https://redirect.github.com/colinhacks/zod/issues/2443)) - [`67f35b1`](https://redirect.github.com/colinhacks/zod/commit/67f35b16692ca33fd48adfec9ae83b9514f8a4b7) docs: allow Zod to be used in dev tools at site ([#​2432](https://redirect.github.com/colinhacks/zod/issues/2432)) - [`6795c57`](https://redirect.github.com/colinhacks/zod/commit/6795c574b1d34f6e95ae891f96d8b219b98ace92) Fix not working Deno doc link. ([#​2428](https://redirect.github.com/colinhacks/zod/issues/2428)) - [`37e9c55`](https://redirect.github.com/colinhacks/zod/commit/37e9c550460e4edd144da90d903e878c119c5cc1) Generalize uuidRegex - [`0969950`](https://redirect.github.com/colinhacks/zod/commit/09699501ff6218b3b0a7e382eca3c02a8226ce13) adds ctx to preprocess ([#​2426](https://redirect.github.com/colinhacks/zod/issues/2426)) - [`af08390`](https://redirect.github.com/colinhacks/zod/commit/af08390139cf9fd4fc9e398b60a39191bf224076) fix: super refinement function types ([#​2420](https://redirect.github.com/colinhacks/zod/issues/2420)) - [`36fef58`](https://redirect.github.com/colinhacks/zod/commit/36fef58410f4b2c9e79edabae2fc567a4aee13a7) Make email regex reasonable ([#​2157](https://redirect.github.com/colinhacks/zod/issues/2157)) - [`f627d14`](https://redirect.github.com/colinhacks/zod/commit/f627d14d3bfe3a680ac0d54705b2e63daa912aed) Document canary - [`e06321c`](https://redirect.github.com/colinhacks/zod/commit/e06321c15d22082e47c7c111a92ec7b3e104c644) docs: add tapiduck to API libraries ([#​2410](https://redirect.github.com/colinhacks/zod/issues/2410)) - [`11e507c`](https://redirect.github.com/colinhacks/zod/commit/11e507c4d3bf4ad3ab2057a0122168ed0048a2c4) docs: add ts as const example in zod enums ([#​2412](https://redirect.github.com/colinhacks/zod/issues/2412)) - [`5427565`](https://redirect.github.com/colinhacks/zod/commit/5427565c347a14056bc60e3ffd800b98753952bc) docs: add zod-fixture to mocking ecosystem ([#​2409](https://redirect.github.com/colinhacks/zod/issues/2409)) - [`d3bf7e6`](https://redirect.github.com/colinhacks/zod/commit/d3bf7e60a8eb706c4c63a9a91fd66565b82883cf) docs: add `zodock` to mocking ecosystem ([#​2394](https://redirect.github.com/colinhacks/zod/issues/2394)) - [`2270ae5`](https://redirect.github.com/colinhacks/zod/commit/2270ae563f7f14bed770f75d9c252880794fa71f) remove "as any" casts in createZodEnum ([#​2332](https://redirect.github.com/colinhacks/zod/issues/2332)) - [`00bdd0a`](https://redirect.github.com/colinhacks/zod/commit/00bdd0a7ffdf495af14e67ae1396c85a282c38dd) fix proto pollution vulnerability ([#​2239](https://redirect.github.com/colinhacks/zod/issues/2239)) - [`a3c5256`](https://redirect.github.com/colinhacks/zod/commit/a3c525658bc43edf40747a99b8f882d8d3d1e0c7) Fix error_handling unrecognized_keys example - [`4f75cbc`](https://redirect.github.com/colinhacks/zod/commit/4f75cbc682199a5411189f9cd9abba9af4924746) Adds getters to Map for key + value ([#​2356](https://redirect.github.com/colinhacks/zod/issues/2356)) - [`ca7b032`](https://redirect.github.com/colinhacks/zod/commit/ca7b03222764496d72085b1178fa22f4a57fe579) FMC ([#​2346](https://redirect.github.com/colinhacks/zod/issues/2346)) - [`6fec8bd`](https://redirect.github.com/colinhacks/zod/commit/6fec8bd3407f463f157522a3979b4d202870ba4c) docs: fix typo in link fragment ([#​2329](https://redirect.github.com/colinhacks/zod/issues/2329)) - [`16f90bd`](https://redirect.github.com/colinhacks/zod/commit/16f90bd22b465aca9a1fbad09248d80aa93fd824) Update README.md - [`2c80250`](https://redirect.github.com/colinhacks/zod/commit/2c802507d92d2d2e15be959695b1de78b896bfcb) Update readme - [`eaf64e0`](https://redirect.github.com/colinhacks/zod/commit/eaf64e09ba1a87dd6bf348fb97061894a01242d2) Update sponsors - [`c576311`](https://redirect.github.com/colinhacks/zod/commit/c5763112e2912390f3317d738e4261fa8747494e) Update readme - [`5e23b4f`](https://redirect.github.com/colinhacks/zod/commit/5e23b4fae4715c7391f9ceb4369421a034851b4c) Add `*.md` pattern to prettier ([#​2476](https://redirect.github.com/colinhacks/zod/issues/2476)) - [`898dced`](https://redirect.github.com/colinhacks/zod/commit/898dced470f1045b5469543abd2f427a713d93eb) Revamp tests - [`6309322`](https://redirect.github.com/colinhacks/zod/commit/6309322a28545e316299f8b9a36f43132d347300) Update test runners - [`c0aece1`](https://redirect.github.com/colinhacks/zod/commit/c0aece1672d1442d69ce1991142af8f16ed20ecb) Add vitest config - [`73a5610`](https://redirect.github.com/colinhacks/zod/commit/73a5610186c413872153e8dcac76c4c4f23dfe4e) Update script - [`8d8e1a2`](https://redirect.github.com/colinhacks/zod/commit/8d8e1a2d306cecaf3d8cb88f32fe3e130a834f9f) Fix deno test bug - [`9eb2508`](https://redirect.github.com/colinhacks/zod/commit/9eb2508fac78cc36faefd050e9616bb6d34814c1) Clean up configs - [`cfbc7b3`](https://redirect.github.com/colinhacks/zod/commit/cfbc7b3f6714ced250dd4053822faf472bf1828e) Fix root jest config - [`8677f68`](https://redirect.github.com/colinhacks/zod/commit/8677f688b0ab1bb5991e90744f46a15082772bd6) docs(comparison-yup): Yup added partial() and deepPartial() in v1 ([#​2603](https://redirect.github.com/colinhacks/zod/issues/2603)) - [`fb00edd`](https://redirect.github.com/colinhacks/zod/commit/fb00edd04ca338b8d791a96dead161076538c6c2) docs: add VeeValidate form library for Vue.js ([#​2578](https://redirect.github.com/colinhacks/zod/issues/2578)) - [`ab8e717`](https://redirect.github.com/colinhacks/zod/commit/ab8e71793431eeb163613007c134132e6c2ab078) docs: fix typo in z.object ([#​2570](https://redirect.github.com/colinhacks/zod/issues/2570)) - [`d870407`](https://redirect.github.com/colinhacks/zod/commit/d870407a020f9518fbae662f9f48a9aba005a3e2) docs: fix incomplete Records example ([#​2579](https://redirect.github.com/colinhacks/zod/issues/2579)) - [`5adae24`](https://redirect.github.com/colinhacks/zod/commit/5adae24e9b2fc98fc679defa8f78e4142d4c3451) docs: add conform form integration ([#​2577](https://redirect.github.com/colinhacks/zod/issues/2577)) - [`8b8ab3e`](https://redirect.github.com/colinhacks/zod/commit/8b8ab3e79691ebafbb9aac3ce089eaf0dcd6d8fe) Update README.md ([#​2562](https://redirect.github.com/colinhacks/zod/issues/2562)) - [`6aab901`](https://redirect.github.com/colinhacks/zod/commit/6aab9016873c12be08d19bcc097b3e5ba4c9d6fe) fix typo test name ([#​2542](https://redirect.github.com/colinhacks/zod/issues/2542)) - [`81a89f5`](https://redirect.github.com/colinhacks/zod/commit/81a89f593f4d6b05f770bbb3ad0fc98075f468dd) Update nullish documentation to correct chaining order ([#​2457](https://redirect.github.com/colinhacks/zod/issues/2457)) - [`78a4090`](https://redirect.github.com/colinhacks/zod/commit/78a409012a4dc34a455f5c4a7e028ca47c921e1b) docs: update comparison with `runtypes` ([#​2536](https://redirect.github.com/colinhacks/zod/issues/2536)) - [`1ecd624`](https://redirect.github.com/colinhacks/zod/commit/1ecd6241ef97b33ce229b49f1346ffeee5d0ba74) Fix prettier - [`981d4b5`](https://redirect.github.com/colinhacks/zod/commit/981d4b5e272e7e35ff44a31fbb5e8e90594b1933) Add ZodReadonly ([#​2634](https://redirect.github.com/colinhacks/zod/issues/2634)) - [`fba438c`](https://redirect.github.com/colinhacks/zod/commit/fba438cddea800b081a15aefc8b1efea2eccf7af) 3.22.0 </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/creatorsgarten/contentsgarten). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS41OC4xIiwidXBkYXRlZEluVmVyIjoiMzkuNTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information