matterbridge-example-dynamic-platform 2.0.18-dev-20260603-6f69fc5 → 2.0.18-dev-20260606-1ecb2d9

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 CHANGED
@@ -28,26 +28,49 @@ 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] - Dev branch
31
+ ## [2.0.18] - 2026-06-05
32
+
33
+ ### Breaking changes
34
+
35
+ - [matterbridge]: Require matterbridge v.3.8.0 with matter v.1.5.1 and matter.js v.0.17.1.
36
+
37
+ ### Added
38
+
39
+ - [codecov]: Add merge of Jest and Vitest coverage reports. This allows to run both Jest and Vitest tests in the same package and have a unified coverage report in Codecov.
32
40
 
33
41
  ### Changed
34
42
 
35
43
  - [package]: Update dependencies.
36
- - [package]: Bump package to `automator` v.3.1.10.
37
- - [package]: Bump `eslint` to v.10.4.0.
44
+ - [package]: Bump package to `automator` v.3.1.11.
45
+
46
+ - [package]: Bump `@eslint/json` to v.2.0.0.
47
+ - [package]: Bump `@eslint/markdown` to v.8.0.2.
38
48
  - [package]: Bump `@types/node` to v.25.9.1.
49
+ - [package]: Bump `@vitest/coverage-istanbul` to v.4.1.8.
50
+ - [package]: Bump `@vitest/eslint-plugin` to v.1.6.19.
51
+ - [package]: Bump `eslint` to v.10.4.1.
52
+ - [package]: Bump `eslint-plugin-jsdoc` to v.63.0.1.
53
+ - [package]: Bump `eslint-plugin-prettier` to v.5.5.6.
54
+ - [package]: Bump `npm-check-updates` to v.22.2.2.
39
55
  - [package]: Bump `ts-jest` to v.29.4.11.
40
- - [package]: Bump `typescript-eslint` to v.8.59.4.
41
- - [package]: Bump `vitest` to v.4.1.7.
42
- - [package]: Bump `@vitest/coverage-v8` to v.4.1.7.
43
- - [package]: Bump `eslint-plugin-jsdoc` to v.63.0.0.
44
- - [package]: Bump `@eslint/markdown` to v.8.0.2.
45
- - [package]: Bump `npm-check-updates` to v.22.2.0.
46
- - [package]: Update `.devcontainer/devcontainer.json`.
47
- - [package]: Update `.vscode/settings.json`.
48
- - [package]: Add `.vscode/extensions.json`.
49
- - [package]: Update `scripts`.
50
- - [eslint]: Add `eslint` v.2.0.4 config.
56
+ - [package]: Bump `typescript-eslint` to v.8.60.1.
57
+ - [package]: Bump `vitest` to v.4.1.8.
58
+
59
+ - [oxlint]: Bump `oxlint` config to v.1.0.2.
60
+ - [oxfmt]: Bump `oxfmt` config to v.1.0.2.
61
+ - [jest]: Bump `jest` config to v.2.0.2.
62
+ - [vitest]: Bump `vitest` config to v.2.0.5.
63
+ - [eslint]: Bump `eslint` config to v.2.0.5.
64
+ - [prettier]: Bump `.prettierignore` config to v.1.0.1.
65
+ - [package]: Bump `.devcontainer/devcontainer.json` config to v.1.0.1.
66
+ - [package]: Bump `.vscode/settings.json` config to v.1.0.1.
67
+ - [package]: Bump `.vscode/extensions.json` config to v.1.0.1.
68
+ - [workflow]: Bump `.github\workflows\build.yml` config to v.2.0.4.
69
+ - [workflow]: Bump `.github\workflows\codecov.yml` config to v.2.0.4.
70
+ - [workflow]: Bump `.github\workflows\publish.yml` config to v.2.0.4.
71
+
72
+ - [claude]: Move CLAUDE.md in the repo root.
73
+ - [claude]: Add .claude/settings.json with permissions configuration.
51
74
 
52
75
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
53
76
 
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.7.2')) {
110
- throw new Error(`This plugin requires Matterbridge version >= "3.7.2". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend.`);
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
- if (this.verifyMatterbridgeVersion('3.8.0', false))
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}`);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "2.0.18-dev-20260603-6f69fc5",
3
+ "version": "2.0.18-dev-20260606-1ecb2d9",
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-dev-20260603-6f69fc5",
9
+ "version": "2.0.18-dev-20260606-1ecb2d9",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.2.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-example-dynamic-platform",
3
- "version": "2.0.18-dev-20260603-6f69fc5",
3
+ "version": "2.0.18-dev-20260606-1ecb2d9",
4
4
  "description": "Matterbridge dynamic plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",