Skip to content

fix(deps): update dependency zod to v4 #488

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 4 commits into
base: main
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 16, 2025

This PR contains the following updates:

Package Change Age Confidence
zod (source) ^3.25.76 -> ^4.0.5 age confidence

Release Notes

colinhacks/zod (zod)

v4.0.5

Compare Source

v4.0.4

Compare Source

v4.0.3

Compare Source

v4.0.2

Compare Source

v4.0.1

Compare Source

Commits:

v4.0.0

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 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 Siegrift July 16, 2025 22:46
@renovate renovate bot force-pushed the renovate/zod-4.x branch 4 times, most recently from 8636c12 to 26cb376 Compare July 21, 2025 11:03
@Siegrift Siegrift requested review from mcoetzee and removed request for mcoetzee July 21, 2025 12:19
@Siegrift Siegrift removed their request for review July 23, 2025 12:20
@renovate renovate bot force-pushed the renovate/zod-4.x branch 2 times, most recently from 00083e0 to 34c5cf4 Compare July 24, 2025 02:42
@renovate renovate bot force-pushed the renovate/zod-4.x branch from 34c5cf4 to 2b29560 Compare July 28, 2025 07:03
Copy link
Contributor Author

renovate bot commented Jul 28, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

message: "Unrecognized key(s) in object: 'strange'",
},
]),
errors: expect.any(ZodError),

Choose a reason for hiding this comment

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

I added a new test in schema.test.ts for this.

@mcoetzee mcoetzee requested a review from Siegrift July 28, 2025 14:22
@mcoetzee
Copy link

FYI @Siegrift I have again solely relied on the CI for testing. The "oisFormat" has been bumped from 2.3.0 to 3.0.0 (not 100% sure if that impacts anyone?)

@Siegrift
Copy link
Collaborator

FYI @Siegrift I have again solely relied on the CI for testing. The "oisFormat" has been bumped from 2.3.0 to 3.0.0 (not 100% sure if that impacts anyone?)

Yeah, should be okey.

Copy link
Collaborator

@Siegrift Siegrift left a comment

Choose a reason for hiding this comment

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

👍 LGTM (just one comment)


import packageJson from '../../package.json';

export const evmIdSchema = z.string().regex(/^0x[a-fA-F0-9]{64}$/); // eslint-disable-line unicorn/better-regex
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not import commons for these validations?

Choose a reason for hiding this comment

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

FYI these were previously imported from @api3/airnode-validator airnode/packages/airnode-validator/src/config/config.ts#L14 (which is still using zod v3).

commons is still pending its review + release (Derek will get to it soon), so we could hold off merging this PR until then I guess. Are you suggesting we use the keccak256HashSchema from commons instead of this evmIdSchema?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We can do export const evmIdSchema = keccak256HashSchema and yeah, I'd wait until commons is released.

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.

2 participants