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: electron 44.4.3 へ上げ、同梱 Chromium 152 に build target を追従させる by ymnao · Pull Request #549 · ymnao/scripta

Conversation

@ymnao

@ymnao ymnao commented Sep 26, 2026

Copy link
Copy Markdown
Owner

概要

Dependabot #526 の electron 43.4.0 → 44.4.3(major)を取り込み、同梱 Chromium に build target を追従させる。版番号を書いたドキュメントも同時に更新し、30 回持ち越していた commit type 列挙への perf: / test: 追加を相乗りさせた。

#526 は本 PR の merge 後に close する(先に close すると本 PR が頓挫したときの復活手順が要るため)。

関連 Issue

なし(supersedes #526)

移行 Stage

  • Stage 0: 雛形 + フロント表示確認
  • Stage 1: ファイル I/O
  • Stage 2: ワークスペース・ファイルツリー・ファイル監視
  • Stage 3: 全文検索(ripgrep sidecar)
  • Stage 4: Git Sync
  • Stage 5: OGP / PDF / アップデート
  • Stage 6: 仕上げ・配布・切り替え

変更内容

  • electron 43.4.0 → 44.4.3(9ed31e0 は Chore(deps-dev): Bump electron from 43.4.0 to 44.4.3 in the electron group across 1 directory #526 の commit を cherry-pick。package.json / pnpm-lock.yaml は Chore(deps-dev): Bump electron from 43.4.0 to 44.4.3 in the electron group across 1 directory #526 と byte 同一)
  • RENDERER_TARGET を chrome150 → chrome152。NODE_TARGET は node24 据え置き
    • 根拠は electron/electron の DEPS を tag 指定で取得した一次情報。v44.4.3 = chromium_version 152.0.7977.130 / node_version v24.21.0(v43.4.0 は 150.0.7871.224 / v24.18.1)
    • [email protected] の getElectronNodeTarget() / getElectronChromeTarget() のマップは今も Electron 39 が上限(dist/chunks/lib-q6ns0vZr.js:160-215 を実読)で、未収載 major は node16.17 / chrome108 へ fallback するため明示指定は引き続き必要
  • 版の出所を electron-to-chromium から DEPS へ差し替え。repo が pin する [email protected] は最大キーが "42.0" で 43 / 44 のエントリを持たず、旧コメントの手順は repo 内では実行不能だった
  • esnext の説明から transformer 名を削除。「esbuild が最新扱いする構文を…」は現行では偽で、Vite 8 の esbuild 変換 plugin は build.minify === "esbuild" のときだけ登録される([email protected] の dist/node/chunks/node.js:33918)ところ、electron-vite 5.0.0 の preset が main / preload / renderer すべてに minify: false を注入する(lib-q6ns0vZr.js:300 / :407 / :536)ため esbuild は経路に入らない
  • CLAUDE.md の commit type 列挙に perf: / test: を追加(main に test: 16 件 / perf: 3 件があり運用が先行していた)
  • docs/tauri-purge-inventory.md の版番号を除去し、stale だった行番号 3 箇所を実測値へ修正(export.ts:496 → :292、NewTabContent.tsx:51-52 → :53-54、export.ts:423 → :197, 486)

Electron 44 の breaking changes と本 repo の照合

公式 docs/breaking-changes.md(v44.4.3 tag)の 44.0 節 11 項目すべてを repo と突き合わせ、コード変更を要する項目はゼロだった。

項目 本 repo
renderer から clipboard module 撤去 / W3C 化 該当なし(navigator.clipboard のみ使用、Electron の clipboard は未 import)
ia32 / armv7l バイナリ撤去 該当なし(electron-builder.yml は mac x64+arm64 / win x64 / linux AppImage+deb)
Unity 対応撤去(app.isUnityRunning) 未使用
select-client-certificate の webContents が null 可 未使用
subframe Worker の nodeIntegrationInSubFrames / DevTools preload 該当なし
ANGLE 静的リンク 該当なし
net.request の frame destination 制限 該当なし(scripta-asset-protocol は受信 header を転送しない)
macOS 13 未満の login item 属性削除 未使用
macOS 12 (Monterey) サポート終了 パッケージ済みアプリは macOS 13 以上が必須になる。 repo に OS 要件の記述が無いため、本 PR では新規ドキュメントを作らずここに記録する

lockfile の transitive 変動(開示)

9ed31e0 の lockfile は electron 以外も動かしている。いずれも既存の semver 範囲内:

  • 下げ: @lezer/highlight 1.2.4 → 1.2.3(main では 1.2.3 と 1.2.4 が二重に入っていたのが 1.2.3 単一へ寄る)、fs-extra 11.4.1 → 11.4.0(@electron/windows-sign 経由、build 時のみ)
  • 上げ: semver 7.7.4 → 7.8.5、undici 6.28.0 → 6.28.1 / 7.29.0 → 7.29.1、@types/node 24.13.3 → 24.13.6

ローカルでの再解決(main の lockfile を土台に electron だけ上げ直す)は試みたが、sandbox が pnpm の global dir 書き込みを拒否して ERR_PNPM_LOCKFILE_WRITE_FILE になり不可能だった。CI が green だった #526 と byte 同一の lockfile を維持する方を選んでいる。

動作確認

  • ローカル build で chrome152 が受理され main / preload / renderer の 3 bundle が生成されることを実測
  • unit test 3169 passed / 16 skipped
  • lint / typecheck(node / web / e2e の 3 本)clean
  • macOS 実機で動作確認(user 実施) — 項目ごとの内訳は未報告
  • e2e(renderer-only / 実 Electron)はローカル実行不可のため CI で確認する

スクリーンショット

なし(UI 変更なし)

検証エビデンス

リスク分類

tier: high — dependency: package.json pnpm-lock.yaml / agent-config: CLAUDE.md

実行した検証

種別 コマンド 結果
テスト ./node_modules/.bin/vitest run(GIT_CONFIG_* を外して実行) PASS 3169 passed / 16 skipped(140 files passed / 1 skipped)
Lint ./node_modules/.bin/biome check . PASS(402 files、エラーなし。info 1 件は既存の migrate 案内)
型チェック tsc --noEmit -p tsconfig.{node,web,e2e}.json 3 本とも exit 0
Build ./node_modules/.bin/electron-vite build PASS(out/main・out/preload・out/renderer を生成)
e2e pnpm test:e2e / pnpm test:e2e:electron 未実施(ローカル実行不可、CI で確認)
実機 macOS で pnpm install → pnpm dev(user 実施) 動作確認済みと報告あり。項目ごとの内訳は未報告
レビュー codex-review security PASS(0 findings)
レビュー codex-review shell-senior PASS(0 findings)
レビュー codex-review qa-fixture PASS(0 findings)
レビュー code-reviewer サブエージェント(Fable)2 周 1 周目 Critical 0 / Warning 4 / Suggestion 7、2 周目 Critical 0 / Warning 1 / Suggestion 2
レビュー /simplify 4 観点(1 周目)+ 統合 1 体(2 周目) 1 周目 3 件(同一機構へ収束)、2 周目 1 件

codex-review 3 観点は 8b458cd 時点で実行した(以降の差分は b75bdb9 の doc 行番号 2 箇所のみ)。findings が 0 のため confirm run は不要。

レビュー指摘と対応

Finding 対応
CLAUDE.md と config コメントへの patch 級実測値の二重記述(/simplify 3 観点 + code-reviewer が収束) fix(8b458cd)。値は config コメント、手順は CLAUDE.md 節末尾へ一本化
CLAUDE.md の「esbuild が最新扱いする構文を…」の transformer 帰属が Vite 8 では偽 fix(8b458cd)。Vite / electron-vite の該当行を実読して確認のうえ transformer 名を削除
commit 203b697 body の機構説明の誤り(既定 minify は true の正規化ではなく "oxc" 直書き、かつ本 repo の解決値は electron-vite が注入する false) fix(未 push だったため amend して 8b458cd に差し替え)
docs/tauri-purge-inventory.md の行参照 3 件が stale fix(8b458cd / b75bdb9)。3 件とも grep で実測してから修正
「RENDERER_TARGET が正本」という語が強すぎる fix(8b458cd)。CLAUDE.md の節名参照へ弱めた
config コメントの「版の出所は DEPS」が CLAUDE.md の手順と重複(2 周目 /simplify) 不採用。数値の出所表示であって手順の再掲ではなく、外すと数値の根拠が消える
Dependabot commit の metadata dependency-version: 44.2.0 が本文の 44.4.3 と不整合 対応不要(squash merge で消える Dependabot 生成物。lockfile は 44.4.3)

追跡先

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

Finding (file:line — summary) 行き先 URL / 記録
electron.vite.config.ts:32 — RENDERER_TARGET の手動追従 (c) 対応しない 追跡しない (user 指示: 三択の分類表を「ok」で承認)。次の Electron major bump で必ず再浮上するため (b) の条件 3 を満たさない。導出化は electron-to-chromium を直接依存へ格上げし、データ未追随時に誤 target で静かに build が通る失敗モードを作る
pnpm-lock.yaml — electron 以外の transitive 変動 (c) 対応しない 追跡しない (user 指示: 三択の分類表を「ok」で承認)。既存 semver 範囲内。ローカル再解決は sandbox が pnpm の global dir 書き込みを拒否して不可能と実測

Draft 判定

  • 判定: normal
  • 根拠: step 4 dismiss — (a) 未 fix の finding は残っておらず、(b) 起票対象もなし。(c) 2 件は user 承認済み

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
dependabot Bot and others added 5 commits September 26, 2026 01:16
@dependabot @ymnao
Chore(deps-dev): Bump electron in the electron group across 1 directory
9ed31e0
Bumps the electron group with 1 update in the / directory: [electron](https://github.com/electron/electron).


Updates `electron` from 43.4.0 to 44.4.3
- [Release notes](https://github.com/electron/electron/releases)
- [Commits](electron/electron@v43.4.0...v44.4.3)

---
updated-dependencies:
- dependency-name: electron
  dependency-version: 44.2.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: electron
...

Signed-off-by: dependabot[bot] <[email protected]>
@ymnao @claude
chore: Electron 44 の同梱 Chromium に build target を追従させる
ff95a3e
- RENDERER_TARGET を chrome150 → chrome152 に更新(Electron 44.4.3 の
  DEPS で chromium_version = 152.0.7977.130 を確認)
- NODE_TARGET は node24 据え置き(node_version = v24.21.0 で 24 系のまま)
- コメントの「同梱 Node は v24.17 系」は 43.4.0 時点でも実際は v24.18.1 で
  不正確だったため、minor を主語にせず major 単位の事実 + 実測注記へ改めた
  (patch bump のたびに stale になる書き方を避ける)
- 版の出所を electron-to-chromium から electron/electron の DEPS(tag 指定で
  取得)へ差し替えた。44 → 152 のマッピングは electron-to-chromium 側では
  今回確認していないため、確かめた一次情報だけを根拠として残す
- electron-vite 5.0.0 の内部マップは依然 Electron 39 が上限(dist を実読して
  確認)で、44 でも node16.17 / chrome108 へ stale fallback するため明示指定は
  引き続き必要

chrome152 が esbuild に受理され main / preload / renderer の 3 bundle が
生成されることはローカル build で実測した。

Co-Authored-By: Claude Opus 5 <[email protected]>
@ymnao @claude
docs: Electron 44 の同梱版へドキュメントを追従させ commit type に perf/test を足す
b5155a2
- CLAUDE.md「build target の明示」節の chrome150 / Electron 43 / v24.17 を
  Electron 44 の実測値(Chromium 152 / Node v24 系)へ更新
- 版の確認先を `electron-to-chromium` から `electron/electron` の `DEPS`
  (tag 指定で `chromium_version` / `node_version` を読む)へ変更。今回の
  152 / 24.21.0 はこの一次情報で確かめたもので、electron-to-chromium 側の
  44 マッピングは未確認のため根拠として書かない
- コミット規約の Type 列挙に `perf:` / `test:` を追加。main に `test:` 16 件 /
  `perf:` 3 件が既にあり、運用が列挙に先行していた
- docs/tauri-purge-inventory.md の `:has()` の記述から Electron 版番号を外し、
  `RENDERER_TARGET` を正本として参照する形にした。Chromium 版は単調に上がる
  ので、この書き方なら次回の bump で再び stale にならない

Co-Authored-By: Claude Opus 5 <[email protected]>
@ymnao @claude
docs: レビュー指摘に沿って版番号の重複と誤った帰属・行参照を直す
8b458cd
- CLAUDE.md から patch 級の実測値(152.0.7977.130 / v24.21.0)と DEPS の
  読み方の重複を削り、値は electron.vite.config.ts の定数直上コメント、
  手順は同節末尾の 1 箇所へ寄せた。CLAUDE.md:26 の「patch 版までここに書くと
  同期漏れの温床」という repo 自身の方針とも揃う
- CLAUDE.md の esnext の説明から transformer 名を落とした。「esbuild が
  最新扱いする構文を…」は現行では偽。Vite 8 の esbuild 変換 plugin は
  build.minify === "esbuild" のときだけ登録される(vite 8.3.0 の
  dist/node/chunks/node.js:33918)が、本 repo で解決される minify は false
  である。electron-vite 5.0.0 の preset が main / preload / renderer すべてに
  minify: false を default として注入し、user config と mergeConfig する
  ためで(lib-q6ns0vZr.js:300 / :407 / :536、合成は :319)、
  electron.vite.config.ts は minify を上書きしていない。したがって esbuild は
  経路に入らず、build.target は rolldown の transform.target(Oxc)へ渡る
- 直前の commit ff95a3e の body に書いた「chrome152 が esbuild に受理され」も
  同じ誤り。受理したのは Oxc / rolldown 側で、build が通った事実
  (main / preload / renderer の 3 bundle 生成)自体は変わらない
- docs/tauri-purge-inventory.md の `:has()` 行参照 496 → 292 に修正。496 は
  現在 `.slide:not(:last-child)` で、:has() の言及は 292 行目
- 同じ行の「`RENDERER_TARGET` が正本」という語を弱めた。同定数は
  package.json の electron version と独立に人手で追従させる build target で
  あり、同梱 Chromium の一次情報ではない。加えて electron-vite が 42+ を
  内部マップに持てば定数自体が消えうるので、節名で参照する形にした

Co-Authored-By: Claude Opus 5 <[email protected]>
@ymnao @claude
docs: tauri-purge-inventory の残り 2 行の stale な行番号を実測値へ直す
b75bdb9
直前の commit で同じ表の `:has()` 行の行番号を 496 → 292 に直したが、
同じ表の他 2 行も同種の drift を起こしていた。実測:

- NewTabContent.tsx の `WebkitBackgroundClip` / `WebkitTextFillColor` は
  51-52 ではなく 53-54
- export.ts の `-webkit-print-color-adjust: exact` は 423 ではなく 197 と 486
  の 2 箇所(423 は現在スライド 1 枚 = PDF 1 ページの説明コメント)

Co-Authored-By: Claude Opus 5 <[email protected]>
@ymnao
ymnao merged commit c3bb27c into main Sep 26, 2026
19 checks passed

Uh oh!

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

@ymnao
ymnao deleted the chore/electron-44 branch September 26, 2026 02:27
@ymnao ymnao mentioned this pull request Sep 26, 2026
chore: github-actions の Dependabot 更新を 1 group にまとめる #551
Merged
4 of 11 tasks
ymnao added a commit that referenced this pull request Sep 26, 2026
@ymnao @claude
chore: github-actions の Dependabot 更新を 1 group にまとめる (#551)
9ef2934
npm 側には group があるが github-actions 側には無く、Dependabot が同一 action
でも参照 path 単位で別 dependency として扱うため、`github/codeql-action/init`
と `.../analyze` が毎回 2 PR に割れていた。実測では codeql-action の
バージョン更新ごとに必ず 2 本で、直近は #543 / #545、遡って #542/#541、
#524/#523、#521/#518、#515/#509、#487/#481、#472/#467、#423/#422、#372/#371、
#318/#317、#285/#284 の 11 組。

現在使っている action は 8 種(actions/cache, actions/checkout,
actions/dependency-review-action, actions/setup-node, actions/upload-artifact,
github/codeql-action, peter-evans/create-issue-from-file, pnpm/action-setup)で、
npm 側の electron-builder のように「配布契約に効くので単独 PR で届けたい」
ものは無い。したがって catch-all の 1 group にまとめ、週次の PR を 1 本に
圧縮する。

`rebase-strategy` は未設定(既定の auto)であることを確認した上で、今回は
触らない。Dependabot の自動 rebase は実際に有用に働いており、#549 の merge 後
に #548 が自力で rebase され、session 171 でも除外した PR を Dependabot 側が
recreate している。

Co-authored-by: Claude Opus 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.