Skip to content
Merged

v2.3.1 #1149

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
07edc2e
docs: fix the api documentation link in the readme
bwp91 Nov 1, 2026
206f915
fix: let generate-definitions find and write the es module import paths
bwp91 Nov 8, 2026
74c0f35
feat: add the homekit definitions from apple's v891 metadata
bwp91 Nov 8, 2026
678b013
fix(advertiser): stop advertising an unpublished accessory while othe…
bwp91 Nov 14, 2026
19d87be
fix(advertiser): keep a restarted bonjour-hap advertisement and wait …
bwp91 Nov 14, 2026
9134c0f
fix(advertiser): warn when a name with a dot is used with the bonjour…
bwp91 Nov 14, 2026
4dfb0aa
fix(advertiser): log a failed systemd-resolved update instead of cras…
bwp91 Nov 14, 2026
cdbb064
fix(advertiser): run systemd-resolved registrations one at a time so …
bwp91 Nov 14, 2026
277a0b8
fix(advertiser): register names with a slash or percent sign with sys…
bwp91 Nov 14, 2026
dda1800
fix(advertiser): free the old avahi entry group before registering again
bwp91 Nov 14, 2026
45d24e1
fix(accessory): cancel a pending configuration update when the access…
bwp91 Nov 14, 2026
fed455a
fix(datastream): encode integers that need more than 32 bits instead …
bwp91 Nov 14, 2026
54d7b05
fix(accessory): report an invalid configuration change instead of thr…
bwp91 Nov 14, 2026
3d73949
fix(camera): free a recording stream whose open response can not be s…
bwp91 Nov 14, 2026
d4eb793
fix(datastream): report an error of the data stream tcp server instea…
bwp91 Nov 14, 2026
915dd21
fix(datastream): decode the integer 39 instead of dropping the message
bwp91 Nov 14, 2026
3d8ad47
fix(characteristic): accept the maximum of a float characteristic who…
bwp91 Nov 14, 2026
9a766e2
fix(characteristic): keep a write response of 0, false or an empty st…
bwp91 Nov 14, 2026
b43ab36
fix(controller-storage): stop saving cleared controller data again af…
bwp91 Nov 14, 2026
2eb1cf0
fix(controller-storage): restore the stored data again on a second lo…
bwp91 Nov 14, 2026
91efce1
fix(storage): fail again instead of handing out an empty store after …
bwp91 Nov 14, 2026
bf61f8d
fix(characteristic): keep the error state when a client write is refused
bwp91 Nov 14, 2026
70322cf
fix: restore a custom class named like a hap definition with its own …
bwp91 Nov 14, 2026
4375855
fix(server): answer a failed pair-setup M5 with state M6
bwp91 Nov 14, 2026
79a52e2
fix(server): answer a malformed JSON body with 400 and an invalid val…
bwp91 Nov 14, 2026
07073ae
fix(server): answer a pairing request with a missing or malformed key…
bwp91 Nov 14, 2026
23ac19d
fix(server): deliver events after stray bytes and hold them while a s…
bwp91 Nov 14, 2026
a024d91
fix(tlv): reject a truncated entry in decodeList instead of cutting i…
bwp91 Nov 14, 2026
2e19df7
fix(server): accept a prepare write request with pid 0 and refuse a p…
bwp91 Nov 14, 2026
f7dd0e5
fix(accessory): refuse to bridge a second accessory with the same uuid
bwp91 Nov 14, 2026
ce0606c
fix(accessory): build the setup uri again when the accessory is publi…
bwp91 Nov 14, 2026
7006659
fix(identifier-cache): keep the next accessory id when a bridge has n…
bwp91 Nov 14, 2026
168eafc
fix(characteristic): ignore a minStep of zero or less and list valid …
bwp91 Nov 14, 2026
de74803
fix(adaptive-lighting): accept a context that is not an object on a m…
bwp91 Nov 14, 2026
d601b2c
fix(adaptive-lighting): stay active when the clock is set back before…
bwp91 Nov 14, 2026
e613256
fix(adaptive-lighting): emit disable in manual mode when a malformed …
bwp91 Nov 14, 2026
dc21fc8
fix(adaptive-lighting): keep the listeners of the plugin when the con…
bwp91 Nov 14, 2026
2f88cdb
fix(adaptive-lighting): accept a transition curve of a single entry
bwp91 Nov 14, 2026
317b5ab
fix(controller-storage): remove stored data a restored controller has…
bwp91 Nov 14, 2026
a998bc9
fix(remote): refuse a new target without a name or category before it…
bwp91 Nov 14, 2026
8d44b95
fix(remote): create or remove the siri services when a saved remote i…
bwp91 Nov 14, 2026
9e32321
fix(remote): send every queued siri audio frame when the stream opens…
bwp91 Nov 14, 2026
b79ba39
fix(remote): stop sending siri audio and stay closed after a packet c…
bwp91 Nov 14, 2026
6ce0f23
fix(remote): do not mark the remote as active when its active target …
bwp91 Nov 14, 2026
7e00f33
fix(remote): ignore a siri audio message without a stream id while a …
bwp91 Nov 14, 2026
f962830
fix(camera): turn the recording state off on a factory reset
bwp91 Nov 14, 2026
9a3d22e
fix(camera): signal the end of a recording whose last packet has no data
bwp91 Nov 14, 2026
092e9b7
fix(camera): ignore a recording acknowledgment for another stream
bwp91 Nov 14, 2026
4146fab
fix(camera): add a motion or occupancy sensor which was enabled for a…
bwp91 Nov 14, 2026
0cb625f
fix(camera): leave the streaming options of the plugin unchanged
bwp91 Nov 14, 2026
ce35683
fix(camera): ignore a prepared stream which arrives after its session…
bwp91 Nov 14, 2026
52c14dc
fix(camera): close the rtp proxy sockets when the proxy is destroyed …
bwp91 Nov 14, 2026
88e420d
fix(camera): read the rtp proxy ssrc from the right field and send co…
bwp91 Nov 14, 2026
97ac7ad
fix(camera): free the stream when the local address for the rtp proxy…
bwp91 Nov 14, 2026
9567278
fix(camera): tell the delegate to stop a stream whose start or reconf…
bwp91 Nov 14, 2026
0cf34df
fix(datastream): leave no handler or timer behind for a request which…
bwp91 Nov 14, 2026
5d72dbe
fix(datastream): stop the timers and answer waiting requests when the…
bwp91 Nov 14, 2026
77fbff5
fix(camera): answer a snapshot request for a camera without streams i…
bwp91 Nov 14, 2026
e99be8e
fix(datastream): answer a request named like an inherited object prop…
bwp91 Nov 14, 2026
e9acb6a
fix(characteristic): refuse a client write of a number which is not w…
bwp91 Nov 14, 2026
fe915d8
fix(characteristic): keep the value of a string characteristic which …
bwp91 Nov 14, 2026
cf88e86
fix(camera): keep the SRTP keys of a stream out of the debug log
bwp91 Nov 14, 2026
a63a331
build: stop publishing the example accessories and the definitions ge…
bwp91 Nov 14, 2026
5175f3e
fix(hap-status-error): let it be subclassed and name it HapStatusError
bwp91 Nov 14, 2026
4edf11f
fix(characteristic): word the too short model or serial number warnin…
bwp91 Nov 14, 2026
c5d94e2
fix(characteristic): copy the props in replaceBy instead of sharing them
bwp91 Nov 14, 2026
b767035
fix(characteristic): leave the object passed to setProps unchanged
bwp91 Nov 14, 2026
94163aa
fix(accessory): keep the listeners of the plugin when a bridged acces…
bwp91 Nov 14, 2026
e569c1b
test: assert on two displayName checks which had no matcher and enfor…
bwp91 Nov 14, 2026
2d6bea4
ci: let the discord announcement run by dropping the check on a job w…
bwp91 Nov 14, 2026
47546b2
fix(accessory-info): count an admin once when the same pairing is add…
bwp91 Nov 14, 2026
d02338f
fix(controller-storage): drop a queued save when the accessory is des…
bwp91 Nov 14, 2026
02b1f9b
chore(lint): allow const enums in the lint config instead of in 136 d…
bwp91 Nov 14, 2026
f090906
chore(lint): allow typed event interfaces in the lint config instead …
bwp91 Nov 14, 2026
5613c59
refactor: add helpers to read the message and stack of a caught value
bwp91 Nov 14, 2026
78465cb
refactor(model): type caught errors as unknown in the accessory model
bwp91 Nov 14, 2026
728f3e8
refactor(server): type caught errors as unknown in the server and the…
bwp91 Nov 14, 2026
69bc9c3
refactor(camera): type caught errors as unknown in the camera code
bwp91 Nov 14, 2026
2707229
refactor(datastream): type caught errors as unknown in the data strea…
bwp91 Nov 14, 2026
8ad4e67
refactor(controller): type caught errors as unknown in the remote and…
bwp91 Nov 14, 2026
2147a2c
refactor: type caught errors as unknown everywhere by dropping useUnk…
bwp91 Nov 14, 2026
2bff59c
refactor(advertiser): type the D-Bus call helpers instead of using any
bwp91 Nov 14, 2026
018f79e
refactor(storage): type stored controller data as unknown instead of any
bwp91 Nov 14, 2026
f3b16e0
refactor(storage): type the file storage's internal values as unknown…
bwp91 Nov 14, 2026
2a6b0b1
fix(camera): reject a selected recording configuration which is not a…
bwp91 Nov 14, 2026
cf69cf0
fix(remote): reject target control and audio configuration writes whi…
bwp91 Nov 14, 2026
4c91084
fix(datastream): reject a data stream setup write which is not a stri…
bwp91 Nov 14, 2026
ecc5d33
refactor(datastream): drop a ts-expect-error and a non-null assertion…
bwp91 Nov 14, 2026
04c766c
refactor(accessory): replace any, ts-expect-error and needless non-nu…
bwp91 Nov 14, 2026
b019d3e
refactor(service): drop three ts-expect-error and four needless non-n…
bwp91 Nov 14, 2026
0b29e11
refactor(characteristic): drop a needless non-null assertion on the i…
bwp91 Nov 14, 2026
5f63991
refactor(server): type the list of pairings sent to a controller inst…
bwp91 Nov 14, 2026
04e1515
refactor(utils): type the event arguments in awaitEventOnce as unknow…
bwp91 Nov 14, 2026
042c281
refactor(utils): build the cloned object without any
bwp91 Nov 14, 2026
a5d557f
refactor(utils): drop the Node 18 numeric address family checks and t…
bwp91 Nov 14, 2026
0b8b701
refactor(camera): type the legacy SRTP options check instead of using…
bwp91 Nov 14, 2026
d09711a
refactor(camera): close the recording generator without a ts-expect-e…
bwp91 Nov 14, 2026
e0b3931
refactor(storage): type the saved accessory info and drop two ts-expe…
bwp91 Nov 14, 2026
a60eeeb
refactor(advertiser): drop two needless non-null assertions in the ci…
bwp91 Nov 14, 2026
3795b97
refactor(camera): drop two needless non-null assertions in the stream…
bwp91 Nov 14, 2026
84b00dd
refactor(controller): drop needless non-null assertions in the adapti…
bwp91 Nov 14, 2026
cf2a002
refactor(controller): drop needless non-null assertions in the camera…
bwp91 Nov 14, 2026
ca0c399
refactor(remote): drop needless non-null assertions in the remote con…
bwp91 Nov 14, 2026
bb96b33
refactor(datastream): drop needless non-null assertions in the data s…
bwp91 Nov 14, 2026
95fb5b5
refactor(definitions): type the plist data in the generator and drop …
bwp91 Nov 14, 2026
95ee2ff
refactor(types): add the missing optional metadata fields to PartialC…
bwp91 Nov 14, 2026
6fa946d
refactor(characteristic): keep editor suggestions for the format and …
bwp91 Nov 14, 2026
48d9e4f
refactor(advertiser): let an advertiser return a promise from destroy…
bwp91 Nov 14, 2026
7246bc1
refactor(storage): let getItem name the type of the stored value
bwp91 Nov 14, 2026
c77786f
refactor(datastream): add the HDSMessage type and use it for data str…
bwp91 Nov 14, 2026
ac917ea
refactor(camera): use the HDSMessage type in the recording management
bwp91 Nov 14, 2026
fad821e
refactor(remote): use the HDSMessage type in the remote controller
bwp91 Nov 14, 2026
e82bbd2
fix(tlv): type the further arguments of encode and reject a type whic…
bwp91 Nov 14, 2026
f291702
fix(uuid): refuse to read a uuid from a buffer which is too short or …
bwp91 Nov 14, 2026
d50918e
refactor(server): type the pairing state of a connection as PairingSt…
bwp91 Nov 14, 2026
c4acc35
docs(uuid): describe the errors of unparse in a way typedoc accepts
bwp91 Nov 14, 2026
6d06cb1
refactor(characteristic): type the context of a characteristic change…
bwp91 Nov 14, 2026
a8592bb
refactor(accessory): check the context of a characteristic change wit…
bwp91 Nov 14, 2026
59da512
refactor(controller): type the saved data of a serializable controlle…
bwp91 Nov 14, 2026
ed30bb5
refactor(remote): let a plugin name the type of its siri audio produc…
bwp91 Nov 14, 2026
2ce4035
fix(camera): check the type of data stream message fields before the …
bwp91 Nov 14, 2026
6cf39bc
fix(remote): check the type of data stream message fields before the …
bwp91 Nov 14, 2026
ca8c582
fix(datastream): type data stream message values as unknown and drop …
bwp91 Nov 14, 2026
6f129cc
perf(server): skip the stack trace for each listener change when its …
bwp91 Nov 14, 2026
23769b8
perf(accessory): skip hashing the whole identifier cache on a save wh…
bwp91 Nov 14, 2026
61c61f6
perf(core): read the library version from package.json only once
bwp91 Nov 14, 2026
6bf40c5
refactor(characteristic): count listeners with listenerCount instead …
bwp91 Nov 14, 2026
5f7aff7
fix(core): let the process exit while a slow read, adaptive lighting,…
bwp91 Nov 14, 2026
cf7c1b2
fix(datastream): store a decoded dictionary key named __proto__ inste…
bwp91 Nov 14, 2026
e9277b9
fix(datastream): refuse a terminator tag which does not end an array …
bwp91 Nov 14, 2026
472e485
fix(datastream): refuse a message with arrays or dictionaries nested …
bwp91 Nov 14, 2026
809e1a7
fix(datastream): keep a data stream server usable after destroy was c…
bwp91 Nov 14, 2026
5f8eb5b
fix(camera): do not prepare a stream for a session which ended while …
bwp91 Nov 14, 2026
733a00c
fix(examples): merge the given options into the gstreamer audio produ…
bwp91 Nov 14, 2026
e1761a4
fix(examples): list the targets of the apple tv remote example instea…
bwp91 Nov 14, 2026
ff50f1a
refactor(examples): export the example accessories as es modules and …
bwp91 Nov 14, 2026
237576d
refactor(model): turn the const enums of accessory, service and chara…
bwp91 Nov 14, 2026
86ba492
refactor(server): turn the const enums of the server, advertiser and …
bwp91 Nov 14, 2026
567af84
refactor(camera): turn the const enums of the camera code into normal…
bwp91 Nov 14, 2026
063062e
refactor(datastream): turn the const enums of the data stream code in…
bwp91 Nov 14, 2026
2809bd4
refactor(controller): turn the const enums of the controllers and acc…
bwp91 Nov 14, 2026
dae1351
refactor(types): turn the const enums in types.ts and internal-types.…
bwp91 Nov 14, 2026
bc8edab
refactor(definitions): turn the last const enums into normal enums an…
bwp91 Nov 14, 2026
069f27e
test: check that every module loads on its own now that no const enum…
bwp91 Nov 14, 2026
df83cf5
build: forbid new const enums in the lint config and drop the preserv…
bwp91 Nov 14, 2026
01d4454
docs(server): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
cc45a29
docs(model): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
756b2c4
docs(camera): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
bdce569
docs(datastream): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
4ee0841
docs(controller): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
04452d6
docs: fix spelling mistakes in the remaining comments and messages
bwp91 Nov 14, 2026
6634e0c
docs(server): fix comments which are wrong or name functions that no …
bwp91 Nov 14, 2026
883d4d0
docs(model): fix comments which are wrong or name things that no long…
bwp91 Nov 14, 2026
3f24fe1
docs(camera): fix two comments which name a wrong sample rate and a w…
bwp91 Nov 14, 2026
12bb934
docs(datastream): fix a comment which says encryption where it means …
bwp91 Nov 14, 2026
929adfe
docs(controller): fix comments and docs which no longer match the code
bwp91 Nov 14, 2026
6905947
docs(examples): fix three comments which name the wrong value in the …
bwp91 Nov 14, 2026
68bab71
refactor(server): drop the unused request parameter of the pairing st…
bwp91 Nov 14, 2026
459be6b
fix(crypto): stop naming node 10 in the error for a missing chacha20-…
bwp91 Nov 14, 2026
bf04fe3
refactor(camera): drop a branch which can never run and a repeated as…
bwp91 Nov 14, 2026
7142955
refactor(datastream): drop writer branches which can never run and a …
bwp91 Nov 14, 2026
b53da75
refactor(controller): drop the remote controller's request handler fi…
bwp91 Nov 14, 2026
ea89547
refactor(definitions): drop a leftover variable and an unused paramet…
bwp91 Nov 14, 2026
615547e
test: restore names in test titles which a lint autofix had lower-cas…
bwp91 Nov 14, 2026
8adc8f6
docs(readme): add install, node.js version and es module notes and dr…
bwp91 Nov 14, 2026
4304f02
docs(typedoc): hide the default export so the api documentation lists…
bwp91 Nov 14, 2026
d86fce3
docs(typedoc): stop a text line after a group tag creating a second a…
bwp91 Nov 14, 2026
0d6065c
docs(typedoc): drop the stale MulticastOptions entry from the typedoc…
bwp91 Nov 14, 2026
c2f4459
fix(core): log the start of the library under the debug name HAP-Node…
bwp91 Nov 14, 2026
2d07f05
build: set moduleResolution to NodeNext like module and drop three op…
bwp91 Nov 14, 2026
a824084
build: drop the importHelpers option which does nothing at target ES2022
bwp91 Nov 14, 2026
54a767a
build: stop shipping declaration maps which point at source files the…
bwp91 Nov 14, 2026
0c03408
docs(changelog): add upgrade notes for the stricter types of v2.3.1
bwp91 Nov 14, 2026
c22a24e
chore: drop the stale maintainers field from package.json
bwp91 Nov 15, 2026
f480610
ci: pin the wiki notification action to a commit
bwp91 Nov 15, 2026
cd83c6a
fix(datastream): answer the sessions which wait for the port when the…
bwp91 Nov 15, 2026
ff36cae
fix(camera): keep the endpoints response of the active stream when an…
bwp91 Nov 15, 2026
ff9d4ba
perf(datastream): join the chunks of an incoming frame once instead o…
bwp91 Nov 15, 2026
b808e72
fix(camera): reject the rtp proxy setup once every port failed to bin…
bwp91 Nov 15, 2026
ef9ae0b
fix(controller): read the adaptive lighting update and notify interva…
bwp91 Nov 15, 2026
c9b243b
fix(controller): unref the release timer of a pushed remote button an…
bwp91 Nov 15, 2026
c48fa73
test(tv): add a spec for the access control management of televisions…
bwp91 Nov 15, 2026
61288fb
fix(tv): send the access control events with the values of their own …
bwp91 Nov 15, 2026
b38abb5
refactor(controller): import the camera controller from its own file …
bwp91 Nov 15, 2026
0a1207c
fix(server): name the accessory and the port in the error when the ha…
bwp91 Nov 15, 2026
7030a52
fix(accessory): stop a controller reading or writing an accessory exc…
bwp91 Nov 15, 2026
a04271b
fix(accessory): end the event subscriptions of clients to a removed s…
bwp91 Nov 15, 2026
275c25c
fix(model): warn with the file path when a storage file does not hold…
bwp91 Nov 15, 2026
3e39198
fix(accessory): stop publish writing the advertiser it chose into the…
bwp91 Nov 15, 2026
97566ad
refactor: mark members which replace an inherited one with override a…
bwp91 Nov 15, 2026
a3dd875
refactor: return undefined in the open on every code path and turn on…
bwp91 Nov 15, 2026
2905b03
refactor: prefix parameters which are never read with an underscore a…
bwp91 Nov 15, 2026
62f86bc
refactor: import types with import type and turn on the consistent-ty…
bwp91 Nov 15, 2026
5019d60
fix(types): export PairingStates so a plugin can name the type of the…
bwp91 Nov 15, 2026
fbadc73
chore(deps): replace futoin-hkdf with the hkdf of node.js and remove …
bwp91 Nov 14, 2026
3b91071
ci: keep the npm publish token to the publish job, stay on npm 11 and…
bwp91 Nov 15, 2026
48e8bdb
ci: pin the third-party actions to a commit
bwp91 Nov 15, 2026
6c40669
fix(storage): save the persist files, which hold the pairing keys, re…
bwp91 Nov 15, 2026
ef38825
fix(controller): cap an adaptive lighting update interval past 24.8 d…
bwp91 Nov 15, 2026
12595b3
fix(characteristic): cut an over-long string without splitting an emo…
bwp91 Nov 15, 2026
55a648e
fix(storage): set a persist file with invalid json aside instead of o…
bwp91 Nov 15, 2026
be9497a
ci: name the labeler job labeler, not stale
bwp91 Nov 15, 2026
7c69e3f
ci: fix the labeler comment that says alpha pull requests get the bet…
bwp91 Nov 15, 2026
5aa3fff
fix(storage): leave a persist file which is not json alone until hap-…
bwp91 Nov 15, 2026
1b8e5b0
fix(service): answer /accessories with an error instead of crashing o…
bwp91 Nov 15, 2026
1e2493c
fix(server): hold events until a request which arrived during a stall…
bwp91 Nov 15, 2026
c23af54
fix(server): refuse an add pairing request whose permission or public…
bwp91 Nov 15, 2026
694d4c2
test: restore the name of the PUT /prepare test which a lint autofix …
bwp91 Nov 15, 2026
a04a09e
fix(storage): type getItem without a type argument as any again so ty…
bwp91 Nov 15, 2026
aa156d1
fix(camera): ignore a late error answer for a stream session which al…
bwp91 Nov 15, 2026
9a96d77
fix(camera): answer a stream setup in proxy mode for a camera without…
bwp91 Nov 15, 2026
c3f90cc
fix(doorbell): warn instead of throwing when the doorbell rings while…
bwp91 Nov 15, 2026
9c601f4
fix(accessory): keep tlv8 values, which can hold the camera stream ke…
bwp91 Nov 15, 2026
42082fb
fix(camera): answer a stream setup with an error when the plugin give…
bwp91 Nov 15, 2026
324aa3a
refactor(camera): drop three error answers which are overwritten by t…
bwp91 Nov 15, 2026
6f1d358
fix(datastream): stop handing on the messages of a chunk once a handl…
bwp91 Nov 15, 2026
9a5d1e2
fix(datastream): throw a data stream error for a message on a connect…
bwp91 Nov 15, 2026
7ec5f8f
fix(datastream): catch an error of a response handler on the timeout …
bwp91 Nov 15, 2026
e77d8e0
fix(datastream): reject a data stream setup write with a missing entr…
bwp91 Nov 15, 2026
4ba9aba
perf(datastream): hold an incomplete frame in one growing buffer inst…
bwp91 Nov 15, 2026
c98114b
docs(datastream): fix two comments about request ids and what sendReq…
bwp91 Nov 15, 2026
516eb14
fix(remote): forget every target of a data stream connection which cl…
bwp91 Nov 15, 2026
709ee28
fix(remote): cap the time of pushAndReleaseButton so a long one does …
bwp91 Nov 15, 2026
f5cc777
fix(adaptive-lighting): refuse a transition curve of fewer than two e…
bwp91 Nov 15, 2026
639965b
docs(accessory): say which controllers keep the event handlers of the…
bwp91 Nov 15, 2026
edab394
fix(characteristic): ignore a minStep which is not a whole number for…
bwp91 Nov 15, 2026
cb51c75
fix(storage): say how to fix a persist file which the user can not re…
bwp91 Nov 15, 2026
46ffb99
docs(changelog): correct and complete the upgrade notes of v2.3.1
bwp91 Nov 15, 2026
572c058
fix: stop publish() when unpublish() or destroy() is called while it …
bwp91 Nov 16, 2026
dc27e0f
fix(pair-setup): mix the setup code verifier into the one-time srp key
bwp91 Nov 18, 2026
bf004c3
fix(pair-setup): drop the srp session from the connection once pair-s…
bwp91 Nov 18, 2026
f8052ae
feat(lock): add AccessCodeManagement for the keypad codes of the Acce…
bwp91 Nov 17, 2026
f45262a
feat(lock): add NFCAccessManagement for the HomeKit half of Apple Hom…
bwp91 Nov 17, 2026
60d8703
feat: add encodeErrorStatus and decodeErrorStatus for the faults of t…
bwp91 Nov 17, 2026
27bd3fc
feat(doorbell): add setOperatingState to report a doorbell that is to…
bwp91 Nov 17, 2026
54b7683
docs(typedoc): link the source of the docs to the latest branch, not …
bwp91 Nov 19, 2026
9f9698b
docs: regenerate `typedoc` docs
bwp91 Nov 16, 2026
3da3650
chore(deps): dependency updates
bwp91 Nov 16, 2026
cef33dd
ci(release): cancel only builds on a newer push, never a publish in p…
NorthernMan54 Nov 20, 2026
3b85db6
Update beta dependencies in . (#1141)
homebridge[bot] Nov 20, 2026
a3874c2
chore: prepare v2.3.1
NorthernMan54 Nov 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Add 'beta' label to any PR where the base branch name starts with `beta` or has a `beta` section in the name
# Add 'beta' label to any PR where the base branch (the branch the PR is to be merged into) name starts with `beta` or has a `beta` section in the name
beta:
- base-branch: [^beta, beta, 'beta*']

# Add 'beta' label to any PR where the base branch name starts with `beta` or has a `beta` section in the name
# Add 'alpha' label to any PR where the base branch (the branch the PR is to be merged into) name starts with `alpha` or has an `alpha` section in the name
alpha:
- base-branch: [^alpha, alpha, 'alpha*']

# Add 'latest' label to any PR where the base branch name starts with `latest` or has a `latest` section in the name
# Add 'latest' label to any PR where the base branch (the branch the PR is to be merged into) name starts with `latest` or has a `latest` section in the name
latest:
- base-branch: [^latest, latest, 'latest*']
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
stale:
labeler:
uses: homebridge/.github/.github/workflows/labeler.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
55 changes: 38 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ on:
- alpha-*.*.*
workflow_dispatch:

# The npm publish job asks for `id-token: write` itself (see below). The other jobs run shared
# workflows and third-party actions, which must not be able to get a publish token.
permissions:
id-token: write
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
determine-release-type:
name: Determine Release Type
Expand All @@ -34,14 +31,18 @@ jobs:
steps:
- name: Determine release type
id: release-type
# The branch name reaches the script as an environment variable, never as script text.
env:
EVENT_NAME: ${{ github.event_name }}
REF: ${{ github.ref }}
run: |
if [[ "${{ github.event_name }}" == "release" ]]; then
if [[ "$EVENT_NAME" == "release" ]]; then
echo "type=latest" >> $GITHUB_OUTPUT
echo "tag=latest" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref }}" == refs/heads/beta-* ]]; then
elif [[ "$REF" == refs/heads/beta-* ]]; then
echo "type=beta" >> $GITHUB_OUTPUT
echo "tag=beta" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref }}" == refs/heads/alpha-* ]]; then
elif [[ "$REF" == refs/heads/alpha-* ]]; then
echo "type=alpha" >> $GITHUB_OUTPUT
echo "tag=alpha" >> $GITHUB_OUTPUT
else
Expand All @@ -53,13 +54,16 @@ jobs:
- name: Get Release Tag (Latest Only)
if: steps.release-type.outputs.type == 'latest'
id: get_version
uses: jannemattila/get-version-from-tag@v4
uses: jannemattila/get-version-from-tag@22de24a56e53ef11268538c9e6a77659a142afa7 # v4

- name: Tag Info (Latest Only)
if: steps.release-type.outputs.type == 'latest'
env:
REF: ${{ github.ref }}
VERSION: ${{ steps.get_version.outputs.version }}
run: |
echo "Release Tag: ${{github.ref}}"
echo "Latest Tag: ${{ steps.get_version.outputs.version }}"
echo "Release Tag: $REF"
echo "Latest Tag: $VERSION"

- name: Tag Info Matches (Latest Only)
if: steps.release-type.outputs.type == 'latest' && endsWith(github.ref, steps.get_version.outputs.version)
Expand All @@ -86,6 +90,10 @@ jobs:
build_and_test_beta:
needs: determine-release-type
name: Build and Test (Beta)
# A newer push to the same branch cancels an older build, so only the newest commit is published.
concurrency:
group: ${{ github.workflow }}-build-${{ github.ref }}
cancel-in-progress: true
if: needs.determine-release-type.outputs.release_type == 'beta'
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
Expand All @@ -105,7 +113,14 @@ jobs:
(needs.build_and_test_beta.result == 'success' ||
needs.build_and_test_beta.result == 'skipped')
name: Publish to npm (${{ needs.determine-release-type.outputs.npm_tag }})
# Never cancel a publish that has started; a newer run waits for it.
concurrency:
group: ${{ github.workflow }}-publish-${{ github.ref }}
cancel-in-progress: false
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
outputs:
npm_version: ${{ steps.get-published-version.outputs.version }}
steps:
Expand All @@ -118,30 +133,37 @@ jobs:
node-version: 24
registry-url: 'https://registry.npmjs.org'

# npm 11.5.1 is the first version that can publish with OIDC. Stay on npm 11, so a new major
# version of npm is not picked up by the job that publishes without anyone looking at it first.
- name: Upgrade npm for OIDC support
run: npm install -g npm@latest
run: npm install -g npm@^11.5.1

- name: Install dependencies
run: npm ci

- name: Handle prerelease versioning
if: needs.determine-release-type.outputs.release_type == 'beta' || needs.determine-release-type.outputs.release_type == 'alpha'
env:
REF: ${{ github.ref }}
RELEASE_TYPE: ${{ needs.determine-release-type.outputs.release_type }}
run: |
# Download versioning script from homebridge/.github
mkdir -p .github
wget -q https://raw.githubusercontent.com/homebridge/.github/latest/.github/npm-version-script-esm.js -O .github/npm-version-script-esm.js

# Run the script to set base version
node .github/npm-version-script-esm.js ${{ github.ref }} ${{ needs.determine-release-type.outputs.release_type }}
node .github/npm-version-script-esm.js "$REF" "$RELEASE_TYPE"

# Add prerelease suffix
npm version pre --preid=${{ needs.determine-release-type.outputs.release_type }} --no-git-tag-version
npm version pre --preid="$RELEASE_TYPE" --no-git-tag-version

- name: Build
run: npm run build

- name: Publish to npm with OIDC
run: npm publish --tag ${{ needs.determine-release-type.outputs.npm_tag }} --provenance --access public
env:
NPM_TAG: ${{ needs.determine-release-type.outputs.npm_tag }}
run: npm publish --tag "$NPM_TAG" --provenance --access public

- name: Get published version
id: get-published-version
Expand All @@ -155,8 +177,7 @@ jobs:
needs: [determine-release-type, publish]
if: |
always() &&
needs.publish.result == 'success' &&
needs.attach-artifact.result == 'success'
needs.publish.result == 'success'
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
title: HAP-NodeJS Release
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/wiki-change-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: oznu/gh-wiki-edit-discord-notification@main
# Pinned to a commit (the tip of `main` on 2026-11-15): this action is given the Discord webhook
# secret, so it must not follow a branch that can change without a review here.
- uses: oznu/gh-wiki-edit-discord-notification@dfc866fd048f04c239ad113eef3c6c73504d333e # main
with:
discord-webhook-url: ${{ secrets.DISCORD_WEBHOOK_WIKI_EDIT }}
ignore-collaborators: true
Loading
Loading