Skip to content

chore(deps-dev): bump typescript from 5.8.3 to 6.0.2#222

Merged
urugus merged 4 commits intomainfrom
dependabot/npm_and_yarn/typescript-6.0.2
Mar 31, 2026
Merged

chore(deps-dev): bump typescript from 5.8.3 to 6.0.2#222
urugus merged 4 commits intomainfrom
dependabot/npm_and_yarn/typescript-6.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 30, 2026

Bumps typescript from 5.8.3 to 6.0.2.

Release notes

Sourced from typescript's releases.

TypeScript 6.0

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0 Beta

For release notes, check out the release announcement.

Downloads are available on:

TypeScript 5.9.3

Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.

For release notes, check out the release announcement

Downloads are available on:

TypeScript 5.9

Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.

For release notes, check out the release announcement

Downloads are available on:

TypeScript 5.9 RC

Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.

For release notes, check out the release announcement

... (truncated)

Commits

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Mar 30, 2026

Labels

The following labels could not be found: dependencies, npm. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 151bb46 to cb0e607 Compare March 31, 2026 21:21
@urugus
Copy link
Copy Markdown
Owner

urugus commented Mar 31, 2026

TypeScript 5.8.3 → 6.0.2 調査レポート

概要

TypeScript 6.0 は JSベースコンパイラとしての最後のメジャーリリース(7.0 は Go で書き直し予定)。7.0 への「ブリッジリリース」として多数の非推奨化・デフォルト変更を含む。

主な破壊的変更

設定 旧デフォルト 新デフォルト
strict false true
target es3 es2025
module commonjs esnext
types 自動検出 [] (空配列)
rootDir ソースから推論 tsconfig.jsonのディレクトリ
  • module: amd/umd/systemjs/none, moduleResolution: classic, outFile が完全削除
  • moduleResolution: node (node10) が非推奨化(7.0で機能停止予定)
  • esModuleInterop: false / allowSyntheticDefaultImports: false が設定不可(常に有効)

セキュリティ

  • CVE・脆弱性の報告: なし
  • サプライチェーン攻撃の懸念: なし

CI失敗の原因と対応

エラー1: moduleResolution: "node" の非推奨エラー

error TS5107: Option 'moduleResolution=node10' is deprecated

エラー2: types デフォルト変更により @types/node が自動検出されない

error TS2591: Cannot find name 'process'.
error TS2304: Cannot find name '__dirname'.

必要な tsconfig.json の修正:

{
  "compilerOptions": {
    "moduleResolution": "nodenext",  // "node" から変更
    "module": "nodenext",            // 整合性のため変更が必要な可能性
    "types": ["node"]                // 追加
  }
}

結論

セキュリティリスクなし。ただしメジャーバージョンアップのため tsconfig.json の修正が必須であり、単純マージは不可。Dependabotの自動PRでは対応できないため、この PR を閉じて手動で tsconfig.json 修正と合わせた新 PR を作成することを推奨。

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from cb0e607 to 785d3a5 Compare March 31, 2026 21:33
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.8.3 to 6.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.8.3...v6.0.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from 785d3a5 to b687a43 Compare March 31, 2026 21:37
urugus added 3 commits April 1, 2026 06:45
- module/moduleResolution: "commonjs"/"node" → "nodenext"/"nodenext"
- Add explicit "types": ["node"] (TS 6.0 defaults to [])
- Remove esModuleInterop/allowSyntheticDefaultImports (always true in TS 6.0)
@urugus urugus merged commit 4806a86 into main Mar 31, 2026
4 checks passed
@urugus urugus deleted the dependabot/npm_and_yarn/typescript-6.0.2 branch March 31, 2026 22:33
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.

1 participant