Skip to content

Bump zod from 3.25.42 to 3.25.46#2691

Merged
RobinTail merged 24 commits intomasterfrom
dependabot/npm_and_yarn/zod-3.25.45
Jun 1, 2025
Merged

Bump zod from 3.25.42 to 3.25.46#2691
RobinTail merged 24 commits intomasterfrom
dependabot/npm_and_yarn/zod-3.25.45

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Jun 1, 2025

Bumps zod from 3.25.42 to 3.25.45.

Release notes

Sourced from zod's releases.

v3.25.45

Commits:

  • dc2c0b0fccd893a08306ccadc8baa821b1b06a5b minor grammar typo fix (#4584)
  • 6fd3b39ab65970ec7f708e0aa4d0c9e20d9d2050 fix(JSONSchema): add type for enum (#4577)
  • 6be478b98c6a36895e28ab0d8b214880dc645d88 Fix ZodType assignability issues
  • 69ccb67f6d9d264dd26b6ba0bcc6f2ddc90a8fbc 3.25.45

v3.25.44

Commits:

  • 91267823162009488fff03f2a7240b89767e4d7d Update input to prevent excessively deep in more cases
  • e2d72afba3378ab81c691bc81c7e96d6f4845e06 Loosen and expand metadata typing (#4586)
  • fc69453e625a1b1c1a4523def3e4e60e5f2af8ca 3.25.44

v3.25.43

Commits:

  • 508e3065ca2debf43a2a8c27845ab7c7d4fe3bb0 Fix type inference in ZodMiniType check method (#4568)
  • f8fef45cfa813412beecadfbbe9d6df09ac33a86 Ecosystem: Add Express Zod API (#4579)
  • 289cba3b95e522b9c66611b94c218bcdfe8566b2 Fix type inference in ZodMiniType check method (#4568)
  • 011623a7daaa4e5215178073e3a0aeb2e760b2a9 Fix dts files
Commits

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
zod [>= 3.10.1.a, < 3.10.2]

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • New Features

    • Introduced a new helper to retrieve example values from schemas, improving consistency in how examples are accessed across the library.
  • Bug Fixes

    • Improved compatibility with recent Zod updates, ensuring restored and updated example handling in schemas.
  • Documentation

    • Updated changelog with detailed notes on compatibility improvements and restored helpers.
  • Tests

    • Added comprehensive tests for the new example retrieval helper to ensure correct behavior in various scenarios.
  • Chores

    • Upgraded Zod dependency to the latest compatible version.

Bumps [zod](https://github.com/colinhacks/zod) from 3.25.42 to 3.25.45.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](colinhacks/zod@v3.25.42...v3.25.45)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 3.25.45
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 1, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The changes introduce a new getExamples utility for extracting example values from Zod schemas, updating internal logic and tests to use this helper throughout the codebase. Metadata handling is streamlined, and compatibility with Zod 4 improvements is documented. The Zod dependency is updated, and related test cases are expanded.

Changes

File(s) Change Summary
CHANGELOG.md, package.json Updated changelog for Zod 4 compatibility and bumped Zod version in dev dependencies.
express-zod-api/src/metadata.ts Added new getExamples export for extracting examples from Zod schemas using the global registry.
express-zod-api/src/index.ts Exported getExamples from the main module.
express-zod-api/src/date-out-schema.ts Simplified dateOut function signature and metadata handling.
express-zod-api/src/endpoint.ts Replaced direct metadata access with getExamples and updated example/metadata handling logic.
express-zod-api/src/result-handler.ts Unified example extraction via getExamples and adjusted metadata handling for result schemas.
express-zod-api/src/result-helpers.ts Switched from direct registry access to getExamples for example extraction in helpers.
express-zod-api/src/zod-plugin.ts Updated example management to use getExamples, removed deprecated flag, and improved typings for transformations.
express-zod-api/tests/metadata.spec.ts Added comprehensive tests for getExamples with various metadata scenarios.
express-zod-api/tests/routing.spec.ts Adjusted test schema for warning about non-object-based output schemas.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant API
    participant ZodSchema
    participant getExamples

    User->>API: Sends request
    API->>ZodSchema: Access schema metadata
    API->>getExamples: Retrieve examples from schema
    getExamples->>ZodSchema: Query global registry
    getExamples-->>API: Return extracted examples
    API-->>User: Respond with schema and examples
Loading

Poem

In fields of code where schemas grow,
A rabbit hops where examples flow.
With getExamples now in sight,
Metadata shines ever bright.
Tests abound, dependencies rise—
Zod and friends, a sweet surprise!
🐇✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Join our Discord community for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Jun 1, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedzod@​3.25.42 ⏵ 3.25.46100 +1100100100 +5100

View full report

Comment thread express-zod-api/src/endpoint.ts Outdated
Comment thread express-zod-api/src/result-handler.ts Outdated
Comment thread express-zod-api/src/zod-plugin.ts Outdated
@RobinTail
Copy link
Copy Markdown
Owner

New bug: colinhacks/zod#4592

@RobinTail RobinTail added the external bug it's a bug, but in a dependency label Jun 1, 2025
@RobinTail
Copy link
Copy Markdown
Owner

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jun 1, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@RobinTail RobinTail changed the title Bump zod from 3.25.42 to 3.25.45 Bump zod from 3.25.42 to 3.25.46 Jun 1, 2025
@coveralls-official
Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same
when pulling 9e621e2 on dependabot/npm_and_yarn/zod-3.25.45
into 9382e4b on master.

Copy link
Copy Markdown
Owner

@RobinTail RobinTail left a comment

Choose a reason for hiding this comment

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

ok

@RobinTail RobinTail merged commit 116405e into master Jun 1, 2025
15 checks passed
@RobinTail RobinTail deleted the dependabot/npm_and_yarn/zod-3.25.45 branch June 1, 2025 09:50
RobinTail added a commit that referenced this pull request Jun 2, 2025
Related to #2691 
Implementing a better workaround for
colinhacks/zod#4592 which turned out to be a
limitation of Zod 4.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
- The user data response now always includes the features property,
ensuring it is required rather than optional.
- Updated the user data schema to reflect features as a required
property and adjusted its structure for consistency.

- **Documentation**
- Added a changelog entry for version 24.2.0, highlighting improved
support for non-optional schemas in integration generators.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file external bug it's a bug, but in a dependency javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant