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

Reporting errors of the preprocess that is the second property of object #2912

Merged
merged 7 commits into from
Mar 21, 2024

Conversation

yukukotani
Copy link
Contributor

Fix #2904

This behavior was introduced in #2426. ctx.common.issues includes the errors of previous properties, so that they affects the status of preprocess.

@netlify
Copy link

netlify bot commented Oct 27, 2023

Deploy Preview for guileless-rolypoly-866f8a ready!

Name Link
🔨 Latest commit 152bfdb
🔍 Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/65fc90d2ad067c0008589605
😎 Deploy Preview https://deploy-preview-2912--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.

@yukukotani
Copy link
Contributor Author

I'm not confident in my understanding of the whole codebase and the change in #2426.

@Pingviinituutti Could you take a look at this PR?

});
expect(result.success).toEqual(false);
if (!result.success) {
expect(result.error.issues.length).toEqual(2);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fails in current master branch since result.error.issues.length === 1

@Pingviinituutti
Copy link
Contributor

Looks good to me, seems the simple fix is enough to :)

Are the current test cases enough to ensure it works as intended?

@yukukotani
Copy link
Contributor Author

@Pingviinituutti Thanks!

Are the current test cases enough to ensure it works as intended?

The current test cases are fail on master branch, so I think it's minimum but enough.

@Austin-Love
Copy link

Is there any movement on this? This is causing major issues for us.

@yukukotani
Copy link
Contributor Author

@Austin-Love This is ready and waiting for getting review

@colinhacks
Copy link
Owner

colinhacks commented Mar 21, 2024

Great stuff @yukukotani and apologies to everyone who waited so long for this.

I made some fairly major changes to ctx.addIssue in preprocess, so it behaved identically to .superRefine and .transform. Namely, all issues are considered non-fatal — validation will continue even if .addIssue was called during the preprocess. This behavior can be modified by indicating fatal: true in ctx.addIssue:

    const schema = z.preprocess((data, ctx) => {
      ctx.addIssue({
        code: "custom",
        message: `bad thing happened`,
        fatal: true
      });
      return data;
    }, z.string())

@colinhacks colinhacks enabled auto-merge (squash) March 21, 2024 00:53
@colinhacks colinhacks force-pushed the preprocess-as-second-prop branch from 78b548d to 152bfdb Compare March 21, 2024 19:56
@colinhacks colinhacks merged commit 9499375 into colinhacks:master Mar 21, 2024
10 of 11 checks passed
@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>
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.

Zod preprocess does not generate error
4 participants