matterbridge-eve-energy 2.0.4 → 2.0.5

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-eve-energy/actions/workflows/build.yml/badge.svg)
8
8
  ![CodeQL](https://github.com/Luligu/matterbridge-eve-energy/actions/workflows/codeql.yml/badge.svg)
9
9
  [![codecov](https://codecov.io/gh/Luligu/matterbridge-eve-energy/branch/main/graph/badge.svg)](https://codecov.io/gh/Luligu/mmatterbridge-eve-energy)
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)
@@ -21,6 +26,18 @@ If you like this project and find it useful, please consider giving it a star on
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.5] - 2026-02-07
30
+
31
+ ### Changed
32
+
33
+ - [package]: Updated dependencies.
34
+ - [package]: Bumped package to automator v.3.0.6.
35
+ - [package]: Bumped node-ansi-logger to v.3.2.0.
36
+ - [vite]: Added cache under .cache/vite.
37
+ - [workflow]: Migrated to trusted publishing / OIDC. Since you can authorize only one workflow with OIDC, publish.yml now does both the publishing with tag latest (on release) and with tag dev (on schedule or manual trigger).
38
+
39
+ <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
40
+
24
41
  ## [2.0.4] - 2026-02-01
25
42
 
26
43
  ### Changed
package/README.md CHANGED
@@ -7,6 +7,11 @@
7
7
  ![Node.js CI](https://github.com/Luligu/matterbridge-eve-energy/actions/workflows/build.yml/badge.svg)
8
8
  ![CodeQL](https://github.com/Luligu/matterbridge-eve-energy/actions/workflows/codeql.yml/badge.svg)
9
9
  [![codecov](https://codecov.io/gh/Luligu/matterbridge-eve-energy/branch/main/graph/badge.svg)](https://codecov.io/gh/Luligu/mmatterbridge-eve-energy)
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)
@@ -15,7 +20,7 @@
15
20
 
16
21
  ---
17
22
 
18
- This plugin shows how to use the Matter history and how to create an active device in matter.js.
23
+ This plugin shows how to use the Matter history and how to create an active device in Matterbridge.
19
24
 
20
25
  It creates a **virtual** outlet device with electric measurements that continuously changes state.
21
26
 
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "matterbridge-eve-energy",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge-eve-energy",
9
- "version": "2.0.4",
9
+ "version": "2.0.5",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "matter-history": "1.2.1",
13
- "node-ansi-logger": "3.1.1",
13
+ "node-ansi-logger": "3.2.0",
14
14
  "node-persist-manager": "2.0.0"
15
15
  },
16
16
  "engines": {
@@ -63,13 +63,13 @@
63
63
  }
64
64
  },
65
65
  "node_modules/node-ansi-logger": {
66
- "version": "3.1.1",
67
- "resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.1.1.tgz",
68
- "integrity": "sha512-tFeCSxwiRg5XaNda5nC27alzraZP76nLtUk1JDZqb9byhW4WYaSGL7/lmxFHEI16gypQDMEYljuF+wcG+cPPHw==",
66
+ "version": "3.2.0",
67
+ "resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.2.0.tgz",
68
+ "integrity": "sha512-HvKsTZpMSrEkO2x2egSvTpjgWkVpYO0xsXNxmCG+7vi0Ohs5yy9EdTKbTPYbNwzXY70g7nqsE10yE+Tsw5MA8w==",
69
69
  "hasShrinkwrap": true,
70
70
  "license": "Apache-2.0",
71
71
  "engines": {
72
- "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"
72
+ "node": ">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
73
73
  },
74
74
  "funding": {
75
75
  "type": "buymeacoffee",
package/package.json CHANGED
@@ -1,12 +1,18 @@
1
1
  {
2
2
  "name": "matterbridge-eve-energy",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Matterbridge eve energy with history",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
8
8
  "main": "dist/module.js",
9
9
  "types": "dist/module.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/module.js",
13
+ "types": "./dist/module.d.ts"
14
+ }
15
+ },
10
16
  "homepage": "https://www.npmjs.com/package/matterbridge-eve-energy",
11
17
  "repository": {
12
18
  "type": "git",
@@ -57,7 +63,7 @@
57
63
  ],
58
64
  "dependencies": {
59
65
  "matter-history": "1.2.1",
60
- "node-ansi-logger": "3.1.1",
66
+ "node-ansi-logger": "3.2.0",
61
67
  "node-persist-manager": "2.0.0"
62
68
  }
63
69
  }
package/dist/module.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { MatterHistory } from 'matter-history';
2
- import { PlatformConfig, MatterbridgeAccessoryPlatform, MatterbridgeEndpoint, PlatformMatterbridge } from 'matterbridge';
3
- import { AnsiLogger } from 'matterbridge/logger';
4
- export default function initializePlugin(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: PlatformConfig): EveEnergyPlatform;
5
- export declare class EveEnergyPlatform extends MatterbridgeAccessoryPlatform {
6
- energy: MatterbridgeEndpoint | undefined;
7
- history: MatterHistory | undefined;
8
- interval: NodeJS.Timeout | undefined;
9
- state: boolean;
10
- constructor(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: PlatformConfig);
11
- onStart(reason?: string): Promise<void>;
12
- onConfigure(): Promise<void>;
13
- onShutdown(reason?: string): Promise<void>;
14
- }