matterbridge-mqtt 0.0.9-dev-20260618-8c3cdfd → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -3
- package/dist/module.js +4 -4
- package/npm-shrinkwrap.json +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,13 +8,17 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
8
8
|
|
|
9
9
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
10
10
|
|
|
11
|
-
## [0.0.9] -
|
|
11
|
+
## [0.0.9] - 2026-06-20
|
|
12
12
|
|
|
13
13
|
### Changed
|
|
14
14
|
|
|
15
15
|
- [platform]: Require Matterbridge 3.9.1.
|
|
16
16
|
- [package]: Update dependencies.
|
|
17
|
-
- [package]: Bump `@typescript/native-preview` to v.7.0.0-dev.
|
|
17
|
+
- [package]: Bump `@typescript/native-preview` to v.7.0.0-dev.20260620.1.
|
|
18
|
+
- [oxlint]: Bump `oxlint` config to v.1.0.13.
|
|
19
|
+
- [oxfmt]: Bump `oxfmt` config to v.1.0.4.
|
|
20
|
+
- [devcontainer]: Bump `.devcontainer/devcontainer.json` config to v.1.0.4.
|
|
21
|
+
- [package]: Bump `.vscode/extensions.json` config to v.1.0.4.
|
|
18
22
|
|
|
19
23
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
|
|
20
24
|
|
|
@@ -33,7 +37,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
33
37
|
- [package]: Bump `.devcontainer/devcontainer.json` config to v.1.0.3.
|
|
34
38
|
- [package]: Bump `.vscode/settings.json` config to v.1.0.3.
|
|
35
39
|
- [package]: Bump `.vscode/extensions.json` config to v.1.0.3.
|
|
36
|
-
- [package]: Bump `.vscode/tasks.json` config to v.1.0.
|
|
40
|
+
- [package]: Bump `.vscode/tasks.json` config to v.1.0.3.
|
|
37
41
|
- [workflows]: Bump `build.yml` workflow to v.2.0.5.
|
|
38
42
|
- [workflows]: Bump `codecov.yml` workflow to v.2.0.6.
|
|
39
43
|
- [workflows]: Bump `publish.yml` workflow to v.2.0.5.
|
package/dist/module.js
CHANGED
|
@@ -275,7 +275,7 @@ export class MqttPlatform extends MatterbridgeDynamicPlatform {
|
|
|
275
275
|
if (endpointName === 'root') {
|
|
276
276
|
const message = JSON.parse(payload);
|
|
277
277
|
for (const clusterName of Object.keys(message)) {
|
|
278
|
-
if (!
|
|
278
|
+
if (!device.hasClusterServer(clusterName)) {
|
|
279
279
|
this.log.warn(`Cannot subscribe to cluster '${clusterName}' for device '${deviceId}' because the device does not have that cluster defined. Skipping subscribe configuration for this cluster.`);
|
|
280
280
|
continue;
|
|
281
281
|
}
|
|
@@ -285,11 +285,11 @@ export class MqttPlatform extends MatterbridgeDynamicPlatform {
|
|
|
285
285
|
continue;
|
|
286
286
|
}
|
|
287
287
|
for (const attributeName of attributes) {
|
|
288
|
-
if (!
|
|
288
|
+
if (!device.hasAttributeServer(clusterName, attributeName)) {
|
|
289
289
|
this.log.warn(`Cannot subscribe to cluster '${clusterName}:${attributeName}' for device '${deviceId}' because the device does not have that attribute defined. Skipping subscribe configuration for this cluster.`);
|
|
290
290
|
continue;
|
|
291
291
|
}
|
|
292
|
-
|
|
292
|
+
device.subscribeAttribute(clusterName, attributeName, (value) => {
|
|
293
293
|
this.log.debug(`Received update for subscribed attribute '${clusterName}:${attributeName}' on device '${deviceId}': ${debugStringify(value)}`);
|
|
294
294
|
const subscribeTopic = `${this.config.topic}/${deviceId}/write/${endpointName}`;
|
|
295
295
|
const payload = JSON.stringify({ [clusterName]: { [attributeName]: value } });
|
|
@@ -317,7 +317,7 @@ export class MqttPlatform extends MatterbridgeDynamicPlatform {
|
|
|
317
317
|
this.deviceData.set(deviceId, data);
|
|
318
318
|
}
|
|
319
319
|
async onFetch(method, path, query, body) {
|
|
320
|
-
this.log.debug(`onFetch called: method=${method} path=${path ?? 'none'} query=${query ? debugStringify(query) : 'none'}${db} body=${body ? debugStringify(body) : 'none'}`);
|
|
320
|
+
this.log.debug(`onFetch called: method=${method} path=${path ?? 'none'} query=${query ? debugStringify(query) : 'none'}${db} body=${body ? debugStringify(body) : 'none'}${db}`);
|
|
321
321
|
if (method === 'GET' && path === 'devices')
|
|
322
322
|
return this.getApiDevices();
|
|
323
323
|
if (method === 'GET' && path === 'messages')
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-mqtt",
|
|
3
|
-
"version": "0.0.9
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-mqtt",
|
|
9
|
-
"version": "0.0.9
|
|
9
|
+
"version": "0.0.9",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"mqtt": "5.15.1",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"node_modules/@types/node": {
|
|
34
|
-
"version": "
|
|
35
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-
|
|
36
|
-
"integrity": "sha512-
|
|
34
|
+
"version": "26.0.0",
|
|
35
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-26.0.0.tgz",
|
|
36
|
+
"integrity": "sha512-vf2YFi1iY9lHGwNJMs01biZFbKJkrZR1T6/MlzjhJLPdntOHLhTrDSnSVcdtvjihi4VQNlrFRIxLsDBlQpAipA==",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"undici-types": "
|
|
39
|
+
"undici-types": "~8.3.0"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"node_modules/@types/readable-stream": {
|
|
@@ -533,9 +533,9 @@
|
|
|
533
533
|
"license": "MIT"
|
|
534
534
|
},
|
|
535
535
|
"node_modules/undici-types": {
|
|
536
|
-
"version": "
|
|
537
|
-
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-
|
|
538
|
-
"integrity": "sha512-
|
|
536
|
+
"version": "8.3.0",
|
|
537
|
+
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",
|
|
538
|
+
"integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",
|
|
539
539
|
"license": "MIT"
|
|
540
540
|
},
|
|
541
541
|
"node_modules/util-deprecate": {
|