matterbridge-example-dynamic-platform 2.0.18-dev-20260605-ca9f36c → 2.0.18
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 +4 -1
- package/dist/module.js +4 -7
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -28,7 +28,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
28
28
|
|
|
29
29
|
<a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
|
|
30
30
|
|
|
31
|
-
## [2.0.18] -
|
|
31
|
+
## [2.0.18] - 2026-06-05
|
|
32
32
|
|
|
33
33
|
### Breaking changes
|
|
34
34
|
|
|
@@ -42,6 +42,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
42
42
|
|
|
43
43
|
- [package]: Update dependencies.
|
|
44
44
|
- [package]: Bump package to `automator` v.3.1.11.
|
|
45
|
+
|
|
45
46
|
- [package]: Bump `@eslint/json` to v.2.0.0.
|
|
46
47
|
- [package]: Bump `@eslint/markdown` to v.8.0.2.
|
|
47
48
|
- [package]: Bump `@types/node` to v.25.9.1.
|
|
@@ -54,6 +55,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
54
55
|
- [package]: Bump `ts-jest` to v.29.4.11.
|
|
55
56
|
- [package]: Bump `typescript-eslint` to v.8.60.1.
|
|
56
57
|
- [package]: Bump `vitest` to v.4.1.8.
|
|
58
|
+
|
|
57
59
|
- [oxlint]: Bump `oxlint` config to v.1.0.2.
|
|
58
60
|
- [oxfmt]: Bump `oxfmt` config to v.1.0.2.
|
|
59
61
|
- [jest]: Bump `jest` config to v.2.0.2.
|
|
@@ -66,6 +68,7 @@ If you like this project and find it useful, please consider giving it a star on
|
|
|
66
68
|
- [workflow]: Bump `.github\workflows\build.yml` config to v.2.0.4.
|
|
67
69
|
- [workflow]: Bump `.github\workflows\codecov.yml` config to v.2.0.4.
|
|
68
70
|
- [workflow]: Bump `.github\workflows\publish.yml` config to v.2.0.4.
|
|
71
|
+
|
|
69
72
|
- [claude]: Move CLAUDE.md in the repo root.
|
|
70
73
|
- [claude]: Add .claude/settings.json with permissions configuration.
|
|
71
74
|
|
package/dist/module.js
CHANGED
|
@@ -106,8 +106,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
106
106
|
constructor(matterbridge, log, config) {
|
|
107
107
|
super(matterbridge, log, config);
|
|
108
108
|
this.config = config;
|
|
109
|
-
if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.
|
|
110
|
-
throw new Error(`This plugin requires Matterbridge version >= "3.
|
|
109
|
+
if (typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('3.8.0')) {
|
|
110
|
+
throw new Error(`This plugin requires Matterbridge version >= "3.8.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
|
|
111
111
|
}
|
|
112
112
|
this.log.info('Initializing platform:', this.config.name);
|
|
113
113
|
}
|
|
@@ -199,11 +199,8 @@ export class ExampleMatterbridgeDynamicPlatform extends MatterbridgeDynamicPlatf
|
|
|
199
199
|
.createDefaultIdentifyClusterServer()
|
|
200
200
|
.createDefaultBridgedDeviceBasicInformationClusterServer('Switch', 'SWI00010', 0xfff1, 'Matterbridge', 'Matterbridge Switch')
|
|
201
201
|
.createDefaultOnOffClusterServer()
|
|
202
|
-
.createDefaultPowerSourceWiredClusterServer()
|
|
203
|
-
|
|
204
|
-
this.switch.addRequiredClusters();
|
|
205
|
-
else
|
|
206
|
-
this.switch.addRequiredClusterServers();
|
|
202
|
+
.createDefaultPowerSourceWiredClusterServer()
|
|
203
|
+
.addRequiredClusters();
|
|
207
204
|
this.switch = await this.addDevice(this.switch);
|
|
208
205
|
this.switch?.addCommandHandler('identify', ({ request: { identifyTime } }) => {
|
|
209
206
|
this.log.info(`Command identify called identifyTime:${identifyTime}`);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-example-dynamic-platform",
|
|
3
|
-
"version": "2.0.18
|
|
3
|
+
"version": "2.0.18",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-example-dynamic-platform",
|
|
9
|
-
"version": "2.0.18
|
|
9
|
+
"version": "2.0.18",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"node-ansi-logger": "3.2.1",
|