Skip to content

feat(openapi-typescript): widen TypeScript peer dep to include v6#2773

Closed
benjamineckstein wants to merge 1 commit intoopenapi-ts:mainfrom
benjamineckstein:fix/widen-typescript-peer-dep
Closed

feat(openapi-typescript): widen TypeScript peer dep to include v6#2773
benjamineckstein wants to merge 1 commit intoopenapi-ts:mainfrom
benjamineckstein:fix/widen-typescript-peer-dep

Conversation

@benjamineckstein
Copy link
Copy Markdown

Summary

TypeScript 6.0 was released on 2026-03-21. openapi-typescript works fine with TS6 — no code changes needed — but the peer dependency range ^5.x prevents installation without --legacy-peer-deps.

This PR widens the peer dep to ^5.x || ^6.x to support both major versions.

Changes:

  • packages/openapi-typescript/package.json: "typescript": "^5.x""typescript": "^5.x || ^6.x"
  • Added changeset for patch release

Context:

Testing:
Verified locally that openapi-typescript@7.13.0 works correctly with TypeScript 6.0.2 — type generation produces identical output.

Closes #2723

TypeScript 6.0 was released on 2026-03-21. openapi-typescript works
fine with TS6 (no code changes needed), but the peer dependency
range `^5.x` prevents installation without --legacy-peer-deps.

Widen to `^5.x || ^6.x` to support both major versions.

Closes openapi-ts#2723
@benjamineckstein benjamineckstein requested a review from a team as a code owner April 15, 2026 08:31
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 15, 2026

👷 Deploy request for openapi-ts pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 70f0361

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 15, 2026

🦋 Changeset detected

Latest commit: 70f0361

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-typescript Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@benjamineckstein
Copy link
Copy Markdown
Author

Superseded by a more complete PR that also upgrades the devDependency in openapi-typescript-helpers (matching the scope of #2711 but with the missing changeset included).

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.

Add support for TypeScript 6

1 participant