Skip to content

Conversation

morishin
Copy link
Collaborator

@morishin morishin commented Aug 4, 2025

  • Electron 14 -> 32
  • Node.js 16 -> 22
  • Typescript 4.5 -> 5.5

morishin and others added 8 commits August 4, 2025 16:15
Major changes:
- Electron: v14.2.9 → v32.2.0 (18 major version upgrade)
- electron-builder: v23.6.0 → v25.1.8
- electron-mocha: v11.0.2 → v12.3.0
- spectron: v14.0.0 → v15.0.0

Breaking changes handled:
- Added preload script for secure IPC communication
- Updated webpack config for preload script build
- Fixed render-process-gone event handling
- Addressed TypeScript compatibility issues
- Resolved setImmediate access in renderer process

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Updates:
- Volta Node.js version: 16.20.2 → 22.16.0
- @types/node: 12.12.12 → ^22.0.0
- TypeScript: ^4.5.5 → ^5.5.0
- ts-node: 5.0.1 → ^10.9.0
- @typescript-eslint/eslint-plugin: ^5.10.0 → ^7.0.0
- @typescript-eslint/parser: ^5.10.0 → ^7.0.0

All tests pass and application starts successfully with Node.js 22.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Update test.yml: Node.js 16 → 22
- Update prepare_release.yml: Node.js 16 → 22
- Update commented integration test workflow to Node.js 22

This aligns CI/CD environments with the updated local development environment.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Fixes:
- Fix TS2872 in Setting.ts: Remove unnecessary || {} for object spread
- Fix TS2344 in Store.ts: Add Record<string, any> constraint to generics
- Fix TS2344 in Container.ts: Add Record<string, any> constraint to generics
- Update ESLint to v8.56.0 for compatibility with @typescript-eslint v7

All TypeScript compilation, ESLint, Prettier checks pass.
All tests pass and application builds successfully.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
The preload script was trying to require a non-existent module path
"../../app/development/out/app" which caused webpack build failures in CI.

Changes:
- Remove problematic require function from nodeAPI
- Simplify preload script to only expose necessary APIs
- Reduce preload bundle size from 270KB to 3.97KB (dev) / 1.05KB (prod)
- Fix webpack compilation error in production builds

The require functionality was not actually needed, as the application
uses the standard HTML script loading mechanism.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@morishin morishin merged commit 30cefef into upgrade-electron Aug 4, 2025
@morishin morishin deleted the electron-upgrade-v32 branch August 4, 2025 14:09
@morishin morishin mentioned this pull request Aug 4, 2025
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