matterbridge-webhooks 1.1.1 → 1.1.2
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 +32 -0
- package/README.md +12 -7
- package/npm-shrinkwrap.json +7 -7
- package/package.json +12 -3
- package/dist/fetch.d.ts +0 -9
- package/dist/module.d.ts +0 -42
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,43 @@
|
|
|
1
1
|
# <img src="https://matterbridge.io/assets/matterbridge.svg" alt="Matterbridge Logo" width="64px" height="64px"> Matterbridge webhooks plugin changelog
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/matterbridge-webhooks)
|
|
4
|
+
[](https://www.npmjs.com/package/matterbridge-webhooks)
|
|
5
|
+
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
6
|
+
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
7
|
+

|
|
8
|
+

|
|
9
|
+
[](https://codecov.io/gh/Luligu/mmatterbridge-webhooks)
|
|
10
|
+
[](https://github.com/prettier/prettier)
|
|
11
|
+
[](https://github.com/eslint/eslint)
|
|
12
|
+
[](https://www.typescriptlang.org/)
|
|
13
|
+
[](https://nodejs.org/api/esm.html)
|
|
14
|
+
[](https://matterbridge.io)
|
|
15
|
+
|
|
16
|
+
[](https://www.npmjs.com/package/matterbridge)
|
|
17
|
+
[](https://www.npmjs.com/package/matter-history)
|
|
18
|
+
[](https://www.npmjs.com/package/node-ansi-logger)
|
|
19
|
+
[](https://www.npmjs.com/package/node-persist-manager)
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
3
23
|
All notable changes to this project will be documented in this file.
|
|
4
24
|
|
|
5
25
|
If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge-webhooks and sponsoring it.
|
|
6
26
|
|
|
7
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>
|
|
8
28
|
|
|
29
|
+
## [1.1.2] - 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
|
+
|
|
9
41
|
## [1.1.1] - 2026-01-20
|
|
10
42
|
|
|
11
43
|
### Added
|
package/README.md
CHANGED
|
@@ -2,16 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/matterbridge-webhooks)
|
|
4
4
|
[](https://www.npmjs.com/package/matterbridge-webhooks)
|
|
5
|
-
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
6
|
+
[](https://hub.docker.com/r/luligu/matterbridge)
|
|
7
7
|

|
|
8
8
|

|
|
9
9
|
[](https://codecov.io/gh/Luligu/mmatterbridge-webhooks)
|
|
10
|
-
|
|
11
|
-
[](https://github.com/prettier/prettier)
|
|
11
|
+
[](https://github.com/eslint/eslint)
|
|
12
|
+
[](https://www.typescriptlang.org/)
|
|
13
|
+
[](https://nodejs.org/api/esm.html)
|
|
14
|
+
[](https://matterbridge.io)
|
|
15
|
+
|
|
16
|
+
[](https://www.npmjs.com/package/matterbridge)
|
|
17
|
+
[](https://www.npmjs.com/package/matter-history)
|
|
18
|
+
[](https://www.npmjs.com/package/node-ansi-logger)
|
|
19
|
+
[](https://www.npmjs.com/package/node-persist-manager)
|
|
15
20
|
|
|
16
21
|
---
|
|
17
22
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-webhooks",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge-webhooks",
|
|
9
|
-
"version": "1.1.
|
|
9
|
+
"version": "1.1.2",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"node-ansi-logger": "3.
|
|
12
|
+
"node-ansi-logger": "3.2.0",
|
|
13
13
|
"node-persist-manager": "2.0.0"
|
|
14
14
|
},
|
|
15
15
|
"engines": {
|
|
@@ -21,13 +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-
|
|
24
|
+
"version": "3.2.0",
|
|
25
|
+
"resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.2.0.tgz",
|
|
26
|
+
"integrity": "sha512-HvKsTZpMSrEkO2x2egSvTpjgWkVpYO0xsXNxmCG+7vi0Ohs5yy9EdTKbTPYbNwzXY70g7nqsE10yE+Tsw5MA8w==",
|
|
27
27
|
"hasShrinkwrap": true,
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"engines": {
|
|
30
|
-
"node": ">=
|
|
30
|
+
"node": ">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
31
31
|
},
|
|
32
32
|
"funding": {
|
|
33
33
|
"type": "buymeacoffee",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge-webhooks",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Matterbridge webhooks plugin",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "dist/module.js",
|
|
10
10
|
"types": "dist/module.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/module.js",
|
|
14
|
+
"types": "./dist/module.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
11
17
|
"repository": {
|
|
12
18
|
"type": "git",
|
|
13
19
|
"url": "git+https://github.com/Luligu/matterbridge-webhooks.git"
|
|
@@ -43,7 +49,10 @@
|
|
|
43
49
|
"smartthings",
|
|
44
50
|
"ewelink",
|
|
45
51
|
"webhooks",
|
|
46
|
-
"hooks"
|
|
52
|
+
"hooks",
|
|
53
|
+
"childbridge",
|
|
54
|
+
"hass",
|
|
55
|
+
"hassio"
|
|
47
56
|
],
|
|
48
57
|
"engines": {
|
|
49
58
|
"node": ">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0"
|
|
@@ -57,7 +66,7 @@
|
|
|
57
66
|
"*.schema.json"
|
|
58
67
|
],
|
|
59
68
|
"dependencies": {
|
|
60
|
-
"node-ansi-logger": "3.
|
|
69
|
+
"node-ansi-logger": "3.2.0",
|
|
61
70
|
"node-persist-manager": "2.0.0"
|
|
62
71
|
}
|
|
63
72
|
}
|
package/dist/fetch.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type JsonPrimitive = string | number | boolean | null;
|
|
2
|
-
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
3
|
-
interface JsonObject {
|
|
4
|
-
[key: string]: JsonValue;
|
|
5
|
-
}
|
|
6
|
-
interface JsonArray extends Array<JsonValue> {
|
|
7
|
-
}
|
|
8
|
-
export declare function fetch<T>(url: string, method?: 'POST' | 'GET', data?: Record<string, JsonValue>, timeout?: number): Promise<T>;
|
|
9
|
-
export {};
|
package/dist/module.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { CommandHandlerData, MatterbridgeDynamicPlatform, PlatformConfig, PlatformMatterbridge } from 'matterbridge';
|
|
2
|
-
import { AnsiLogger } from 'matterbridge/logger';
|
|
3
|
-
export interface WebhookConfig {
|
|
4
|
-
method: 'POST' | 'GET';
|
|
5
|
-
httpUrl: string;
|
|
6
|
-
test: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface OutletConfig {
|
|
9
|
-
onUrl: string;
|
|
10
|
-
offUrl: string;
|
|
11
|
-
}
|
|
12
|
-
export interface LightConfig {
|
|
13
|
-
minMireds: number;
|
|
14
|
-
maxMireds: number;
|
|
15
|
-
onUrl: string;
|
|
16
|
-
offUrl: string;
|
|
17
|
-
brightnessUrl: string;
|
|
18
|
-
colorTempUrl: string;
|
|
19
|
-
rgbUrl: string;
|
|
20
|
-
}
|
|
21
|
-
export type WebhooksPlatformConfig = PlatformConfig & {
|
|
22
|
-
whiteList: string[];
|
|
23
|
-
blackList: string[];
|
|
24
|
-
deviceType: 'Outlet' | 'Switch' | 'Light';
|
|
25
|
-
webhooks: Record<string, WebhookConfig>;
|
|
26
|
-
outlets: Record<string, OutletConfig>;
|
|
27
|
-
lights: Record<string, LightConfig>;
|
|
28
|
-
};
|
|
29
|
-
export default function initializePlugin(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: WebhooksPlatformConfig): WebhooksPlatform;
|
|
30
|
-
export declare class WebhooksPlatform extends MatterbridgeDynamicPlatform {
|
|
31
|
-
config: WebhooksPlatformConfig;
|
|
32
|
-
constructor(matterbridge: PlatformMatterbridge, log: AnsiLogger, config: WebhooksPlatformConfig);
|
|
33
|
-
onStart(reason?: string): Promise<void>;
|
|
34
|
-
onConfigure(): Promise<void>;
|
|
35
|
-
onAction(action: string, value?: string, id?: string, formData?: PlatformConfig): Promise<void>;
|
|
36
|
-
onShutdown(reason?: string): Promise<void>;
|
|
37
|
-
parseUrl(deviceType: string, deviceName: string, command: string, url: string, data: CommandHandlerData): Promise<{
|
|
38
|
-
method: 'POST' | 'GET';
|
|
39
|
-
url: string;
|
|
40
|
-
}>;
|
|
41
|
-
private roundTo;
|
|
42
|
-
}
|