Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(deps): update dependency zod to ^3.24.0 #1635

Merged
merged 1 commit into from
Dec 10, 2024
Merged

Conversation

homarr-renovate[bot]
Copy link
Contributor

@homarr-renovate homarr-renovate bot commented Dec 10, 2024

This PR contains the following updates:

Package Type Update Change
zod (source) dependencies minor ^3.23.8 -> ^3.24.0

Release Notes

colinhacks/zod (zod)

v3.24.0

Compare Source

New features
Implement the 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" })
Commits:

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


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@homarr-renovate homarr-renovate bot requested a review from a team as a code owner December 10, 2024 07:12
Copy link

@homarr-approvals homarr-approvals bot left a comment

Choose a reason for hiding this comment

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

Automatically approved by GitHub Action

Copy link

deepsource-io bot commented Dec 10, 2024

Here's the code health analysis summary for commits 3bee3fe..4279069. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 24.03% 7253 / 30174
🔵 Statements 24.03% 7253 / 30174
🔵 Functions 25.56% 272 / 1064
🔵 Branches 63.49% 842 / 1326
File CoverageNo changed files found.
Generated in workflow #4072 for commit 4279069 by the Vitest Coverage Report Action

@homarr-renovate homarr-renovate bot merged commit 8a25467 into dev Dec 10, 2024
13 checks passed
@homarr-renovate homarr-renovate bot deleted the renovate/zod-3.x branch December 10, 2024 07:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants