Support for NodeJS 23
Breaking Change
- Support for NodeJS 16 and older has been removed
- Support for the original RPI, and PI Zero (armv6) has been removed
Significant Changes
- Added Support for NodeJS 23
- Refresh of Docker images to bookwork and NodeJS 22 runtime
- Remove seperate abi_registry.json, and use node-api version
- Refreshed node-pty code from https://github.com/microsoft/node-pty ( Used squash and merge into Current Branch )
Other Changes
This pull request includes several updates to configuration files, build scripts, and documentation to support newer versions of Node.js and Electron, as well as improvements to the build environment. The most important changes are summarized below:
Configuration Updates:
- Added a new configuration file
.config/tsaoptions.jsonto define TSA options for the project. - Updated
.eslintrc.jsto include additional ignore patterns for thescriptsdirectory.
Build Environment Enhancements:
- Updated the Node.js and Electron build targets in
.github/workflows/Prepare prebuild environment.ymlto include newer versions and removed older versions. [1] [2] [3] [4] [5] - Changed the base images in
.github/workflows/Prepare prebuild environment.ymland.prebuild/Dockerfile.debianto use Debian Bookworm instead of Buster. [1] [2] [3] [4] [5]
Documentation Updates:
- Updated
README.mdto reflect the new minimum supported versions of Node.js and Electron. [1] [2]
Removal of Deprecated Files:
- Removed the deprecated
.prebuild/abi_registry.jsonfile and associated references in build scripts. [1] [2] [3] [4]
Pipeline Configuration:
- Updated
azure-pipelines.ymlto use 1ES pipeline templates and improved the build job configurations for Linux, macOS, and Windows. [1] [2] [3]
The change in build nodejs version breaks bullseye
From discord - https://discord.com/channels/432663330281226270/687483994048167970/1310621193161674782
Bullseye 11 running on Pi 3 B+ Node version 20.18.0 HB version 1.8.5
For tracking purposes
@njuart I think this now fixes your issue - https://github.com/homebridge/node-pty-prebuilt-multiarch/actions/runs/12061552022
Tomorrow, I'm going to add this to the UI beta, and publish
When will support for Node 23 be live? Thank you for maintaining this library!
@jahooma If your using this with Homebridge, the UI beta 5 branch leverages this PR?
https://github.com/homebridge/homebridge-config-ui-x/blob/7d33872090508ebc9ed20f2f846d4d0dadc5d2df/package.json#L86
Thank you for your efforts in supporting node-pty prebuilt packages across platforms and different versions. Looking forward to the NodeJS v23 support to land. Thank you! 🎉
How complete is this Pull Request now? When will it be ready for use?
The PR has been tested for a few months with Homebridge so it should be fine to use. If you need it in your project, just use the beta version tag in your config.JSON