Skip to content

Upgrade Electron packages and migrate to ESM#867

Merged
Tim020 merged 1 commit intodevfrom
feature/electron-package-upgrades
Jan 24, 2026
Merged

Upgrade Electron packages and migrate to ESM#867
Tim020 merged 1 commit intodevfrom
feature/electron-package-upgrades

Conversation

@Tim020
Copy link
Copy Markdown
Contributor

@Tim020 Tim020 commented Jan 24, 2026

Summary

  • Upgrade electron from ^32.2.10 to ^40.0.0 (8 major versions)
  • Upgrade electron-store from ^8.2.0 to ^11.0.2 (ESM-only)
  • Upgrade globals from ^15.14.0 to ^17.1.0
  • Remove node-fetch dependency (native fetch in Node 24)

Breaking Changes Addressed

electron-store v9+

  • Package is now ESM-only, requiring full ESM migration
  • JSON Schema upgraded from draft-v7 to draft-2020-12 (existing schema compatible)

Electron 40

  • No breaking changes affected this codebase (uses modern patterns)

ESM Migration

  • Added "type": "module" to package.json
  • Converted main.js and all services to ES modules (import/export)
  • Renamed preload.js → preload.cjs (sandboxed preload scripts require CommonJS)
  • Updated ESLint config to handle both .js (ESM) and .cjs (CommonJS)

Test plan

  • Linting passes (npm run ci-lint)
  • App starts successfully (npm run start)
  • Test full application flow in dev mode
  • Test packaging (npm run make)

🤖 Generated with Claude Code

- Upgrade electron from ^32.2.10 to ^40.0.0
- Upgrade electron-store from ^8.2.0 to ^11.0.2
- Upgrade globals from ^15.14.0 to ^17.1.0
- Remove node-fetch (using native fetch in Node 24)

ESM migration:
- Add "type": "module" to package.json
- Convert main.js and services to ES modules
- Rename preload.js to preload.cjs (sandboxed preload requires CommonJS)
- Update ESLint config to handle both .js (ESM) and .cjs (CommonJS)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@Tim020 Tim020 added the claude Issues created by Claude label Jan 24, 2026
@github-actions github-actions bot added client Pull requests changing front end code medium-diff labels Jan 24, 2026
@github-actions
Copy link
Copy Markdown

Client Test Results

83 tests   83 ✅  0s ⏱️
 3 suites   0 💤
 1 files     0 ❌

Results for commit 1723ea7.

@Tim020 Tim020 enabled auto-merge (squash) January 24, 2026 21:39
@github-actions
Copy link
Copy Markdown

Python Test Results

  1 files    1 suites   38s ⏱️
313 tests 313 ✅ 0 💤 0 ❌
318 runs  318 ✅ 0 💤 0 ❌

Results for commit 1723ea7.

@Tim020 Tim020 merged commit a91b7a8 into dev Jan 24, 2026
24 checks passed
@Tim020 Tim020 deleted the feature/electron-package-upgrades branch January 24, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude Issues created by Claude client Pull requests changing front end code medium-diff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant