Skip to content
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

docs: update link and description of conform integration #3238

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

g1eny0ung
Copy link
Contributor

As I was browsing through the documentation I found that the conform link was out of date (404).

Copy link

netlify bot commented Feb 14, 2024

Deploy Preview for guileless-rolypoly-866f8a ready!

Name Link
🔨 Latest commit 293ca86
🔍 Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/65cd5d5b6b495a00085c1e9e
😎 Deploy Preview https://deploy-preview-3238--guileless-rolypoly-866f8a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@colinhacks colinhacks merged commit 76c8ace into colinhacks:master Feb 15, 2024
5 of 6 checks passed
@colinhacks
Copy link
Owner

Thanks!

@g1eny0ung g1eny0ung deleted the g1eny0ung-patch-1 branch February 15, 2024 14:28
@colinhacks colinhacks mentioned this pull request Apr 21, 2024
renovate bot referenced this pull request in ariakit/ariakit Apr 21, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.5` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ariakit/ariakit).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in ziyadedher/ziyadedher Apr 21, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.5` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ziyadedher/ziyadedher).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in inabagumi/shinju-date Apr 21, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`^3.22.5` ->
`^3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/inabagumi/shinju-date).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in fwouts/previewjs Apr 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`^3.22.5` ->
`^3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/fwouts/previewjs).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot referenced this pull request in weareinreach/TransMascFutures Apr 22, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm)) | packageManager | patch | [`9.0.4` -> `9.0.5`](https://renovatebot.com/diffs/npm/pnpm/9.0.4/9.0.5) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/pnpm/pnpm/badge)](https://securityscorecards.dev/viewer/?uri=github.com/pnpm/pnpm) |
| [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm)) | engines | patch | [`9.0.4` -> `9.0.5`](https://renovatebot.com/diffs/npm/pnpm/9.0.4/9.0.5) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/pnpm/pnpm/badge)](https://securityscorecards.dev/viewer/?uri=github.com/pnpm/pnpm) |
| [type-fest](https://github.com/sindresorhus/type-fest) | devDependencies | minor | [`4.15.0` -> `4.16.0`](https://renovatebot.com/diffs/npm/type-fest/4.15.0/4.16.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/sindresorhus/type-fest/badge)](https://securityscorecards.dev/viewer/?uri=github.com/sindresorhus/type-fest) |
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | dependencies | minor | [`3.22.5` -> `3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/colinhacks/zod/badge)](https://securityscorecards.dev/viewer/?uri=github.com/colinhacks/zod) |

---

### Release Notes

<details>
<summary>pnpm/pnpm (pnpm)</summary>

### [`v9.0.5`](https://github.com/pnpm/pnpm/compare/v9.0.4...v9.0.5)

[Compare Source](https://github.com/pnpm/pnpm/compare/v9.0.4...v9.0.5)

</details>

<details>
<summary>sindresorhus/type-fest (type-fest)</summary>

### [`v4.16.0`](https://github.com/sindresorhus/type-fest/releases/tag/v4.16.0)

[Compare Source](https://github.com/sindresorhus/type-fest/compare/v4.15.0...v4.16.0)

##### New types

-   [`IsInteger`](https://github.com/sindresorhus/type-fest/blob/main/source/is-integer.d.ts)
-   [`IsFloat`](https://github.com/sindresorhus/type-fest/blob/main/source/is-float.d.ts)

##### Fixes

-   `Integer`: Fix handling of some edge-cases ([#&#8203;857](https://github.com/sindresorhus/type-fest/issues/857))  [`f5b09de`](https://github.com/sindresorhus/type-fest/commit/f5b09de)
-   `Float`: Fix handling of some edge-cases ([#&#8203;857](https://github.com/sindresorhus/type-fest/issues/857))  [`f5b09de`](https://github.com/sindresorhus/type-fest/commit/f5b09de)

</details>

<details>
<summary>colinhacks/zod (zod)</summary>

### [`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare Source](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;mastermatt](https://github.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://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 [@&#8203;szamanr](https://github.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks [@&#8203;StefanTerdell](https://github.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://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 [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   feature: add attribute message to enum validatiion by [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://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://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://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 [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
-   Added latest stable Node and TypeScript versions to test matrix for up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten) in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   Add types to `ZodFirstPartySchemaTypes` by [@&#8203;MatthijsMud](https://github.com/MatthijsMud) in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   fix: make `input` of `.required()` readonly by [@&#8203;KATT](https://github.com/KATT) in [https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
-   add never props to safe parse return types by [@&#8203;schicks](https://github.com/schicks) in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   Reporting errors of the preprocess that is the second property of object by [@&#8203;yukukotani](https://github.com/yukukotani) in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   Improve `addQuestionMarks`, fix [#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
-   fix for njs by [@&#8203;dvv](https://github.com/dvv) in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   only look in `src` for `bun test` by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   Restrict .pick()/.omit() mask type to only known properties by [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   Make EnumValues generic by [@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in [https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
-   perf: avoid unnecessary error maps by [@&#8203;xuxucode](https://github.com/xuxucode) in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   Bugfix: z.record().parse should not filter out undefined values by [@&#8203;raik-casimiro](https://github.com/raik-casimiro) in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   Use Set.has instead of Array.indexOf for enum comparison (perf improvement) by [@&#8203;jmike](https://github.com/jmike) in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   \[2888] fix emails with single quotes failing validation by [@&#8203;Mansehej](https://github.com/Mansehej) in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   Bugfix: Commas are incorrectly allowed in email regex. by [@&#8203;mokemoko](https://github.com/mokemoko) in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   Fix regex in cuid2 validation to be what cuid2 library expects by [@&#8203;etareduction](https://github.com/etareduction) in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
-   Faster ipv4 parsing by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

-   chore: add pastel package to ecosystem by [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   added required styles. by [@&#8203;Ansh101112](https://github.com/Ansh101112) in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   Feature/better chinese translate by [@&#8203;NWYLZW](https://github.com/NWYLZW) in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   Fix z.instanceof example by [@&#8203;alexnault](https://github.com/alexnault) in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   Add documentation to Zod enum exclude/extract functions by [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   Add docs for coercing nullish values by [@&#8203;rbuetzer](https://github.com/rbuetzer) in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   Adds `zod-dev` utility to eco-system section by [@&#8203;schalkventer](https://github.com/schalkventer) in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   Add zhttp library to docs by [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   fixed Readme typo in NaNs example by [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   adds zod-config library to the ecosystem by [@&#8203;alexmarqs](https://github.com/alexmarqs) in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   docs: update link and description of conform integration by [@&#8203;g1eny0ung](https://github.com/g1eny0ung) in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   Update README.md by [@&#8203;yugmade13](https://github.com/yugmade13) in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   feat: overhaul generics section of readme to include more details on z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w) in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty) in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   docs: update Chinese docs and correct some of the typos by [@&#8203;jiechen257](https://github.com/jiechen257) in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   docs: improve chinese readme by [@&#8203;luckrnx09](https://github.com/luckrnx09) in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   Add java-to-zod in X to Zod section by [@&#8203;ivangreene](https://github.com/ivangreene) in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   docs: add `orval` to "X to Zod" ecosystems by [@&#8203;soartec-lab](https://github.com/soartec-lab) in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

-   [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their first contribution in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first contribution in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first contribution in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   [@&#8203;alexnault](https://github.com/alexnault) made their first contribution in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   [@&#8203;shaharke](https://github.com/shaharke) made their first contribution in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first contribution in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   [@&#8203;schalkventer](https://github.com/schalkventer) made their first contribution in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) made their first contribution in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their first contribution in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first contribution in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their first contribution in [https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
-   [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made their first contribution in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first contribution in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   [@&#8203;m10rten](https://github.com/m10rten) made their first contribution in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their first contribution in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   [@&#8203;yugmade13](https://github.com/yugmade13) made their first contribution in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   [@&#8203;braden-w](https://github.com/braden-w) made their first contribution in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   [@&#8203;mmorearty](https://github.com/mmorearty) made their first contribution in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   [@&#8203;schicks](https://github.com/schicks) made their first contribution in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   [@&#8203;yukukotani](https://github.com/yukukotani) made their first contribution in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   [@&#8203;jiechen257](https://github.com/jiechen257) made their first contribution in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first contribution in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   [@&#8203;dvv](https://github.com/dvv) made their first contribution in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   [@&#8203;rotu](https://github.com/rotu) made their first contribution in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made their first contribution in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   [@&#8203;ivoilic](https://github.com/ivoilic) made their first contribution in [https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
-   [@&#8203;telemakhos](https://github.com/telemakhos) made their first contribution in [https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
-   [@&#8203;bchrobot](https://github.com/bchrobot) made their first contribution in [https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
-   [@&#8203;szamanr](https://github.com/szamanr) made their first contribution in [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
-   [@&#8203;ivangreene](https://github.com/ivangreene) made their first contribution in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   [@&#8203;xuxucode](https://github.com/xuxucode) made their first contribution in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their first contribution in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   [@&#8203;jmike](https://github.com/jmike) made their first contribution in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   [@&#8203;Mansehej](https://github.com/Mansehej) made their first contribution in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   [@&#8203;mokemoko](https://github.com/mokemoko) made their first contribution in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   [@&#8203;etareduction](https://github.com/etareduction) made their first contribution in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   [@&#8203;mastermatt](https://github.com/mastermatt) made their first contribution in [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
-   [@&#8203;soartec-lab](https://github.com/soartec-lab) made their first contribution in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**: colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday,before 4am on Thursday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/weareinreach/TransMascFutures).



PR-URL: #406
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot referenced this pull request in weareinreach/InReach Apr 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence | Type |
Update | OpenSSF |
|---|---|---|---|---|---|---|---|---|
|
[@iconify-json/simple-icons](https://icon-sets.iconify.design/simple-icons/)
| [`1.1.99` ->
`1.1.100`](https://renovatebot.com/diffs/npm/@iconify-json%2fsimple-icons/1.1.99/1.1.100)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@iconify-json%2fsimple-icons/1.1.100?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@iconify-json%2fsimple-icons/1.1.100?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@iconify-json%2fsimple-icons/1.1.99/1.1.100?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@iconify-json%2fsimple-icons/1.1.99/1.1.100?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | patch | |
| [@snaplet/seed](https://snaplet.dev/seed) | [`0.94.1` ->
`0.95.0`](https://renovatebot.com/diffs/npm/@snaplet%2fseed/0.94.1/0.95.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@snaplet%2fseed/0.95.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@snaplet%2fseed/0.95.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@snaplet%2fseed/0.94.1/0.95.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@snaplet%2fseed/0.94.1/0.95.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | minor | |
|
[libphonenumber-js](https://gitlab.com/catamphetamine/libphonenumber-js)
| [`1.10.60` ->
`1.10.61`](https://renovatebot.com/diffs/npm/libphonenumber-js/1.10.60/1.10.61)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/libphonenumber-js/1.10.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/libphonenumber-js/1.10.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/libphonenumber-js/1.10.60/1.10.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/libphonenumber-js/1.10.60/1.10.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | patch | |
|
[libphonenumber-js](https://gitlab.com/catamphetamine/libphonenumber-js)
| [`1.10.60` ->
`1.10.61`](https://renovatebot.com/diffs/npm/libphonenumber-js/1.10.60/1.10.61)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/libphonenumber-js/1.10.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/libphonenumber-js/1.10.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/libphonenumber-js/1.10.60/1.10.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/libphonenumber-js/1.10.60/1.10.61?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | patch | |
| [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm)) |
[`9.0.4` -> `9.0.5`](https://renovatebot.com/diffs/npm/pnpm/9.0.4/9.0.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/pnpm/9.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pnpm/9.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pnpm/9.0.4/9.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pnpm/9.0.4/9.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| packageManager | patch | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/pnpm/pnpm/badge)](https://securityscorecards.dev/viewer/?uri=github.com/pnpm/pnpm)
|
| [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm)) |
[`9.0.4` -> `9.0.5`](https://renovatebot.com/diffs/npm/pnpm/9.0.4/9.0.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/pnpm/9.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/pnpm/9.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/pnpm/9.0.4/9.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/pnpm/9.0.4/9.0.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| engines | patch | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/pnpm/pnpm/badge)](https://securityscorecards.dev/viewer/?uri=github.com/pnpm/pnpm)
|
|
[react-phone-number-input](https://gitlab.com/catamphetamine/react-phone-number-input)
| [`3.3.12` ->
`3.4.0`](https://renovatebot.com/diffs/npm/react-phone-number-input/3.3.12/3.4.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-phone-number-input/3.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-phone-number-input/3.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-phone-number-input/3.3.12/3.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-phone-number-input/3.3.12/3.4.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor | |
| [remeda](https://github.com/remeda/remeda) | [`1.60.1` ->
`1.61.0`](https://renovatebot.com/diffs/npm/remeda/1.60.1/1.61.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/remeda/1.61.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/remeda/1.61.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/remeda/1.60.1/1.61.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/remeda/1.60.1/1.61.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/remeda/remeda/badge)](https://securityscorecards.dev/viewer/?uri=github.com/remeda/remeda)
|
| [type-fest](https://github.com/sindresorhus/type-fest) | [`4.15.0`
-> `4.16.0`](https://renovatebot.com/diffs/npm/type-fest/4.15.0/4.16.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/type-fest/4.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/type-fest/4.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/type-fest/4.15.0/4.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/type-fest/4.15.0/4.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | minor | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/sindresorhus/type-fest/badge)](https://securityscorecards.dev/viewer/?uri=github.com/sindresorhus/type-fest)
|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.5` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| devDependencies | minor | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/colinhacks/zod/badge)](https://securityscorecards.dev/viewer/?uri=github.com/colinhacks/zod)
|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.5` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor | [![OpenSSF
Scorecard](https://api.securityscorecards.dev/projects/github.com/colinhacks/zod/badge)](https://securityscorecards.dev/viewer/?uri=github.com/colinhacks/zod)
|

---

### Release Notes

<details>
<summary>catamphetamine/libphonenumber-js (libphonenumber-js)</summary>

###
[`v1.10.61`](https://gitlab.com/catamphetamine/libphonenumber-js/compare/v1.10.60...8e9808e3d908cee0e34600401a95367475de5a13)

[Compare
Source](https://gitlab.com/catamphetamine/libphonenumber-js/compare/v1.10.60...v1.10.61)

</details>

<details>
<summary>pnpm/pnpm (pnpm)</summary>

### [`v9.0.5`](https://github.com/pnpm/pnpm/compare/v9.0.4...v9.0.5)

[Compare Source](https://github.com/pnpm/pnpm/compare/v9.0.4...v9.0.5)

</details>

<details>
<summary>catamphetamine/react-phone-number-input
(react-phone-number-input)</summary>

###
[`v3.4.0`](https://gitlab.com/catamphetamine/react-phone-number-input/blob/HEAD/CHANGELOG.md#340--22042024)

[Compare
Source](https://gitlab.com/catamphetamine/react-phone-number-input/compare/v3.3.12...v3.4.0)

\==================

- In response to a recently reported
[issue](https://gitlab.com/catamphetamine/react-phone-number-input/-/issues/228),
changed the behavior of the "With Country Select" input in cases when
the calling code corresponds to multiple possible countries (for
example, `+1` calling code corresponds to both `US` and `CA`): now it
will prefer showing the country flag that was selected manually by the
user, or the default country flag.

</details>

<details>
<summary>remeda/remeda (remeda)</summary>

###
[`v1.61.0`](https://github.com/remeda/remeda/compare/v1.60.1...43e44cea0d382d94c20218f31b2e5fdde842ed0e)

[Compare
Source](https://github.com/remeda/remeda/compare/v1.60.1...v1.61.0)

</details>

<details>
<summary>sindresorhus/type-fest (type-fest)</summary>

###
[`v4.16.0`](https://github.com/sindresorhus/type-fest/releases/tag/v4.16.0)

[Compare
Source](https://github.com/sindresorhus/type-fest/compare/v4.15.0...v4.16.0)

##### New types

-
[`IsInteger`](https://github.com/sindresorhus/type-fest/blob/main/source/is-integer.d.ts)
-
[`IsFloat`](https://github.com/sindresorhus/type-fest/blob/main/source/is-float.d.ts)

##### Fixes

- `Integer`: Fix handling of some edge-cases
([#&#8203;857](https://github.com/sindresorhus/type-fest/issues/857))
[`f5b09de`](https://github.com/sindresorhus/type-fest/commit/f5b09de)
- `Float`: Fix handling of some edge-cases
([#&#8203;857](https://github.com/sindresorhus/type-fest/issues/857))
[`f5b09de`](https://github.com/sindresorhus/type-fest/commit/f5b09de)

</details>

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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 is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/weareinreach/InReach).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbImF1dG9tZXJnZSIsImRlcGVuZGVuY2llcyIsImtvZGlhazogbWVyZ2UubWV0aG9kID0gJ3NxdWFzaCciXX0=-->

---------

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Joe Karow <58997957+JoeKarow@users.noreply.github.com>
nicolewhite referenced this pull request in autoblocksai/javascript-sdk Apr 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.4` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

###
[`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
America/Chicago, 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/autoblocksai/javascript-sdk).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
nicolewhite referenced this pull request in autoblocksai/autoblocks-examples Apr 22, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence | Type |
Update |
|---|---|---|---|---|---|---|---|
| [ai](https://sdk.vercel.ai/docs)
([source](https://github.com/vercel/ai)) | [`3.0.23` ->
`3.0.24`](https://renovatebot.com/diffs/npm/ai/3.0.23/3.0.24) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/ai/3.0.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ai/3.0.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ai/3.0.23/3.0.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ai/3.0.23/3.0.24?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | patch |
|
[eslint-config-next](https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-config)
([source](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next))
| [`14.2.1` ->
`14.2.2`](https://renovatebot.com/diffs/npm/eslint-config-next/14.2.1/14.2.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/eslint-config-next/14.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/eslint-config-next/14.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/eslint-config-next/14.2.1/14.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/eslint-config-next/14.2.1/14.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | patch |
| [next](https://nextjs.org)
([source](https://github.com/vercel/next.js)) | [`14.2.1` ->
`14.2.2`](https://renovatebot.com/diffs/npm/next/14.2.1/14.2.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/next/14.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/next/14.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/next/14.2.1/14.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/next/14.2.1/14.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | patch |
| [openai](https://github.com/openai/openai-python) | `1.20.0` ->
`1.23.2` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/openai/1.23.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/openai/1.23.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/openai/1.20.0/1.23.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/openai/1.20.0/1.23.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
| [openai](https://github.com/openai/openai-node) | [`4.36.0` ->
`4.38.2`](https://renovatebot.com/diffs/npm/openai/4.36.0/4.38.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/openai/4.38.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/openai/4.38.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/openai/4.36.0/4.38.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/openai/4.36.0/4.38.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |
|
[slackapi/slack-github-action](https://github.com/slackapi/slack-github-action)
| `v1.25.0` -> `v1.26.0` |
[![age](https://developer.mend.io/api/mc/badges/age/github-tags/slackapi%2fslack-github-action/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/github-tags/slackapi%2fslack-github-action/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/github-tags/slackapi%2fslack-github-action/v1.25.0/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/github-tags/slackapi%2fslack-github-action/v1.25.0/v1.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| action | minor |
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.4` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
| dependencies | minor |

---

### Release Notes

<details>
<summary>vercel/ai (ai)</summary>

### [`v3.0.24`](https://github.com/vercel/ai/releases/tag/ai%403.0.24)

[Compare
Source](https://github.com/vercel/ai/compare/ai@3.0.23...ai@3.0.24)

##### Patch Changes

- [`e94fb32`](https://github.com/vercel/ai/commit/e94fb32):
feat(ai/rsc): Make `onSetAIState` and `onGetUIState` stable

</details>

<details>
<summary>vercel/next.js (eslint-config-next)</summary>

###
[`v14.2.2`](https://github.com/vercel/next.js/compare/v14.2.1...c850e4a69a8ff62502753e2ff15bbabcea94b556)

[Compare
Source](https://github.com/vercel/next.js/compare/v14.2.1...v14.2.2)

</details>

<details>
<summary>vercel/next.js (next)</summary>

###
[`v14.2.2`](https://github.com/vercel/next.js/compare/v14.2.1...c850e4a69a8ff62502753e2ff15bbabcea94b556)

[Compare
Source](https://github.com/vercel/next.js/compare/v14.2.1...v14.2.2)

</details>

<details>
<summary>openai/openai-python (openai)</summary>

###
[`v1.23.2`](https://github.com/openai/openai-python/blob/HEAD/CHANGELOG.md#1232-2024-04-19)

[Compare
Source](https://github.com/openai/openai-python/compare/v1.23.1...v1.23.2)

Full Changelog:
[v1.23.1...v1.23.2](https://github.com/openai/openai-python/compare/v1.23.1...v1.23.2)

##### Bug Fixes

- **api:** correct types for message attachment tools
([#&#8203;1348](https://github.com/openai/openai-python/issues/1348))
([78a6261](https://github.com/openai/openai-python/commit/78a6261eaad7839284903287d4f647d9cb4ced0b))

###
[`v1.23.1`](https://github.com/openai/openai-python/blob/HEAD/CHANGELOG.md#1231-2024-04-18)

[Compare
Source](https://github.com/openai/openai-python/compare/v1.23.0...v1.23.1)

Full Changelog:
[v1.23.0...v1.23.1](https://github.com/openai/openai-python/compare/v1.23.0...v1.23.1)

##### Bug Fixes

- **api:** correct types for attachments
([#&#8203;1342](https://github.com/openai/openai-python/issues/1342))
([542d30c](https://github.com/openai/openai-python/commit/542d30c6dad4e139bf3eb443936d42b7b42dad54))

###
[`v1.23.0`](https://github.com/openai/openai-python/blob/HEAD/CHANGELOG.md#1230-2024-04-18)

[Compare
Source](https://github.com/openai/openai-python/compare/v1.22.0...v1.23.0)

Full Changelog:
[v1.22.0...v1.23.0](https://github.com/openai/openai-python/compare/v1.22.0...v1.23.0)

##### Features

- **api:** add request id property to response classes
([#&#8203;1341](https://github.com/openai/openai-python/issues/1341))
([444d680](https://github.com/openai/openai-python/commit/444d680cbb3745adbc27788213ae3312567136a8))

##### Documentation

- **helpers:** fix example snippets
([#&#8203;1339](https://github.com/openai/openai-python/issues/1339))
([8929088](https://github.com/openai/openai-python/commit/8929088b206a04b4c5b85fb69b0b983fb56f9b03))

###
[`v1.22.0`](https://github.com/openai/openai-python/blob/HEAD/CHANGELOG.md#1220-2024-04-18)

[Compare
Source](https://github.com/openai/openai-python/compare/v1.21.2...v1.22.0)

Full Changelog:
[v1.21.2...v1.22.0](https://github.com/openai/openai-python/compare/v1.21.2...v1.22.0)

##### Features

- **api:** batch list endpoint
([#&#8203;1338](https://github.com/openai/openai-python/issues/1338))
([a776f38](https://github.com/openai/openai-python/commit/a776f387e3159f9a8f4dcaa7d0d3b78c2a884f91))

##### Chores

- **internal:** ban usage of lru_cache
([#&#8203;1331](https://github.com/openai/openai-python/issues/1331))
([8f9223b](https://github.com/openai/openai-python/commit/8f9223bfe13200c685fc97c25ada3015a69c6df7))
- **internal:** bump pyright to 1.1.359
([#&#8203;1337](https://github.com/openai/openai-python/issues/1337))
([feec0dd](https://github.com/openai/openai-python/commit/feec0dd1dd243941a279c3224c5ca1d727d76676))

###
[`v1.21.2`](https://github.com/openai/openai-python/blob/HEAD/CHANGELOG.md#1212-2024-04-17)

[Compare
Source](https://github.com/openai/openai-python/compare/v1.21.1...v1.21.2)

Full Changelog:
[v1.21.1...v1.21.2](https://github.com/openai/openai-python/compare/v1.21.1...v1.21.2)

##### Chores

- **internal:** add lru_cache helper function
([#&#8203;1329](https://github.com/openai/openai-python/issues/1329))
([cbeebfc](https://github.com/openai/openai-python/commit/cbeebfcca8bf1a3feb4462a79e10099bda5bed84))

###
[`v1.21.1`](https://github.com/openai/openai-python/blob/HEAD/CHANGELOG.md#1211-2024-04-17)

[Compare
Source](https://github.com/openai/openai-python/compare/v1.21.0...v1.21.1)

Full Changelog:
[v1.21.0...v1.21.1](https://github.com/openai/openai-python/compare/v1.21.0...v1.21.1)

##### Chores

- **api:** docs and response_format response property
([#&#8203;1327](https://github.com/openai/openai-python/issues/1327))
([7a6d142](https://github.com/openai/openai-python/commit/7a6d142f013994c4eb9a4f55888464c885f8baf0))

###
[`v1.21.0`](https://github.com/openai/openai-python/blob/HEAD/CHANGELOG.md#1210-2024-04-17)

[Compare
Source](https://github.com/openai/openai-python/compare/v1.20.0...v1.21.0)

Full Changelog:
[v1.20.0...v1.21.0](https://github.com/openai/openai-python/compare/v1.20.0...v1.21.0)

##### Features

- **api:** add vector stores
([#&#8203;1325](https://github.com/openai/openai-python/issues/1325))
([038a3c5](https://github.com/openai/openai-python/commit/038a3c50db7b6a88f54ff1cd1ff6cbaef2caf87f))

</details>

<details>
<summary>openai/openai-node (openai)</summary>

###
[`v4.38.2`](https://github.com/openai/openai-node/blob/HEAD/CHANGELOG.md#4382-2024-04-19)

[Compare
Source](https://github.com/openai/openai-node/compare/v4.38.1...v4.38.2)

Full Changelog:
[v4.38.1...v4.38.2](https://github.com/openai/openai-node/compare/v4.38.1...v4.38.2)

##### Bug Fixes

- **api:** correct types for message attachment tools
([#&#8203;787](https://github.com/openai/openai-node/issues/787))
([8626884](https://github.com/openai/openai-node/commit/8626884abd2494aa081db9e50a2f268b6cebc5df))

###
[`v4.38.1`](https://github.com/openai/openai-node/blob/HEAD/CHANGELOG.md#4381-2024-04-18)

[Compare
Source](https://github.com/openai/openai-node/compare/v4.38.0...v4.38.1)

Full Changelog:
[v4.38.0...v4.38.1](https://github.com/openai/openai-node/compare/v4.38.0...v4.38.1)

##### Bug Fixes

- **api:** correct types for attachments
([#&#8203;783](https://github.com/openai/openai-node/issues/783))
([6893631](https://github.com/openai/openai-node/commit/6893631334f75e232ba130f5dd67f1230b1e5fa0))

###
[`v4.38.0`](https://github.com/openai/openai-node/blob/HEAD/CHANGELOG.md#4380-2024-04-18)

[Compare
Source](https://github.com/openai/openai-node/compare/v4.37.1...v4.38.0)

Full Changelog:
[v4.37.1...v4.38.0](https://github.com/openai/openai-node/compare/v4.37.1...v4.38.0)

##### Features

- **api:** batch list endpoint
([#&#8203;781](https://github.com/openai/openai-node/issues/781))
([d226759](https://github.com/openai/openai-node/commit/d226759164fbed33198d8bdc315c98e1052dade8))

###
[`v4.37.1`](https://github.com/openai/openai-node/blob/HEAD/CHANGELOG.md#4371-2024-04-17)

[Compare
Source](https://github.com/openai/openai-node/compare/v4.37.0...v4.37.1)

Full Changelog:
[v4.37.0...v4.37.1](https://github.com/openai/openai-node/compare/v4.37.0...v4.37.1)

##### Chores

- **api:** docs and response_format response property
([#&#8203;778](https://github.com/openai/openai-node/issues/778))
([78f5c35](https://github.com/openai/openai-node/commit/78f5c3568d95d8e854c04049dc7d5643aa49e93f))

###
[`v4.37.0`](https://github.com/openai/openai-node/blob/HEAD/CHANGELOG.md#4370-2024-04-17)

[Compare
Source](https://github.com/openai/openai-node/compare/v4.36.0...v4.37.0)

Full Changelog:
[v4.36.0...v4.37.0](https://github.com/openai/openai-node/compare/v4.36.0...v4.37.0)

##### Features

- **api:** add vector stores
([#&#8203;776](https://github.com/openai/openai-node/issues/776))
([8bb929b](https://github.com/openai/openai-node/commit/8bb929b2ee91c1bec0a00347bf4f7628652d1be3))

</details>

<details>
<summary>slackapi/slack-github-action
(slackapi/slack-github-action)</summary>

###
[`v1.26.0`](https://github.com/slackapi/slack-github-action/releases/tag/v1.26.0):
Slack Send V1.26.0

[Compare
Source](https://github.com/slackapi/slack-github-action/compare/v1.25.0...v1.26.0)

#### What's Changed

This release provides an escape hatch for sending the JSON content of a
payload file exactly as is, without replacing any templated variables!

Previously a payload file was parsed and templated variables were
replaced with values from `github.context` and `github.env`. Any
undefined variables were replaced with `???` in this process, which
might have caused questions.

That remains the default behavior, but now the JSON contents of a
payload file can be sent exactly as written by setting the
`payload-file-path-parsed` input to `false`:

```yaml
- name: Send custom JSON data to Slack workflow
  id: slack
  uses: slackapi/slack-github-action@v1.26.0
  with:
    payload-file-path: "./payload-slack-content.json"
    payload-file-path-parsed: false
  env:
    SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
```

With this change, the contents of the example
`payload-slack-content.json` will be sent to a webhook URL exactly as
is!

#### Recent commits

##### Enhancements

- allow to use json file as is without replacing/parsing anything by
[@&#8203;talgendler](https://github.com/talgendler) in
[https://github.com/slackapi/slack-github-action/pull/299](https://github.com/slackapi/slack-github-action/pull/299)

##### Documentation

- docs(readme): adjust whitespace in env assignment by
[@&#8203;paulo9mv](https://github.com/paulo9mv) in
[https://github.com/slackapi/slack-github-action/pull/296](https://github.com/slackapi/slack-github-action/pull/296)

##### Maintenance

- ci(test): collect environment secrets from a prepared staging
environment by [@&#8203;zimeg](https://github.com/zimeg) in
[https://github.com/slackapi/slack-github-action/pull/294](https://github.com/slackapi/slack-github-action/pull/294)
- ci(test): share environment secrets with pull requests from forked prs
by [@&#8203;zimeg](https://github.com/zimeg) in
[https://github.com/slackapi/slack-github-action/pull/297](https://github.com/slackapi/slack-github-action/pull/297)

##### Dependencies

- Bump eslint-plugin-jsdoc from 46.10.1 to 48.2.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/slackapi/slack-github-action/pull/295](https://github.com/slackapi/slack-github-action/pull/295)
- Bump eslint from 8.56.0 to 8.57.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/slackapi/slack-github-action/pull/289](https://github.com/slackapi/slack-github-action/pull/289)
- Bump mocha from 10.2.0 to 10.3.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/slackapi/slack-github-action/pull/288](https://github.com/slackapi/slack-github-action/pull/288)
- Bump https-proxy-agent from 7.0.2 to 7.0.4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/slackapi/slack-github-action/pull/290](https://github.com/slackapi/slack-github-action/pull/290)
- Bump [@&#8203;slack/web-api](https://github.com/slack/web-api) from
6.12.0 to 7.0.2 by [@&#8203;dependabot](https://github.com/dependabot)
in
[https://github.com/slackapi/slack-github-action/pull/287](https://github.com/slackapi/slack-github-action/pull/287)
- Bump mocha from 10.3.0 to 10.4.0 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/slackapi/slack-github-action/pull/300](https://github.com/slackapi/slack-github-action/pull/300)
- Bump axios from 1.6.7 to 1.6.8 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/slackapi/slack-github-action/pull/301](https://github.com/slackapi/slack-github-action/pull/301)
- Bump eslint-plugin-jsdoc from 48.2.1 to 48.2.2 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/slackapi/slack-github-action/pull/302](https://github.com/slackapi/slack-github-action/pull/302)

#### New Contributors

- [@&#8203;paulo9mv](https://github.com/paulo9mv) made their first
contribution in
[https://github.com/slackapi/slack-github-action/pull/296](https://github.com/slackapi/slack-github-action/pull/296)
- [@&#8203;talgendler](https://github.com/talgendler) made their first
contribution in
[https://github.com/slackapi/slack-github-action/pull/299](https://github.com/slackapi/slack-github-action/pull/299)

**Full Changelog**:
slackapi/slack-github-action@v1.25.0...v1.26.0

</details>

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

###
[`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
America/Chicago, 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/autoblocksai/autoblocks-examples).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot referenced this pull request in X-oss-byte/Nextjs Apr 24, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | [`3.22.5` -> `3.23.4`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

### [`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-   [`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7) Add 3.23 announcement
-   [`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1) Revert change to default Input
-   [`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4) v3.23.4

### [`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

### [`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-   [`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3) Update protocol
-   [`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0) Fix t3env
-   [`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df) 3.23.2

### [`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

### [`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare Source](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;mastermatt](https://github.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://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 [@&#8203;szamanr](https://github.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks [@&#8203;StefanTerdell](https://github.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://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 [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   feature: add attribute message to enum validatiion by [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://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://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://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 [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
-   Added latest stable Node and TypeScript versions to test matrix for up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten) in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   Add types to `ZodFirstPartySchemaTypes` by [@&#8203;MatthijsMud](https://github.com/MatthijsMud) in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   fix: make `input` of `.required()` readonly by [@&#8203;KATT](https://github.com/KATT) in [https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
-   add never props to safe parse return types by [@&#8203;schicks](https://github.com/schicks) in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   Reporting errors of the preprocess that is the second property of object by [@&#8203;yukukotani](https://github.com/yukukotani) in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   Improve `addQuestionMarks`, fix [#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
-   fix for njs by [@&#8203;dvv](https://github.com/dvv) in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   only look in `src` for `bun test` by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   Restrict .pick()/.omit() mask type to only known properties by [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   Make EnumValues generic by [@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in [https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
-   perf: avoid unnecessary error maps by [@&#8203;xuxucode](https://github.com/xuxucode) in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   Bugfix: z.record().parse should not filter out undefined values by [@&#8203;raik-casimiro](https://github.com/raik-casimiro) in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   Use Set.has instead of Array.indexOf for enum comparison (perf improvement) by [@&#8203;jmike](https://github.com/jmike) in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   \[2888] fix emails with single quotes failing validation by [@&#8203;Mansehej](https://github.com/Mansehej) in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   Bugfix: Commas are incorrectly allowed in email regex. by [@&#8203;mokemoko](https://github.com/mokemoko) in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   Fix regex in cuid2 validation to be what cuid2 library expects by [@&#8203;etareduction](https://github.com/etareduction) in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
-   Faster ipv4 parsing by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

-   chore: add pastel package to ecosystem by [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   added required styles. by [@&#8203;Ansh101112](https://github.com/Ansh101112) in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   Feature/better chinese translate by [@&#8203;NWYLZW](https://github.com/NWYLZW) in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   Fix z.instanceof example by [@&#8203;alexnault](https://github.com/alexnault) in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   Add documentation to Zod enum exclude/extract functions by [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   Add docs for coercing nullish values by [@&#8203;rbuetzer](https://github.com/rbuetzer) in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   Adds `zod-dev` utility to eco-system section by [@&#8203;schalkventer](https://github.com/schalkventer) in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   Add zhttp library to docs by [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   fixed Readme typo in NaNs example by [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   adds zod-config library to the ecosystem by [@&#8203;alexmarqs](https://github.com/alexmarqs) in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   docs: update link and description of conform integration by [@&#8203;g1eny0ung](https://github.com/g1eny0ung) in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   Update README.md by [@&#8203;yugmade13](https://github.com/yugmade13) in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   feat: overhaul generics section of readme to include more details on z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w) in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty) in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   docs: update Chinese docs and correct some of the typos by [@&#8203;jiechen257](https://github.com/jiechen257) in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   docs: improve chinese readme by [@&#8203;luckrnx09](https://github.com/luckrnx09) in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   Add java-to-zod in X to Zod section by [@&#8203;ivangreene](https://github.com/ivangreene) in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   docs: add `orval` to "X to Zod" ecosystems by [@&#8203;soartec-lab](https://github.com/soartec-lab) in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

-   [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their first contribution in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first contribution in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first contribution in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   [@&#8203;alexnault](https://github.com/alexnault) made their first contribution in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   [@&#8203;shaharke](https://github.com/shaharke) made their first contribution in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first contribution in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   [@&#8203;schalkventer](https://github.com/schalkventer) made their first contribution in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) made their first contribution in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their first contribution in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first contribution in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their first contribution in [https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
-   [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made their first contribution in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first contribution in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   [@&#8203;m10rten](https://github.com/m10rten) made their first contribution in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their first contribution in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   [@&#8203;yugmade13](https://github.com/yugmade13) made their first contribution in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   [@&#8203;braden-w](https://github.com/braden-w) made their first contribution in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   [@&#8203;mmorearty](https://github.com/mmorearty) made their first contribution in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   [@&#8203;schicks](https://github.com/schicks) made their first contribution in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   [@&#8203;yukukotani](https://github.com/yukukotani) made their first contribution in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   [@&#8203;jiechen257](https://github.com/jiechen257) made their first contribution in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first contribution in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   [@&#8203;dvv](https://github.com/dvv) made their first contribution in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   [@&#8203;rotu](https://github.com/rotu) made their first contribution in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made their first contribution in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   [@&#8203;ivoilic](https://github.com/ivoilic) made their first contribution in [https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
-   [@&#8203;telemakhos](https://github.com/telemakhos) made their first contribution in [https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
-   [@&#8203;bchrobot](https://github.com/bchrobot) made their first contribution in [https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
-   [@&#8203;szamanr](https://github.com/szamanr) made their first contribution in [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
-   [@&#8203;ivangreene](https://github.com/ivangreene) made their first contribution in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   [@&#8203;xuxucode](https://github.com/xuxucode) made their first contribution in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their first contribution in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   [@&#8203;jmike](https://github.com/jmike) made their first contribution in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   [@&#8203;Mansehej](https://github.com/Mansehej) made their first contribution in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   [@&#8203;mokemoko](https://github.com/mokemoko) made their first contribution in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   [@&#8203;etareduction](https://github.com/etareduction) made their first contribution in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   [@&#8203;mastermatt](https://github.com/mastermatt) made their first contribution in [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
-   [@&#8203;soartec-lab](https://github.com/soartec-lab) made their first contribution in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**: colinhacks/zod@v3.22.4...v3.23.0

### [`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **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.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
fuxingloh referenced this pull request in fuxingloh/chainfile Apr 24, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`^3.22.5` ->
`^3.23.4`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-
[`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7)
Add 3.23 announcement
-
[`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1)
Revert change to default Input
-
[`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4)
v3.23.4

###
[`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

###
[`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-
[`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3)
Update protocol
-
[`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0)
Fix t3env
-
[`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df)
3.23.2

###
[`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/fuxingloh/karfia).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
github-merge-queue bot referenced this pull request in camunda/camunda Apr 24, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.5` ->
`3.23.4`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-
[`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7)
Add 3.23 announcement
-
[`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1)
Revert change to default Input
-
[`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4)
v3.23.4

###
[`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

###
[`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-
[`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3)
Update protocol
-
[`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0)
Fix t3env
-
[`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df)
3.23.2

###
[`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/camunda/zeebe).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWVyZ2UiXX0=-->
renovate bot referenced this pull request in SquiggleTools/boston-ts-website Apr 24, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.5` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/JoshuaKGoldberg/boston-ts-website).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in JoshuaKGoldberg/prune-github-notifications Apr 25, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.5` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/JoshuaKGoldberg/prune-github-notifications).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in tf2pickup-org/server Apr 26, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.4` ->
`3.23.4`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-
[`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7)
Add 3.23 announcement
-
[`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1)
Revert change to default Input
-
[`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4)
v3.23.4

###
[`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

###
[`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-
[`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3)
Update protocol
-
[`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0)
Fix t3env
-
[`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df)
3.23.2

###
[`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

###
[`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/tf2pickup-org/server).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMDEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbInJlbm92YXRlIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot referenced this pull request in JoshuaKGoldberg/create-typescript-app Apr 26, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.4` ->
`3.23.4`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-
[`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7)
Add 3.23 announcement
-
[`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1)
Revert change to default Input
-
[`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4)
v3.23.4

###
[`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

###
[`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-
[`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3)
Update protocol
-
[`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0)
Fix t3env
-
[`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df)
3.23.2

###
[`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

###
[`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/JoshuaKGoldberg/create-typescript-app).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot referenced this pull request in timelessco/node-ts-app-template Apr 29, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | [`3.22.4` -> `3.23.4`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.4) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

### [`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-   [`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7) Add 3.23 announcement
-   [`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1) Revert change to default Input
-   [`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4) v3.23.4

### [`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

### [`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-   [`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3) Update protocol
-   [`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0) Fix t3env
-   [`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df) 3.23.2

### [`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

### [`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare Source](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;mastermatt](https://github.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://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 [@&#8203;szamanr](https://github.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks [@&#8203;StefanTerdell](https://github.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://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 [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   feature: add attribute message to enum validatiion by [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://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://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://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 [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
-   Added latest stable Node and TypeScript versions to test matrix for up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten) in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   Add types to `ZodFirstPartySchemaTypes` by [@&#8203;MatthijsMud](https://github.com/MatthijsMud) in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   fix: make `input` of `.required()` readonly by [@&#8203;KATT](https://github.com/KATT) in [https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
-   add never props to safe parse return types by [@&#8203;schicks](https://github.com/schicks) in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   Reporting errors of the preprocess that is the second property of object by [@&#8203;yukukotani](https://github.com/yukukotani) in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   Improve `addQuestionMarks`, fix [#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
-   fix for njs by [@&#8203;dvv](https://github.com/dvv) in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   only look in `src` for `bun test` by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   Restrict .pick()/.omit() mask type to only known properties by [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   Make EnumValues generic by [@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in [https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
-   perf: avoid unnecessary error maps by [@&#8203;xuxucode](https://github.com/xuxucode) in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   Bugfix: z.record().parse should not filter out undefined values by [@&#8203;raik-casimiro](https://github.com/raik-casimiro) in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   Use Set.has instead of Array.indexOf for enum comparison (perf improvement) by [@&#8203;jmike](https://github.com/jmike) in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   \[2888] fix emails with single quotes failing validation by [@&#8203;Mansehej](https://github.com/Mansehej) in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   Bugfix: Commas are incorrectly allowed in email regex. by [@&#8203;mokemoko](https://github.com/mokemoko) in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   Fix regex in cuid2 validation to be what cuid2 library expects by [@&#8203;etareduction](https://github.com/etareduction) in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
-   Faster ipv4 parsing by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

-   chore: add pastel package to ecosystem by [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   added required styles. by [@&#8203;Ansh101112](https://github.com/Ansh101112) in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   Feature/better chinese translate by [@&#8203;NWYLZW](https://github.com/NWYLZW) in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   Fix z.instanceof example by [@&#8203;alexnault](https://github.com/alexnault) in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   Add documentation to Zod enum exclude/extract functions by [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   Add docs for coercing nullish values by [@&#8203;rbuetzer](https://github.com/rbuetzer) in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   Adds `zod-dev` utility to eco-system section by [@&#8203;schalkventer](https://github.com/schalkventer) in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   Add zhttp library to docs by [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   fixed Readme typo in NaNs example by [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   adds zod-config library to the ecosystem by [@&#8203;alexmarqs](https://github.com/alexmarqs) in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   docs: update link and description of conform integration by [@&#8203;g1eny0ung](https://github.com/g1eny0ung) in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   Update README.md by [@&#8203;yugmade13](https://github.com/yugmade13) in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   feat: overhaul generics section of readme to include more details on z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w) in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty) in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   docs: update Chinese docs and correct some of the typos by [@&#8203;jiechen257](https://github.com/jiechen257) in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   docs: improve chinese readme by [@&#8203;luckrnx09](https://github.com/luckrnx09) in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   Add java-to-zod in X to Zod section by [@&#8203;ivangreene](https://github.com/ivangreene) in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   docs: add `orval` to "X to Zod" ecosystems by [@&#8203;soartec-lab](https://github.com/soartec-lab) in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

-   [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their first contribution in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first contribution in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first contribution in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   [@&#8203;alexnault](https://github.com/alexnault) made their first contribution in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   [@&#8203;shaharke](https://github.com/shaharke) made their first contribution in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first contribution in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   [@&#8203;schalkventer](https://github.com/schalkventer) made their first contribution in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) made their first contribution in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their first contribution in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first contribution in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their first contribution in [https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
-   [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made their first contribution in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first contribution in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   [@&#8203;m10rten](https://github.com/m10rten) made their first contribution in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their first contribution in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   [@&#8203;yugmade13](https://github.com/yugmade13) made their first contribution in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   [@&#8203;braden-w](https://github.com/braden-w) made their first contribution in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   [@&#8203;mmorearty](https://github.com/mmorearty) made their first contribution in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   [@&#8203;schicks](https://github.com/schicks) made their first contribution in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   [@&#8203;yukukotani](https://github.com/yukukotani) made their first contribution in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   [@&#8203;jiechen257](https://github.com/jiechen257) made their first contribution in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first contribution in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   [@&#8203;dvv](https://github.com/dvv) made their first contribution in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   [@&#8203;rotu](https://github.com/rotu) made their first contribution in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made their first contribution in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   [@&#8203;ivoilic](https://github.com/ivoilic) made their first contribution in [https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
-   [@&#8203;telemakhos](https://github.com/telemakhos) made their first contribution in [https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
-   [@&#8203;bchrobot](https://github.com/bchrobot) made their first contribution in [https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
-   [@&#8203;szamanr](https://github.com/szamanr) made their first contribution in [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
-   [@&#8203;ivangreene](https://github.com/ivangreene) made their first contribution in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   [@&#8203;xuxucode](https://github.com/xuxucode) made their first contribution in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their first contribution in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   [@&#8203;jmike](https://github.com/jmike) made their first contribution in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   [@&#8203;Mansehej](https://github.com/Mansehej) made their first contribution in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   [@&#8203;mokemoko](https://github.com/mokemoko) made their first contribution in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   [@&#8203;etareduction](https://github.com/etareduction) made their first contribution in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   [@&#8203;mastermatt](https://github.com/mastermatt) made their first contribution in [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
-   [@&#8203;soartec-lab](https://github.com/soartec-lab) made their first contribution in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**: colinhacks/zod@v3.22.4...v3.23.0

### [`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone Asia/Kolkata, 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.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/timelessco/node-ts-app).
renovate bot referenced this pull request in simonknittel/simonknittel.de Apr 29, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.5` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.5/3.23.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/simonknittel/simonknittel.de).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
kodiakhq bot referenced this pull request in X-oss-byte/Nextjs Apr 30, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | [`3.23.4` -> `3.23.5`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

### [`v3.23.5`](https://github.com/colinhacks/zod/compare/v3.23.4...541a862e978f96eb391849a6bf16be84231aa1b3)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.4...v3.23.5)

### [`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-   [`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7) Add 3.23 announcement
-   [`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1) Revert change to default Input
-   [`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4) v3.23.4

### [`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

### [`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-   [`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3) Update protocol
-   [`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0) Fix t3env
-   [`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df) 3.23.2

### [`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

### [`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare Source](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;mastermatt](https://github.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://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 [@&#8203;szamanr](https://github.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks [@&#8203;StefanTerdell](https://github.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://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 [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   feature: add attribute message to enum validatiion by [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://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://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://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 [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
-   Added latest stable Node and TypeScript versions to test matrix for up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten) in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   Add types to `ZodFirstPartySchemaTypes` by [@&#8203;MatthijsMud](https://github.com/MatthijsMud) in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   fix: make `input` of `.required()` readonly by [@&#8203;KATT](https://github.com/KATT) in [https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
-   add never props to safe parse return types by [@&#8203;schicks](https://github.com/schicks) in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   Reporting errors of the preprocess that is the second property of object by [@&#8203;yukukotani](https://github.com/yukukotani) in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   Improve `addQuestionMarks`, fix [#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
-   fix for njs by [@&#8203;dvv](https://github.com/dvv) in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   only look in `src` for `bun test` by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   Restrict .pick()/.omit() mask type to only known properties by [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   Make EnumValues generic by [@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in [https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
-   perf: avoid unnecessary error maps by [@&#8203;xuxucode](https://github.com/xuxucode) in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   Bugfix: z.record().parse should not filter out undefined values by [@&#8203;raik-casimiro](https://github.com/raik-casimiro) in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   Use Set.has instead of Array.indexOf for enum comparison (perf improvement) by [@&#8203;jmike](https://github.com/jmike) in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   \[2888] fix emails with single quotes failing validation by [@&#8203;Mansehej](https://github.com/Mansehej) in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   Bugfix: Commas are incorrectly allowed in email regex. by [@&#8203;mokemoko](https://github.com/mokemoko) in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   Fix regex in cuid2 validation to be what cuid2 library expects by [@&#8203;etareduction](https://github.com/etareduction) in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
-   Faster ipv4 parsing by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

-   chore: add pastel package to ecosystem by [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   added required styles. by [@&#8203;Ansh101112](https://github.com/Ansh101112) in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   Feature/better chinese translate by [@&#8203;NWYLZW](https://github.com/NWYLZW) in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   Fix z.instanceof example by [@&#8203;alexnault](https://github.com/alexnault) in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   Add documentation to Zod enum exclude/extract functions by [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   Add docs for coercing nullish values by [@&#8203;rbuetzer](https://github.com/rbuetzer) in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   Adds `zod-dev` utility to eco-system section by [@&#8203;schalkventer](https://github.com/schalkventer) in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   Add zhttp library to docs by [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   fixed Readme typo in NaNs example by [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   adds zod-config library to the ecosystem by [@&#8203;alexmarqs](https://github.com/alexmarqs) in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   docs: update link and description of conform integration by [@&#8203;g1eny0ung](https://github.com/g1eny0ung) in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   Update README.md by [@&#8203;yugmade13](https://github.com/yugmade13) in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   feat: overhaul generics section of readme to include more details on z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w) in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty) in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   docs: update Chinese docs and correct some of the typos by [@&#8203;jiechen257](https://github.com/jiechen257) in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   docs: improve chinese readme by [@&#8203;luckrnx09](https://github.com/luckrnx09) in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   Add java-to-zod in X to Zod section by [@&#8203;ivangreene](https://github.com/ivangreene) in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   docs: add `orval` to "X to Zod" ecosystems by [@&#8203;soartec-lab](https://github.com/soartec-lab) in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

-   [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their first contribution in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first contribution in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first contribution in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   [@&#8203;alexnault](https://github.com/alexnault) made their first contribution in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   [@&#8203;shaharke](https://github.com/shaharke) made their first contribution in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first contribution in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   [@&#8203;schalkventer](https://github.com/schalkventer) made their first contribution in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) made their first contribution in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their first contribution in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first contribution in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their first contribution in [https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
-   [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made their first contribution in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first contribution in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   [@&#8203;m10rten](https://github.com/m10rten) made their first contribution in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their first contribution in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   [@&#8203;yugmade13](https://github.com/yugmade13) made their first contribution in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   [@&#8203;braden-w](https://github.com/braden-w) made their first contribution in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   [@&#8203;mmorearty](https://github.com/mmorearty) made their first contribution in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   [@&#8203;schicks](https://github.com/schicks) made their first contribution in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   [@&#8203;yukukotani](https://github.com/yukukotani) made their first contribution in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   [@&#8203;jiechen257](https://github.com/jiechen257) made their first contribution in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first contribution in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   [@&#8203;dvv](https://github.com/dvv) made their first contribution in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   [@&#8203;rotu](https://github.com/rotu) made their first contribution in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made their first contribution in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   [@&#8203;ivoilic](https://github.com/ivoilic) made their first contribution in [https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
-   [@&#8203;telemakhos](https://github.com/telemakhos) made their first contribution in [https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
-   [@&#8203;bchrobot](https://github.com/bchrobot) made their first contribution in [https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
-   [@&#8203;szamanr](https://github.com/szamanr) made their first contribution in [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
-   [@&#8203;ivangreene](https://github.com/ivangreene) made their first contribution in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   [@&#8203;xuxucode](https://github.com/xuxucode) made their first contribution in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their first contribution in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   [@&#8203;jmike](https://github.com/jmike) made their first contribution in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   [@&#8203;Mansehej](https://github.com/Mansehej) made their first contribution in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   [@&#8203;mokemoko](https://github.com/mokemoko) made their first contribution in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   [@&#8203;etareduction](https://github.com/etareduction) made their first contribution in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   [@&#8203;mastermatt](https://github.com/mastermatt) made their first contribution in [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
-   [@&#8203;soartec-lab](https://github.com/soartec-lab) made their first contribution in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**: colinhacks/zod@v3.22.4...v3.23.0

### [`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **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.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
simonknittel referenced this pull request in simonknittel/sinister-incorporated Apr 30, 2024
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| dependencies | minor | [`3.22.5` ->
`3.23.4`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.4) |
`3.23.5` |

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-
[`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7)
Add 3.23 announcement
-
[`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1)
Revert change to default Input
-
[`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4)
v3.23.4

###
[`v3.23.3`](https://github.com/colinhacks/zod/releases/tag/v3.23.3)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

#### Commits:

-
[`103d243`](https://github.com/colinhacks/zod/commit/103d2436f85872ca0e0e6247652989cc93d46a39)
3.23.3

###
[`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-
[`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3)
Update protocol
-
[`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0)
Fix t3env
-
[`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df)
3.23.2

###
[`v3.23.1`](https://github.com/colinhacks/zod/releases/tag/v3.23.1)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

This changes the default generics back to `any` to prevent breakages
with common packager like `@hookform/resolvers`:

```diff
- class ZodType<Output = unknown, Def extends ZodTypeDef = ZodTypeDef, Input = unknown> {}
+ class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = any> {}
```

#### Commits:

-
[`59f4872`](https://github.com/colinhacks/zod/commit/59f48723d36c423d9e10b3bd52325a7998314230)
Change unknown -> any for ZodType defaults
-
[`2ff5ceb`](https://github.com/colinhacks/zod/commit/2ff5ceb428634de0ea4501495039c05a8e95b60a)
3.23.1

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://github.com/colinhacks/zod/pull/3247)

```diff
+  | ZodPipeline<any, any>
+  | ZodReadonly<any>
+  | ZodSymbol;
```

##### 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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

</details>

---

### Configuration

📅 **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjMzMC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6W119-->

Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
kodiakhq bot referenced this pull request in X-oss-byte/Nextjs May 3, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | [`3.23.5` -> `3.23.6`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.6) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.6?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

### [`v3.23.6`](https://github.com/colinhacks/zod/compare/v3.23.5...93b480b12ec3466cbd3b4182f7ce292e5c61528c)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.5...v3.23.6)

### [`v3.23.5`](https://github.com/colinhacks/zod/compare/v3.23.4...541a862e978f96eb391849a6bf16be84231aa1b3)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.4...v3.23.5)

### [`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-   [`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7) Add 3.23 announcement
-   [`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1) Revert change to default Input
-   [`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4) v3.23.4

### [`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

### [`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-   [`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3) Update protocol
-   [`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0) Fix t3env
-   [`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df) 3.23.2

### [`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

### [`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare Source](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;mastermatt](https://github.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://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 [@&#8203;szamanr](https://github.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks [@&#8203;StefanTerdell](https://github.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://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 [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   feature: add attribute message to enum validatiion by [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://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://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://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 [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
-   Added latest stable Node and TypeScript versions to test matrix for up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten) in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   Add types to `ZodFirstPartySchemaTypes` by [@&#8203;MatthijsMud](https://github.com/MatthijsMud) in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   fix: make `input` of `.required()` readonly by [@&#8203;KATT](https://github.com/KATT) in [https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
-   add never props to safe parse return types by [@&#8203;schicks](https://github.com/schicks) in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   Reporting errors of the preprocess that is the second property of object by [@&#8203;yukukotani](https://github.com/yukukotani) in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   Improve `addQuestionMarks`, fix [#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
-   fix for njs by [@&#8203;dvv](https://github.com/dvv) in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   only look in `src` for `bun test` by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   Restrict .pick()/.omit() mask type to only known properties by [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   Make EnumValues generic by [@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in [https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
-   perf: avoid unnecessary error maps by [@&#8203;xuxucode](https://github.com/xuxucode) in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   Bugfix: z.record().parse should not filter out undefined values by [@&#8203;raik-casimiro](https://github.com/raik-casimiro) in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   Use Set.has instead of Array.indexOf for enum comparison (perf improvement) by [@&#8203;jmike](https://github.com/jmike) in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   \[2888] fix emails with single quotes failing validation by [@&#8203;Mansehej](https://github.com/Mansehej) in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   Bugfix: Commas are incorrectly allowed in email regex. by [@&#8203;mokemoko](https://github.com/mokemoko) in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   Fix regex in cuid2 validation to be what cuid2 library expects by [@&#8203;etareduction](https://github.com/etareduction) in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
-   Faster ipv4 parsing by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

-   chore: add pastel package to ecosystem by [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   added required styles. by [@&#8203;Ansh101112](https://github.com/Ansh101112) in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   Feature/better chinese translate by [@&#8203;NWYLZW](https://github.com/NWYLZW) in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   Fix z.instanceof example by [@&#8203;alexnault](https://github.com/alexnault) in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   Add documentation to Zod enum exclude/extract functions by [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   Add docs for coercing nullish values by [@&#8203;rbuetzer](https://github.com/rbuetzer) in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   Adds `zod-dev` utility to eco-system section by [@&#8203;schalkventer](https://github.com/schalkventer) in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   Add zhttp library to docs by [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   fixed Readme typo in NaNs example by [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   adds zod-config library to the ecosystem by [@&#8203;alexmarqs](https://github.com/alexmarqs) in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   docs: update link and description of conform integration by [@&#8203;g1eny0ung](https://github.com/g1eny0ung) in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   Update README.md by [@&#8203;yugmade13](https://github.com/yugmade13) in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   feat: overhaul generics section of readme to include more details on z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w) in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty) in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   docs: update Chinese docs and correct some of the typos by [@&#8203;jiechen257](https://github.com/jiechen257) in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   docs: improve chinese readme by [@&#8203;luckrnx09](https://github.com/luckrnx09) in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   Add java-to-zod in X to Zod section by [@&#8203;ivangreene](https://github.com/ivangreene) in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   docs: add `orval` to "X to Zod" ecosystems by [@&#8203;soartec-lab](https://github.com/soartec-lab) in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

-   [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their first contribution in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first contribution in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first contribution in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   [@&#8203;alexnault](https://github.com/alexnault) made their first contribution in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   [@&#8203;shaharke](https://github.com/shaharke) made their first contribution in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first contribution in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   [@&#8203;schalkventer](https://github.com/schalkventer) made their first contribution in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) made their first contribution in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their first contribution in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first contribution in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their first contribution in [https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
-   [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made their first contribution in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first contribution in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   [@&#8203;m10rten](https://github.com/m10rten) made their first contribution in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their first contribution in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   [@&#8203;yugmade13](https://github.com/yugmade13) made their first contribution in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   [@&#8203;braden-w](https://github.com/braden-w) made their first contribution in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   [@&#8203;mmorearty](https://github.com/mmorearty) made their first contribution in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   [@&#8203;schicks](https://github.com/schicks) made their first contribution in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   [@&#8203;yukukotani](https://github.com/yukukotani) made their first contribution in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   [@&#8203;jiechen257](https://github.com/jiechen257) made their first contribution in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first contribution in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   [@&#8203;dvv](https://github.com/dvv) made their first contribution in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   [@&#8203;rotu](https://github.com/rotu) made their first contribution in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made their first contribution in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   [@&#8203;ivoilic](https://github.com/ivoilic) made their first contribution in [https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
-   [@&#8203;telemakhos](https://github.com/telemakhos) made their first contribution in [https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
-   [@&#8203;bchrobot](https://github.com/bchrobot) made their first contribution in [https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
-   [@&#8203;szamanr](https://github.com/szamanr) made their first contribution in [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
-   [@&#8203;ivangreene](https://github.com/ivangreene) made their first contribution in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   [@&#8203;xuxucode](https://github.com/xuxucode) made their first contribution in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their first contribution in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   [@&#8203;jmike](https://github.com/jmike) made their first contribution in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   [@&#8203;Mansehej](https://github.com/Mansehej) made their first contribution in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   [@&#8203;mokemoko](https://github.com/mokemoko) made their first contribution in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   [@&#8203;etareduction](https://github.com/etareduction) made their first contribution in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   [@&#8203;mastermatt](https://github.com/mastermatt) made their first contribution in [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
-   [@&#8203;soartec-lab](https://github.com/soartec-lab) made their first contribution in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**: colinhacks/zod@v3.22.4...v3.23.0

### [`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **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.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
nicolewhite referenced this pull request in autoblocksai/cli May 3, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod))
| [`3.22.4` ->
`3.23.4`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.4) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.4?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-
[`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7)
Add 3.23 announcement
-
[`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1)
Revert change to default Input
-
[`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4)
v3.23.4

###
[`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

###
[`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-
[`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3)
Update protocol
-
[`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0)
Fix t3env
-
[`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df)
3.23.2

###
[`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

###
[`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare
Source](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;igalklebanov](https://github.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://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
[@&#8203;mastermatt](https://github.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://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
[@&#8203;szamanr](https://github.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks
[@&#8203;StefanTerdell](https://github.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://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
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@&#8203;fernandollisboa](https://github.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://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://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://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
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
- Added latest stable Node and TypeScript versions to test matrix for
up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten)
in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- Add types to `ZodFirstPartySchemaTypes` by
[@&#8203;MatthijsMud](https://github.com/MatthijsMud) in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- fix: make `input` of `.required()` readonly by
[@&#8203;KATT](https://github.com/KATT) in
[https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
- add never props to safe parse return types by
[@&#8203;schicks](https://github.com/schicks) in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- Reporting errors of the preprocess that is the second property of
object by [@&#8203;yukukotani](https://github.com/yukukotani) in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- Improve `addQuestionMarks`, fix
[#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
- fix for njs by [@&#8203;dvv](https://github.com/dvv) in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- only look in `src` for `bun test` by
[@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- Restrict .pick()/.omit() mask type to only known properties by
[@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- Make EnumValues generic by
[@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in
[https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
- perf: avoid unnecessary error maps by
[@&#8203;xuxucode](https://github.com/xuxucode) in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- Bugfix: z.record().parse should not filter out undefined values by
[@&#8203;raik-casimiro](https://github.com/raik-casimiro) in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- Use Set.has instead of Array.indexOf for enum comparison (perf
improvement) by [@&#8203;jmike](https://github.com/jmike) in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- \[2888] fix emails with single quotes failing validation by
[@&#8203;Mansehej](https://github.com/Mansehej) in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- Bugfix: Commas are incorrectly allowed in email regex. by
[@&#8203;mokemoko](https://github.com/mokemoko) in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- Fix regex in cuid2 validation to be what cuid2 library expects by
[@&#8203;etareduction](https://github.com/etareduction) in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in
[https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
- Faster ipv4 parsing by
[@&#8203;colinhacks](https://github.com/colinhacks) in
[https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

- chore: add pastel package to ecosystem by
[@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- added required styles. by
[@&#8203;Ansh101112](https://github.com/Ansh101112) in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- Feature/better chinese translate by
[@&#8203;NWYLZW](https://github.com/NWYLZW) in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- Fix z.instanceof example by
[@&#8203;alexnault](https://github.com/alexnault) in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- Add documentation to Zod enum exclude/extract functions by
[@&#8203;shaharke](https://github.com/shaharke) in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- Add docs for coercing nullish values by
[@&#8203;rbuetzer](https://github.com/rbuetzer) in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- Adds `zod-dev` utility to eco-system section by
[@&#8203;schalkventer](https://github.com/schalkventer) in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- Add zhttp library to docs by
[@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- fixed Readme typo in NaNs example by
[@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- adds zod-config library to the ecosystem by
[@&#8203;alexmarqs](https://github.com/alexmarqs) in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- docs: update link and description of conform integration by
[@&#8203;g1eny0ung](https://github.com/g1eny0ung) in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- Update README.md by
[@&#8203;yugmade13](https://github.com/yugmade13) in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- feat: overhaul generics section of readme to include more details on
z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w)
in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty)
in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- docs: update Chinese docs and correct some of the typos by
[@&#8203;jiechen257](https://github.com/jiechen257) in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- docs: improve chinese readme by
[@&#8203;luckrnx09](https://github.com/luckrnx09) in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- Add java-to-zod in X to Zod section by
[@&#8203;ivangreene](https://github.com/ivangreene) in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- docs: add `orval` to "X to Zod" ecosystems by
[@&#8203;soartec-lab](https://github.com/soartec-lab) in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

- [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
- [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
- [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
- [@&#8203;alexnault](https://github.com/alexnault) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
- [@&#8203;shaharke](https://github.com/shaharke) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
- [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
- [@&#8203;schalkventer](https://github.com/schalkventer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
- [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer)
made their first contribution in
[https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
- [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
- [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
- [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
- [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
- [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
- [@&#8203;m10rten](https://github.com/m10rten) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
- [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
- [@&#8203;yugmade13](https://github.com/yugmade13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
- [@&#8203;braden-w](https://github.com/braden-w) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
- [@&#8203;mmorearty](https://github.com/mmorearty) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
- [@&#8203;schicks](https://github.com/schicks) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
- [@&#8203;yukukotani](https://github.com/yukukotani) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
- [@&#8203;jiechen257](https://github.com/jiechen257) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
- [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
- [@&#8203;dvv](https://github.com/dvv) made their first contribution
in
[https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
- [@&#8203;rotu](https://github.com/rotu) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
- [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made
their first contribution in
[https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
- [@&#8203;ivoilic](https://github.com/ivoilic) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
- [@&#8203;telemakhos](https://github.com/telemakhos) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
- [@&#8203;bchrobot](https://github.com/bchrobot) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
- [@&#8203;szamanr](https://github.com/szamanr) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
- [@&#8203;ivangreene](https://github.com/ivangreene) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
- [@&#8203;xuxucode](https://github.com/xuxucode) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
- [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
- [@&#8203;jmike](https://github.com/jmike) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
- [@&#8203;Mansehej](https://github.com/Mansehej) made their first
contribution in
[https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
- [@&#8203;mokemoko](https://github.com/mokemoko) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
- [@&#8203;etareduction](https://github.com/etareduction) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
- [@&#8203;mastermatt](https://github.com/mastermatt) made their first
contribution in
[https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
- [@&#8203;soartec-lab](https://github.com/soartec-lab) made their
first contribution in
[https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**:
colinhacks/zod@v3.22.4...v3.23.0

###
[`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare
Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
America/Chicago, 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/autoblocksai/cli).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Nicole White <nicole@autoblocks.ai>
kodiakhq bot referenced this pull request in X-oss-byte/Nextjs May 8, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | [`3.23.6` -> `3.23.7`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.7) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

### [`v3.23.7`](https://github.com/colinhacks/zod/compare/v3.23.6...f985b5b922cb357dbf4b25bb43814d19f838e046)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.6...v3.23.7)

### [`v3.23.6`](https://github.com/colinhacks/zod/compare/v3.23.5...93b480b12ec3466cbd3b4182f7ce292e5c61528c)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.5...v3.23.6)

### [`v3.23.5`](https://github.com/colinhacks/zod/compare/v3.23.4...541a862e978f96eb391849a6bf16be84231aa1b3)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.4...v3.23.5)

### [`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-   [`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7) Add 3.23 announcement
-   [`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1) Revert change to default Input
-   [`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4) v3.23.4

### [`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

### [`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-   [`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3) Update protocol
-   [`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0) Fix t3env
-   [`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df) 3.23.2

### [`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

### [`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare Source](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;mastermatt](https://github.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://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 [@&#8203;szamanr](https://github.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks [@&#8203;StefanTerdell](https://github.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://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 [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   feature: add attribute message to enum validatiion by [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://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://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://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 [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
-   Added latest stable Node and TypeScript versions to test matrix for up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten) in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   Add types to `ZodFirstPartySchemaTypes` by [@&#8203;MatthijsMud](https://github.com/MatthijsMud) in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   fix: make `input` of `.required()` readonly by [@&#8203;KATT](https://github.com/KATT) in [https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
-   add never props to safe parse return types by [@&#8203;schicks](https://github.com/schicks) in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   Reporting errors of the preprocess that is the second property of object by [@&#8203;yukukotani](https://github.com/yukukotani) in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   Improve `addQuestionMarks`, fix [#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
-   fix for njs by [@&#8203;dvv](https://github.com/dvv) in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   only look in `src` for `bun test` by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   Restrict .pick()/.omit() mask type to only known properties by [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   Make EnumValues generic by [@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in [https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
-   perf: avoid unnecessary error maps by [@&#8203;xuxucode](https://github.com/xuxucode) in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   Bugfix: z.record().parse should not filter out undefined values by [@&#8203;raik-casimiro](https://github.com/raik-casimiro) in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   Use Set.has instead of Array.indexOf for enum comparison (perf improvement) by [@&#8203;jmike](https://github.com/jmike) in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   \[2888] fix emails with single quotes failing validation by [@&#8203;Mansehej](https://github.com/Mansehej) in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   Bugfix: Commas are incorrectly allowed in email regex. by [@&#8203;mokemoko](https://github.com/mokemoko) in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   Fix regex in cuid2 validation to be what cuid2 library expects by [@&#8203;etareduction](https://github.com/etareduction) in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
-   Faster ipv4 parsing by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

-   chore: add pastel package to ecosystem by [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   added required styles. by [@&#8203;Ansh101112](https://github.com/Ansh101112) in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   Feature/better chinese translate by [@&#8203;NWYLZW](https://github.com/NWYLZW) in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   Fix z.instanceof example by [@&#8203;alexnault](https://github.com/alexnault) in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   Add documentation to Zod enum exclude/extract functions by [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   Add docs for coercing nullish values by [@&#8203;rbuetzer](https://github.com/rbuetzer) in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   Adds `zod-dev` utility to eco-system section by [@&#8203;schalkventer](https://github.com/schalkventer) in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   Add zhttp library to docs by [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   fixed Readme typo in NaNs example by [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   adds zod-config library to the ecosystem by [@&#8203;alexmarqs](https://github.com/alexmarqs) in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   docs: update link and description of conform integration by [@&#8203;g1eny0ung](https://github.com/g1eny0ung) in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   Update README.md by [@&#8203;yugmade13](https://github.com/yugmade13) in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   feat: overhaul generics section of readme to include more details on z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w) in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty) in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   docs: update Chinese docs and correct some of the typos by [@&#8203;jiechen257](https://github.com/jiechen257) in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   docs: improve chinese readme by [@&#8203;luckrnx09](https://github.com/luckrnx09) in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   Add java-to-zod in X to Zod section by [@&#8203;ivangreene](https://github.com/ivangreene) in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   docs: add `orval` to "X to Zod" ecosystems by [@&#8203;soartec-lab](https://github.com/soartec-lab) in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

-   [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their first contribution in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first contribution in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first contribution in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   [@&#8203;alexnault](https://github.com/alexnault) made their first contribution in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   [@&#8203;shaharke](https://github.com/shaharke) made their first contribution in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first contribution in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   [@&#8203;schalkventer](https://github.com/schalkventer) made their first contribution in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) made their first contribution in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their first contribution in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first contribution in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their first contribution in [https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
-   [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made their first contribution in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first contribution in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   [@&#8203;m10rten](https://github.com/m10rten) made their first contribution in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their first contribution in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   [@&#8203;yugmade13](https://github.com/yugmade13) made their first contribution in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   [@&#8203;braden-w](https://github.com/braden-w) made their first contribution in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   [@&#8203;mmorearty](https://github.com/mmorearty) made their first contribution in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   [@&#8203;schicks](https://github.com/schicks) made their first contribution in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   [@&#8203;yukukotani](https://github.com/yukukotani) made their first contribution in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   [@&#8203;jiechen257](https://github.com/jiechen257) made their first contribution in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first contribution in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   [@&#8203;dvv](https://github.com/dvv) made their first contribution in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   [@&#8203;rotu](https://github.com/rotu) made their first contribution in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made their first contribution in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   [@&#8203;ivoilic](https://github.com/ivoilic) made their first contribution in [https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
-   [@&#8203;telemakhos](https://github.com/telemakhos) made their first contribution in [https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
-   [@&#8203;bchrobot](https://github.com/bchrobot) made their first contribution in [https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
-   [@&#8203;szamanr](https://github.com/szamanr) made their first contribution in [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
-   [@&#8203;ivangreene](https://github.com/ivangreene) made their first contribution in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   [@&#8203;xuxucode](https://github.com/xuxucode) made their first contribution in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their first contribution in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   [@&#8203;jmike](https://github.com/jmike) made their first contribution in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   [@&#8203;Mansehej](https://github.com/Mansehej) made their first contribution in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   [@&#8203;mokemoko](https://github.com/mokemoko) made their first contribution in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   [@&#8203;etareduction](https://github.com/etareduction) made their first contribution in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   [@&#8203;mastermatt](https://github.com/mastermatt) made their first contribution in [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
-   [@&#8203;soartec-lab](https://github.com/soartec-lab) made their first contribution in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**: colinhacks/zod@v3.22.4...v3.23.0

### [`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **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.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
kodiakhq bot referenced this pull request in X-oss-byte/Nextjs May 10, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | [`3.23.7` -> `3.23.8`](https://renovatebot.com/diffs/npm/zod/3.22.4/3.23.8) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.23.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.23.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.22.4/3.23.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.22.4/3.23.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

### [`v3.23.8`](https://github.com/colinhacks/zod/releases/tag/v3.23.8)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.7...v3.23.8)

#### Commits:

-   [`0f4d403`](https://github.com/colinhacks/zod/commit/0f4d403558ae0490c711e4c2bfcf6c200bd14e11) Add Bronze logos ([#&#8203;3470](https://github.com/colinhacks/zod/issues/3470))
-   [`1968731`](https://github.com/colinhacks/zod/commit/19687315b5b24bbd1ff6c346bfc2975700221748) Tweak tiers ([#&#8203;3471](https://github.com/colinhacks/zod/issues/3471))
-   [`eda7df3`](https://github.com/colinhacks/zod/commit/eda7df314399929f7ed737423868a5a0780cd944) Change RefinementCtx to interface
-   [`ca42965`](https://github.com/colinhacks/zod/commit/ca42965df46b2f7e2747db29c40a26bcb32a51d5) v3.23.8

### [`v3.23.7`](https://github.com/colinhacks/zod/compare/v3.23.6...f985b5b922cb357dbf4b25bb43814d19f838e046)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.6...v3.23.7)

### [`v3.23.6`](https://github.com/colinhacks/zod/compare/v3.23.5...93b480b12ec3466cbd3b4182f7ce292e5c61528c)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.5...v3.23.6)

### [`v3.23.5`](https://github.com/colinhacks/zod/compare/v3.23.4...541a862e978f96eb391849a6bf16be84231aa1b3)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.4...v3.23.5)

### [`v3.23.4`](https://github.com/colinhacks/zod/releases/tag/v3.23.4)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.3...v3.23.4)

#### Commits:

-   [`157b18d`](https://github.com/colinhacks/zod/commit/157b18d742c86d85b26a8421af46ad6d6d6b6ea7) Add 3.23 announcement
-   [`aedf93f`](https://github.com/colinhacks/zod/commit/aedf93f1435a29463d915c3be45b4dcbeefa8cc1) Revert change to default Input
-   [`45107f7`](https://github.com/colinhacks/zod/commit/45107f7a7230fe48ee24dc37e621422c9dc64ec4) v3.23.4

### [`v3.23.3`](https://github.com/colinhacks/zod/compare/v3.23.2...103d2436f85872ca0e0e6247652989cc93d46a39)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.2...v3.23.3)

### [`v3.23.2`](https://github.com/colinhacks/zod/releases/tag/v3.23.2)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.1...v3.23.2)

#### Commits:

-   [`c340558`](https://github.com/colinhacks/zod/commit/c340558d14f5222a2ca177e0591463c06cc5edc3) Update protocol
-   [`ef588d0`](https://github.com/colinhacks/zod/commit/ef588d036f3e98b832796e9a681dbaf097631ea0) Fix t3env
-   [`9df70dd`](https://github.com/colinhacks/zod/commit/9df70dd71195df951c43f180fbe5e64ea1f835df) 3.23.2

### [`v3.23.1`](https://github.com/colinhacks/zod/compare/v3.23.0...2ff5ceb428634de0ea4501495039c05a8e95b60a)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.23.0...v3.23.1)

### [`v3.23.0`](https://github.com/colinhacks/zod/releases/tag/v3.23.0)

[Compare Source](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;igalklebanov](https://github.com/igalklebanov)! [https://github.com/colinhacks/zod/pull/1766](https://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 [@&#8203;mastermatt](https://github.com/mastermatt)! [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)

```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```

##### Improvements to `z.string().datetime()`

Thanks [@&#8203;bchrobot](https://github.com/bchrobot) [https://github.com/colinhacks/zod/pull/2522](https://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 [@&#8203;szamanr](https://github.com/szamanr)! [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)

##### `z.string().base64()`

Zod can now validate base64 strings. Thanks [@&#8203;StefanTerdell](https://github.com/StefanTerdell)! [https://github.com/colinhacks/zod/pull/3047](https://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 [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   feature: add attribute message to enum validatiion by [@&#8203;fernandollisboa](https://github.com/fernandollisboa) in [https://github.com/colinhacks/zod/pull/3169](https://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://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://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 [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3240](https://github.com/colinhacks/zod/pull/3240)
-   Added latest stable Node and TypeScript versions to test matrix for up-to-date testing. by [@&#8203;m10rten](https://github.com/m10rten) in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   Add types to `ZodFirstPartySchemaTypes` by [@&#8203;MatthijsMud](https://github.com/MatthijsMud) in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   fix: make `input` of `.required()` readonly by [@&#8203;KATT](https://github.com/KATT) in [https://github.com/colinhacks/zod/pull/3301](https://github.com/colinhacks/zod/pull/3301)
-   add never props to safe parse return types by [@&#8203;schicks](https://github.com/schicks) in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   Reporting errors of the preprocess that is the second property of object by [@&#8203;yukukotani](https://github.com/yukukotani) in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   Improve `addQuestionMarks`, fix [#&#8203;2184](https://github.com/colinhacks/zod/issues/2184) by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3352](https://github.com/colinhacks/zod/pull/3352)
-   fix for njs by [@&#8203;dvv](https://github.com/dvv) in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   only look in `src` for `bun test` by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   Restrict .pick()/.omit() mask type to only known properties by [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   Make EnumValues generic by [@&#8203;IlyaSemenov](https://github.com/IlyaSemenov) in [https://github.com/colinhacks/zod/pull/2338](https://github.com/colinhacks/zod/pull/2338)
-   perf: avoid unnecessary error maps by [@&#8203;xuxucode](https://github.com/xuxucode) in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   Bugfix: z.record().parse should not filter out undefined values by [@&#8203;raik-casimiro](https://github.com/raik-casimiro) in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   Use Set.has instead of Array.indexOf for enum comparison (perf improvement) by [@&#8203;jmike](https://github.com/jmike) in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   \[2888] fix emails with single quotes failing validation by [@&#8203;Mansehej](https://github.com/Mansehej) in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   Bugfix: Commas are incorrectly allowed in email regex. by [@&#8203;mokemoko](https://github.com/mokemoko) in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   Fix regex in cuid2 validation to be what cuid2 library expects by [@&#8203;etareduction](https://github.com/etareduction) in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   Make depcruise pass by [@&#8203;rotu](https://github.com/rotu) in [https://github.com/colinhacks/zod/pull/3037](https://github.com/colinhacks/zod/pull/3037)
-   Faster ipv4 parsing by [@&#8203;colinhacks](https://github.com/colinhacks) in [https://github.com/colinhacks/zod/pull/3413](https://github.com/colinhacks/zod/pull/3413)

#### Docs and ecosystem

-   chore: add pastel package to ecosystem by [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   added required styles. by [@&#8203;Ansh101112](https://github.com/Ansh101112) in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   Feature/better chinese translate by [@&#8203;NWYLZW](https://github.com/NWYLZW) in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   Fix z.instanceof example by [@&#8203;alexnault](https://github.com/alexnault) in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   Add documentation to Zod enum exclude/extract functions by [@&#8203;shaharke](https://github.com/shaharke) in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   Add docs for coercing nullish values by [@&#8203;rbuetzer](https://github.com/rbuetzer) in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   Adds `zod-dev` utility to eco-system section by [@&#8203;schalkventer](https://github.com/schalkventer) in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   Add zhttp library to docs by [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   fixed Readme typo in NaNs example by [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   adds zod-config library to the ecosystem by [@&#8203;alexmarqs](https://github.com/alexmarqs) in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   docs: update link and description of conform integration by [@&#8203;g1eny0ung](https://github.com/g1eny0ung) in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   Update README.md by [@&#8203;yugmade13](https://github.com/yugmade13) in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   feat: overhaul generics section of readme to include more details on z.ZodTypeAny usage by [@&#8203;braden-w](https://github.com/braden-w) in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   Fix small typos by [@&#8203;mmorearty](https://github.com/mmorearty) in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   docs: update Chinese docs and correct some of the typos by [@&#8203;jiechen257](https://github.com/jiechen257) in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   docs: improve chinese readme by [@&#8203;luckrnx09](https://github.com/luckrnx09) in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   Add java-to-zod in X to Zod section by [@&#8203;ivangreene](https://github.com/ivangreene) in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   docs: add `orval` to "X to Zod" ecosystems by [@&#8203;soartec-lab](https://github.com/soartec-lab) in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

#### New Contributors

-   [@&#8203;jlarmstrongiv](https://github.com/jlarmstrongiv) made their first contribution in [https://github.com/colinhacks/zod/pull/2949](https://github.com/colinhacks/zod/pull/2949)
-   [@&#8203;Ansh101112](https://github.com/Ansh101112) made their first contribution in [https://github.com/colinhacks/zod/pull/2955](https://github.com/colinhacks/zod/pull/2955)
-   [@&#8203;NWYLZW](https://github.com/NWYLZW) made their first contribution in [https://github.com/colinhacks/zod/pull/2988](https://github.com/colinhacks/zod/pull/2988)
-   [@&#8203;alexnault](https://github.com/alexnault) made their first contribution in [https://github.com/colinhacks/zod/pull/3003](https://github.com/colinhacks/zod/pull/3003)
-   [@&#8203;shaharke](https://github.com/shaharke) made their first contribution in [https://github.com/colinhacks/zod/pull/3044](https://github.com/colinhacks/zod/pull/3044)
-   [@&#8203;rbuetzer](https://github.com/rbuetzer) made their first contribution in [https://github.com/colinhacks/zod/pull/3067](https://github.com/colinhacks/zod/pull/3067)
-   [@&#8203;schalkventer](https://github.com/schalkventer) made their first contribution in [https://github.com/colinhacks/zod/pull/3113](https://github.com/colinhacks/zod/pull/3113)
-   [@&#8203;evertdespiegeleer](https://github.com/evertdespiegeleer) made their first contribution in [https://github.com/colinhacks/zod/pull/3134](https://github.com/colinhacks/zod/pull/3134)
-   [@&#8203;RashJrEdmund](https://github.com/RashJrEdmund) made their first contribution in [https://github.com/colinhacks/zod/pull/3181](https://github.com/colinhacks/zod/pull/3181)
-   [@&#8203;alexmarqs](https://github.com/alexmarqs) made their first contribution in [https://github.com/colinhacks/zod/pull/3200](https://github.com/colinhacks/zod/pull/3200)
-   [@&#8203;JonnyBurger](https://github.com/JonnyBurger) made their first contribution in [https://github.com/colinhacks/zod/pull/3214](https://github.com/colinhacks/zod/pull/3214)
-   [@&#8203;fernandollisboa](https://github.com/fernandollisboa) made their first contribution in [https://github.com/colinhacks/zod/pull/3178](https://github.com/colinhacks/zod/pull/3178)
-   [@&#8203;g1eny0ung](https://github.com/g1eny0ung) made their first contribution in [https://github.com/colinhacks/zod/pull/3238](https://github.com/colinhacks/zod/pull/3238)
-   [@&#8203;m10rten](https://github.com/m10rten) made their first contribution in [https://github.com/colinhacks/zod/pull/3278](https://github.com/colinhacks/zod/pull/3278)
-   [@&#8203;MatthijsMud](https://github.com/MatthijsMud) made their first contribution in [https://github.com/colinhacks/zod/pull/3247](https://github.com/colinhacks/zod/pull/3247)
-   [@&#8203;yugmade13](https://github.com/yugmade13) made their first contribution in [https://github.com/colinhacks/zod/pull/3317](https://github.com/colinhacks/zod/pull/3317)
-   [@&#8203;braden-w](https://github.com/braden-w) made their first contribution in [https://github.com/colinhacks/zod/pull/3321](https://github.com/colinhacks/zod/pull/3321)
-   [@&#8203;mmorearty](https://github.com/mmorearty) made their first contribution in [https://github.com/colinhacks/zod/pull/3336](https://github.com/colinhacks/zod/pull/3336)
-   [@&#8203;schicks](https://github.com/schicks) made their first contribution in [https://github.com/colinhacks/zod/pull/3295](https://github.com/colinhacks/zod/pull/3295)
-   [@&#8203;yukukotani](https://github.com/yukukotani) made their first contribution in [https://github.com/colinhacks/zod/pull/2912](https://github.com/colinhacks/zod/pull/2912)
-   [@&#8203;jiechen257](https://github.com/jiechen257) made their first contribution in [https://github.com/colinhacks/zod/pull/3338](https://github.com/colinhacks/zod/pull/3338)
-   [@&#8203;luckrnx09](https://github.com/luckrnx09) made their first contribution in [https://github.com/colinhacks/zod/pull/3371](https://github.com/colinhacks/zod/pull/3371)
-   [@&#8203;dvv](https://github.com/dvv) made their first contribution in [https://github.com/colinhacks/zod/pull/3063](https://github.com/colinhacks/zod/pull/3063)
-   [@&#8203;rotu](https://github.com/rotu) made their first contribution in [https://github.com/colinhacks/zod/pull/3038](https://github.com/colinhacks/zod/pull/3038)
-   [@&#8203;petrovmiroslav](https://github.com/petrovmiroslav) made their first contribution in [https://github.com/colinhacks/zod/pull/3255](https://github.com/colinhacks/zod/pull/3255)
-   [@&#8203;ivoilic](https://github.com/ivoilic) made their first contribution in [https://github.com/colinhacks/zod/pull/2364](https://github.com/colinhacks/zod/pull/2364)
-   [@&#8203;telemakhos](https://github.com/telemakhos) made their first contribution in [https://github.com/colinhacks/zod/pull/3388](https://github.com/colinhacks/zod/pull/3388)
-   [@&#8203;bchrobot](https://github.com/bchrobot) made their first contribution in [https://github.com/colinhacks/zod/pull/2522](https://github.com/colinhacks/zod/pull/2522)
-   [@&#8203;szamanr](https://github.com/szamanr) made their first contribution in [https://github.com/colinhacks/zod/pull/3391](https://github.com/colinhacks/zod/pull/3391)
-   [@&#8203;ivangreene](https://github.com/ivangreene) made their first contribution in [https://github.com/colinhacks/zod/pull/3385](https://github.com/colinhacks/zod/pull/3385)
-   [@&#8203;xuxucode](https://github.com/xuxucode) made their first contribution in [https://github.com/colinhacks/zod/pull/2532](https://github.com/colinhacks/zod/pull/2532)
-   [@&#8203;raik-casimiro](https://github.com/raik-casimiro) made their first contribution in [https://github.com/colinhacks/zod/pull/3251](https://github.com/colinhacks/zod/pull/3251)
-   [@&#8203;jmike](https://github.com/jmike) made their first contribution in [https://github.com/colinhacks/zod/pull/2659](https://github.com/colinhacks/zod/pull/2659)
-   [@&#8203;Mansehej](https://github.com/Mansehej) made their first contribution in [https://github.com/colinhacks/zod/pull/2889](https://github.com/colinhacks/zod/pull/2889)
-   [@&#8203;mokemoko](https://github.com/mokemoko) made their first contribution in [https://github.com/colinhacks/zod/pull/3286](https://github.com/colinhacks/zod/pull/3286)
-   [@&#8203;etareduction](https://github.com/etareduction) made their first contribution in [https://github.com/colinhacks/zod/pull/2961](https://github.com/colinhacks/zod/pull/2961)
-   [@&#8203;mastermatt](https://github.com/mastermatt) made their first contribution in [https://github.com/colinhacks/zod/pull/3265](https://github.com/colinhacks/zod/pull/3265)
-   [@&#8203;soartec-lab](https://github.com/soartec-lab) made their first contribution in [https://github.com/colinhacks/zod/pull/3397](https://github.com/colinhacks/zod/pull/3397)

**Full Changelog**: colinhacks/zod@v3.22.4...v3.23.0

### [`v3.22.5`](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

[Compare Source](https://github.com/colinhacks/zod/compare/v3.22.4...e7a9b9b3033991be6b4225f1be21da39c250bbb0)

</details>

---

### Configuration

📅 **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.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants