Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
242 commits
Select commit Hold shift + click to select a range
28dc0fc
docs: fix the api documentation link in the readme
bwp91 Nov 1, 2026
7447bad
fix: let generate-definitions find and write the es module import paths
bwp91 Nov 8, 2026
a5fd011
feat: add the homekit definitions from apple's v891 metadata
bwp91 Nov 8, 2026
f5f13de
fix(advertiser): stop advertising an unpublished accessory while othe…
bwp91 Nov 14, 2026
211eaa6
fix(advertiser): keep a restarted bonjour-hap advertisement and wait …
bwp91 Nov 14, 2026
185d78b
fix(advertiser): warn when a name with a dot is used with the bonjour…
bwp91 Nov 14, 2026
e320246
fix(advertiser): log a failed systemd-resolved update instead of cras…
bwp91 Nov 14, 2026
1997bf4
fix(advertiser): run systemd-resolved registrations one at a time so …
bwp91 Nov 14, 2026
06c1ce1
fix(advertiser): register names with a slash or percent sign with sys…
bwp91 Nov 14, 2026
45612e7
fix(advertiser): free the old avahi entry group before registering again
bwp91 Nov 14, 2026
1150f40
fix(accessory): cancel a pending configuration update when the access…
bwp91 Nov 14, 2026
c7de9f6
fix(datastream): encode integers that need more than 32 bits instead …
bwp91 Nov 14, 2026
aea2430
fix(accessory): report an invalid configuration change instead of thr…
bwp91 Nov 14, 2026
77715d8
fix(camera): free a recording stream whose open response can not be s…
bwp91 Nov 14, 2026
97b971f
fix(datastream): report an error of the data stream tcp server instea…
bwp91 Nov 14, 2026
50afba9
fix(datastream): decode the integer 39 instead of dropping the message
bwp91 Nov 14, 2026
a29d5c0
fix(characteristic): accept the maximum of a float characteristic who…
bwp91 Nov 14, 2026
134cc81
fix(characteristic): keep a write response of 0, false or an empty st…
bwp91 Nov 14, 2026
79d6068
fix(controller-storage): stop saving cleared controller data again af…
bwp91 Nov 14, 2026
2b818dd
fix(controller-storage): restore the stored data again on a second lo…
bwp91 Nov 14, 2026
d742ebb
fix(storage): fail again instead of handing out an empty store after …
bwp91 Nov 14, 2026
5a94f55
fix(characteristic): keep the error state when a client write is refused
bwp91 Nov 14, 2026
de5e632
fix: restore a custom class named like a hap definition with its own …
bwp91 Nov 14, 2026
ed4b237
fix(server): answer a failed pair-setup M5 with state M6
bwp91 Nov 14, 2026
d2145f2
fix(server): answer a malformed JSON body with 400 and an invalid val…
bwp91 Nov 14, 2026
d361b4e
fix(server): answer a pairing request with a missing or malformed key…
bwp91 Nov 14, 2026
84eeb0a
fix(server): deliver events after stray bytes and hold them while a s…
bwp91 Nov 14, 2026
110ec40
fix(tlv): reject a truncated entry in decodeList instead of cutting i…
bwp91 Nov 14, 2026
abdd4ba
fix(server): accept a prepare write request with pid 0 and refuse a p…
bwp91 Nov 14, 2026
8ea7b8d
fix(accessory): refuse to bridge a second accessory with the same uuid
bwp91 Nov 14, 2026
811a9a1
fix(accessory): build the setup uri again when the accessory is publi…
bwp91 Nov 14, 2026
eaf0eea
fix(identifier-cache): keep the next accessory id when a bridge has n…
bwp91 Nov 14, 2026
142475d
fix(characteristic): ignore a minStep of zero or less and list valid …
bwp91 Nov 14, 2026
fabaa2c
fix(adaptive-lighting): accept a context that is not an object on a m…
bwp91 Nov 14, 2026
de4cfd5
fix(adaptive-lighting): stay active when the clock is set back before…
bwp91 Nov 14, 2026
dff8bfd
fix(adaptive-lighting): emit disable in manual mode when a malformed …
bwp91 Nov 14, 2026
5b81573
fix(adaptive-lighting): keep the listeners of the plugin when the con…
bwp91 Nov 14, 2026
a116375
fix(adaptive-lighting): accept a transition curve of a single entry
bwp91 Nov 14, 2026
9bacd4a
fix(controller-storage): remove stored data a restored controller has…
bwp91 Nov 14, 2026
a0dd577
fix(remote): refuse a new target without a name or category before it…
bwp91 Nov 14, 2026
caa1dd3
fix(remote): create or remove the siri services when a saved remote i…
bwp91 Nov 14, 2026
80dd7f2
fix(remote): send every queued siri audio frame when the stream opens…
bwp91 Nov 14, 2026
cc88d9a
fix(remote): stop sending siri audio and stay closed after a packet c…
bwp91 Nov 14, 2026
9da7100
fix(remote): do not mark the remote as active when its active target …
bwp91 Nov 14, 2026
307f0f8
fix(remote): ignore a siri audio message without a stream id while a …
bwp91 Nov 14, 2026
86d524e
fix(camera): turn the recording state off on a factory reset
bwp91 Nov 14, 2026
a7366cd
fix(camera): signal the end of a recording whose last packet has no data
bwp91 Nov 14, 2026
44cfd8e
fix(camera): ignore a recording acknowledgment for another stream
bwp91 Nov 14, 2026
b9b6da5
fix(camera): add a motion or occupancy sensor which was enabled for a…
bwp91 Nov 14, 2026
8f992b7
fix(camera): leave the streaming options of the plugin unchanged
bwp91 Nov 14, 2026
79ff71e
fix(camera): ignore a prepared stream which arrives after its session…
bwp91 Nov 14, 2026
9988dac
fix(camera): close the rtp proxy sockets when the proxy is destroyed …
bwp91 Nov 14, 2026
f294914
fix(camera): read the rtp proxy ssrc from the right field and send co…
bwp91 Nov 14, 2026
9513977
fix(camera): free the stream when the local address for the rtp proxy…
bwp91 Nov 14, 2026
ad4e62e
fix(camera): tell the delegate to stop a stream whose start or reconf…
bwp91 Nov 14, 2026
d483e70
fix(datastream): leave no handler or timer behind for a request which…
bwp91 Nov 14, 2026
d50a333
fix(datastream): stop the timers and answer waiting requests when the…
bwp91 Nov 14, 2026
8c89a4d
fix(camera): answer a snapshot request for a camera without streams i…
bwp91 Nov 14, 2026
290f26e
fix(datastream): answer a request named like an inherited object prop…
bwp91 Nov 14, 2026
5081d27
fix(characteristic): refuse a client write of a number which is not w…
bwp91 Nov 14, 2026
ffa73ef
fix(characteristic): keep the value of a string characteristic which …
bwp91 Nov 14, 2026
66c7063
fix(camera): keep the SRTP keys of a stream out of the debug log
bwp91 Nov 14, 2026
432a792
build: stop publishing the example accessories and the definitions ge…
bwp91 Nov 14, 2026
62b3db4
fix(hap-status-error): let it be subclassed and name it HapStatusError
bwp91 Nov 14, 2026
92c22c4
fix(characteristic): word the too short model or serial number warnin…
bwp91 Nov 14, 2026
7fbaf3d
fix(characteristic): copy the props in replaceBy instead of sharing them
bwp91 Nov 14, 2026
874d19b
fix(characteristic): leave the object passed to setProps unchanged
bwp91 Nov 14, 2026
543be54
fix(accessory): keep the listeners of the plugin when a bridged acces…
bwp91 Nov 14, 2026
a7a2dbd
test: assert on two displayName checks which had no matcher and enfor…
bwp91 Nov 14, 2026
0a3eb35
ci: let the discord announcement run by dropping the check on a job w…
bwp91 Nov 14, 2026
7dd4788
fix(accessory-info): count an admin once when the same pairing is add…
bwp91 Nov 14, 2026
311d02e
fix(controller-storage): drop a queued save when the accessory is des…
bwp91 Nov 14, 2026
3f25a75
chore(lint): allow const enums in the lint config instead of in 136 d…
bwp91 Nov 14, 2026
aed7d56
chore(lint): allow typed event interfaces in the lint config instead …
bwp91 Nov 14, 2026
5e45622
refactor: add helpers to read the message and stack of a caught value
bwp91 Nov 14, 2026
6aea0a0
refactor(model): type caught errors as unknown in the accessory model
bwp91 Nov 14, 2026
672e1db
refactor(server): type caught errors as unknown in the server and the…
bwp91 Nov 14, 2026
d6c6f6c
refactor(camera): type caught errors as unknown in the camera code
bwp91 Nov 14, 2026
fc00a0a
refactor(datastream): type caught errors as unknown in the data strea…
bwp91 Nov 14, 2026
2a12a1a
refactor(controller): type caught errors as unknown in the remote and…
bwp91 Nov 14, 2026
b08437c
refactor: type caught errors as unknown everywhere by dropping useUnk…
bwp91 Nov 14, 2026
8e56979
refactor(advertiser): type the D-Bus call helpers instead of using any
bwp91 Nov 14, 2026
cc590be
refactor(storage): type stored controller data as unknown instead of any
bwp91 Nov 14, 2026
1b323b0
refactor(storage): type the file storage's internal values as unknown…
bwp91 Nov 14, 2026
4d65dcb
fix(camera): reject a selected recording configuration which is not a…
bwp91 Nov 14, 2026
fe3b246
fix(remote): reject target control and audio configuration writes whi…
bwp91 Nov 14, 2026
e3fa4ce
fix(datastream): reject a data stream setup write which is not a stri…
bwp91 Nov 14, 2026
e14cfd6
refactor(datastream): drop a ts-expect-error and a non-null assertion…
bwp91 Nov 14, 2026
4dfd8ee
refactor(accessory): replace any, ts-expect-error and needless non-nu…
bwp91 Nov 14, 2026
e512db5
refactor(service): drop three ts-expect-error and four needless non-n…
bwp91 Nov 14, 2026
ff0d1db
refactor(characteristic): drop a needless non-null assertion on the i…
bwp91 Nov 14, 2026
a39b481
refactor(server): type the list of pairings sent to a controller inst…
bwp91 Nov 14, 2026
e063887
refactor(utils): type the event arguments in awaitEventOnce as unknow…
bwp91 Nov 14, 2026
2f189c4
refactor(utils): build the cloned object without any
bwp91 Nov 14, 2026
f992076
refactor(utils): drop the Node 18 numeric address family checks and t…
bwp91 Nov 14, 2026
6550b38
refactor(camera): type the legacy SRTP options check instead of using…
bwp91 Nov 14, 2026
71207b8
refactor(camera): close the recording generator without a ts-expect-e…
bwp91 Nov 14, 2026
c1e0a34
refactor(storage): type the saved accessory info and drop two ts-expe…
bwp91 Nov 14, 2026
4303105
refactor(advertiser): drop two needless non-null assertions in the ci…
bwp91 Nov 14, 2026
81947b8
refactor(camera): drop two needless non-null assertions in the stream…
bwp91 Nov 14, 2026
a5d356f
refactor(controller): drop needless non-null assertions in the adapti…
bwp91 Nov 14, 2026
4b03ac9
refactor(controller): drop needless non-null assertions in the camera…
bwp91 Nov 14, 2026
1a1e9af
refactor(remote): drop needless non-null assertions in the remote con…
bwp91 Nov 14, 2026
b67bb6f
refactor(datastream): drop needless non-null assertions in the data s…
bwp91 Nov 14, 2026
8129f8c
refactor(definitions): type the plist data in the generator and drop …
bwp91 Nov 14, 2026
629ea54
refactor(types): add the missing optional metadata fields to PartialC…
bwp91 Nov 14, 2026
7eb4b6e
refactor(characteristic): keep editor suggestions for the format and …
bwp91 Nov 14, 2026
055c0e3
refactor(advertiser): let an advertiser return a promise from destroy…
bwp91 Nov 14, 2026
30f9833
refactor(storage): let getItem name the type of the stored value
bwp91 Nov 14, 2026
b0d605f
refactor(datastream): add the HDSMessage type and use it for data str…
bwp91 Nov 14, 2026
dc163ce
refactor(camera): use the HDSMessage type in the recording management
bwp91 Nov 14, 2026
3ade3c1
refactor(remote): use the HDSMessage type in the remote controller
bwp91 Nov 14, 2026
0769f8f
fix(tlv): type the further arguments of encode and reject a type whic…
bwp91 Nov 14, 2026
f92ebfb
fix(uuid): refuse to read a uuid from a buffer which is too short or …
bwp91 Nov 14, 2026
3dcec80
refactor(server): type the pairing state of a connection as PairingSt…
bwp91 Nov 14, 2026
d655b64
docs(uuid): describe the errors of unparse in a way typedoc accepts
bwp91 Nov 14, 2026
2df0e28
refactor(characteristic): type the context of a characteristic change…
bwp91 Nov 14, 2026
44202da
refactor(accessory): check the context of a characteristic change wit…
bwp91 Nov 14, 2026
f6d669f
refactor(controller): type the saved data of a serializable controlle…
bwp91 Nov 14, 2026
11f86ed
refactor(remote): let a plugin name the type of its siri audio produc…
bwp91 Nov 14, 2026
a871ac0
fix(camera): check the type of data stream message fields before the …
bwp91 Nov 14, 2026
7704bbd
fix(remote): check the type of data stream message fields before the …
bwp91 Nov 14, 2026
5e71035
fix(datastream): type data stream message values as unknown and drop …
bwp91 Nov 14, 2026
bd14add
perf(server): skip the stack trace for each listener change when its …
bwp91 Nov 14, 2026
0b9e3a4
perf(accessory): skip hashing the whole identifier cache on a save wh…
bwp91 Nov 14, 2026
633f7c4
perf(core): read the library version from package.json only once
bwp91 Nov 14, 2026
01ef5c4
refactor(characteristic): count listeners with listenerCount instead …
bwp91 Nov 14, 2026
ad77f20
fix(core): let the process exit while a slow read, adaptive lighting,…
bwp91 Nov 14, 2026
8994896
fix(datastream): store a decoded dictionary key named __proto__ inste…
bwp91 Nov 14, 2026
ee08f24
fix(datastream): refuse a terminator tag which does not end an array …
bwp91 Nov 14, 2026
b552b0d
fix(datastream): refuse a message with arrays or dictionaries nested …
bwp91 Nov 14, 2026
fc2f3ff
fix(datastream): keep a data stream server usable after destroy was c…
bwp91 Nov 14, 2026
c47390f
fix(camera): do not prepare a stream for a session which ended while …
bwp91 Nov 14, 2026
3504c19
fix(examples): merge the given options into the gstreamer audio produ…
bwp91 Nov 14, 2026
66ac64d
fix(examples): list the targets of the apple tv remote example instea…
bwp91 Nov 14, 2026
07691f2
refactor(examples): export the example accessories as es modules and …
bwp91 Nov 14, 2026
cc9edb1
refactor(model): turn the const enums of accessory, service and chara…
bwp91 Nov 14, 2026
9f1ee32
refactor(server): turn the const enums of the server, advertiser and …
bwp91 Nov 14, 2026
3740a0e
refactor(camera): turn the const enums of the camera code into normal…
bwp91 Nov 14, 2026
706cf45
refactor(datastream): turn the const enums of the data stream code in…
bwp91 Nov 14, 2026
5318bdf
refactor(controller): turn the const enums of the controllers and acc…
bwp91 Nov 14, 2026
d5d7c84
refactor(types): turn the const enums in types.ts and internal-types.…
bwp91 Nov 14, 2026
eae3a29
refactor(definitions): turn the last const enums into normal enums an…
bwp91 Nov 14, 2026
be12eb8
test: check that every module loads on its own now that no const enum…
bwp91 Nov 14, 2026
8e8a6e2
build: forbid new const enums in the lint config and drop the preserv…
bwp91 Nov 14, 2026
ca04106
docs(server): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
9f4fdef
docs(model): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
630d373
docs(camera): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
40457ef
docs(datastream): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
3989457
docs(controller): fix spelling mistakes in comments and messages
bwp91 Nov 14, 2026
c7af0d4
docs: fix spelling mistakes in the remaining comments and messages
bwp91 Nov 14, 2026
77d3731
docs(server): fix comments which are wrong or name functions that no …
bwp91 Nov 14, 2026
baff6a8
docs(model): fix comments which are wrong or name things that no long…
bwp91 Nov 14, 2026
8080e06
docs(camera): fix two comments which name a wrong sample rate and a w…
bwp91 Nov 14, 2026
2c4ada1
docs(datastream): fix a comment which says encryption where it means …
bwp91 Nov 14, 2026
e06896e
docs(controller): fix comments and docs which no longer match the code
bwp91 Nov 14, 2026
238055d
docs(examples): fix three comments which name the wrong value in the …
bwp91 Nov 14, 2026
0c4898f
refactor(server): drop the unused request parameter of the pairing st…
bwp91 Nov 14, 2026
a7dba74
fix(crypto): stop naming node 10 in the error for a missing chacha20-…
bwp91 Nov 14, 2026
12c9141
refactor(camera): drop a branch which can never run and a repeated as…
bwp91 Nov 14, 2026
cf24ab8
refactor(datastream): drop writer branches which can never run and a …
bwp91 Nov 14, 2026
f40ca12
refactor(controller): drop the remote controller's request handler fi…
bwp91 Nov 14, 2026
b5be94a
refactor(definitions): drop a leftover variable and an unused paramet…
bwp91 Nov 14, 2026
a30bd8f
test: restore names in test titles which a lint autofix had lower-cas…
bwp91 Nov 14, 2026
6b08ed6
docs(readme): add install, node.js version and es module notes and dr…
bwp91 Nov 14, 2026
8ac18c1
docs(typedoc): hide the default export so the api documentation lists…
bwp91 Nov 14, 2026
871f0d8
docs(typedoc): stop a text line after a group tag creating a second a…
bwp91 Nov 14, 2026
7e930a1
docs(typedoc): drop the stale MulticastOptions entry from the typedoc…
bwp91 Nov 14, 2026
b39cef2
fix(core): log the start of the library under the debug name HAP-Node…
bwp91 Nov 14, 2026
c92caa3
build: set moduleResolution to NodeNext like module and drop three op…
bwp91 Nov 14, 2026
b7c0b08
build: drop the importHelpers option which does nothing at target ES2022
bwp91 Nov 14, 2026
15e0a6a
build: stop shipping declaration maps which point at source files the…
bwp91 Nov 14, 2026
0e4babb
docs(changelog): add upgrade notes for the stricter types of v2.3.1
bwp91 Nov 14, 2026
9878a33
chore: drop the stale maintainers field from package.json
bwp91 Nov 15, 2026
75267f2
ci: pin the wiki notification action to a commit
bwp91 Nov 15, 2026
4c82e96
fix(datastream): answer the sessions which wait for the port when the…
bwp91 Nov 15, 2026
31070f4
fix(camera): keep the endpoints response of the active stream when an…
bwp91 Nov 15, 2026
9c2c105
perf(datastream): join the chunks of an incoming frame once instead o…
bwp91 Nov 15, 2026
a44af52
fix(camera): reject the rtp proxy setup once every port failed to bin…
bwp91 Nov 15, 2026
89162f6
fix(controller): read the adaptive lighting update and notify interva…
bwp91 Nov 15, 2026
e0bb552
fix(controller): unref the release timer of a pushed remote button an…
bwp91 Nov 15, 2026
0aa1548
test(tv): add a spec for the access control management of televisions…
bwp91 Nov 15, 2026
2a1de7a
fix(tv): send the access control events with the values of their own …
bwp91 Nov 15, 2026
aad1cd5
refactor(controller): import the camera controller from its own file …
bwp91 Nov 15, 2026
89752fe
fix(server): name the accessory and the port in the error when the ha…
bwp91 Nov 15, 2026
3e887d7
fix(accessory): stop a controller reading or writing an accessory exc…
bwp91 Nov 15, 2026
3c297d8
fix(accessory): end the event subscriptions of clients to a removed s…
bwp91 Nov 15, 2026
e2cf7eb
fix(model): warn with the file path when a storage file does not hold…
bwp91 Nov 15, 2026
c8ae3bd
fix(accessory): stop publish writing the advertiser it chose into the…
bwp91 Nov 15, 2026
72f231a
refactor: mark members which replace an inherited one with override a…
bwp91 Nov 15, 2026
584989e
refactor: return undefined in the open on every code path and turn on…
bwp91 Nov 15, 2026
0640bc8
refactor: prefix parameters which are never read with an underscore a…
bwp91 Nov 15, 2026
377731f
refactor: import types with import type and turn on the consistent-ty…
bwp91 Nov 15, 2026
03fbbff
fix(types): export PairingStates so a plugin can name the type of the…
bwp91 Nov 15, 2026
90f92cc
chore(deps): replace futoin-hkdf with the hkdf of node.js and remove …
bwp91 Nov 14, 2026
2c5798e
ci: keep the npm publish token to the publish job, stay on npm 11 and…
bwp91 Nov 15, 2026
6aa9b6c
ci: pin the third-party actions to a commit
bwp91 Nov 15, 2026
7c08b80
fix(storage): save the persist files, which hold the pairing keys, re…
bwp91 Nov 15, 2026
2f641b7
fix(controller): cap an adaptive lighting update interval past 24.8 d…
bwp91 Nov 15, 2026
a29b172
fix(characteristic): cut an over-long string without splitting an emo…
bwp91 Nov 15, 2026
8666442
fix(storage): set a persist file with invalid json aside instead of o…
bwp91 Nov 15, 2026
62cda98
ci: name the labeler job labeler, not stale
bwp91 Nov 15, 2026
d57898d
ci: fix the labeler comment that says alpha pull requests get the bet…
bwp91 Nov 15, 2026
d35f2c7
fix(storage): leave a persist file which is not json alone until hap-…
bwp91 Nov 15, 2026
d91f07a
fix(service): answer /accessories with an error instead of crashing o…
bwp91 Nov 15, 2026
3c92a84
fix(server): hold events until a request which arrived during a stall…
bwp91 Nov 15, 2026
c4ddcf4
fix(server): refuse an add pairing request whose permission or public…
bwp91 Nov 15, 2026
1022258
test: restore the name of the PUT /prepare test which a lint autofix …
bwp91 Nov 15, 2026
93519cd
fix(storage): type getItem without a type argument as any again so ty…
bwp91 Nov 15, 2026
a0c2895
fix(camera): ignore a late error answer for a stream session which al…
bwp91 Nov 15, 2026
38a556a
fix(camera): answer a stream setup in proxy mode for a camera without…
bwp91 Nov 15, 2026
ef61aae
fix(doorbell): warn instead of throwing when the doorbell rings while…
bwp91 Nov 15, 2026
23a0019
fix(accessory): keep tlv8 values, which can hold the camera stream ke…
bwp91 Nov 15, 2026
5d18b89
fix(camera): answer a stream setup with an error when the plugin give…
bwp91 Nov 15, 2026
57a8523
refactor(camera): drop three error answers which are overwritten by t…
bwp91 Nov 15, 2026
f77ca4b
fix(datastream): stop handing on the messages of a chunk once a handl…
bwp91 Nov 15, 2026
2c34126
fix(datastream): throw a data stream error for a message on a connect…
bwp91 Nov 15, 2026
6dc5109
fix(datastream): catch an error of a response handler on the timeout …
bwp91 Nov 15, 2026
596c1c8
fix(datastream): reject a data stream setup write with a missing entr…
bwp91 Nov 15, 2026
374f6cd
perf(datastream): hold an incomplete frame in one growing buffer inst…
bwp91 Nov 15, 2026
2259422
docs(datastream): fix two comments about request ids and what sendReq…
bwp91 Nov 15, 2026
ea12d56
fix(remote): forget every target of a data stream connection which cl…
bwp91 Nov 15, 2026
4096abf
fix(remote): cap the time of pushAndReleaseButton so a long one does …
bwp91 Nov 15, 2026
4a20965
fix(adaptive-lighting): refuse a transition curve of fewer than two e…
bwp91 Nov 15, 2026
0419620
docs(accessory): say which controllers keep the event handlers of the…
bwp91 Nov 15, 2026
afafabb
fix(characteristic): ignore a minStep which is not a whole number for…
bwp91 Nov 15, 2026
e2bcdd9
fix(storage): say how to fix a persist file which the user can not re…
bwp91 Nov 15, 2026
cc4adf0
docs(changelog): correct and complete the upgrade notes of v2.3.1
bwp91 Nov 15, 2026
cb896b4
fix: stop publish() when unpublish() or destroy() is called while it …
bwp91 Nov 16, 2026
e912fe5
fix(pair-setup): mix the setup code verifier into the one-time srp key
bwp91 Nov 18, 2026
9819650
fix(pair-setup): drop the srp session from the connection once pair-s…
bwp91 Nov 18, 2026
c6e7a88
feat(lock): add AccessCodeManagement for the keypad codes of the Acce…
bwp91 Nov 17, 2026
3430fd8
feat(lock): add NFCAccessManagement for the HomeKit half of Apple Hom…
bwp91 Nov 17, 2026
332e383
feat: add encodeErrorStatus and decodeErrorStatus for the faults of t…
bwp91 Nov 17, 2026
622d51a
feat(doorbell): add setOperatingState to report a doorbell that is to…
bwp91 Nov 17, 2026
0b35032
docs(typedoc): link the source of the docs to the latest branch, not …
bwp91 Nov 19, 2026
8ae37a8
docs: regenerate `typedoc` docs
bwp91 Nov 16, 2026
5debb7b
chore(deps): dependency updates
bwp91 Nov 16, 2026
965c3ee
ci(release): cancel only builds on a newer push, never a publish in p…
NorthernMan54 Nov 20, 2026
03c0d30
ci: add the dependency bot config for the beta stream (#1139)
NorthernMan54 Nov 20, 2026
6b2cbab
Update beta dependencies in . (#1141)
homebridge[bot] Nov 20, 2026
31e5831
fix(camera): unlink a manually supplied sensor which was replaced or …
ZeliardM 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
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions .github/homebridge-dependency-bot-beta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"auto_merge": true,
"merge_when_green": true,
"update_method": "pr",
"update_lockfile": true,
"git_user": {
"name": "homebridge[bot]",
"email": "354207881+homebridge[bot]@users.noreply.github.com"
},
"directories": [
{
"directory": ".",
"packages": [
{ "name": "@homebridge/ciao", "tag": ["beta", "latest"] },
{ "name": "bonjour-hap", "tag": ["beta", "latest"] },
{ "name": "fast-srp-hap", "tag": ["beta", "latest"] }
]
}
]
}
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