From edc0ad1f7bf65efcf0e6a345dd6e897f24d29112 Mon Sep 17 00:00:00 2001 From: renovate Date: Sun, 22 Dec 2024 22:03:52 +0000 Subject: [PATCH] fix(deps): update dependency zod to v3.24.1 (#406) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [zod](https://zod.dev) ([source](https://github.com/colinhacks/zod)) | dependencies | minor | [`3.23.8` -> `3.24.1`](https://renovatebot.com/diffs/npm/zod/3.23.8/3.24.1) | --- ### Release Notes
colinhacks/zod (zod) ### [`v3.24.1`](https://github.com/colinhacks/zod/releases/tag/v3.24.1) [Compare Source](https://github.com/colinhacks/zod/compare/v3.24.0...v3.24.1) ##### Commits: - [`0c6cbbd`](https://github.com/colinhacks/zod/commit/0c6cbbdd1315683dd3d589fbdc5765c26431dcc9) Undeprecate .nonempty() - [`4e219d6`](https://github.com/colinhacks/zod/commit/4e219d6ad9d5e56e20afd7423092f506400a29e4) Bump min TS version to 5.0 - [`65adeea`](https://github.com/colinhacks/zod/commit/65adeeacef0274abbda5438470a3d2bfd376256d) v3.24.1 ### [`v3.24.0`](https://github.com/colinhacks/zod/releases/tag/v3.24.0) [Compare Source](https://github.com/colinhacks/zod/compare/v3.23.8...v3.24.0) ##### Implement `@standard-schema/spec` This is the first version of Zod to implement the [Standard Schema](https://github.com/standard-schema/standard-schema) spec. This is a new community effort among several validation library authors to implement a common interface, with the goal of simplifying the process of integrating schema validators with the rest of the ecosystem. Read more about the project and goals [here](https://github.com/standard-schema/standard-schema). ##### `z.string().jwt()` Thanks to [@​Mokshit06](https://github.com/Mokshit06) and [@​Cognition-Labs](https://github.com/Cognition-Labs) for this contribution! To verify that a string is a valid 3-part JWT. z.string().jwt(); > ⚠️ This does not *verify* your JWT cryptographically! It merely ensures its in the proper format. Use a library like [`jsonwebtoken`](https://github.com/auth0/node-jsonwebtoken) to verify the JWT signature, parse the token, and read the claims. To constrain the JWT to a specific algorithm: ```ts z.string().jwt({ alg: "RS256" }); ``` ##### `z.string().base64url()` Thank you to [@​marvinruder](https://github.com/marvinruder)! To complement the JWT validation, Zod 3.24 implements a standalone `.base64url()` string validation API. (The three elements of JWTs are base64url-encoded JSON strings.) ```ts z.string().base64url() ``` This functionality is available along the standard `z.string().base64()` validator added in Zod 3.23. ##### `z.string().cidr()` Thanks to [@​wataryooou](https://github.com/wataryooou) for their work on this! A validator for [CIDR notation](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) for specifying IP address ranges, e.g. `192.24.12.0/22`. ```ts z.string().cidr() ``` To specify an IP version: ```ts z.string().cidr({ version: "v4" }) z.string().cidr({ version: "v6" }) ``` *** View the full diff from 3.23.8: https://github.com/colinhacks/zod/compare/v3.23.8...v3.24.0 - [`294f54f`](https://github.com/colinhacks/zod/commit/294f54f418bd1506d807b351213c66dbffd8ac31) Update README_ZH.md about Discriminated unions ([#​3493](https://github.com/colinhacks/zod/issues/3493)) - [`1247caf`](https://github.com/colinhacks/zod/commit/1247caf58d1c189155bd04c068be1c758ab77c1c) Add Kubb as X-to-Zod community tool ([#​3508](https://github.com/colinhacks/zod/issues/3508)) - [`62b7842`](https://github.com/colinhacks/zod/commit/62b7842c46dd7f1004f41e2220284abb75378fb7) Update default branch - [`c6bc80d`](https://github.com/colinhacks/zod/commit/c6bc80de5091c634a371cc81877df816a269e965) Fix issue [#​3582](https://github.com/colinhacks/zod/issues/3582) : ULID should be case insensitive ([#​3593](https://github.com/colinhacks/zod/issues/3593)) - [`a5b9dc3`](https://github.com/colinhacks/zod/commit/a5b9dc34d4086e8e084a059f71a481618a336303) docs: add zod-schema-faker to ecosystem ([#​3605](https://github.com/colinhacks/zod/issues/3605)) - [`9818d0e`](https://github.com/colinhacks/zod/commit/9818d0eba1a5877a2b1917296d018a8b4e31b211) Add zod-sockets ([#​3609](https://github.com/colinhacks/zod/issues/3609)) - [`7173d0b`](https://github.com/colinhacks/zod/commit/7173d0bcc2105777102e22d36a2866196e2830f3) Add drizzle-zod library to X to Zod README.md section ([#​3648](https://github.com/colinhacks/zod/issues/3648)) - [`c5a4edc`](https://github.com/colinhacks/zod/commit/c5a4edcaf7a7c434b0f94a18123750bd1151c2cf) Add 'schemql' in Powered by Zod ([#​3800](https://github.com/colinhacks/zod/issues/3800)) - [`85916b3`](https://github.com/colinhacks/zod/commit/85916b32002e4302cccd77fcf64574f34f2e8595) docs: add zod-form-renderer to form integration docs ([#​3697](https://github.com/colinhacks/zod/issues/3697)) - [`51f1dc3`](https://github.com/colinhacks/zod/commit/51f1dc3950d93e4a1c11467b7e92069cd372d450) docs: add unplugin-environment in powered by zod ([#​3778](https://github.com/colinhacks/zod/issues/3778)) - [`8e74db3`](https://github.com/colinhacks/zod/commit/8e74db34cd0c673d21fe3b8b62c9de4c785e3de2) fix: ipv6 regex validation ([#​3513](https://github.com/colinhacks/zod/issues/3513)) - [`1f4f0da`](https://github.com/colinhacks/zod/commit/1f4f0dacf313a2dba45563d78171e6f016096925) refactor: rename ip version types ([#​3755](https://github.com/colinhacks/zod/issues/3755)) - [`f487d74`](https://github.com/colinhacks/zod/commit/f487d74ecd3ae703ef8932462d14d643e31658b3) Remove faulty ip test case - [`48f1c47`](https://github.com/colinhacks/zod/commit/48f1c4793b21b19714d68f970ae3d739263e2b1d) docs: Remove invalid semicolon in ERROR_HANDLING.md ([#​3857](https://github.com/colinhacks/zod/issues/3857)) - [`1d0a4b9`](https://github.com/colinhacks/zod/commit/1d0a4b95300a2c470b175ed4524fe3cf04ef9b19) fix: bigint coerce crash ([#​3822](https://github.com/colinhacks/zod/issues/3822)) - [`14dceaa`](https://github.com/colinhacks/zod/commit/14dceaa2d2b27ef448b48c4f0641413e3ead974d) Add API library ([#​3814](https://github.com/colinhacks/zod/issues/3814)) - [`f82f817`](https://github.com/colinhacks/zod/commit/f82f817252c1f1342d81a2a5ae9adf426cb32cec) feat: z.string.cidr() - support CIDR notation ([#​3820](https://github.com/colinhacks/zod/issues/3820)) - [`71a0c33`](https://github.com/colinhacks/zod/commit/71a0c33c01ca7e2be16e27f763ec1c3e9dee6943) docs: add info on unqualified local datetime strings ([#​3760](https://github.com/colinhacks/zod/issues/3760)) - [`b85686a`](https://github.com/colinhacks/zod/commit/b85686ab852bc75919fd9d853dfca4b0968301dd) Add support for `base64url` strings ([#​3712](https://github.com/colinhacks/zod/issues/3712)) - [`6407bed`](https://github.com/colinhacks/zod/commit/6407bed5a229f330b9353e086f7798f1422e2bb7) Allow creation of discriminated unions with a readonly array of options ([#​3535](https://github.com/colinhacks/zod/issues/3535)) - [`3755146`](https://github.com/colinhacks/zod/commit/37551462f4a534f86e6190aafea1747b010eca7a) Remove createParams cascade from .array() ([#​3530](https://github.com/colinhacks/zod/issues/3530)) - [`963386d`](https://github.com/colinhacks/zod/commit/963386df253360fde67ca10c6bf47fec1fcc476a) Fix lint - [`69a1798`](https://github.com/colinhacks/zod/commit/69a1798ce2df65555bda0a8978a6baadd7d5588e) Implement Standard Schema spec ([#​3850](https://github.com/colinhacks/zod/issues/3850)) - [`c1dd537`](https://github.com/colinhacks/zod/commit/c1dd537baa9e4fad781ea365643399707fea91be) Adds `frrm` package to documentation ([#​3818](https://github.com/colinhacks/zod/issues/3818)) - [`b68c05f`](https://github.com/colinhacks/zod/commit/b68c05fea12d8060000aa06abc1e95b08f061378) feat: Add JWT string validator ([#​3893](https://github.com/colinhacks/zod/issues/3893))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). Reviewed-on: https://git.tristess.app/alexandresoro/ouca/pulls/406 Reviewed-by: Alexandre Soro Co-authored-by: renovate Co-committed-by: renovate --- packages/backend/package.json | 2 +- packages/common/package.json | 2 +- packages/frontend/package.json | 2 +- pnpm-lock.yaml | 18 +++++++++--------- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/backend/package.json b/packages/backend/package.json index ccbc1046f..c8e713e3a 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -53,7 +53,7 @@ "pino-pretty": "13.0.0", "serialize-error": "11.0.3", "umzug": "3.8.2", - "zod": "3.23.8" + "zod": "3.24.1" }, "devDependencies": { "@biomejs/biome": "1.9.4", diff --git a/packages/common/package.json b/packages/common/package.json index cb9c5c7a1..50177464c 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -26,7 +26,7 @@ }, "dependencies": { "proj4": "2.15.0", - "zod": "3.23.8" + "zod": "3.24.1" }, "devDependencies": { "@biomejs/biome": "1.9.4", diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 807277dc5..2d7f36613 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -55,7 +55,7 @@ "swr": "2.2.5", "unique-names-generator": "4.7.1", "use-deep-compare-effect": "1.8.1", - "zod": "3.23.8" + "zod": "3.24.1" }, "devDependencies": { "@biomejs/biome": "1.9.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5180fcd47..8ce27a5fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,8 +96,8 @@ importers: specifier: 3.8.2 version: 3.8.2(@types/node@20.17.10) zod: - specifier: 3.23.8 - version: 3.23.8 + specifier: 3.24.1 + version: 3.24.1 devDependencies: '@biomejs/biome': specifier: 1.9.4 @@ -148,8 +148,8 @@ importers: specifier: 2.15.0 version: 2.15.0 zod: - specifier: 3.23.8 - version: 3.23.8 + specifier: 3.24.1 + version: 3.24.1 devDependencies: '@biomejs/biome': specifier: 1.9.4 @@ -272,8 +272,8 @@ importers: specifier: 1.8.1 version: 1.8.1(react@18.3.1) zod: - specifier: 3.23.8 - version: 3.23.8 + specifier: 3.24.1 + version: 3.24.1 devDependencies: '@biomejs/biome': specifier: 1.9.4 @@ -3689,8 +3689,8 @@ packages: resolution: {integrity: sha512-9qv4rlDiopXg4E69k+vMHjNN63YFMe9sZMrdlvKnCjlCRWeCBswPPMPUfx+ipsAWq1LXHe70RcbaHdJJpS6hyQ==} engines: {node: '>= 10'} - zod@3.23.8: - resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} + zod@3.24.1: + resolution: {integrity: sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==} snapshots: @@ -7146,4 +7146,4 @@ snapshots: compress-commons: 4.1.2 readable-stream: 3.6.2 - zod@3.23.8: {} + zod@3.24.1: {}