matterbridge 2.1.0-dev.8 → 2.1.0-dev.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.
package/CHANGELOG.md CHANGED
@@ -21,7 +21,7 @@ For this reason there is no compatibility for old versions of the plugins.
21
21
  You need to update all plugins you use and Matterbridge in the same moment.
22
22
  I suggest to first update all plugins without restarting and then to update Matterbridge so when it restarts, all versions will be the latest.
23
23
 
24
- ## [2.1.0.dev.8] - 2025-01-31
24
+ ## [2.1.0.dev.9] - 2025-01-31
25
25
 
26
26
  ### Added
27
27
 
@@ -7,7 +7,7 @@ import path from 'path';
7
7
  import { randomBytes } from 'crypto';
8
8
  import { NodeStorageManager } from './storage/export.js';
9
9
  import { AnsiLogger, UNDERLINE, UNDERLINEOFF, YELLOW, db, debugStringify, BRIGHT, RESET, er, nf, rs, wr, RED, GREEN, zb, CYAN, nt } from './logger/export.js';
10
- import { logInterfaces, wait, waiter, copyDirectory, getParameter, getIntParameter, hasParameter } from './utils/utils.js';
10
+ import { logInterfaces, copyDirectory, getParameter, getIntParameter, hasParameter } from './utils/utils.js';
11
11
  import { PluginManager } from './pluginManager.js';
12
12
  import { DeviceManager } from './deviceManager.js';
13
13
  import { MatterbridgeEndpoint } from './matterbridgeEndpoint.js';
@@ -140,10 +140,6 @@ export class Matterbridge extends EventEmitter {
140
140
  }
141
141
  async destroyInstance() {
142
142
  await this.cleanup('destroying instance...', false);
143
- await waiter('destroying instance...', () => {
144
- return this.initialized === false && this.execRunningCount <= 0 ? true : false;
145
- }, false, 60000, 100, false);
146
- await wait(1000, 'Wait for the global node_modules and matterbridge version', false);
147
143
  }
148
144
  async initialize() {
149
145
  if (hasParameter('service'))
@@ -149,7 +149,7 @@ export class MatterbridgePlatform {
149
149
  continue;
150
150
  }
151
151
  if (endpointMap.has(device.uniqueId) && endpointMap.get(device.uniqueId) !== device.maybeNumber) {
152
- this.log.warn(`Endpoint number for device ${CYAN}${device.uniqueId}${wr} changed from ${CYAN}${endpointMap.get(device.uniqueId)}${wr} to ${CYAN}${device.maybeNumber}${wr}`);
152
+ this.log.warn(`Endpoint number for device ${CYAN}${device.deviceName}${wr} changed from ${CYAN}${endpointMap.get(device.uniqueId)}${wr} to ${CYAN}${device.maybeNumber}${wr}`);
153
153
  endpointMap.set(device.uniqueId, device.maybeNumber);
154
154
  }
155
155
  if (!endpointMap.has(device.uniqueId)) {
@@ -161,7 +161,7 @@ export class MatterbridgePlatform {
161
161
  if (!childId || !child.maybeNumber)
162
162
  continue;
163
163
  if (endpointMap.has(device.uniqueId + separator + childId) && endpointMap.get(device.uniqueId + separator + childId) !== child.maybeNumber) {
164
- this.log.warn(`Child endpoint number for device ${CYAN}${device.uniqueId}${wr}.${CYAN}${childId}${wr} changed from ${CYAN}${endpointMap.get(device.uniqueId + separator + childId)}${wr} to ${CYAN}${child.maybeNumber}${wr}`);
164
+ this.log.warn(`Child endpoint number for device ${CYAN}${device.deviceName}${wr}.${CYAN}${childId}${wr} changed from ${CYAN}${endpointMap.get(device.uniqueId + separator + childId)}${wr} to ${CYAN}${child.maybeNumber}${wr}`);
165
165
  endpointMap.set(device.uniqueId + separator + childId, child.maybeNumber);
166
166
  }
167
167
  if (!endpointMap.has(device.uniqueId + separator + childId)) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "2.1.0-dev.8",
3
+ "version": "2.1.0-dev.9",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "matterbridge",
9
- "version": "2.1.0-dev.8",
9
+ "version": "2.1.0-dev.9",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@matter/main": "0.12.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge",
3
- "version": "2.1.0-dev.8",
3
+ "version": "2.1.0-dev.9",
4
4
  "description": "Matterbridge plugin manager for Matter",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",