Skip to content

chore: bump shiki to 4.5.0 - #22

Merged
YouheiNozaki merged 2 commits into
mainfrom
chore/update-shiki-4-5-0
Nov 9, 2026
Merged

YouheiNozaki merged 2 commits into
mainfrom
chore/update-shiki-4-5-0

Conversation

@cursor

@cursor cursor Bot commented Nov 6, 2026

Copy link
Copy Markdown

何をアップデートしたか

  • shiki(devDependencies): 4.4.3 → 4.5.0
  • CI matrix の v4 pin: 4.4.3 → 4.5.0

peerDependencies は ^1 || ^2 || ^3 || ^4 のままです。利用者側の互換レンジは変えていません。

まとめた理由

optional peer かつシンタックスハイライト実装に直結するパッケージなので、テスト行列の最新 v4 ピンと一緒に更新しました。他のツールチェーン更新とは分離しています。

主な変更点・Breaking Changes

4.4.3 → 4.5.0 に Breaking Changes はありません。

4.5.0(2026-10-01)

  • codeToANSI が明示的な color level を返す
  • transformerNotationWordHighlight に classActiveCode、transformerRenderLineNumber を追加
  • grammar injection の重複排除、CLI の言語フォールバック、ストリーム描画などのバグ修正

このリポジトリが使っているのは codeToHtml と bundledLanguages だけです。ハイライト HTML の期待値は変わっていません。

4.6.0(2026-11-02)は .npmrc の min-release-age=7 未満のため含めていません。

参考: https://github.com/shikijs/shiki/releases/tag/v4.5.0

Migration ・設定変更

  • アプリケーションコードの変更は不要でした
  • CI の shiki v4 ピンだけ 4.5.0 に合わせています

検証

  • Node.js 22.23.4 / npm 10.9.9 で npm ci 後に確認
  • npx vitest run: 7 files / 25 tests すべて成功(シンタックスハイライトの HTML 期待値もそのまま)
  • npm run build: 成功(DTS rollup 含む)
  • Lint ・型チェック専用スクリプトはリポジトリにありません。型生成は npm run build の experimentalDts で確認しました
Open in Web View Automation 

Keep the CI matrix pin for Shiki 4 in step with the devDependency. 4.6.0 is newer than the seven-day release age.
@vercel

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
microcms-rich-editor-handler Ready Ready Preview Nov 6, 2026 8:53am UTC

Request Review

@YouheiNozaki

Copy link
Copy Markdown
Contributor

@cursoragent コンフリクト解消して

@cursor

cursor Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Author

Perfect! I've successfully resolved the merge conflicts. Here's what was done:

Conflict Resolution Summary

I merged the latest changes from main into the chore/update-shiki-4-5-0 branch and resolved three conflicted files:

1. package.json

  • ✅ Kept shiki: ^4.5.0 (the main change in this PR)
  • ✅ Updated @vitest/coverage-v8 to ^4.1.12 (from main)

2. .github/workflows/node.js.yml

  • ✅ Updated Node.js versions to [22.x, 24.x, 26.x] (from main)
  • ✅ Updated shiki test matrix to 4.5.0 (this PR's version)

3. package-lock.json

  • ✅ Regenerated with the resolved dependencies

4. Additional changes from main

  • ✅ .tool-versions file updates

Verification

  • ✅ All 25 tests pass (7 test files)
  • ✅ Build succeeds with no errors
  • ✅ Changes committed and pushed to remote

The PR is now up to date with main and ready for review!

Open in Web Open in Cursor 

- Updated Node.js matrix versions from [20.x, 22.x, 24.x] to [22.x, 24.x, 26.x]
- Updated @vitest/coverage-v8 to 4.1.12
- Kept shiki at 4.5.0 (this PR's main change)
- Updated .tool-versions from main

Co-authored-by: YoheiNozaki <YouheiNozaki@users.noreply.github.com>
@YouheiNozaki
YouheiNozaki merged commit fed9d8d into main Nov 9, 2026
14 checks passed
@YouheiNozaki
YouheiNozaki deleted the chore/update-shiki-4-5-0 branch November 9, 2026 06:18

This branch was successfully deployed

1 active deployment
Preview — 3f60c94e Deployed Nov 6, 2026 by vercel[bot]
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.

2 participants