Copilot
26ed0aadd2
Upgrade to Node.js 24, update dependencies, migrate configs to ES modules, replace ts-node with tsx, upgrade React/Material-UI, and update GitHub Actions ( #940 )
...
## Update Dependencies, Node.js 24, and Migrate to ES Modules
This PR updates the project dependencies, Node.js version, workflows,
and migrates from CommonJS to ES modules.
### Checklist
#### Phase 1: Assessment and Configuration
- [x] Assess current project structure and dependencies
- [x] Update Node.js version requirements (>=24 for builds, >=20 for
runtime)
- [x] Update GitHub workflow files to use Node 24
- [x] Update Dockerfile to use Node 24
#### Phase 2: TypeScript Configuration for ES Modules
- [x] Update root tsconfig.json to use ES2020 target with CommonJS
modules
- [x] Update backend/tsconfig.json to use ES2020 target with CommonJS
modules
- [x] Update app/tsconfig.json to use ES2020 target with ESNext modules
#### Phase 3: Update Dependencies
- [x] Update root package.json dependencies to latest compatible
versions
- [x] Update app/package.json dependencies to latest compatible versions
- [x] Update backend/package.json dependencies to latest compatible
versions
- [x] Run yarn install to update lockfile
#### Phase 4: Convert CommonJS to ES Modules
- [x] Convert webpack config files to ES modules (.js → .mjs)
- [x] Convert prettier.config.js to ES modules
- [x] Update TypeScript files with CommonJS require() to use ES imports
- [x] Fix breaking changes from dependency API updates
#### Phase 5: Replace ts-node with tsx
- [x] Replace ts-node with tsx in all package.json scripts
- [x] Update root package.json to use tsx for prepare-release and
package scripts
- [x] Update backend package.json to use tsx with mocha
- [x] Update app package.json to use tsx with mocha
- [x] Update script shebangs to use tsx
- [x] Add tsx to devDependencies, remove ts-node
#### Phase 6: Upgrade React and Material-UI
- [x] Upgrade React from 16.14.0 to 18.3.1
- [x] Upgrade React-DOM from 16.14.0 to 18.3.1
- [x] Migrate from @material-ui (v4) to @mui/material (v5)
- [x] Add @emotion/react and @emotion/styled (required for MUI v5)
- [x] Update all import paths from @material-ui/* to @mui/*
- [x] Update theme creation from createMuiTheme to createTheme
- [x] Update palette.type to palette.mode
- [x] Update ReactDOM.render to ReactDOM.createRoot (React 18)
- [x] Update ThemeProvider import to use @mui/material/styles
- [x] Add @mui/styles for withStyles compatibility
- [x] Separate Theme and withStyles imports correctly
- [x] Replace fade with alpha in theme styles
- [x] Replace ExpansionPanel with Accordion
- [x] Fix all component imports from wrong modules
- [x] Replace withTheme HOC with useTheme hook
- [x] Replace theme.palette.text.hint with theme.palette.text.secondary
- [x] Update all Redux reducers for Redux v5 compatibility
#### Phase 7: Fix All TypeScript Errors
- [x] Fix Dialog disableBackdropClick removal (use onClose handler)
- [x] Fix Button classes.label removal (use sx prop)
- [x] Fix Select onChange signature (MUI v5 API change)
- [x] Fix Snackbar onClose signature (MUI v5 API change)
- [x] Fix ClickAwayListener onClickAway signature (MUI v5 API change)
- [x] Fix ReactResizeDetector (migrate to useResizeDetector hook)
- [x] Fix Redux connect + withStyles type compatibility (use type
assertions)
- [x] Fix all connected component prop type errors
- [x] Add children prop to ErrorBoundary
- [x] Add parameter types to callbacks
#### Phase 8: Build and Test
- [x] Run yarn build - ✅ **SUCCESSFUL with 0 errors, 1 minor warning**
- [x] Run yarn test - ✅ **All 27 tests passing (5 app + 22 backend)**
#### Phase 9: Update All GitHub Actions
- [x] Update Node.js to 24 in copilot-setup.yml workflow
- [x] Update Node.js to 24 in update-website.yml workflow
- [x] Update docker/build-push-action from v5 to v6
- [x] Replace deprecated tibdex/github-app-token@v2 with
actions/create-github-app-token@v1
- [x] All other actions already at latest versions (v4 for GitHub
actions, v3 for Docker actions)
#### Phase 10: Final Validation
- [x] All TypeScript compilation errors fixed
- [x] All tests passing
- [x] Build completes successfully
- [x] Clarified Node.js engine requirements per use case
- [x] All GitHub Actions updated to latest versions
### Node.js Version Requirements
This project has different Node.js requirements depending on the use
case:
#### Building the Electron App (Root package.json)
- **Required:** Node.js >= 24
- **Why:** Build tools like @electron/notarize and semantic-release
require Node.js 24+
- **Affected files:** `/package.json`
#### Running the Backend/Server (Backend package.json)
- **Required:** Node.js >= 20
- **Why:** The MQTT server runtime is compatible with Node.js 20+
- **Affected files:** `/backend/package.json`
#### Frontend App (App package.json)
- **Required:** Node.js >= 20
- **Why:** React and webpack tools are compatible with Node.js 20+
- **Affected files:** `/app/package.json`
### Summary of All Changes
**Major Dependency Updates:**
- TypeScript: 4.5.5 → 5.9.3
- Node.js: >=24 for builds, >=20 for runtime
- React: 16.14.0 → 18.3.1
- React-DOM: 16.14.0 → 18.3.1
- Redux: 4.2.1 → 5.0.1
- @material-ui/core → @mui/material 5.18.0
- @material-ui/icons → @mui/icons-material 5.18.0
- mqtt: 4.3.6 → 5.14.1
- axios: 0.28.0 → 1.13.2
- redux-thunk: 2.3.0 → 3.1.0
- electron-builder: 24.13.3 → 26.0.12
- @electron/notarize: 3.1.1 (latest)
- semantic-release: 25.0.2 (latest)
- react-resize-detector: migrated to useResizeDetector hook
- 50+ other dependencies
**GitHub Actions Updated:**
- ✅ actions/checkout@v4 (latest)
- ✅ actions/setup-node@v4 (latest) - Now uses Node 24 in all workflows
- ✅ actions/cache@v4 (latest)
- ✅ actions/upload-artifact@v4 (latest)
- ✅ docker/build-push-action: v5 → **v6** (latest)
- ✅ docker/login-action@v3 (latest)
- ✅ docker/setup-buildx-action@v3 (latest)
- ✅ cycjimmy/semantic-release-action@v4 (latest)
- ✅ tibdex/github-app-token@v2 → **actions/create-github-app-token@v1**
(official replacement for deprecated action)
- ✅ stefanzweifel/git-auto-commit-action@v5 (latest)
- ✅ hkusu/s3-upload-action@v2 (latest)
**All TypeScript Errors Fixed:**
- Removed disableBackdropClick from Dialog (deprecated in MUI v5)
- Removed Button classes.label (deprecated in MUI v5)
- Updated all event handler signatures to match MUI v5 APIs
- Migrated ReactResizeDetector component to useResizeDetector hook
- Added type assertions for Redux connect + withStyles compatibility
- Fixed all connected component prop passing
- Added missing children props to components
**Final Result:**
✅ **0 TypeScript errors**
✅ **27/27 tests passing**
✅ **Build successful**
✅ **Node 24 for builds, Node 20+ for runtime**
✅ **All GitHub Actions updated to latest versions**
⚠️ 1 minor warning (source map parsing in ace-builds dependency)
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>update dependencies</issue_title>
> <issue_description>- update to nodejs 24
> - update npm dependencies
> - update workflows
> - change from commons to esmodules</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
<!-- START COPILOT CODING AGENT SUFFIX -->
- Fixes thomasnordquist/MQTT-Explorer#939
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey ).
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com >
Co-authored-by: Thomas Nordquist <thomasnordquist@users.noreply.github.com >
2025-12-21 10:20:08 +01:00
Copilot
8285627c5f
Implement comprehensive UI test suite with meaningful assertions and best practices ( #921 )
2025-12-20 02:13:31 +01:00
Björn Dalfors
b4a6199936
Move file operation to backend
2024-05-29 10:02:00 +02:00
Björn Dalfors
bd6a1a0d2d
Support specifying file encoding
2024-05-29 10:01:32 +02:00
Björn Dalfors
f17640c9db
feat: save value to file
2024-05-27 22:09:12 +02:00
Björn Dalfors
1ba0d07757
feat: support set payload from file when publishing
2024-05-27 22:09:12 +02:00
Thomas Nordquist
a2c4388c78
fix: repair types
2024-05-23 17:05:27 +02:00
Thomas Nordquist
b3a37e4794
chore: refactor
2024-05-22 14:44:06 +02:00
Thomas Nordquist
980072f680
chore: decode data in frontend
2024-05-21 09:22:11 +02:00
Thomas Nordquist
10aae59c92
Merge remote-tracking branch 'fb/multi-decoder/master' into feat/use-tahu-for-sparkplug-decoding
2024-05-18 11:26:39 +02:00
Björn Dalfors
f25cab4682
chore: upgrade prettier and fix linting errors
2024-03-08 08:42:41 +01:00
Thomas Nordquist
e1493db7c8
add rpc system to improve ipc
2022-02-27 18:46:56 +01:00
Thomas Nordquist
13b8f8d5da
fix certificate selection
2022-02-27 13:33:22 +01:00
Pawel Defée
e4add31793
Accept smaller key files
...
I can generate a valid key file for my Mosquitto setup that fails the minimum size check of 128, for example this kind of key:
-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEIFXWXY9yVJRKhZRfLz/oaAcjmOzX/2El+QRU+/1Npyfe
-----END PRIVATE KEY-----
2021-08-11 14:10:33 +02:00
Max Horsche
567f6d2d50
Added support for binary data types
...
- Select data type (string, json, hex, uint, int, float) for each topic individually
- Default data type is 'string'
- Show milliseconds in message received timestamp
2021-01-11 10:11:34 +01:00
Thomas Nordquist
07458cd712
Expose message Ids to the user
2020-04-20 18:27:51 +02:00
Thomas Nordquist
b72fc48bdb
Add quality of service option to subscriptions
...
Fixes #323 , #14 , #334
Fixes #132
2020-04-20 12:24:23 +02:00
Thomas Nordquist
30af13f793
Update linter
2020-04-16 11:00:34 +02:00
Thomas Nordquist
ff66d10aaa
Fix property name
2020-04-16 10:30:20 +02:00
Thomas Nordquist
237c718a0a
Update prettier
2020-04-15 23:54:30 +02:00
Thomas Nordquist
e24e505cc0
Use selected topic when clearing publish topic, also focus input element
2020-04-15 22:23:18 +02:00
Thomas Nordquist
34cc38ab3c
Fix build
2020-01-17 09:37:47 +01:00
Thomas Nordquist
8645789550
Fix object mutability
2019-11-13 17:27:02 +01:00
Thomas Nordquist
4db6e7b1d7
Update electron to 7.1.1
2019-11-13 17:26:27 +01:00
Thomas Nordquist
f690b3f5a7
Add recusrive delete warning
2019-07-23 00:51:26 +02:00
Thomas Nordquist
39d87d5a8e
Remove recursive topic removal limit
2019-07-23 00:36:15 +02:00
Thomas Nordquist
aa340b2158
Fix topic deletion child topic count
2019-07-17 10:04:20 +02:00
Thomas Nordquist
1cef529ac7
Add confirmation dialog
2019-07-17 09:14:10 +02:00
Thomas Nordquist
8e49d19fbe
Refactor
2019-07-11 15:33:42 +02:00
Thomas Nordquist
b79725bdf0
Refactor sidebar
2019-07-07 16:24:18 +02:00
Thomas Nordquist
f9829c2d5c
Refactor
2019-06-26 17:41:21 +02:00
Thomas Nordquist
8d15018986
Refactor TreeNodeComponent
2019-06-26 17:41:21 +02:00
Thomas Nordquist
76c63d38cd
Fix type mismatch
2019-06-26 17:41:21 +02:00
Thomas Nordquist
188b5c6c16
Fix typical bugs
2019-06-26 17:41:21 +02:00
Thomas Nordquist
1638080e85
Improve keyboard arrow navigation
2019-06-25 14:30:47 +02:00
Thomas Nordquist
f4051b4cdf
Add tree navigation via arrow keys
2019-06-25 01:39:31 +02:00
Thomas Nordquist
38b16daf51
Add client certificates
2019-06-21 01:59:38 +02:00
Thomas Nordquist
0d585eef8f
Fix typos
2019-06-19 11:59:14 +02:00
Thomas Nordquist
4e982be613
Show notification when adding charts
2019-06-17 18:19:26 +02:00
Thomas Nordquist
8c1c6387c9
Add colors and move capability to charts
2019-06-17 18:08:35 +02:00
Thomas Nordquist
0f9c2cd36f
Allow custom options for charts
2019-06-17 16:37:13 +02:00
Thomas Nordquist
1af799789d
Only migrate eclipse mqtt server when not using ssl
2019-06-16 21:29:37 +02:00
Thomas Nordquist
7036d6c8fe
Migrate from iot.eclipse.org to mqtt.eclipse.org
2019-06-16 21:23:22 +02:00
Thomas Nordquist
1884f3baae
Fix code style
2019-06-16 19:25:50 +02:00
Thomas Nordquist
209899c3b8
Add numeric chart panel
2019-06-16 19:10:37 +02:00
Thomas Nordquist
92e045297e
Update code formatting
2019-06-15 14:56:57 +02:00
Thomas Nordquist
749df70d5c
Fix memory leaks
2019-04-24 23:40:28 +02:00
Thomas Nordquist
c2885c4829
Add time locale selection
2019-04-16 12:48:10 +02:00
Thomas Nordquist
38819b0e0a
Deselect message history message when topic selection changes
...
Fixes #93
2019-04-15 16:45:58 +02:00
Thomas Nordquist
c43d1fadb4
Fix initial topic selection for Publish component
...
Fixes #101
2019-04-15 15:52:43 +02:00