GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: mermaid を 12.1.0 に上げ、lodash-es の override を削除する by ymnao · Pull Request #631 · ymnao/scripta

Conversation

@ymnao

@ymnao ymnao commented Oct 12, 2026

Copy link
Copy Markdown
Owner

概要

mermaid を 12.1.0 に上げました。12.1.0 では chevrotain 13.2.0 が lodash-es への依存をやめたので、lodash-es@<4.18.0 の override を消しています。あわせて、bump のレビューで見つかった既存の不具合(parse / draw error のたびに body 直下へ一時 div が溜まる)も直しました。

関連 Issue

なし(HANDOFF の deferred 項目「lodash-es override の削除条件」が満たされた)

移行 Stage

該当なし(依存更新)

変更内容

  • package.json / pnpm-lock.yaml
    • mermaid 12.0.0 → 12.1.0
    • @mermaid-js/parser 2.0.1、chevrotain / @chevrotain/* 13.2.0 が入りました
    • chevrotain からの lodash-es の edge がなくなりました
    • pnpm up は使っていません。Chore(deps): Bump the codemirror group across 1 directory with 2 updates #576 と同じく @codemirror/* と @lezer/* が 2 版に割れたため、package.json を手で書き換えてから pnpm install で解決しています。@codemirror/* と @lezer/* は各 1 版のままです
  • pnpm-workspace.yaml
    • lodash-es@<4.18.0 の override を削除しました。lodash-es を使っているのはもう dagre-d3-es(^4.17.21、4.18.1 に解決)だけです
    • 消した行を参照していたコメント(source-map-js)と、katex / marked の dual-resolution コメントにある mermaid の版を直しました
  • src/lib/mermaid.ts
    • suppressErrorRendering: true を足しました
    • 既定の false では、mermaid は error 図を body 直下の一時 div d<id> に描いたまま throw します。scripta は render ごとに別の id を使うので、エラーが出るたびに div が残っていました
    • scripta は error 図を使っていません。throw されるエラーも同じなので、エディタ上の表示は変わりません
  • e2e/mermaid-widget.spec.ts
    • parse error の図を開いても body 直下に dmermaid-* が残らないことを確かめる e2e を 1 本足しました
    • 修正前は Received: 1 で fail することを確認しています

12.1.0 で上流の挙動が変わる点

  • ELK レイアウトで elk.orientFeedbackEdges が既定で有効になります。subgraph へ戻る辺があるフローチャートは配置が変わる場合があります
  • 実機での見た目はまだ確認していません(下の「動作確認」を参照)

動作確認

  • unit: vitest run 3344 passed / 18 skipped
  • 型チェック: tsc の node / web / e2e がすべて通過
  • biome: エラーなし
  • build: electron-vite build が通過
  • e2e(renderer-only): 188 passed
  • e2e(実 Electron): ローカルでは実行していないので、CI で確認します
  • 実機での図の見た目(ELK の配置変更): 未確認

スクリーンショット

なし

検証エビデンス

リスク分類

tier: high — 依存更新(package.json / pnpm-lock.yaml / pnpm-workspace.yaml)

実行した検証

種別 コマンド 結果
テスト vitest run PASS 3344 / skipped 18
型チェック pnpm typecheck / pnpm typecheck:e2e 相当(tsc node / web / e2e) PASS
Lint biome check PASS(info 1 件)
Build electron-vite build PASS
e2e pnpm test:e2e(renderer-only、user の Terminal で実行) PASS 188
e2e pnpm test:e2e:electron 未実施(ローカル不可、CI で確認)
レビュー /simplify(4 観点) 1 件(HANDOFF の古い記述、リポジトリ外なのでローカルで修正)
レビュー code-reviewer(fable)2 周 1 周目: Warning 1 / Suggestion 1 → どちらも fix。2 周目: Suggestion 3 → 1 件 fix、2 件は Tier3
レビュー codex-review shell-senior / security / qa-fixture 3 観点とも PASS(fix の前と後の両方で実行)

レビュー指摘と対応

Perspective Verdict Findings Confirmed Refuted Fixed Report-only Unresolved
shell-senior PASS 0 - - - - -
security PASS 0 - - - - -
qa-fixture PASS 0 - - - - -

code-reviewer で fix した指摘:

  • body 直下に一時 div が溜まる不具合(suppressErrorRendering)→ f69fe93 で修正、e2e を追加
  • コメントの文言を「parse error」から「parse / draw error」に修正 → f69fe93 に含めた

追跡先

backlog delta: 起票 0 件 / 本 PR で close 0 件 / 現在 open 1 件

なし

Draft 判定

  • 判定: normal
  • 根拠: step 5 — tier=high の walkthrough を user が承認。fix が要る finding は残っていない

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
ymnao and others added 2 commits October 12, 2026 13:52
@ymnao @claude
chore: mermaid を 12.1.0 に上げ、lodash-es の override を削除する
b22baf7
- mermaid 12.1.0 は chevrotain を 13.2.0 に上げ、chevrotain 系は lodash-es に依存しなくなった (上流 #8330 / #8333)
- [email protected] を固定していた親が消え、残る dagre-d3-es は ^4.17.21 の宣言で 4.18.1 に解決されるので、override の削除条件を満たした
- pnpm up は無関係の codemirror / theme-one-dark まで再解決し @codemirror/language 等が 2 版に割れたため、package.json の宣言だけを書き換えて pnpm install で解決した
- katex / marked の dual-resolution コメントは 12.1.0 でも同じ系列であることを確認して版を更新

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymnao @claude
fix: mermaid の parse error で body に一時 div が溜まらないようにする
f69fe93
- suppressErrorRendering が既定の false だと、mermaid.render は parse error 時に error 図を body 直下の一時 div へ描いたまま throw する。scripta は render ごとに別 id を渡すので、エラーになった source の数だけ div が残っていた
- scripta はエラーを catch してメッセージ文字列だけを表示し、error 図は使っていない。throw されるエラーは同じなので表示は変わらない
- e2e で body 直下の div 数を pin した (修正前は 1 件残って fail することを確認)
- code-reviewer が mermaid 12.1.0 の bump レビュー中に指摘した既存の挙動

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymnao
ymnao merged commit de8161a into main Oct 12, 2026
11 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ymnao
ymnao deleted the chore/bump-mermaid-12-1 branch October 12, 2026 07:08
@ymnao ymnao mentioned this pull request Oct 12, 2026
chore: v0.8.0 リリース準備 #632
Merged
4 of 11 tasks
ymnao added a commit that referenced this pull request Oct 12, 2026
@ymnao @claude
chore: v0.8.0 リリース準備 (#632)
9d003d3
* chore: v0.8.0 リリース準備

- package.json の version を 0.7.0 → 0.8.0 に上げる
- CHANGELOG.md に v0.8.0 のエントリを追加する (#283 〜 #631、170 commit)
  - Electron 44 で macOS の最小要件が 13 (Ventura) に上がることを冒頭に明記する
    (同梱 Electron 44.5.1 の LSMinimumSystemVersion が 13.0)
  - リリース後、tap 側で Cask の depends_on macos を :ventura に上げてから
    autobump を手動実行する (docs/parity-checklist.md §11)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: v0.8.0 の CHANGELOG をコミットの実態に合わせて直す

- hard link (#601) は検索結果の stale 対策で、ワークスペース外アクセスの封鎖では
  ないので Security から Fixed へ移す
- 漏れていた #414 / #443 / #623 と CI actions の更新を足す
- #461 の 3 経路 (別タブのファイルへの書き込み・rename 前パスの復活・
  ウィンドウを閉じたときの保存漏れ) を分けて書く
- #444 を wikilink がすべて未解決になる症状として、#622 を Fixed として書き直す
- electron-builder の完全一致固定に出所 (#283) と理由を添える
- [0.8.0] / [0.7.0] の参照リンク定義を足し、README の Electron 版を v44 に直す

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* docs: v0.8.0 の CHANGELOG の #623 / #443 の記述を実測条件と実際の UI に合わせる

- #623 の「1 秒以上」に実測条件 (キャッシュ 1 万件・イベント 1000 件) を添え、
  コミットに無い git checkout の例を外す
- #443 の「すべて表示した」は実在しない UI 文言なので、打ち切りの通知が
  出ないという実挙動で書く

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@ymnao
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.