matterbridge-eve-motion 1.0.7 → 1.0.9

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.
@@ -0,0 +1,81 @@
1
+ /* eslint-disable no-console */
2
+
3
+ /*
4
+ Add the following scripts to package.json file:
5
+ "prepublishOnly": "npm run lint && npm run test && npm run cleanBuild",
6
+ "npmPublish": "npm publish",
7
+ "gitPublish": "npm run lint && npm run test && npm run cleanBuild && node create-release.js",
8
+ "preversion": "npm run lint && npm run test && npm run cleanBuild",
9
+ "postversion": "git push && git push --tags && node create-release.js",
10
+ "version:patch": "npm version patch",
11
+ "version:minor": "npm version minor",
12
+ "version:major": "npm version major",
13
+ */
14
+
15
+ import { execSync } from 'child_process';
16
+ import { readFileSync, writeFileSync, unlinkSync } from 'fs';
17
+ import path from 'path';
18
+ import readline from 'readline';
19
+
20
+ // Get the latest tag
21
+ let tag = execSync('git describe --tags --abbrev=0').toString().trim();
22
+ if (tag.startsWith('v')) {
23
+ tag = tag.substring(1);
24
+ }
25
+
26
+ // Read the changelog file
27
+ const changelogPath = path.join(process.cwd(), 'CHANGELOG.md');
28
+ const changelog = readFileSync(changelogPath, 'utf8');
29
+
30
+ // Extract the relevant section from the changelog
31
+ const changelogSection = extractChangelogSection(changelog, tag);
32
+
33
+ const title = `Release ${tag}`;
34
+ const notes = `Release notes for version ${tag}\n\n## [${tag}] ${changelogSection}`;
35
+
36
+ // Log the release details
37
+ console.log(`Creating release ${tag} with the following details:\nTitle:\n${title}\nNotes:\n${notes}`);
38
+
39
+ // Write the release notes to a temporary file
40
+ const notesFilePath = path.join(process.cwd(), 'release-notes.md');
41
+ writeFileSync(notesFilePath, notes);
42
+
43
+ // Wait for user input before proceeding
44
+ await pressAnyKey();
45
+
46
+ // Create the release using the temporary file
47
+ execSync(`gh release create ${tag} -t "${title}" -F "${notesFilePath}"`, { stdio: 'inherit' });
48
+
49
+ // Clean up the temporary file
50
+ unlinkSync(notesFilePath);
51
+
52
+ /**
53
+ * Extracts the relevant section from the changelog for the given tag.
54
+ * Assumes that each version section in the changelog starts with a heading like "## [tag]".
55
+ * @param {string} changelog - The content of the changelog file.
56
+ * @param {string} tag - The tag for which to extract the changelog section.
57
+ * @returns {string} - The extracted changelog section.
58
+ */
59
+ function extractChangelogSection(changelog, tag) {
60
+ const regex = new RegExp(`## \\[${tag}\\](.*?)(## \\[|$)`, 's');
61
+ const match = changelog.match(regex);
62
+ return match ? match[1].trim() : 'No changelog entry found for this version.';
63
+ }
64
+
65
+ /**
66
+ * Waits for the user to press any key.
67
+ * @returns {Promise<void>}
68
+ */
69
+ function pressAnyKey() {
70
+ return new Promise((resolve) => {
71
+ const rl = readline.createInterface({
72
+ input: process.stdin,
73
+ output: process.stdout,
74
+ });
75
+
76
+ rl.question('Press any key to continue...', () => {
77
+ rl.close();
78
+ resolve();
79
+ });
80
+ });
81
+ }
@@ -1,5 +1,5 @@
1
1
  import { PlatformConfig, Matterbridge, MatterbridgeDevice, MatterbridgeAccessoryPlatform } from 'matterbridge';
2
- import { MatterHistory } from 'matterbridge/history';
2
+ import { MatterHistory } from 'matter-history';
3
3
  import { AnsiLogger } from 'matterbridge/logger';
4
4
  export declare class EveMotionPlatform extends MatterbridgeAccessoryPlatform {
5
5
  motion: MatterbridgeDevice | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,6BAA6B,EAAe,MAAM,cAAc,CAAC;AACnL,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,qBAAa,iBAAkB,SAAQ,6BAA6B;IAClE,MAAM,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACvC,OAAO,EAAE,aAAa,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;gBAEzB,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc;IAKhE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM;IA4BvB,WAAW;IAqBX,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM;CAM1C"}
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,6BAA6B,EAAe,MAAM,cAAc,CAAC;AACnL,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,qBAAa,iBAAkB,SAAQ,6BAA6B;IAClE,MAAM,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACvC,OAAO,EAAE,aAAa,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;gBAEzB,YAAY,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc;IAahE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM;IA4BvB,WAAW;IAqBX,UAAU,CAAC,MAAM,CAAC,EAAE,MAAM;CAM1C"}
package/dist/platform.js CHANGED
@@ -1,11 +1,15 @@
1
1
  import { DeviceTypes, IlluminanceMeasurement, OccupancySensing, MatterbridgeDevice, MatterbridgeAccessoryPlatform, powerSource } from 'matterbridge';
2
- import { MatterHistory } from 'matterbridge/history';
2
+ import { MatterHistory } from 'matter-history';
3
3
  export class EveMotionPlatform extends MatterbridgeAccessoryPlatform {
4
4
  motion;
5
5
  history;
6
6
  interval;
7
7
  constructor(matterbridge, log, config) {
8
8
  super(matterbridge, log, config);
9
+ // Verify that Matterbridge is the correct version
10
+ if (this.verifyMatterbridgeVersion === undefined || typeof this.verifyMatterbridgeVersion !== 'function' || !this.verifyMatterbridgeVersion('1.6.0')) {
11
+ throw new Error(`This plugin requires Matterbridge version >= "1.6.0". Please update Matterbridge from ${this.matterbridge.matterbridgeVersion} to the latest version in the frontend."`);
12
+ }
9
13
  this.log.info('Initializing platform:', this.config.name);
10
14
  }
11
15
  async onStart(reason) {
@@ -1 +1 @@
1
- {"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAE,gBAAgB,EAAgC,kBAAkB,EAAE,6BAA6B,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACnL,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,MAAM,OAAO,iBAAkB,SAAQ,6BAA6B;IAClE,MAAM,CAAiC;IACvC,OAAO,CAA4B;IACnC,QAAQ,CAA6B;IAErC,YAAY,YAA0B,EAAE,GAAe,EAAE,MAAsB;QAC7E,KAAK,CAAC,YAAY,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,wBAAwB,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC5D,CAAC;IAEQ,KAAK,CAAC,OAAO,CAAC,MAAe;QACpC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,6BAA6B,EAAE,MAAM,IAAI,MAAM,CAAC,CAAC;QAE/D,IAAI,CAAC,OAAO,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,qBAAqB,EAAE,CAAC,CAAC;QAEhH,IAAI,CAAC,MAAM,GAAG,IAAI,kBAAkB,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QACnE,IAAI,CAAC,MAAM,CAAC,kCAAkC,EAAE,CAAC;QACjD,IAAI,CAAC,MAAM,CAAC,0CAA0C,CAAC,YAAY,EAAE,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AAI,CAAC,GAAG,CAAC,IAAI,CAAC,iBAAiB,SAAS,CAAC,QAAQ,eAAe,GAAG,EAAE,CAAC,CAAC;QACzE,CAAC,EACD,EAAE,GAAG,IAAI,GAAG,GAAG,CAChB,CAAC;IACJ,CAAC;IAEQ,KAAK,CAAC,UAAU,CAAC,MAAe;QACvC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,gCAAgC,EAAE,MAAM,IAAI,MAAM,CAAC,CAAC;QAClE,MAAM,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC;QAC5B,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7B,IAAI,IAAI,CAAC,MAAM,CAAC,oBAAoB,KAAK,IAAI;YAAE,MAAM,IAAI,CAAC,oBAAoB,EAAE,CAAC;IACnF,CAAC;CACF"}
@@ -1,15 +1 @@
1
- /* eslint-disable no-console */
2
- import { exec } from 'child_process';
3
-
4
- const command = process.platform === 'win32' ? 'npm link matterbridge' : 'sudo npm link matterbridge';
5
-
6
- exec(command, (error, stdout, stderr) => {
7
- if (error) {
8
- console.error(`exec error: ${error}`);
9
- return;
10
- }
11
- console.log(`stdout: ${stdout}`);
12
- if (stderr) {
13
- console.error(`stderr: ${stderr}`);
14
- }
15
- });
1
+ // Nothing to do in production, just a script to link the matterbridge package in development
@@ -0,0 +1,100 @@
1
+ {
2
+ "name": "matterbridge-eve-motion",
3
+ "version": "1.0.9",
4
+ "lockfileVersion": 3,
5
+ "requires": true,
6
+ "packages": {
7
+ "": {
8
+ "name": "matterbridge-eve-motion",
9
+ "version": "1.0.9",
10
+ "hasInstallScript": true,
11
+ "license": "MIT",
12
+ "dependencies": {
13
+ "matter-history": "1.1.17-dev.4",
14
+ "node-ansi-logger": "3.0.0",
15
+ "node-persist-manager": "1.0.8"
16
+ },
17
+ "engines": {
18
+ "node": ">=18.0.0"
19
+ }
20
+ },
21
+ "node_modules/matter-history": {
22
+ "version": "1.1.17-dev.4",
23
+ "resolved": "https://registry.npmjs.org/matter-history/-/matter-history-1.1.17-dev.4.tgz",
24
+ "integrity": "sha512-dlBCJOhbBqVFzEhZbMedDxqowNdUTX3wYsx2j0y4jRoL5C+rem+puyjOA3RwmqQzyR+f7EiFCAHBhjuIrzaiuQ==",
25
+ "hasShrinkwrap": true,
26
+ "license": "Apache-2.0",
27
+ "dependencies": {
28
+ "moment": "2.30.1",
29
+ "node-ansi-logger": "3.0.0"
30
+ },
31
+ "engines": {
32
+ "node": ">=18.0.0"
33
+ },
34
+ "funding": {
35
+ "type": "buymeacoffee",
36
+ "url": "https://www.buymeacoffee.com/luligugithub"
37
+ }
38
+ },
39
+ "node_modules/matter-history/node_modules/moment": {
40
+ "version": "2.30.1",
41
+ "resolved": "https://registry.npmjs.org/moment/-/moment-2.30.1.tgz",
42
+ "integrity": "sha512-uEmtNhbDOrWPFS+hdjFCBfy9f2YoyzRpwcl+DqpC6taX21FzsTLQVbMV/W7PzNSX6x/bhC1zA3c2UQ5NzH6how==",
43
+ "license": "MIT",
44
+ "engines": {
45
+ "node": "*"
46
+ }
47
+ },
48
+ "node_modules/matter-history/node_modules/node-ansi-logger": {
49
+ "version": "3.0.0",
50
+ "resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.0.0.tgz",
51
+ "integrity": "sha512-OkXtONak4f+mH1ECBP7xoM2sD4ZiFKyKVb/QrMCMwX8k/W8ZuDA0WgskD9PJMZqgaUF1wUQA39yVdpGH/xUsuw==",
52
+ "license": "MIT",
53
+ "engines": {
54
+ "node": "18.x || 20.x || 22.x"
55
+ },
56
+ "funding": {
57
+ "type": "buymeacoffee",
58
+ "url": "https://www.buymeacoffee.com/luligugithub"
59
+ }
60
+ },
61
+ "node_modules/node-ansi-logger": {
62
+ "version": "3.0.0",
63
+ "resolved": "https://registry.npmjs.org/node-ansi-logger/-/node-ansi-logger-3.0.0.tgz",
64
+ "integrity": "sha512-OkXtONak4f+mH1ECBP7xoM2sD4ZiFKyKVb/QrMCMwX8k/W8ZuDA0WgskD9PJMZqgaUF1wUQA39yVdpGH/xUsuw==",
65
+ "license": "MIT",
66
+ "engines": {
67
+ "node": "18.x || 20.x || 22.x"
68
+ },
69
+ "funding": {
70
+ "type": "buymeacoffee",
71
+ "url": "https://www.buymeacoffee.com/luligugithub"
72
+ }
73
+ },
74
+ "node_modules/node-persist": {
75
+ "version": "4.0.3",
76
+ "resolved": "https://registry.npmjs.org/node-persist/-/node-persist-4.0.3.tgz",
77
+ "integrity": "sha512-0gDy86TNShzfbpUKFbH8KJFjoovuUgVh/FqL4jrJWYz0cET76Uohl118utG/Ft6wl4sHOPXdRSY7eXH5kVY06w==",
78
+ "license": "MIT",
79
+ "engines": {
80
+ "node": ">=10.12.0"
81
+ }
82
+ },
83
+ "node_modules/node-persist-manager": {
84
+ "version": "1.0.8",
85
+ "resolved": "https://registry.npmjs.org/node-persist-manager/-/node-persist-manager-1.0.8.tgz",
86
+ "integrity": "sha512-J0wjdxOloD6aw4s2kljbV3nvHfguWph8LnfmTL+6MZiBsh46wjaIaZd/cHU0HWonrNfktCv7Zuvn0sEH0f2s+A==",
87
+ "license": "MIT",
88
+ "dependencies": {
89
+ "node-persist": "^4.0.2"
90
+ },
91
+ "engines": {
92
+ "node": ">=18.0.0"
93
+ },
94
+ "funding": {
95
+ "type": "buymeacoffee",
96
+ "url": "https://www.buymeacoffee.com/luligugithub"
97
+ }
98
+ }
99
+ }
100
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-eve-motion",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Matterbridge eve motion with history",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "MIT",
@@ -30,53 +30,39 @@
30
30
  "scripts": {
31
31
  "build": "tsc",
32
32
  "watch": "tsc --watch",
33
+ "start": "matterbridge",
33
34
  "start:bridge": "matterbridge -bridge",
34
35
  "start:childbridge": "matterbridge -childbridge",
35
- "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --passWithNoTests",
36
- "test:verbose": "node --experimental-vm-modules node_modules/jest/bin/jest.js --passWithNoTests --verbose",
37
- "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --passWithNoTests --watch",
38
- "test:coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --passWithNoTests --coverage",
36
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
37
+ "test:verbose": "node --experimental-vm-modules node_modules/jest/bin/jest.js --verbose",
38
+ "test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
39
+ "test:coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
39
40
  "lint": "eslint --max-warnings=0 .",
40
41
  "lint:fix": "eslint --fix --max-warnings=0 .",
41
42
  "format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
42
43
  "format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
43
- "clean": "rimraf tsconfig.tsbuildinfo ./dist",
44
+ "clean": "npx rimraf tsconfig.tsbuildinfo ./dist",
44
45
  "cleanBuild": "npm run clean && tsc",
45
- "deepClean": "rimraf tsconfig.tsbuildinfo package-lock.json ./dist ./node_modulesI",
46
- "deepCleanRebuild": "npm run deepClean && npm install && npm run build",
47
- "prepublishOnly": "npm run lint && npm run cleanBuild",
46
+ "deepClean": "npx rimraf tsconfig.tsbuildinfo package-lock.json npm-shrinkwrap.json ./dist ./node_modules",
47
+ "deepCleanBuild": "npm run deepClean && npm install && npm link matterbridge && npm run build",
48
48
  "checkDependencies": "npx npm-check-updates",
49
- "updateDependencies": "npx npm-check-updates -u && npm install & npm run cleanBuild",
49
+ "updateDependencies": "npx npm-check-updates -u && npm install && npm link matterbridge && npm run build",
50
+ "prepublishOnly": "npm pkg delete devDependencies && npm install --omit=dev && npm shrinkwrap",
51
+ "npmPack": "npm run cleanBuild && copy package.json package.log && npm pkg delete devDependencies && npm install --omit=dev && npm shrinkwrap && npm pack && copy package.log package.json && npm run deepCleanBuild",
50
52
  "matterbridge:add": "matterbridge -add .\\",
51
53
  "matterbridge:remove": "matterbridge -remove .\\",
52
54
  "matterbridge:enable": "matterbridge -enable .\\",
53
55
  "matterbridge:disable": "matterbridge -disable .\\",
54
56
  "matterbridge:list": "matterbridge -list",
55
- "dev:link": "npm link --save-dev matterbridge",
56
- "dev:install": "npm install --save-dev matterbridge",
57
- "dev:uninstall": "npm uninstall matterbridge && npm unlink matterbridge",
57
+ "dev:link": "npm link matterbridge",
58
+ "dev:unlink": "npm unlink matterbridge",
59
+ "dev:install": "npm install --no-save matterbridge",
60
+ "dev:uninstall": "npm uninstall matterbridge",
58
61
  "install": "node link-matterbridge-script.js"
59
62
  },
60
- "overrides": {
61
- "eslint": "latest"
62
- },
63
- "devDependencies": {
64
- "@eslint/js": "9.9.0",
65
- "@types/eslint__js": "8.42.3",
66
- "@types/jest": "29.5.12",
67
- "@types/node": "22.4.2",
68
- "eslint-config-prettier": "9.1.0",
69
- "eslint-plugin-jest": "28.8.0",
70
- "eslint-plugin-prettier": "5.2.1",
71
- "jest": "29.7.0",
72
- "prettier": "3.3.3",
73
- "rimraf": "6.0.1",
74
- "ts-jest": "29.2.4",
75
- "typescript": "5.5.4",
76
- "typescript-eslint": "8.2.0"
77
- },
78
63
  "dependencies": {
64
+ "matter-history": "1.1.17-dev.4",
79
65
  "node-ansi-logger": "3.0.0",
80
66
  "node-persist-manager": "1.0.8"
81
67
  }
82
- }
68
+ }