Support TypeScript 6.0.x and hey-api/openapi-ts 0.99.x#196
Open
TakehiroTada wants to merge 6 commits into
Open
Support TypeScript 6.0.x and hey-api/openapi-ts 0.99.x#196TakehiroTada wants to merge 6 commits into
TakehiroTada wants to merge 6 commits into
Conversation
…morph to 28 - Recreate the pnpm patch for @hey-api/openapi-ts@0.99.0: the TS2416 on ImplFuncTsDsl.toAst() persists and a second one appeared on ImplForTsDsl.toAst() - Add a pnpm patch for @hey-api/shared@0.5.0, which references the value 'log' as a type (TS2749) — both patches keep skipLibCheck: false working - Add a 'ky' module stub to vendor-typestubs.d.ts for the bundled ky client plugin type declarations - Drop downlevelIteration and baseUrl from tsconfig.json (deprecated in TypeScript 6.0, both unused here) - Allow typescript 5.x || 6.x and require ts-morph 28.x as peer dependencies Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011dPzdeZL1kurBr7De3rYKN
….nesting
@hey-api/openapi-ts 0.99 deprecates the sdk plugin's boolean operationId
option. operationId: false maps internally to operations: { nesting: 'id' },
so pass the new option directly to silence the deprecation warning while
keeping --noOperationId behavior identical.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011dPzdeZL1kurBr7De3rYKN
@hey-api/openapi-ts raised its minimum Node.js version to 22.18.0 in 0.96+, so bump the CI matrix and the contributing guide accordingly (package.json engines is updated in the dependency upgrade commit). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011dPzdeZL1kurBr7De3rYKN
Align the test matrix and the contributing guide with the release workflow, which already runs on Node.js 24. package.json engines stay at >=22.18.0 — the actual minimum required by @hey-api/openapi-ts 0.99. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011dPzdeZL1kurBr7De3rYKN
Extend RequestInit (which provides the members @hey-api/openapi-ts picks from ky's Options) and model KyInstance as a minimal callable interface, replacing the previous any-based stub. The unknown index signature keeps unreferenced ky options open without weakening type checking. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011dPzdeZL1kurBr7De3rYKN
…ng guide Contributors upgrading @hey-api/openapi-ts need to know why patches/ and src/vendor-typestubs.d.ts exist and how to recreate the pnpm patches, now that the 0.99.0 upgrade added a second patched package (@hey-api/shared). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011dPzdeZL1kurBr7De3rYKN
|
@TakehiroTada is attempting to deploy a commit to the Daiki Urata's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades the core dependencies to the latest versions, on top of v2.1.0 (#192).
typescriptts-morph@hey-api/openapi-tsKey Changes
@hey-api/openapi-ts0.99.0@hey-api/sdkoptionoperationId: falsetooperations: { nesting: "id" }(identical behavior)downlevelIterationandbaseUrlfrom tsconfig — deprecated in TS 6.0 (TS5101) and both unused hereSyntaxKindvalue shifts between 5.9 and 6.0, so no AST-traversal changes neededtypescript: "5.x || 6.x",ts-morph: "28.x"skipLibCheck: falsesupport@hey-api/openapi-ts@0.99.0(TS2416 now in two places)@hey-api/shared@0.5.0(TS2749 — the valuelogreferenced as a type)kymodule stub tovendor-typestubs.d.ts(extendsRequestInit, noany)>=22.18.0(required by hey-api 0.96+)patches/+vendor-typestubs.d.ts)Test Plan
pnpm build(skipLibCheck: false) /pnpm biome check ./pnpm install --frozen-lockfilepnpm test— all 70 tests pass with zero snapshot changes (branch coverage 92.55%)test:generated(tsc) passes