matterbridge-test 2.0.6 → 2.0.7

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
@@ -7,6 +7,11 @@
7
7
  ![Node.js CI](https://github.com/Luligu/matterbridge-test/actions/workflows/build.yml/badge.svg)
8
8
  ![CodeQL](https://github.com/Luligu/matterbridge-test/actions/workflows/codeql.yml/badge.svg)
9
9
  [![codecov](https://codecov.io/gh/Luligu/matterbridge-test/branch/main/graph/badge.svg)](https://codecov.io/gh/Luligu/matterbridge-test)
10
+ [![styled with prettier](https://img.shields.io/badge/styled_with-Prettier-f8bc45.svg?logo=prettier)](https://github.com/prettier/prettier)
11
+ [![linted with eslint](https://img.shields.io/badge/linted_with-ES_Lint-4B32C3.svg?logo=eslint)](https://github.com/eslint/eslint)
12
+ [![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
13
+ [![ESM](https://img.shields.io/badge/ESM-Node.js-339933?logo=node.js&logoColor=white)](https://nodejs.org/api/esm.html)
14
+ [![matterbridge.io](https://img.shields.io/badge/matterbridge.io-online-brightgreen)](https://matterbridge.io)
10
15
 
11
16
  [![powered by](https://img.shields.io/badge/powered%20by-matterbridge-blue)](https://www.npmjs.com/package/matterbridge)
12
17
  [![powered by](https://img.shields.io/badge/powered%20by-matter--history-blue)](https://www.npmjs.com/package/matter-history)
@@ -17,10 +22,19 @@
17
22
 
18
23
  All notable changes to this project will be documented in this file.
19
24
 
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.
25
+ If you like this project and find it useful, please consider giving it a star on [GitHub](https://github.com/Luligu/matterbridge-test) and sponsoring it.
21
26
 
22
27
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120"></a>
23
28
 
29
+ ## [2.0.7] - 2026-02-04
30
+
31
+ ### Changed
32
+
33
+ - [package]: Updated dependencies.
34
+ - [package]: Updated package.
35
+
36
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
37
+
24
38
  ## [2.0.6] - 2026-02-01
25
39
 
26
40
  ### Changed
package/README.md CHANGED
@@ -7,6 +7,11 @@
7
7
  ![Node.js CI](https://github.com/Luligu/matterbridge-test/actions/workflows/build.yml/badge.svg)
8
8
  ![CodeQL](https://github.com/Luligu/matterbridge-test/actions/workflows/codeql.yml/badge.svg)
9
9
  [![codecov](https://codecov.io/gh/Luligu/matterbridge-test/branch/main/graph/badge.svg)](https://codecov.io/gh/Luligu/matterbridge-test)
10
+ [![styled with prettier](https://img.shields.io/badge/styled_with-Prettier-f8bc45.svg?logo=prettier)](https://github.com/prettier/prettier)
11
+ [![linted with eslint](https://img.shields.io/badge/linted_with-ES_Lint-4B32C3.svg?logo=eslint)](https://github.com/eslint/eslint)
12
+ [![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
13
+ [![ESM](https://img.shields.io/badge/ESM-Node.js-339933?logo=node.js&logoColor=white)](https://nodejs.org/api/esm.html)
14
+ [![matterbridge.io](https://img.shields.io/badge/matterbridge.io-online-brightgreen)](https://matterbridge.io)
10
15
 
11
16
  [![powered by](https://img.shields.io/badge/powered%20by-matterbridge-blue)](https://www.npmjs.com/package/matterbridge)
12
17
  [![powered by](https://img.shields.io/badge/powered%20by-matter--history-blue)](https://www.npmjs.com/package/matter-history)
@@ -23,8 +28,14 @@ Additionally, it can generate an unlimited number of devices to test the control
23
28
 
24
29
  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.
25
30
 
26
- 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.
31
+ If you like this project and find it useful, please consider giving it a star on [GitHub](https://github.com/Luligu/matterbridge-test) and sponsoring it.
27
32
 
28
33
  <a href="https://www.buymeacoffee.com/luligugithub">
29
34
  <img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="120">
30
35
  </a>
36
+
37
+ ## Prerequisites
38
+
39
+ ### Matterbridge
40
+
41
+ See the guidelines on [Matterbridge](https://matterbridge.io) for more information.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge-test",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-test",
9
- "version": "2.0.6",
9
+ "version": "2.0.7",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "node-ansi-logger": "3.1.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-test",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Matterbridge test plugin",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
package/dist/module.d.ts DELETED
@@ -1,37 +0,0 @@
1
- import { MatterbridgeDynamicPlatform, PlatformConfig, MatterbridgeEndpoint, PlatformMatterbridge } from 'matterbridge';
2
- import { AnsiLogger, LogLevel } from 'matterbridge/logger';
3
- export type TestPlatformConfig = PlatformConfig & {
4
- noDevices: boolean;
5
- delayStart: boolean;
6
- longDelayStart: boolean;
7
- loadSwitches: number;
8
- loadOutlets: number;
9
- loadLights: number;
10
- whiteList: string[];
11
- blackList: string[];
12
- setUpdateInterval: number;
13
- enableElectrical: boolean;
14
- enablePowerSource: boolean;
15
- enableModeSelect: boolean;
16
- enableReachable: boolean;
17
- throwLoad: boolean;
18
- throwStart: boolean;
19
- throwConfigure: boolean;
20
- throwShutdown: boolean;
21
- };
22
- export default function initializePlugin(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: PlatformConfig): TestPlatform;
23
- export declare class TestPlatform extends MatterbridgeDynamicPlatform {
24
- config: TestPlatformConfig;
25
- private interval;
26
- bridgedDevices: Map<string, MatterbridgeEndpoint>;
27
- constructor(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: TestPlatformConfig);
28
- onStart(reason?: string): Promise<void>;
29
- addPowerSource(device: MatterbridgeEndpoint, type: 'wired' | 'replaceable' | 'rechargeable'): void;
30
- addElectricalMeasurements(device: MatterbridgeEndpoint): void;
31
- addModeSelect(device: MatterbridgeEndpoint, description: string): void;
32
- onConfigure(): Promise<void>;
33
- onShutdown(reason?: string): Promise<void>;
34
- onChangeLoggerLevel(logLevel: LogLevel): Promise<void>;
35
- onAction(action: string, value?: string, id?: string): Promise<void>;
36
- onConfigChanged(config: PlatformConfig): Promise<void>;
37
- }