mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-27 20:00:51 +00:00
Upgrades Electron from EOL 42.11.12 to latest stable 45.5.0 (Chromium 156.0.8078.109,
Node 24.22.3, V8 15.6) and migrates all affected Electron 43/44/45 APIs:
- Bump electron to ^45.5.0 and node-abi override to 4.43.0 so @electron/rebuild
rebuilds node-pty, @serialport/bindings-cpp, and sqlite3 cleanly
- Electron 44 async W3C Clipboard API:
- Migrate electron/bridges/clipboardFiles.cjs to support async clipboard.read()
(ClipboardItem[] with text/uri-list file paths and image/* blobs) and
clipboard.has() alongside legacy sync test mocks, plus new unit tests
- Await clipboard.readText/writeText/readFiles/readImage/hasImage in
electron/main/registerBridges.cjs
- Await clipboard.readText/writeText (handling both sync mocks and Promise
returns safely) in electron/plugins/hostInteractionService.cjs
- Electron 45 sandboxed preload Buffer removal:
- Replace Buffer.from with standard Uint8Array in electron/preload/stageUploadFile.cjs
- Electron 44 openAsHidden removal:
- Remove openAsHidden from app.setLoginItemSettings in electron/autoLaunch.cjs
and update electron/autoLaunch.test.cjs
- Electron 43 Linux dialog showHiddenFiles removal:
- Omit showHiddenFiles from dialog.showOpenDialog properties on Linux in
electron/main/registerBridges.cjs
Verified on Electron 45.5.0:
- npm run build & npm run pack:dir (electron-builder 26.15.2 + all patches)
- Live Electron 45.5.0: async clipboard smoke, terminal-background-rendering,
tray-panel-layout, plugin-runtime:electron (PLUGIN_RUNTIME_SMOKE_OK),
and 5-terminal local PTY stress/leak test (0 leaks; peak JS heap 41.28 MiB;
131 KB sandbox_bundle.js eliminated from sandboxed renderer heap)
- Unit tests: 815/815 test:plugin-runtime + all modified bridge/preload/autoLaunch tests