matterbridge 2.1.0-dev.6 → 2.1.0-dev.8
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 +1 -1
- package/dist/frontend.js +7 -1
- package/dist/index.js +1 -0
- package/dist/matter/types.js +1 -0
- package/dist/matterbridge.js +0 -9
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
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.
|
|
24
|
+
## [2.1.0.dev.8] - 2025-01-31
|
|
25
25
|
|
|
26
26
|
### Added
|
|
27
27
|
|
package/dist/frontend.js
CHANGED
|
@@ -226,7 +226,13 @@ export class Frontend {
|
|
|
226
226
|
});
|
|
227
227
|
this.expressApp.get('/api/advertise', express.json(), async (req, res) => {
|
|
228
228
|
const pairingCodes = await this.matterbridge.advertiseServerNode(this.matterbridge.serverNode);
|
|
229
|
-
|
|
229
|
+
if (pairingCodes) {
|
|
230
|
+
const { manualPairingCode, qrPairingCode } = pairingCodes;
|
|
231
|
+
res.json({ manualPairingCode, qrPairingCode: 'https://project-chip.github.io/connectedhomeip/qrcode.html?data=' + qrPairingCode });
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
res.status(500).json({ error: 'Failed to generate pairing codes' });
|
|
235
|
+
}
|
|
230
236
|
});
|
|
231
237
|
this.expressApp.get('/api/settings', express.json(), async (req, res) => {
|
|
232
238
|
this.log.debug('The frontend sent /api/settings');
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export * from '@matter/main/types';
|
|
|
5
5
|
export * from './matterbridge.js';
|
|
6
6
|
export * from './matterbridgeTypes.js';
|
|
7
7
|
export * from './matterbridgeEndpoint.js';
|
|
8
|
+
export * from './matterbridgeEndpointHelpers.js';
|
|
8
9
|
export * from './matterbridgeBehaviors.js';
|
|
9
10
|
export * from './matterbridgeDeviceTypes.js';
|
|
10
11
|
export * from './matterbridgePlatform.js';
|
package/dist/matter/types.js
CHANGED
package/dist/matterbridge.js
CHANGED
|
@@ -1021,15 +1021,6 @@ export class Matterbridge extends EventEmitter {
|
|
|
1021
1021
|
catch (error) {
|
|
1022
1022
|
}
|
|
1023
1023
|
if (this.nodeStorage && this.nodeContext) {
|
|
1024
|
-
this.log.info('Saving registered devices...');
|
|
1025
|
-
const serializedRegisteredDevices = [];
|
|
1026
|
-
this.devices.forEach(async (device) => {
|
|
1027
|
-
const serializedMatterbridgeDevice = MatterbridgeEndpoint.serialize(device);
|
|
1028
|
-
if (serializedMatterbridgeDevice)
|
|
1029
|
-
serializedRegisteredDevices.push(serializedMatterbridgeDevice);
|
|
1030
|
-
});
|
|
1031
|
-
await this.nodeContext.set('devices', serializedRegisteredDevices);
|
|
1032
|
-
this.log.info(`Saved registered devices (${serializedRegisteredDevices?.length})`);
|
|
1033
1024
|
this.log.debug(`Closing node storage context for ${plg}Matterbridge${db}...`);
|
|
1034
1025
|
await this.nodeContext.close();
|
|
1035
1026
|
this.nodeContext = undefined;
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matterbridge",
|
|
3
|
-
"version": "2.1.0-dev.
|
|
3
|
+
"version": "2.1.0-dev.8",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "matterbridge",
|
|
9
|
-
"version": "2.1.0-dev.
|
|
9
|
+
"version": "2.1.0-dev.8",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@matter/main": "0.12.1",
|