matterbridge-test 1.0.13 → 1.2.0
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 +56 -1
- package/README.md +11 -2
- package/dist/platform.js +2 -2
- package/npm-shrinkwrap.json +16 -15
- package/package.json +4 -4
- package/yellow-button.png +0 -0
- package/tsconfig.jest.json +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,63 @@
|
|
|
1
1
|
# <img src="matterbridge.svg" alt="Matterbridge Logo" width="64px" height="64px"> Matterbridge test plugin changelog
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/matterbridge-test)
|
|
4
|
+
[](https://www.npmjs.com/package/matterbridge-test)
|
|
5
|
+
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
6
|
+
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
[](https://codecov.io/gh/Luligu/matterbridge-test)
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/matterbridge)
|
|
12
|
+
[](https://www.npmjs.com/package/matter-history)
|
|
13
|
+
[](https://www.npmjs.com/package/node-ansi-logger)
|
|
14
|
+
[](https://www.npmjs.com/package/node-persist-manager)
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
3
18
|
All notable changes to this project will be documented in this file.
|
|
4
19
|
|
|
5
|
-
If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge-
|
|
20
|
+
If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge-test and sponsoring it.
|
|
21
|
+
|
|
22
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
23
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="120">
|
|
24
|
+
</a>
|
|
25
|
+
|
|
26
|
+
## [1.2.0] - 2025-05-25
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- [DevContainer]: Added support for the **Matterbridge Dev Container** with an optimized named volume for `node_modules`.
|
|
31
|
+
- [GitHub]: Added GitHub issue templates for bug reports and feature requests.
|
|
32
|
+
- [ESLint]: Refactored the flat config.
|
|
33
|
+
- [ESLint]: Added the plugins `eslint-plugin-promise`, `eslint-plugin-jsdoc`, and `@vitest/eslint-plugin`.
|
|
34
|
+
- [Jest]: Refactored the flat config.
|
|
35
|
+
- [Vitest]: Added Vitest for TypeScript project testing. It will replace Jest, which does not work correctly with ESM module mocks.
|
|
36
|
+
- [JSDoc]: Added missing JSDoc comments, including `@param` and `@returns` tags.
|
|
37
|
+
- [CodeQL]: Added CodeQL badge in the readme.
|
|
38
|
+
- [Codecov]: Added Codecov badge in the readme.
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- [package]: Updated package to Automator v. 2.0.1.
|
|
43
|
+
- [package]: Updated dependencies.
|
|
44
|
+
- [storage]: Bumped `node-storage-manager` to 2.0.0.
|
|
45
|
+
- [logger]: Bumped `node-ansi-logger` to 3.1.1.
|
|
46
|
+
|
|
47
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
48
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="120">
|
|
49
|
+
</a>
|
|
50
|
+
|
|
51
|
+
## [1.0.14] - 2025-05-15
|
|
52
|
+
|
|
53
|
+
### Changed
|
|
54
|
+
|
|
55
|
+
- [package]: Updated package.
|
|
56
|
+
- [package]: Updated dependencies.
|
|
57
|
+
|
|
58
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
59
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="120">
|
|
60
|
+
</a>
|
|
6
61
|
|
|
7
62
|
## [1.0.13] - 2025-04-30
|
|
8
63
|
|
package/README.md
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
6
6
|
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
7
7
|

|
|
8
|
-

|
|
9
|
+
[](https://codecov.io/gh/Luligu/matterbridge-test)
|
|
9
10
|
|
|
10
11
|
[](https://www.npmjs.com/package/matterbridge)
|
|
11
12
|
[](https://www.npmjs.com/package/matter-history)
|
|
@@ -14,10 +15,18 @@
|
|
|
14
15
|
|
|
15
16
|
---
|
|
16
17
|
|
|
17
|
-
This is the test plugin we use for Matterbridge.
|
|
18
|
+
This is the test plugin we use for Matterbridge tests.
|
|
18
19
|
|
|
19
20
|
It is designed to throw exceptions at various points to test Matterbridge's responses.
|
|
20
21
|
|
|
21
22
|
Additionally, it can generate an unlimited number of devices to test the controller's capabilities, and the update interval is configurable.
|
|
22
23
|
|
|
23
24
|
For internal use only!
|
|
25
|
+
|
|
26
|
+
If you want to write your plugin, the easiest way to start create a new plugin is to clone the [Matterbridge Plugin Template](https://github.com/Luligu/matterbridge-plugin-template) which has **Dev Container support for instant development environment** and all tools and extensions (like Node.js, npm, TypeScript, ESLint, Prettier, Jest and Vitest) already loaded and configured.
|
|
27
|
+
|
|
28
|
+
If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge-test and sponsoring it.
|
|
29
|
+
|
|
30
|
+
<a href="https://www.buymeacoffee.com/luligugithub">
|
|
31
|
+
<img src="bmc-button.svg" alt="Buy me a coffee" width="120">
|
|
32
|
+
</a>
|
package/dist/platform.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MatterbridgeDynamicPlatform, bridgedNode, electricalSensor, onOffSwitch, onOffOutlet, colorTemperatureLight, powerSource, modeSelect, MatterbridgeEndpoint,
|
|
1
|
+
import { MatterbridgeDynamicPlatform, bridgedNode, electricalSensor, onOffSwitch, onOffOutlet, colorTemperatureLight, powerSource, modeSelect, MatterbridgeEndpoint, } from 'matterbridge';
|
|
2
2
|
import { isValidString, waiter } from 'matterbridge/utils';
|
|
3
3
|
import { CYAN, er, nf } from 'matterbridge/logger';
|
|
4
|
-
import { OnOffCluster, ElectricalPowerMeasurementCluster, ElectricalEnergyMeasurementCluster, ModeSelectCluster, PowerSource } from 'matterbridge/matter/clusters';
|
|
4
|
+
import { OnOffCluster, ElectricalPowerMeasurementCluster, ElectricalEnergyMeasurementCluster, ModeSelectCluster, PowerSource, BridgedDeviceBasicInformationCluster, } from 'matterbridge/matter/clusters';
|
|
5
5
|
export class TestPlatform extends MatterbridgeDynamicPlatform {
|
|
6
6
|
noDevices = false;
|
|
7
7
|
delayStart = false;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-test",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-test",
|
|
9
|
-
"version": "1.0
|
|
9
|
+
"version": "1.2.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"node-ansi-logger": "3.
|
|
13
|
-
"node-persist-manager": "
|
|
12
|
+
"node-ansi-logger": "3.1.1",
|
|
13
|
+
"node-persist-manager": "2.0.0"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0"
|
|
16
|
+
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
17
17
|
},
|
|
18
18
|
"funding": {
|
|
19
19
|
"type": "buymeacoffee",
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"node_modules/node-ansi-logger": {
|
|
24
|
-
"version": "3.
|
|
25
|
-
"resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.
|
|
26
|
-
"integrity": "sha512-
|
|
27
|
-
"
|
|
24
|
+
"version": "3.1.1",
|
|
25
|
+
"resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.1.1.tgz",
|
|
26
|
+
"integrity": "sha512-tFeCSxwiRg5XaNda5nC27alzraZP76nLtUk1JDZqb9byhW4WYaSGL7/lmxFHEI16gypQDMEYljuF+wcG+cPPHw==",
|
|
27
|
+
"hasShrinkwrap": true,
|
|
28
|
+
"license": "Apache-2.0",
|
|
28
29
|
"engines": {
|
|
29
|
-
"node": ">=18.0.0"
|
|
30
|
+
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
30
31
|
},
|
|
31
32
|
"funding": {
|
|
32
33
|
"type": "buymeacoffee",
|
|
@@ -46,15 +47,15 @@
|
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
49
|
"node_modules/node-persist-manager": {
|
|
49
|
-
"version": "
|
|
50
|
-
"resolved": "https://registry.npmjs.org/node-persist-manager/-/node-persist-manager-
|
|
51
|
-
"integrity": "sha512-
|
|
50
|
+
"version": "2.0.0",
|
|
51
|
+
"resolved": "https://registry.npmjs.org/node-persist-manager/-/node-persist-manager-2.0.0.tgz",
|
|
52
|
+
"integrity": "sha512-jpgOqCCn4ZEnIr4WcvqkyyGmmLJarV6aUyBlDQdG1G84X9UUmOmI1W2OZtc9K0z375CYWhjtGEXaY7GXNiEOfA==",
|
|
52
53
|
"license": "MIT",
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"node-persist": "
|
|
55
|
+
"node-persist": "4.0.4"
|
|
55
56
|
},
|
|
56
57
|
"engines": {
|
|
57
|
-
"node": ">=18.0.0"
|
|
58
|
+
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
58
59
|
},
|
|
59
60
|
"funding": {
|
|
60
61
|
"type": "buymeacoffee",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-test",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Matterbridge test plugin",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"shelly"
|
|
32
32
|
],
|
|
33
33
|
"engines": {
|
|
34
|
-
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0"
|
|
34
|
+
"node": ">=18.0.0 <19.0.0 || >=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"node-ansi-logger": "3.
|
|
38
|
-
"node-persist-manager": "
|
|
37
|
+
"node-ansi-logger": "3.1.1",
|
|
38
|
+
"node-persist-manager": "2.0.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
Binary file
|