Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 24, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zod (source) 3.22.4 -> 3.25.64 age adoption passing confidence

Release Notes

colinhacks/zod (zod)

v3.25.64

Compare Source

Commits:

v3.25.63

Compare Source

v3.25.62

Compare Source

v3.25.61

Compare Source

v3.25.60

Compare Source

v3.25.59

Compare Source

v3.25.58

Compare Source

v3.25.57

Compare Source

v3.25.56

Compare Source

v3.25.55

Compare Source

v3.25.54

Compare Source

v3.25.53

Compare Source

Commits:

v3.25.52

Compare Source

Commits:

v3.25.51

Compare Source

v3.25.50

Compare Source

v3.25.49

Compare Source

v3.25.48

Compare Source

v3.25.47

Compare Source

v3.25.46

Compare Source

v3.25.45

Compare Source

Commits:

v3.25.44

Compare Source

v3.25.43

Compare Source

Commits:

v3.25.42

Compare Source

v3.25.41

Compare Source

v3.25.40

Compare Source

v3.25.39

Compare Source

v3.25.38

Compare Source

Commits:

v3.25.37

Compare Source

Commits:

v3.25.36

Compare Source

v3.25.35

Compare Source

Commits:

v3.25.34

Compare Source

v3.25.33

Compare Source

Commits:

v3.25.32

Compare Source

v3.25.31

Compare Source

v3.25.30

Compare Source

v3.25.29

Compare Source

v3.25.28

Compare Source

Commits:

v3.25.27

Compare Source

v3.25.26

Compare Source

v3.25.25

Compare Source

v3.25.24

Compare Source

v3.25.23

Compare Source

v3.25.22

Compare Source

v3.25.21

Compare Source

v3.25.20

Compare Source

Commits:

v3.25.18

Compare Source

Commits:

v3.25.17

Compare Source

v3.25.16

Compare Source

v3.25.15

Compare Source

v3.25.14

Compare Source

v3.25.13

Compare Source

v3.25.12

Compare Source

v3.25.11

Compare Source

v3.25.10

Compare Source

Commits:

  • c172c19 Fix module resolution issue

v3.25.9

Compare Source

v3.25.8

Compare Source

v3.25.7

Compare Source

v3.25.6

Compare Source

v3.25.5

Compare Source

v3.25.4

Compare Source

v3.25.3

Compare Source

v3.25.1

Compare Source

v3.25.0

Compare Source

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

v3.23.8

Compare Source

Commits:

v3.23.7

Compare Source

Commits:

v3.23.6

Compare Source

Commits:

v3.23.5

Compare Source

Commits:

v3.23.4

Compare Source

Commits:

v3.23.3

Compare Source

Commits:

v3.23.2

Compare Source

Commits:

v3.23.1

Compare Source

This changes the default generics back to any to prevent breakages with common packager like @hookform/resolvers:

- class ZodType<Output = unknown, Def extends ZodTypeDef = ZodTypeDef, Input = unknown> {}
+ class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = any> {}
Commits:

v3.23.0

Compare Source

Zod 3.23 is now available. This is the final 3.x release before Zod 4.0. To try it out:

npm install zod

Features

z.string().date()

Zod can now validate ISO 8601 date strings. Thanks @​igalklebanov! https://github.com/colinhacks/zod/pull/1766

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://github.com/colinhacks/zod/pull/1766

const schema = z.string().time();
schema.parse("12:00:00"); // OK

You can specify sub-second precision using the precision option:

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://github.com/colinhacks/zod/pull/3265

const schema = z.string().duration();
schema.parse("P3Y6M4DT12H30M5S"); // OK
Improvements to z.string().datetime()

Thanks @​bchrobot https://github.com/colinhacks/zod/pull/2522

You can now allow unqualified (timezone-less) datetimes using the local: true flag.

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://github.com/colinhacks/zod/pull/3391

z.string().base64()

Zod can now validate base64 strings. Thanks @​StefanTerdell! https://github.com/colinhacks/zod/pull/3047

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
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

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

+  | ZodPipeline<any, any>
+  | ZodReadonly<any>
+  | ZodSymbol;
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

z.object({ 
  name: z.string() 
}).pick({
  notAKey: true // no longer allowed
})

Bugfixes and performance

Docs and ecosystem


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 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 added the dependencies Auto-generated by Renovate label May 24, 2025
@codecov-commenter
Copy link

codecov-commenter commented May 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 7.52%. Comparing base (1869e04) to head (b2f4e9c).

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #209   +/-   ##
======================================
  Coverage    7.52%   7.52%           
======================================
  Files         317     317           
  Lines       25239   25239           
  Branches      715     715           
======================================
  Hits         1900    1900           
  Misses      23059   23059           
  Partials      280     280           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot force-pushed the renovate/zod branch 7 times, most recently from 5606942 to 95ef49f Compare May 26, 2025 22:57
@renovate renovate bot changed the title Update dependency zod to v3.25.28 Update dependency zod to v3.25.29 May 26, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 95ef49f to c560a73 Compare May 27, 2025 03:41
@renovate renovate bot changed the title Update dependency zod to v3.25.29 Update dependency zod to v3.25.30 May 27, 2025
@renovate renovate bot force-pushed the renovate/zod branch from c560a73 to 91129d4 Compare May 27, 2025 23:32
@renovate renovate bot changed the title Update dependency zod to v3.25.30 Update dependency zod to v3.25.31 May 27, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 91129d4 to d1d05f8 Compare May 28, 2025 02:00
@renovate renovate bot changed the title Update dependency zod to v3.25.31 Update dependency zod to v3.25.32 May 28, 2025
@renovate renovate bot force-pushed the renovate/zod branch from d1d05f8 to 876b2a5 Compare May 28, 2025 21:59
@renovate renovate bot changed the title Update dependency zod to v3.25.32 Update dependency zod to v3.25.33 May 28, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 876b2a5 to 5ce3a7c Compare May 29, 2025 02:36
@renovate renovate bot changed the title Update dependency zod to v3.25.33 Update dependency zod to v3.25.34 May 29, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 5ce3a7c to 56f8b21 Compare May 29, 2025 10:48
@renovate renovate bot changed the title Update dependency zod to v3.25.34 Update dependency zod to v3.25.36 May 29, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 56f8b21 to f47c07c Compare May 30, 2025 01:57
@renovate renovate bot changed the title Update dependency zod to v3.25.36 Update dependency zod to v3.25.40 May 30, 2025
@renovate renovate bot force-pushed the renovate/zod branch from f47c07c to bdab5ff Compare May 30, 2025 04:32
@renovate renovate bot changed the title Update dependency zod to v3.25.40 Update dependency zod to v3.25.41 May 30, 2025
@renovate renovate bot force-pushed the renovate/zod branch from bdab5ff to 410bd45 Compare May 30, 2025 10:05
@renovate renovate bot changed the title Update dependency zod to v3.25.41 Update dependency zod to v3.25.42 May 30, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 410bd45 to 7610594 Compare June 1, 2025 00:59
@renovate renovate bot changed the title Update dependency zod to v3.25.42 Update dependency zod to v3.25.44 Jun 1, 2025
@renovate renovate bot changed the title Update dependency zod to v3.25.46 Update dependency zod to v3.25.47 Jun 2, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 6c4df87 to 12fb569 Compare June 2, 2025 14:22
@renovate renovate bot changed the title Update dependency zod to v3.25.47 Update dependency zod to v3.25.48 Jun 2, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 12fb569 to 40c13cb Compare June 3, 2025 00:31
@renovate renovate bot changed the title Update dependency zod to v3.25.48 Update dependency zod to v3.25.49 Jun 3, 2025
@renovate renovate bot force-pushed the renovate/zod branch 2 times, most recently from 9cf445f to 3ab3206 Compare June 4, 2025 01:29
@renovate renovate bot changed the title Update dependency zod to v3.25.49 Update dependency zod to v3.25.50 Jun 4, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 3ab3206 to 64eccd7 Compare June 4, 2025 09:43
@renovate renovate bot changed the title Update dependency zod to v3.25.50 Update dependency zod to v3.25.51 Jun 4, 2025
@renovate renovate bot force-pushed the renovate/zod branch from 64eccd7 to 0467437 Compare June 6, 2025 20:01
@renovate renovate bot changed the title Update dependency zod to v3.25.51 Update dependency zod to v3.25.56 Jun 6, 2025
@renovate renovate bot changed the title Update dependency zod to v3.25.56 Update dependency zod to v3.25.57 Jun 10, 2025
@renovate renovate bot changed the title Update dependency zod to v3.25.57 Update dependency zod to v3.25.58 Jun 11, 2025
@renovate renovate bot changed the title Update dependency zod to v3.25.58 Update dependency zod to v3.25.60 Jun 11, 2025
@renovate renovate bot changed the title Update dependency zod to v3.25.60 Update dependency zod to v3.25.61 Jun 11, 2025
@renovate renovate bot changed the title Update dependency zod to v3.25.61 Update dependency zod to v3.25.62 Jun 11, 2025
@renovate renovate bot changed the title Update dependency zod to v3.25.62 Update dependency zod to v3.25.63 Jun 12, 2025
@renovate renovate bot changed the title Update dependency zod to v3.25.63 Update dependency zod to v3.25.64 Jun 13, 2025
@dan-schel dan-schel merged commit 8a9022f into master Jun 15, 2025
3 checks passed
@dan-schel dan-schel deleted the renovate/zod branch June 15, 2025 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Auto-generated by Renovate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants