Skip to content

fix(openapi-server): widen fastify-type-provider-zod peer range to ^6 || ^7 - #406

Merged
benjamineckstein merged 2 commits into
mainfrom
fix/405-widen-ftp-zod-peer-range
Jul 4, 2026
Merged

fix(openapi-server): widen fastify-type-provider-zod peer range to ^6 || ^7#406
benjamineckstein merged 2 commits into
mainfrom
fix/405-widen-ftp-zod-peer-range

Conversation

@benjamineckstein

@benjamineckstein benjamineckstein commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #405.

@codewithagents/openapi-server declared its optional peer fastify-type-provider-zod as ^6. Consumers who moved to v7 got an unmet-peer warning on every install:

WARN unmet peer fastify-type-provider-zod@^6: found 7.0.0

Change

Widen the optional peer range to ^6 || ^7.

Why it's safe

  • The peer is optional (peerDependenciesMeta), so it never forces an install.
  • Downstream evidence (Fastify 5 + Zod app codegen'd via openapi-server): bumping fastify-type-provider-zod 6.1.0 → 7.0.0 keeps the full conformance/contract suite green; only the peer warning remained.
  • Internal workspace consumers still pin ^6.1.0; dependabot PR chore(deps): bump fastify-type-provider-zod from 6.1.0 to 7.0.0 #403 handles the actual v7 bump + CI proof.

Metadata-only change; no generated output or runtime code affected.

Summary by CodeRabbit

  • Chores
    • Broadened compatibility so the package can be installed with either major version 6 or 7 of a related Fastify Zod type provider.

… || ^7

The optional peer was pinned to ^6, so consumers on fastify-type-provider-zod
7 got an unmet-peer warning on every install. v7 is compatible (downstream
Fastify 5 + Zod conformance suite stays green), so accept both majors.

Closes #405
@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 9a6cd151-5b14-4fea-99bd-0edb44016285

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

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The peerDependencies entry for fastify-type-provider-zod in packages/openapi-server/package.json was changed from requiring version ^6 to accepting either ^6 or ^7.

Changes

Peer dependency range update

Layer / File(s) Summary
Widen peer dependency semver range
packages/openapi-server/package.json
The peerDependencies.fastify-type-provider-zod version constraint was broadened from ^6 to ^6 || ^7.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Related issues

  • #405: openapi-server: widen fastify-type-provider-zod peer range to ^6 || ^7

Suggested labels: dependencies, patch

Suggested reviewers: none

Poem

A rabbit hops through version fields so tame,
Six or seven, now it's all the same,
One line changed, a warning fades away,
Peer dependencies happy, come what may. 🐰

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately summarizes the only change: widening the openapi-server peer range for fastify-type-provider-zod.
Linked Issues check ✅ Passed The PR matches issue #405 by widening the optional fastify-type-provider-zod peer dependency from ^6 to ^6 || ^7.
Out of Scope Changes check ✅ Passed The changes are limited to the requested peer range update and do not introduce unrelated modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/405-widen-ftp-zod-peer-range

Comment @coderabbitai help to get the list of available commands.

Frozen-lockfile CI rejected the peer-range change because the lockfile
specifier (^6) no longer matched the manifest (^6 || ^7). Resolved version
is unchanged (6.1.0).
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Fallow audit report

Found 3 findings.

Details
Severity Rule Location Description
minor fallow/unused-dev-dependency examples/package.json:15 Package '@tanstack/react-query' is in devDependencies but never imported; imported in other workspaces: packages/integration, packages/petstore-fastify
minor fallow/unused-dev-dependency examples/package.json:17 Package 'react' is in devDependencies but never imported; imported in other workspaces: packages/integration, packages/petstore-fastify
minor fallow/unused-dev-dependency packages/integration/package.json:24 Package 'fastify' is in devDependencies but never imported; imported in other workspaces: packages/petstore-contract, packages/petstore-fastify

Generated by fallow.

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Fallow audit report

0 inline findings selected for GitHub review.

@benjamineckstein
benjamineckstein merged commit 0476ac9 into main Jul 4, 2026
18 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 4, 2026
@benjamineckstein
benjamineckstein deleted the fix/405-widen-ftp-zod-peer-range branch July 4, 2026 10:45
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.

openapi-server: widen fastify-type-provider-zod peer range to ^6 || ^7

1 participant