Warning
This beta test release is not recommended for production systems.
Changes since v5.30.1
- chore(deps): dependency updates (
a56351dd) - fix(logs): make the log and terminal scrollbar wide and always visible on touch screens (
a46c2e22) - fix(accessories): tidy the not responding tile and characteristic status (
71ef9f3d) - feat(config): show the secrets toggle as a lock icon, with the masking notice in its tooltip (
49bafa96) - fix(config): drop the empty strip left of the line numbers in the config editor (
f3587738) - chore(dev): run the dev server through swc, so nest checks api data in dev as a release does (
25de7e52) - fix: import types with import type, so each server file builds on its own as the swc dev server needs (
726a7456) - feat(config): show the masked config in a read-only monaco editor on a big screen (
db051f32) - fix(plugins): on close, wait only for the npm run in progress and drop the queued ones (
4262bb51) - fix(accessories): show a matter fan as on while its current speed is above 0, whatever its mode (
58e9cd82) - fix(plugins): read a beta changelog from the newest beta branch, not the last one by name (
43d4e026) - test(i18n): find a missing key in a ternary, a helper call or a template, not only before translate (
09f05de2) - fix(plugins): save an update preference chosen just before the version window closes (
43d9c478) - ci: name the release tag the upload-release-assets pin points at, v4.0.0, not the v4.0 branch (
02eee9a2) - fix(status): let only an admin drag the dashboard accessories, as only an admin's order is saved (
5b612814) - fix(hb-service): keep config.json's owner when saving it as root, as sudo hb-service install does (
7fca6f85) - fix(backup): remove old scheduled backups of an older bridge username from the default folder (
90e2e5c4) - fix(server): keep the old wallpaper when an upload fails, writing the new one to a temp file first (
fb74e5d3) - fix(platform-tools): fail a log download without colours when the read fails, not hang (
0decd48a) - fix(plugins): keep a custom ui path inside its own plugin, not a folder whose name starts the same (
57a55486) - fix(login): say something went wrong for a server error, not that the ui can't be reached (
c12291d3) - fix(ui): add no socket listener for a page that has already closed, instead of throwing (
4e10e67e) - test(scheduler): check the old restart jobs on a copy, as the refresh empties the list in place (
995cce0f) - fix(terminal): end a socket's first shell even when two starts arrive at once (
e84c69de) - fix(spa): read index.html on each request again, so a reload after a ui update gets the new one (
264fcb6e) - fix(hb-service): append the kept log when trimming, so a line written meanwhile is not cut (
a4ecc698) - fix(hb-service): keep the newest part of the log for a maximum size of 0, not empty it (
18eb23d1) - fix(accessories): put a matter fan window's switch back by its mode after a failed write (
8cc3ed22) - fix(accessories): write only a mode a matter fan has, from its mode list, with a new speed (
09cf376a) - fix(server): survive a promise rejected with nothing, and end the ui only for a port error (
f8f9f6cf) - fix(hb-service): write homebridge output that never ends a line, instead of holding it for ever (
aecad3b4) - fix(auth): check at most two passwords at once, so made-up usernames can't fill the thread pool (
ea9ec126) - fix(server): make an existing tls key file private before writing the new key into it (
f0606491) - fix(auth): write a new signing key through a new temp file, so a leftover one can't make it 0644 (
427f98c3) - test(server): make the wallpaper delete test fail without its fix, using a file not config.json (
cb50354a) - fix(auth): show a wallpaper uploaded with no file extension, saved as ui-wallpaper (
e1fd7264) - fix(plugins): treat an empty version in a plugin update as latest again, not refuse it (
66b15481) - fix(plugins): run npm on windows from a user folder with a ! or % in its name, as before (
7d682a65) - fix(terminal): start a re-attached terminal again when its socket reconnects, not leave it silent (
e01f6c1f) - fix(plugins): take the json config window's monaco marker listener off when it closes (
c34f25e5) - fix(accessories): undo the accessory info edits when its window is closed with escape (
478819fe) - fix(status): keep a widget's resize and settings events working after the dashboard is unlocked (
01c7d7e6) - fix(update-all): keep the page's child bridge status updates when the update all window closes (
351aa785) - fix(status): keep the dashboard's status updates when the bridges widget is removed or re-made (
6ad6daf9) - fix(child-bridges): watch a socket once however often it asks, so each status update arrives once (
e44d9be8) - fix(auth): log out only for a 401 from the ui's own server, not from the weather widget's site (
188afa74) - fix(custom-plugins): ignore a null or junk message from a plugin's ui server instead of crashing (
ddba6e04) - fix(status): say matter failed to start on the dashboard for the status homebridge really sends (
05e2621a) - fix(plugins): fail an npm run stopped at the time limit, which node-pty reports as exit code 0 (
a4c3aa42) - fix(backup): restore none of the files a backup leaves out from an hbfx backup either (
e75f467a) - fix(hb-service): keep a config.json that starts with a byte order mark, instead of replacing it (
36ab905e) - fix(platform-tools): read hb-service startup settings that have no env block, not as empty (
ddd038a2) - fix(accessories): show a control on one part of a matter device on that part, not the main tile (
2425da1a) - fix(accessories): send a matter control once, not a second time when its reply is slow (
48bbd5be) - fix(log): clean up a socket that leaves while the log file is checked, which kept its tail listener (
3d79c55e) - fix(accessories): clean up a socket that leaves during the first load, which stayed attached (
9c051e4a) - docs(plugins): put the package queue's comment back on the queue, not on the npm time limit (
873d6a15) - fix(hb-service): never start homebridge from a restart timer that fires while hb-service stops (
3723110b) - ci: fix the labeler comment that says alpha pull requests get the beta label (
53dce6b6) - ci: name the labeler job labeler, not stale (
4e5e22f3) - build: compile the server for es2024, which node 22 runs in full, instead of the moving esnext (
aed52d45) - build: declare socket.io, whose Socket type the accessories service imports (
4b3cc374) - refactor(auth): import createGuardrails from otplib instead of the undeclared @otplib/core (
52d2e727) - chore: drop the stale maintainers field from package.json (
0efe7e63) - chore: add the homepage url to package.json (
2584ab9d) - ci: pin the third-party actions to a commit (
92020605) - fix(plugins): remove a synology @eadir folder before npm runs, which the check never did since 2020 (
df747290) - fix(accessories): show a matter fan as on by its mode, and write the mode and speed together (
7926291b) - fix(settings): save a setting typed just before leaving the page, instead of losing it (
463fd008) - fix(accessories): send a slider change made just before closing a control window (
7046a766) - refactor(accessories): type the service-update handler as the list of services it gets (
527619e7) - refactor(accessories): read hap control window values through typed helpers, for hap-client 5.4.1 (
525d2ec8) - refactor(accessories): read hap tile values through typed helpers, ready for hap-client 5.4.1 (
746456b0) - refactor(accessories): let the temperature and mired pipes take a missing value (
5244d33a) - fix(custom-plugins): answer a plugin's page when its cached accessories can't be read (
49dcf944) - fix(custom-plugins): pass on only request messages to a plugin's ui server, never junk or null (
b760b74b) - fix(config-editor): put a plugin's blocks back where its first block was, not past other plugins (
633f3f74) - fix(backup): save the ui block as config.json has it on an hbfx restore, not its start-up values (
16355fe3) - fix(server): stop homebridge once, not twice, when resetting a bridge pairing (
cef078ae) - fix(server): check cached accessory names before stopping homebridge, and skip a missing cache file (
e4865242) - fix(api): keep the reason a route gives for a 404, as json, not a bare not found (
20d5926b) - fix(terminal): end a socket's first shell when it starts a second, which got the same keystrokes (
96110713) - fix(plugins): give npm 30 minutes, not 5, then kill it if needed so the queue moves on (
85dc296a) - fix(plugins): wait for an npm run to finish before the ui closes, so a restart never cuts it short (
33efaeea) - fix(ui): take seven pages' socket listeners off when they close, so each visit no longer adds one (
cb968525) - fix(plugins): take the install window's output listener off the socket and free its terminal (
d0d0307b) - fix(i18n): add the ten texts the ui uses that en.json lacked, and test that none are missing (
d158b277) - fix(ui): reload after an update on safari and firefox too, which showed a blank page (
7adf0f37) - fix(power-options): ask before restarting the operating system, as a shut down already does (
5b8e16d1) - fix(platform-tools): reboot or shut down the host only from a click, not again on back or reload (
4c87e3ad) - fix(login): say the account is locked for a while, or the ui can't be reached, not a wrong password (
5aac1f87) - fix(ui): use browser timer types instead of node.js ones, so a ui spec also builds on its own (
786db7c3) - feat(plugins): say matter failed to start for a child bridge, not to restart to see the code (
da939199) - feat(status): say matter failed to start on the dashboard code widget, in place of an empty box (
ea35379e) - fix(hb-service): show the log with hb-service view on macos, windows and freebsd (
be79a975) - fix(hb-service): match update-node 22.1 to v22.1.x, not v22.19.0, and 2 to nothing, not v26 (
2005808c) - fix(hb-service): ask before installing an odd node.js major (23, 25), as for any major not tested (
cc6dd117) - fix(hb-service): on freebsd, install for the user who ran sudo when no --user is given (
fa05b725) - fix(hb-service): trim the log at start-up too, so a service that restarts often still trims it (
a94e7e6b) - fix(hb-service): trim the log safely when the size to keep is over the maximum, from a whole line (
e5d862bc) - fix(hb-service): log to the console when the log file can't be written, instead of crashing (
315ad0cb) - fix(config-editor): refuse a whole config that is not an object, which was saved as an empty list (
6fa3e32e) - fix(config-editor): refuse a hap or matter switch with no true or false, which turned hap off (
81b2df9c) - fix(config): read a session timeout typed as text as seconds, not milliseconds (
1ff3f377) - fix(scheduler): restart a shared child bridge once, cancel every old job, and warn on a bad cron (
35b7706a) - fix(plugins): cache npm's short version list apart from the full lookup, which needs the keywords (
7f9f4e47) - fix(plugins): load the plugin list before a ui update reads its install path from it (
d4979d46) - fix(auth): take as long to refuse an unknown username as a wrong password (
d7f9d4c1) - fix(auth): count logins still being checked toward the lockout, so a burst can't get past it (
5c73d443) - fix(auth): start a new user's session version at random, so a deleted user's token can't come back (
a276772c) - fix(users): answer 400, not 500, when a password or 2fa field is missing, and require a password (
8a56bd56) - fix(feature-flags): keep the hap bridge disable switch on for homebridge 3 and later (
174a08f2) - fix(server): accept only a 12 hex digit id when reading one pairing, not a path (
719de1d0) - fix(terminal): ignore terminal input that is not text, which crashed the ui process (
30e47a30) - fix(config): start the ui without ssl, instead of not at all, when an ssl file is missing (
a4551fe6) - fix(config-editor): save the hap and matter settings under the config lock, keeping other saves (
8727e372) - fix(config-editor): keep saving when config.json has an older custom restart command (
b304bbb9) - fix(backup): free the restore slot when a restore fails part-way, and allow a config with no bridge (
42dacfc5) - fix(backup): remove the temp folder of a backup upload that fails to extract (
220b68c4) - fix(backup): keep old scheduled backups when today's fails, and never remove other instances' ones (
b3d49ca4) - fix(backup): install only plugins with a valid name and version when restoring a backup (
e3a3259c) - fix(backup): leave the token signing key out, and restore none of the files a backup leaves out (
692ef034) - fix(accessories): take the socket handlers off on stop, so each visit no longer adds another set (
aba6d174) - fix(accessories): never save an empty room layout from a modal left open after leaving the page (
bd6b9a24) - fix(hb-service): only replace a config.json that is not valid json, never one that failed to save (
18c28853) - fix(hb-service): on stop, wait for homebridge to end before closing the ui, and never restart it (
f78d0cf9) - fix(plugins): check every version given to npm, and refuse cmd.exe characters on windows (
25f81a51) - fix(plugins): stop the major update policy offering a beta of homebridge or the ui (
ca1ad765) - fix(accessories): wait for homebridge's accessoryInfoData reply when getting one matter accessory (
e5d61bf4) - fix(ipc): ignore a null or malformed message from homebridge instead of crashing the ui process (
cdecf1b9) - fix(status): let only an admin save the shared dashboard layout, and refuse one that is not a list (
d27ef709) - fix(accessories): save and load the room layout of the signed-in user, not the user a socket names (
70a1a17a) - fix(server): write tls private keys and pfx files readable by their owner only (
b47319aa) - fix(auth): create auth.json readable by its owner only, as it holds password hashes (
b64401da) - fix(auth): keep the setup wizard closed when auth.json can't be read, and keep its users (
a062b820) - fix(auth): keep the token signing key private (0600), read it once, and never overwrite it (
5dba87a4) - fix(fs): keep a json file's mode and symlink when saving it, and remove the temp file on failure (
5a548b46) - fix(auth): allow dev server origins only in development, so a site on port 8080 can't read a token (
c49cd5f9) - fix(auth): only serve and delete a wallpaper that is a plain image file name in the storage folder (
94eba448) - build: stop publishing three build-only scripts, and fix the patches note in claude.md (
fd08d2be) - test: typecheck the server tests and ui tests in ci, and fix the six type errors it found (
23fdbf2d) - build: stop publishing 134 source maps whose sources are not shipped, and 134 unused type files (
4587f121) - ci: pin the wiki notification action to a commit and keep the npm publish token to the publish job (
eb7ddae1) - feat(accessories): show accessories that are not responding, with their HomeKit status (
0616eae6) - Prerelease dependencies: dependency bot for alpha branches (
35eb8344) - ci: stop running the validate jobs on node.js v20 (
ca25c3b3)
Everything included in the v5.30.2 beta
Highlights
UI Changes
- feat(accessories): show accessories that are not responding, with their HomeKit status (#3124, #3127)
- fix(auth): only serve and delete a wallpaper that is a plain image file name in the storage folder
- fix(auth): allow dev server origins only in development, so a site on port 8080 can't read a token
- fix(fs): keep a json file's mode and symlink when saving it, and remove the temp file on failure
- fix(auth): keep the token signing key private (0600), read it once, and never overwrite it
- fix(auth): keep the setup wizard closed when auth.json can't be read, and keep its users
- fix(auth): create auth.json readable by its owner only, as it holds password hashes
- fix(server): write tls private keys and pfx files readable by their owner only
- fix(accessories): save and load the room layout of the signed-in user, not the user a socket names
- fix(status): let only an admin save the shared dashboard layout, and refuse one that is not a list
- fix(ipc): ignore a null or malformed message from homebridge instead of crashing the ui process
- fix(accessories): wait for homebridge's accessoryInfoData reply when getting one matter accessory
- fix(plugins): stop the major update policy offering a beta of homebridge or the ui
- fix(plugins): check every version given to npm, and refuse cmd.exe characters on windows
- fix(accessories): never save an empty room layout from a modal left open after leaving the page
- fix(accessories): take the socket handlers off on stop, so each visit no longer adds another set
- fix(backup): leave the token signing key out, and restore none of the files a backup leaves out
- fix(backup): install only plugins with a valid name and version when restoring a backup
- fix(backup): keep old scheduled backups when today's fails, and never remove other instances' ones
- fix(backup): remove the temp folder of a backup upload that fails to extract
- fix(backup): free the restore slot when a restore fails part-way, and allow a config with no bridge
- fix(config-editor): keep saving when config.json has an older custom restart command
- fix(config-editor): save the hap and matter settings under the config lock, keeping other saves
- fix(config): start the ui without ssl, instead of not at all, when an ssl file is missing
- fix(terminal): ignore terminal input that is not text, which crashed the ui process
- fix(server): accept only a 12 hex digit id when reading one pairing, not a path
- fix(feature-flags): keep the hap bridge disable switch on for homebridge 3 and later
- fix(users): answer 400, not 500, when a password or 2fa field is missing, and require a password
- fix(auth): start a new user's session version at random, so a deleted user's token can't come back
- fix(auth): count logins still being checked toward the lockout, so a burst can't get past it
- fix(auth): take as long to refuse an unknown username as a wrong password
- fix(plugins): load the plugin list before a ui update reads its install path from it
- fix(plugins): cache npm's short version list apart from the full lookup, which needs the keywords
- fix(scheduler): restart a shared child bridge once, cancel every old job, and warn on a bad cron
- fix(config): read a session timeout typed as text as seconds, not milliseconds
- fix(config-editor): refuse a hap or matter switch with no true or false, which turned hap off
- fix(config-editor): refuse a whole config that is not an object, which was saved as an empty list
- feat(status): say matter failed to start on the dashboard code widget, in place of an empty box
- feat(plugins): say matter failed to start for a child bridge, not to restart to see the code
- fix(ui): use browser timer types instead of node.js ones, so a ui spec also builds on its own
- fix(login): say the account is locked for a while, or the ui can't be reached, not a wrong password
- fix(platform-tools): reboot or shut down the host only from a click, not again on back or reload
- fix(power-options): ask before restarting the operating system, as a shut down already does
- fix(ui): reload after an update on safari and firefox too, which showed a blank page
- fix(i18n): add the ten texts the ui uses that en.json lacked, and test that none are missing
- fix(plugins): take the install window's output listener off the socket and free its terminal
- fix(ui): take seven pages' socket listeners off when they close, so each visit no longer adds one
- fix(plugins): wait for an npm run to finish before the ui closes, so a restart never cuts it short
- fix(plugins): give npm 30 minutes, not 5, then kill it if needed so the queue moves on
- fix(terminal): end a socket's first shell when it starts a second, which got the same keystrokes
- fix(api): keep the reason a route gives for a 404, as json, not a bare not found
- fix(server): check cached accessory names before stopping homebridge, and skip a missing cache file
- fix(server): stop homebridge once, not twice, when resetting a bridge pairing
- fix(backup): save the ui block as config.json has it on an hbfx restore, not its start-up values
- fix(config-editor): put a plugin's blocks back where its first block was, not past other plugins
- fix(custom-plugins): pass on only request messages to a plugin's ui server, never junk or null
- fix(custom-plugins): answer a plugin's page when its cached accessories can't be read
- refactor(accessories): let the temperature and mired pipes take a missing value
- refactor(accessories): read hap tile values through typed helpers, ready for hap-client 5.4.1
- refactor(accessories): read hap control window values through typed helpers, for hap-client 5.4.1
- refactor(accessories): type the service-update handler as the list of services it gets
- fix(accessories): send a slider change made just before closing a control window
- fix(settings): save a setting typed just before leaving the page, instead of losing it
- fix(accessories): show a matter fan as on by its mode, and write the mode and speed together
- fix(plugins): remove a synology @eadir folder before npm runs, which the check never did since 2020
- fix(accessories): clean up a socket that leaves during the first load, which stayed attached
- fix(log): clean up a socket that leaves while the log file is checked, which kept its tail listener
- fix(accessories): send a matter control once, not a second time when its reply is slow
- fix(accessories): show a control on one part of a matter device on that part, not the main tile
- fix(platform-tools): read hb-service startup settings that have no env block, not as empty
- fix(backup): restore none of the files a backup leaves out from an hbfx backup either
- fix(plugins): fail an npm run stopped at the time limit, which node-pty reports as exit code 0
- fix(status): say matter failed to start on the dashboard for the status homebridge really sends
- fix(custom-plugins): ignore a null or junk message from a plugin's ui server instead of crashing
- fix(auth): log out only for a 401 from the ui's own server, not from the weather widget's site
- fix(child-bridges): watch a socket once however often it asks, so each status update arrives once
- fix(status): keep the dashboard's status updates when the bridges widget is removed or re-made
- fix(update-all): keep the page's child bridge status updates when the update all window closes
- fix(status): keep a widget's resize and settings events working after the dashboard is unlocked
- fix(accessories): undo the accessory info edits when its window is closed with escape
- fix(plugins): take the json config window's monaco marker listener off when it closes
- fix(terminal): start a re-attached terminal again when its socket reconnects, not leave it silent
- fix(plugins): run npm on windows from a user folder with a ! or % in its name, as before
- fix(plugins): treat an empty version in a plugin update as latest again, not refuse it
- fix(auth): show a wallpaper uploaded with no file extension, saved as ui-wallpaper
- fix(auth): write a new signing key through a new temp file, so a leftover one can't make it 0644
- fix(server): make an existing tls key file private before writing the new key into it
- fix(auth): check at most two passwords at once, so made-up usernames can't fill the thread pool
- fix(server): survive a promise rejected with nothing, and end the ui only for a port error
- fix(accessories): write only a mode a matter fan has, from its mode list, with a new speed
- fix(accessories): put a matter fan window's switch back by its mode after a failed write
- fix(spa): read index.html on each request again, so a reload after a ui update gets the new one
- fix(terminal): end a socket's first shell even when two starts arrive at once
- fix(ui): add no socket listener for a page that has already closed, instead of throwing
- fix(login): say something went wrong for a server error, not that the ui can't be reached
- fix(plugins): keep a custom ui path inside its own plugin, not a folder whose name starts the same
- fix(platform-tools): fail a log download without colours when the read fails, not hang
- fix(server): keep the old wallpaper when an upload fails, writing the new one to a temp file first
- fix(backup): remove old scheduled backups of an older bridge username from the default folder
- fix(status): let only an admin drag the dashboard accessories, as only an admin's order is saved
- fix(plugins): save an update preference chosen just before the version window closes
- fix(plugins): read a beta changelog from the newest beta branch, not the last one by name
- fix(accessories): show a matter fan as on while its current speed is above 0, whatever its mode
- fix(plugins): on close, wait only for the npm run in progress and drop the queued ones
- feat(config): show the masked config in a read-only monaco editor on a big screen
- fix(config): drop the empty strip left of the line numbers in the config editor
- feat(config): show the secrets toggle as a lock icon, with the masking notice in its tooltip
- fix(logs): make the log and terminal scrollbar wide and always visible on touch screens
Other Changes
- ci: stop running the validate jobs on node.js v20
- ci: pin the wiki notification action to a commit and keep the npm publish token to the publish job
- build: stop publishing 134 source maps whose sources are not shipped, and 134 unused type files
- test: typecheck the server tests and ui tests in ci, and fix the six type errors it found
- build: stop publishing three build-only scripts, and fix the patches note in claude.md
- fix(hb-service): on stop, wait for homebridge to end before closing the ui, and never restart it
- fix(hb-service): only replace a config.json that is not valid json, never one that failed to save
- fix(hb-service): log to the console when the log file can't be written, instead of crashing
- fix(hb-service): trim the log safely when the size to keep is over the maximum, from a whole line
- fix(hb-service): trim the log at start-up too, so a service that restarts often still trims it
- fix(hb-service): on freebsd, install for the user who ran sudo when no --user is given
- fix(hb-service): ask before installing an odd node.js major (23, 25), as for any major not tested
- fix(hb-service): match update-node 22.1 to v22.1.x, not v22.19.0, and 2 to nothing, not v26
- fix(hb-service): show the log with hb-service view on macos, windows and freebsd
- ci: pin the third-party actions to a commit
- chore: add the homepage url to package.json
- chore: drop the stale maintainers field from package.json
- refactor(auth): import createGuardrails from otplib instead of the undeclared @otplib/core
- build: declare socket.io, whose Socket type the accessories service imports
- build: compile the server for es2024, which node 22 runs in full, instead of the moving esnext
- ci: name the labeler job labeler, not stale
- ci: fix the labeler comment that says alpha pull requests get the beta label
- fix(hb-service): never start homebridge from a restart timer that fires while hb-service stops
- docs(plugins): put the package queue's comment back on the queue, not on the npm time limit
- fix(hb-service): keep a config.json that starts with a byte order mark, instead of replacing it
- test(server): make the wallpaper delete test fail without its fix, using a file not config.json
- fix(hb-service): write homebridge output that never ends a line, instead of holding it for ever
- fix(hb-service): keep the newest part of the log for a maximum size of 0, not empty it
- fix(hb-service): append the kept log when trimming, so a line written meanwhile is not cut
- test(scheduler): check the old restart jobs on a copy, as the refresh empties the list in place
- fix(hb-service): keep config.json's owner when saving it as root, as sudo hb-service install does
- ci: name the release tag the upload-release-assets pin points at, v4.0.0, not the v4.0 branch
- test(i18n): find a missing key in a ternary, a helper call or a template, not only before translate
- fix: import types with import type, so each server file builds on its own as the swc dev server needs
- chore(dev): run the dev server through swc, so nest checks api data in dev as a release does
- chore(deps): dependency updates
Homebridge Dependencies
@homebridge/hap-client@v5.4.1-beta@homebridge/node-pty-prebuilt-multiarch@v0.15.0@homebridge/plugin-ui-utils@v2.3.1-beta