@matterbridge/core 3.8.0-dev-20260526-20ee3dc → 3.8.0-dev-20260527-b4148f4
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/dist/clusters/closure-control.js +0 -2
- package/dist/clusters/closure-dimension.js +0 -2
- package/dist/clusters/soil-measurement.js +0 -2
- package/dist/jestutils/export.d.ts +3 -3
- package/dist/jestutils/export.js +3 -3
- package/dist/jestutils/jestMatterTest.js +4 -3
- package/dist/jestutils/jestMatterbridgeTest.js +1 -1
- package/dist/matterNode.js +2 -0
- package/package.json +5 -5
- /package/dist/jestutils/{jestFlushAsync.d.ts → flushAsync.d.ts} +0 -0
- /package/dist/jestutils/{jestFlushAsync.js → flushAsync.js} +0 -0
- /package/dist/jestutils/{jestLogAlive.d.ts → logKeepAlives.d.ts} +0 -0
- /package/dist/jestutils/{jestLogAlive.js → logKeepAlives.js} +0 -0
- /package/dist/jestutils/{jestMatterRequest.d.ts → matterRequest.d.ts} +0 -0
- /package/dist/jestutils/{jestMatterRequest.js → matterRequest.js} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { inspect } from 'node:util';
|
|
2
1
|
import { AttributeElement, ClusterElement, ClusterModel, CommandElement, DatatypeElement, EventElement, FieldElement, Matter, MatterDefinition } from '@matter/main/model';
|
|
3
2
|
import { ClusterType } from '@matter/types/cluster';
|
|
4
3
|
export const ClosureControlDefinition = ClusterElement({
|
|
@@ -13,5 +12,4 @@ if (!MatterDefinition.children.some((child) => child.id === ClosureControlDefini
|
|
|
13
12
|
if (Matter.clusters(ClosureControlModel.id) === undefined) {
|
|
14
13
|
Matter.children.push(ClosureControlModel);
|
|
15
14
|
}
|
|
16
|
-
console.log('ClosureControl cluster:', inspect(ClusterType(ClosureControlModel), { depth: null, colors: true }));
|
|
17
15
|
export const ClosureControl = ClusterType(ClosureControlModel);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { inspect } from 'node:util';
|
|
2
1
|
import { AttributeElement, ClusterElement, ClusterModel, CommandElement, DatatypeElement, FieldElement, Matter, MatterDefinition } from '@matter/main/model';
|
|
3
2
|
import { ClusterType } from '@matter/types/cluster';
|
|
4
3
|
export const ClosureDimensionDefinition = ClusterElement({
|
|
@@ -13,5 +12,4 @@ if (!MatterDefinition.children.some((child) => child.id === ClosureDimensionDefi
|
|
|
13
12
|
if (Matter.clusters(ClosureDimensionModel.id) === undefined) {
|
|
14
13
|
Matter.children.push(ClosureDimensionModel);
|
|
15
14
|
}
|
|
16
|
-
console.log('ClosureDimension cluster:', inspect(ClusterType(ClosureDimensionModel), { depth: null, colors: true }));
|
|
17
15
|
export const ClosureDimension = ClusterType(ClosureDimensionModel);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { inspect } from 'node:util';
|
|
2
1
|
import { AttributeElement, ClusterElement, ClusterModel, Matter, MatterDefinition } from '@matter/main/model';
|
|
3
2
|
import { ClusterType } from '@matter/types/cluster';
|
|
4
3
|
export const SoilMeasurementDefinition = ClusterElement({
|
|
@@ -27,5 +26,4 @@ if (!MatterDefinition.children.some((child) => child.id === SoilMeasurementDefin
|
|
|
27
26
|
if (Matter.clusters(SoilMeasurementModel.id) === undefined) {
|
|
28
27
|
Matter.children.push(SoilMeasurementModel);
|
|
29
28
|
}
|
|
30
|
-
console.log('SoilMeasurement cluster:', inspect(ClusterType(SoilMeasurementModel), { depth: null, colors: true }));
|
|
31
29
|
export const SoilMeasurement = ClusterType(SoilMeasurementModel);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
export * from './flushAsync.js';
|
|
1
2
|
export * from './jestBroadcastServerSpy.js';
|
|
2
3
|
export * from './jestDeviceManagerSpy.js';
|
|
3
|
-
export * from './jestFlushAsync.js';
|
|
4
4
|
export * from './jestFrontendSpy.js';
|
|
5
|
-
export * from './jestLogAlive.js';
|
|
6
5
|
export * from './jestMatterbridgeEndpointSpy.js';
|
|
7
6
|
export * from './jestMatterbridgePlatformSpy.js';
|
|
8
7
|
export * from './jestMatterbridgeSpy.js';
|
|
9
8
|
export * from './jestMatterbridgeTest.js';
|
|
10
|
-
export * from './jestMatterRequest.js';
|
|
11
9
|
export * from './jestMatterTest.js';
|
|
12
10
|
export * from './jestPluginManagerSpy.js';
|
|
13
11
|
export * from './jestSetupTest.js';
|
|
12
|
+
export * from './logKeepAlives.js';
|
|
13
|
+
export * from './matterRequest.js';
|
package/dist/jestutils/export.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
export * from './flushAsync.js';
|
|
1
2
|
export * from './jestBroadcastServerSpy.js';
|
|
2
3
|
export * from './jestDeviceManagerSpy.js';
|
|
3
|
-
export * from './jestFlushAsync.js';
|
|
4
4
|
export * from './jestFrontendSpy.js';
|
|
5
|
-
export * from './jestLogAlive.js';
|
|
6
5
|
export * from './jestMatterbridgeEndpointSpy.js';
|
|
7
6
|
export * from './jestMatterbridgePlatformSpy.js';
|
|
8
7
|
export * from './jestMatterbridgeSpy.js';
|
|
9
8
|
export * from './jestMatterbridgeTest.js';
|
|
10
|
-
export * from './jestMatterRequest.js';
|
|
11
9
|
export * from './jestMatterTest.js';
|
|
12
10
|
export * from './jestPluginManagerSpy.js';
|
|
13
11
|
export * from './jestSetupTest.js';
|
|
12
|
+
export * from './logKeepAlives.js';
|
|
13
|
+
export * from './matterRequest.js';
|
|
@@ -7,8 +7,7 @@ import { AggregatorEndpoint } from '@matter/node/endpoints';
|
|
|
7
7
|
import { DeviceTypeId, VendorId } from '@matter/types/datatype';
|
|
8
8
|
import { MATTER_STORAGE_DIR } from '@matterbridge/types';
|
|
9
9
|
import { er, rs } from 'node-ansi-logger';
|
|
10
|
-
import {
|
|
11
|
-
import { flushAsync } from './jestFlushAsync.js';
|
|
10
|
+
import { flushAsync } from './flushAsync.js';
|
|
12
11
|
import { HOMEDIR, NAME } from './jestSetupTest.js';
|
|
13
12
|
export let environment;
|
|
14
13
|
export let server;
|
|
@@ -129,7 +128,7 @@ export async function closeServerNodeStores(targetServer) {
|
|
|
129
128
|
targetServer = server;
|
|
130
129
|
await targetServer?.env.get(ServerNodeStore)?.endpointStores.close();
|
|
131
130
|
}
|
|
132
|
-
export async function createServerNode(port, deviceType =
|
|
131
|
+
export async function createServerNode(port, deviceType = DeviceTypeId(0x000e), ticks = 1, microTurns = 1, pause = 10) {
|
|
133
132
|
const { randomBytes } = await import('node:crypto');
|
|
134
133
|
const random = randomBytes(8).toString('hex');
|
|
135
134
|
server = await ServerNode.create({
|
|
@@ -157,6 +156,8 @@ export async function createServerNode(port, deviceType = bridge.code, ticks = 1
|
|
|
157
156
|
listeningAddressIpv4: undefined,
|
|
158
157
|
listeningAddressIpv6: undefined,
|
|
159
158
|
port,
|
|
159
|
+
tcp: true,
|
|
160
|
+
transportPreference: 'udp',
|
|
160
161
|
},
|
|
161
162
|
operationalCredentials: {
|
|
162
163
|
certification: undefined,
|
|
@@ -5,7 +5,7 @@ import { MATTER_STORAGE_DIR, NODE_STORAGE_DIR } from '@matterbridge/types';
|
|
|
5
5
|
import { rs, UNDERLINE, UNDERLINEOFF } from 'node-ansi-logger';
|
|
6
6
|
import { NodeStorageManager } from 'node-persist-manager';
|
|
7
7
|
import { Matterbridge } from '../matterbridge.js';
|
|
8
|
-
import { flushAsync } from './
|
|
8
|
+
import { flushAsync } from './flushAsync.js';
|
|
9
9
|
import { assertAllEndpointNumbersPersisted, createTestEnvironment, flushAllEndpointNumberPersistence } from './jestMatterTest.js';
|
|
10
10
|
import { HOMEDIR, loggerLogSpy, originalProcessArgv } from './jestSetupTest.js';
|
|
11
11
|
let server;
|
package/dist/matterNode.js
CHANGED
|
@@ -389,6 +389,8 @@ export class MatterNode extends EventEmitter {
|
|
|
389
389
|
listeningAddressIpv4: this.ipv4Address,
|
|
390
390
|
listeningAddressIpv6: this.ipv6Address,
|
|
391
391
|
port,
|
|
392
|
+
tcp: true,
|
|
393
|
+
transportPreference: 'udp',
|
|
392
394
|
},
|
|
393
395
|
operationalCredentials: {
|
|
394
396
|
certification: this.certification,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matterbridge/core",
|
|
3
|
-
"version": "3.8.0-dev-
|
|
3
|
+
"version": "3.8.0-dev-20260527-b4148f4",
|
|
4
4
|
"description": "Matterbridge core library",
|
|
5
5
|
"author": "https://github.com/Luligu",
|
|
6
6
|
"homepage": "https://matterbridge.io/",
|
|
@@ -130,10 +130,10 @@
|
|
|
130
130
|
],
|
|
131
131
|
"dependencies": {
|
|
132
132
|
"@matter/main": "0.17.0",
|
|
133
|
-
"@matterbridge/dgram": "3.8.0-dev-
|
|
134
|
-
"@matterbridge/thread": "3.8.0-dev-
|
|
135
|
-
"@matterbridge/types": "3.8.0-dev-
|
|
136
|
-
"@matterbridge/utils": "3.8.0-dev-
|
|
133
|
+
"@matterbridge/dgram": "3.8.0-dev-20260527-b4148f4",
|
|
134
|
+
"@matterbridge/thread": "3.8.0-dev-20260527-b4148f4",
|
|
135
|
+
"@matterbridge/types": "3.8.0-dev-20260527-b4148f4",
|
|
136
|
+
"@matterbridge/utils": "3.8.0-dev-20260527-b4148f4",
|
|
137
137
|
"escape-html": "1.0.3",
|
|
138
138
|
"express": "5.2.1",
|
|
139
139
|
"express-rate-limit": "8.5.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|