[3.11.6] - 2026-12-04
Development Breaking changes
- [test-utils]: Remove
getFreePort: usegetFreePortfrom@matterbridge/utils/port. - [core]:
subscribeCommandlisteners no longer fire for theLevelControlandColorControlcommands that matter.js skips because the device is off and the effectiveExecuteIfOffis 0. The 'with On/Off' commands andaddCommandHandlerhandlers are unchanged. - [core]:
subscribeCommandlisteners no longer fire for anOnOffonWithRecallGlobalScenediscarded becauseglobalSceneControlis true, or anonWithTimedOffdiscarded byacceptOnlyWhenOnor that only lowersoffWaitTimewhile off.addCommandHandlerhandlers are unchanged.
Added
- [dgram]: Add subpath exports for each module, in kebab-case as in
@matterbridge/utils(e.g.@matterbridge/dgram/mdns-scanner). - [dgram]: Add
Coap.request(): a unicast or multicast CoAP request that returns a promise of the responses, with a timeout and an optionalAbortSignal. - [dgram]: Add
COAP_OPTION_URI_QUERYand thequeryoption ofCoap.request();logCoapMessagedecodes the Uri-Query options. - [dgram]:
Dgram.send()accepts an optional callback with the send result; with a callback, a send error goes to the callback instead of the'error'event. - [utils]: Add
isPortFree,getFreePortandgetFreePortRange(@matterbridge/utils/port) fortcp,udp4,udp6,udp(both families) andtcp+udpports. - [core]:
subscribeCommand()listeners receive the executing cluster's typed pending state inattributes.
Changed
- [core]: Add the Time Synchronization client to camera root nodes as required by
TimeSyncWithClientCond. - [dgram]:
isFirstOnPortusesisPortFreefrom@matterbridge/utils/port. - [core]: The WebRTC media track port and the werift range tests use
getFreePortandgetFreePortRangefrom@matterbridge/utils/port. - [dgram]: The
MdnsScanner,MdnsMonitor,CoapMonitorandMatterbridgeAdvertisetests get their ports fromgetFreePort('udp')instead of a random port. - [dgram]: Add the
queryInstanceSRV/TXT query test to theMdnsScannertests, synced from matterbridge-native. - [utils]: Align the
measurementUtilscomments with the Matter 1.6.1 Application Cluster § 2.2.5.1 wording. - [core]: Remove the meaningless
voidmarkers flagged byoxlint-tsgolint7.0.2009 (no-meaningless-void-operator); the intentional getter reads are disabled locally. - [core]: Bump
weriftto v.0.29.0. - [frontend]: Bump
viteto v.8.4.0. - [matterbridge]: Bump
@types/nodeto v.26.6.11. - [matterbridge]: Bump
oxlint-tsgolintto v.7.0.2009.
Fixed
- [core]: Share one mock remote context in
invokeBehaviorCommand()so command listeners see pending attribute updates. - [core]: Stabilize the Extractor Hood filter tests by writing a different timestamp and checking local and remote notifications separately.
- [core]: Work around a matter.js 0.18.1 spec violation that returns
CONSTRAINT_ERRORfor an invalid Closure DimensionSetTarget.Speedvalue even when Matter requires the field to be ignored because Speed is unsupported. See Matter.js 0.18.1. - [core]: Work around a matter.js 0.18.1 spec violation that returns
CONSTRAINT_ERRORwhen an EVSESetTargetsrequest exceeds charging-target capacity, where Matter requiresRESOURCE_EXHAUSTED. See Matter.js 0.18.1. - [dgram]: Fix the flaky
MdnsResponderprobe test: the random 0-250 ms first probe delay is pinned to 125 ms in the tests. - [dgram]: Await the socket close in the
MdnsMonitorandCoapMonitortests, so theirSocket closedlogs no longer leak after the test files. - [core]: Probe the free UDP port of the injected WebRTC media tracks on
0.0.0.0, the address werift binds it on, instead of127.0.0.1. - [dgram]:
Multicastwithout an interface name no longer joins its group on the excluded (VPN, virtual) interfaces. - [dgram]:
Multicastwarns when it joins its group on no interface, listing the skipped excluded interfaces. - [dgram]: Exclude the macOS
awdl,llw,anpiandbridge1xx(Parallels, Internet Sharing) interfaces from the default interface selection. - [dgram]:
MulticastandUnicastno longer throwERR_SOCKET_DGRAM_NOT_RUNNINGwhen stopped from a'ready'listener. - [dgram]:
logCoapMessagedecodes the Shelly Gen 1COIOT_OPTION_SERIALandCOIOT_OPTION_VALIDITYoptions as little-endian, as the devices send them. - [dgram]:
CoapMonitorwith--requestsends the multicast requests to both/cit/sand/cit/d, with consecutive message IDs.