From d44b7e3687e65964833954dd7ba030e871a04173 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 29 Apr 2024 07:23:05 +0000
Subject: [PATCH] fix(deps): update dependency zod to v3.23.0 (#207)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://togithub.com/colinhacks/zod))
| [`3.22.5` ->
`3.23.0`](https://renovatebot.com/diffs/npm/zod/3.22.5/3.23.0) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
---
### Release Notes
colinhacks/zod (zod)
###
[`v3.23.0`](https://togithub.com/colinhacks/zod/releases/tag/v3.23.0)
[Compare
Source](https://togithub.com/colinhacks/zod/compare/e7a9b9b3033991be6b4225f1be21da39c250bbb0...v3.23.0)
Zod 3.23 is now available. This is the final `3.x` release before Zod
4.0. To try it out:
```sh
npm install zod
```
#### Features
##### `z.string().date()`
Zod can now validate ISO 8601 date strings. Thanks
[@igalklebanov](https://togithub.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://togithub.com/colinhacks/zod/pull/1766)
```ts
const schema = z.string().date();
schema.parse("2022-01-01"); // OK
```
##### `z.string().time()`
Zod can now validate ISO 8601 time strings. Thanks
[@igalklebanov](https://togithub.com/igalklebanov)!
[https://github.com/colinhacks/zod/pull/1766](https://togithub.com/colinhacks/zod/pull/1766)
```ts
const schema = z.string().time();
schema.parse("12:00:00"); // OK
```
You can specify sub-second precision using the `precision` option:
```ts
const schema = z.string().time({ precision: 3 });
schema.parse("12:00:00.123"); // OK
schema.parse("12:00:00.123456"); // Error
schema.parse("12:00:00"); // Error
```
##### `z.string().duration()`
Zod can now validate ISO 8601 duration strings. Thanks
[@mastermatt](https://togithub.com/mastermatt)!
[https://github.com/colinhacks/zod/pull/3265](https://togithub.com/colinhacks/zod/pull/3265)
```ts
const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
```
##### Improvements to `z.string().datetime()`
Thanks [@bchrobot](https://togithub.com/bchrobot)
[https://github.com/colinhacks/zod/pull/2522](https://togithub.com/colinhacks/zod/pull/2522)
You can now allow *unqualified* (timezone-less) datetimes using the
`local: true` flag.
```ts
const schema = z.string().datetime({ local: true });
schema.parse("2022-01-01T12:00:00"); // OK
```
Plus, Zod now validates the day-of-month correctly to ensure no invalid
dates (e.g. February 30th) pass validation. Thanks
[@szamanr](https://togithub.com/szamanr)!
[https://github.com/colinhacks/zod/pull/3391](https://togithub.com/colinhacks/zod/pull/3391)
##### `z.string().base64()`
Zod can now validate base64 strings. Thanks
[@StefanTerdell](https://togithub.com/StefanTerdell)!
[https://github.com/colinhacks/zod/pull/3047](https://togithub.com/colinhacks/zod/pull/3047)
```ts
const schema = z.string().base64();
schema.parse("SGVsbG8gV29ybGQ="); // OK
```
##### Improved discriminated unions
The following can now be used as discriminator keys in
`z.discriminatedUnion()`:
- `ZodOptional`
- `ZodNullable`
- `ZodReadonly`
- `ZodBranded`
- `ZodCatch`
```ts
const schema = z.discriminatedUnion("type", [
z.object({ type: z.literal("A").optional(), value: z.number() }),
z.object({ type: z.literal("B").nullable(), value: z.string() }),
z.object({ type: z.literal("C").readonly(), value: z.boolean() }),
z.object({ type: z.literal("D").brand<"D">(), value: z.boolean() }),
z.object({ type: z.literal("E").catch("E"), value: z.unknown() }),
]);
```
##### Misc
- feature: allow falsy error message by
[@fernandollisboa](https://togithub.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3178](https://togithub.com/colinhacks/zod/pull/3178)
- feature: add attribute message to enum validatiion by
[@fernandollisboa](https://togithub.com/fernandollisboa) in
[https://github.com/colinhacks/zod/pull/3169](https://togithub.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://togithub.com/colinhacks/zod/pull/3247)
```diff
+ | ZodPipeline
+ | ZodReadonly
+ | 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
---
### 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.
---
- [ ] 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).
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
app/bun.lockb | Bin 191237 -> 191237 bytes
app/package.json | 2 +-
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/bun.lockb b/app/bun.lockb
index 7723e91a92147ddcc02c3598e0fbf512c14bcc13..0954ed339c7a92ee5dcf55b246930fd773133ebb 100755
GIT binary patch
delta 150
zcmV;H0BQe))(eH!3y>}#I=V>v^OJAl;5QtLu`_iYUo|O%x{5TZVzmg3IoVz^u}-!g
zlf)r3vp65smOwaC)A+RLa`u~_s=MeE@KhZk6A=MRLLIp}_j0CkGNA)(>DZaYKFdo~
z0fx;Fi?DK9K^iUy;Y9%(Jf&Kg%NT=Awzo~T0R%>uc~k-$w`}|YJ7AX~lL8{Q$y@?F
Ejx>cqV*mgE
delta 161
zcmV;S0ABxv)(eH!3y>}#6n6gH5)#O|}69MguY~HJ5x;0vNY!`~f>)
P0Wy}v0wK4_Tmn3f;S)x8
diff --git a/app/package.json b/app/package.json
index 33180e97..04deb515 100644
--- a/app/package.json
+++ b/app/package.json
@@ -21,7 +21,7 @@
"schema-dts": "1.1.2",
"slugify": "1.6.6",
"three": "0.163.0",
- "zod": "3.22.5"
+ "zod": "3.23.0"
},
"devDependencies": {
"@types/eslint": "8.56.10",