Skip to content
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

chore(deps): update dependency zod to v3.24.1 #30

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 19, 2024

This PR contains the following updates:

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

Release Notes

colinhacks/zod (zod)

v3.24.1

Compare Source

Commits:

v3.24.0

Compare Source

v3.23.8

Compare Source

Commits:

v3.23.7

Compare Source

v3.23.6

Compare Source

v3.23.5

Compare Source

v3.23.4

Compare Source

Commits:

v3.23.3

Compare Source

v3.23.2

Compare Source

Commits:

v3.23.1

Compare Source

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

- class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {}
+ class ZodType<Output = unknown, Def extends ZodTypeDef = ZodTypeDef, Input = unknown> {}
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

New Contributors

Full Changelog: colinhacks/zod@v3.22.4...v3.23.0

v3.22.5

Compare Source


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 these updates again.


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

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Apr 19, 2024

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: [email protected]
npm warn Found: @vercel/[email protected]
npm warn node_modules/@vercel/kv
npm warn   @vercel/kv@"^1.0.0" from the root project
npm warn   2 more (langchain, @langchain/community)
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional @vercel/kv@"^0.2.3" from [email protected]
npm warn node_modules/langchain
npm warn   langchain@"^0.1.28" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: [email protected]
npm warn Found: @vercel/[email protected]
npm warn node_modules/@vercel/kv
npm warn   @vercel/kv@"^1.0.0" from the root project
npm warn   2 more (langchain, @langchain/community)
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional @vercel/kv@"^0.2.3" from @langchain/[email protected]
npm warn node_modules/@langchain/community
npm warn   @langchain/community@"^0.0.47" from the root project
npm warn   1 more (langchain)
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @langchain/[email protected]
npm error Found: @vercel/[email protected]
npm error node_modules/@vercel/kv
npm error   @vercel/kv@"^1.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional @vercel/kv@"^0.2.3" from @langchain/[email protected]
npm error node_modules/@langchain/community
npm error   @langchain/community@"^0.0.47" from the root project
npm error   @langchain/community@"~0.0.41" from [email protected]
npm error   node_modules/langchain
npm error     langchain@"^0.1.28" from the root project
npm error
npm error Conflicting peer dependency: @vercel/[email protected]
npm error node_modules/@vercel/kv
npm error   peerOptional @vercel/kv@"^0.2.3" from @langchain/[email protected]
npm error   node_modules/@langchain/community
npm error     @langchain/community@"^0.0.47" from the root project
npm error     @langchain/community@"~0.0.41" from [email protected]
npm error     node_modules/langchain
npm error       langchain@"^0.1.28" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-05-08T20_04_34_984Z-eresolve-report.txt

npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-05-08T20_04_34_984Z-debug-0.log

Copy link

vercel bot commented Apr 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
freight-search ❌ Failed (Inspect) May 10, 2024 8:48am
perfreight ❌ Failed (Inspect) May 10, 2024 8:48am

Copy link
Contributor

sweep-ai bot commented Apr 19, 2024

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

This is an automated message generated by Sweep AI.

@renovate renovate bot force-pushed the renovate/zod-3.x branch from c7f3b9d to a7946cc Compare April 22, 2024 00:30
@renovate renovate bot changed the title chore(deps): update dependency zod to v3.22.5 chore(deps): update dependency zod to v3.23.0 Apr 22, 2024
@renovate renovate bot force-pushed the renovate/zod-3.x branch from a7946cc to 5d58606 Compare April 22, 2024 23:18
@renovate renovate bot changed the title chore(deps): update dependency zod to v3.23.0 chore(deps): update dependency zod to v3.23.3 Apr 22, 2024
@renovate renovate bot force-pushed the renovate/zod-3.x branch from 5d58606 to 34b6092 Compare April 24, 2024 05:39
@renovate renovate bot changed the title chore(deps): update dependency zod to v3.23.3 chore(deps): update dependency zod to v3.23.4 Apr 24, 2024
@renovate renovate bot force-pushed the renovate/zod-3.x branch from 34b6092 to 30e96e7 Compare April 29, 2024 20:43
@renovate renovate bot changed the title chore(deps): update dependency zod to v3.23.4 chore(deps): update dependency zod to v3.23.5 Apr 29, 2024
@renovate renovate bot force-pushed the renovate/zod-3.x branch from 30e96e7 to 67b3b6f Compare May 4, 2024 05:36
@renovate renovate bot changed the title chore(deps): update dependency zod to v3.23.5 chore(deps): update dependency zod to v3.23.6 May 4, 2024
Copy link

restack-app bot commented May 4, 2024

No applications have been configured for previews targeting branch: main. To do so go to restack console and configure your applications for previews.

@renovate renovate bot force-pushed the renovate/zod-3.x branch from 3a14844 to 05b7dfa Compare May 8, 2024 20:04
@renovate renovate bot changed the title chore(deps): update dependency zod to v3.23.7 chore(deps): update dependency zod to v3.23.8 May 8, 2024
Copy link
Contributor Author

renovate bot commented May 10, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: [email protected]
npm warn Found: @vercel/[email protected]
npm warn node_modules/@vercel/kv
npm warn   @vercel/kv@"^1.0.0" from the root project
npm warn   2 more (langchain, @langchain/community)
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional @vercel/kv@"^0.2.3" from [email protected]
npm warn node_modules/langchain
npm warn   langchain@"^0.1.28" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: [email protected]
npm warn Found: @vercel/[email protected]
npm warn node_modules/@vercel/kv
npm warn   @vercel/kv@"^1.0.0" from the root project
npm warn   2 more (langchain, @langchain/community)
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional @vercel/kv@"^0.2.3" from @langchain/[email protected]
npm warn node_modules/@langchain/community
npm warn   @langchain/community@"^0.0.47" from the root project
npm warn   1 more (langchain)
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @langchain/[email protected]
npm error Found: @vercel/[email protected]
npm error node_modules/@vercel/kv
npm error   @vercel/kv@"^1.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional @vercel/kv@"^0.2.3" from @langchain/[email protected]
npm error node_modules/@langchain/community
npm error   @langchain/community@"^0.0.47" from the root project
npm error   @langchain/community@"~0.0.41" from [email protected]
npm error   node_modules/langchain
npm error     langchain@"^0.1.28" from the root project
npm error
npm error Conflicting peer dependency: @vercel/[email protected]
npm error node_modules/@vercel/kv
npm error   peerOptional @vercel/kv@"^0.2.3" from @langchain/[email protected]
npm error   node_modules/@langchain/community
npm error     @langchain/community@"^0.0.47" from the root project
npm error     @langchain/community@"~0.0.41" from [email protected]
npm error     node_modules/langchain
npm error       langchain@"^0.1.28" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-12-11T02_23_28_877Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-12-11T02_23_28_877Z-debug-0.log

@renovate renovate bot force-pushed the renovate/zod-3.x branch from 05b7dfa to e559514 Compare May 10, 2024 08:48
@renovate renovate bot force-pushed the renovate/zod-3.x branch from e559514 to 713d56a Compare December 10, 2024 09:57
@renovate renovate bot changed the title chore(deps): update dependency zod to v3.23.8 chore(deps): update dependency zod to v3.24.0 Dec 10, 2024
@renovate renovate bot force-pushed the renovate/zod-3.x branch from 713d56a to 95a04c4 Compare December 11, 2024 02:23
@renovate renovate bot changed the title chore(deps): update dependency zod to v3.24.0 chore(deps): update dependency zod to v3.24.1 Dec 11, 2024
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.

0 participants