Skip to content

Update dependency zod to ^3.24.4 #213

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 16, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zod (source) ^3.23.8 -> ^3.24.4 age adoption passing confidence

Release Notes

colinhacks/zod (zod)

v3.24.4

Compare Source

v3.24.3

Compare Source

Commits:

v3.24.2

Compare Source

Notes

Support asynchronous checks in z.custom() .

const customSchema = z.custom<number>(async (x) => {
  return typeof x === "number";
});

Commits:

v3.24.1

Compare Source

Commits:

v3.24.0

Compare Source

Implement @standard-schema/spec

This is the first version of Zod to implement the 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.

z.string().jwt()

Thanks to @​Mokshit06 and @​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 to verify the JWT signature, parse the token, and read the claims.

To constrain the JWT to a specific algorithm:

z.string().jwt({ alg: "RS256" });

z.string().base64url()

Thank you to @​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.)

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 for their work on this!

A validator for CIDR notation for specifying IP address ranges, e.g. 192.24.12.0/22.

z.string().cidr()

To specify an IP version:

z.string().cidr({ version: "v4" })
z.string().cidr({ version: "v6" })

View the full diff from 3.23.8: colinhacks/zod@v3.23.8...v3.24.0


Configuration

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

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

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

🔕 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from dcroote December 16, 2024 00:09
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 2 times, most recently from 8b9702d to 81ef8bc Compare December 16, 2024 03:01
@renovate renovate bot changed the title Update dependency zod to ^3.24.0 Update dependency zod to ^3.24.1 Dec 16, 2024
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 2 times, most recently from ab69506 to 525d82a Compare December 23, 2024 01:48
Copy link
Contributor

@dcroote dcroote left a comment

Choose a reason for hiding this comment

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

Ideally this isn't updated in the absence of also updating Airnode because of https://github.com/api3dao/ois?tab=readme-ov-file#make-sure-only-one-zod-version-is-installed

@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 3 times, most recently from 651b79b to f9345e3 Compare January 6, 2025 03:14
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch from f9345e3 to 2e0a7e3 Compare January 13, 2025 02:21
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 2 times, most recently from 6ea0080 to b62e26a Compare January 27, 2025 00:46
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 2 times, most recently from 3ec6d8b to 0e89975 Compare February 10, 2025 00:57
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch from 0e89975 to ef78477 Compare February 17, 2025 03:35
@renovate renovate bot changed the title Update dependency zod to ^3.24.1 Update dependency zod to ^3.24.2 Feb 17, 2025
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch from ef78477 to 68783c6 Compare February 17, 2025 05:27
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch from 68783c6 to 85bcb98 Compare February 24, 2025 05:35
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 2 times, most recently from 9714e27 to 85056d4 Compare March 10, 2025 04:18
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch from 85056d4 to 1ff1b44 Compare March 17, 2025 03:07
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 2 times, most recently from aa94c24 to 0d21fbe Compare April 2, 2025 01:49
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 2 times, most recently from 1798f53 to a32d753 Compare April 14, 2025 05:25
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 2 times, most recently from 5026fa3 to 5e1c587 Compare April 22, 2025 02:14
@renovate renovate bot changed the title Update dependency zod to ^3.24.2 Update dependency zod to ^3.24.3 Apr 22, 2025
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch from 5e1c587 to 43d69d8 Compare April 27, 2025 23:45
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch 2 times, most recently from 30b345b to 6dcfc4c Compare May 5, 2025 03:13
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch from 6dcfc4c to 9293551 Compare May 10, 2025 02:35
@renovate renovate bot changed the title Update dependency zod to ^3.24.3 Update dependency zod to ^3.24.4 May 10, 2025
@renovate renovate bot force-pushed the renovate/non-major-dependencies branch from 9293551 to 217b26d Compare May 12, 2025 14:54
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.

1 participant