build(deps-dev): update dependency typescript to v7 - #212
renovate[bot] wants to merge 1 commit into
Conversation
|
There was a problem hiding this comment.
TypeScript を ^6.0.3 から ^7.0.0 へメジャー更新する Renovate PR です。
結論として、現時点ではマージすべきではありません。RenovateのInline警告どおり、このブランチの package-lock.json 更新が npm ERESOLVE で失敗しています。原因は devDependency の typescript-eslint (推移的に @typescript-eslint/*) が peer dependency として typescript@">=4.8.4 <6.1.0" を要求しており、typescript@7.0.2 と両立しないためです。
TypeScript 7 はコンパイラをGoに書き直したもの (Project Corsa) で、旧コンパイラAPIを持たないため、tsc --noEmit のようなCLI利用は概ね動く一方、TypeScriptのAPIを利用するツール群 (typescript-eslint, @effect/language-service など) は動作しません。
エコシステム (特に typescript-eslint) の TypeScript 7 対応が揃ってから、関連パッケージと同時に更新するのが安全です。それまではこのPRをクローズまたは保留することを推奨します。
| "npm-run-all2": "^9.0.2", | ||
| "prettier": "^3.9.5", | ||
| "typescript": "^6.0.3", | ||
| "typescript": "^7.0.0", |
There was a problem hiding this comment.
Important
📦 Dependency
このメジャー更新は現状マージすべきではありません。Renovateのartifact update (package-lock.json生成) が npm ERESOLVE で失敗しています: devDependencies の typescript-eslint@^8.64.0 の推移的依存 @typescript-eslint/* 8.65.0 が peer dependency として typescript@">=4.8.4 <6.1.0" を要求するため、typescript@7.0.2 と解決できません。Renovate自身も You probably do not want to merge this PR as-is. と警告しています。TypeScript 7.0 (Project Corsa) はコンパイラをGoで書き直したもので旧TypeScript APIを持たず、安定した公開コンパイラAPIは7.1まで提供されない見込みのため、typescript を import するツールは7.0では動作しません。推奨対応: typescript-eslint が TypeScript 7 を正式サポート (peer範囲拡大) するまでこのPRをマージしない・クローズまたは保留し、対応リリース後に両者を同時更新してください。関連: ncaq/git-hooks のCIでも同様のインストール失敗が再現します。
| "npm-run-all2": "^9.0.2", | ||
| "prettier": "^3.9.5", | ||
| "typescript": "^6.0.3", | ||
| "typescript": "^7.0.0", |
There was a problem hiding this comment.
Warning
📦 Dependency
typescript-eslint 以外にも影響評価が必要です。TypeScript 7.0 は旧コンパイラAPIを削除しているため、TypeScriptのプログラマティックAPIを内部利用する devDependencies (@effect/language-service, vite / vitest 経由の型処理など) が動作しなくなる恐れがあります。一方 scripts の lint:tsc は tsc --noEmit というCLI利用なのでTS7単体でも概ね動作します。TS7へ移行する場合は、CLIによる型チェックは7系・APIに依存するツールは6系を side-by-side で残す (tsc と tsgo の併用) といった移行戦略が必要で、単純なバージョン差し替えでは不十分です。現時点ではエコシステムのTS7対応が揃っていないため、更新見送りが安全です。
Renovate Ignore NotificationBecause you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR. |
This PR contains the following updates:
^6.0.3→^7.0.0Release Notes
microsoft/TypeScript (typescript)
v7.0.2Compare Source
Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.