@project-chip/matter.js 0.16.0-alpha.0-20251020-3f6e46245 → 0.16.0-alpha.0-20251022-5a69ce65a

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.
@@ -3,7 +3,7 @@
3
3
  * Copyright 2022-2025 Matter.js Authors
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { Environment, ImplementationError, Logger, Minutes, Network } from "#general";
6
+ import { Environment, ImplementationError, Logger, Minutes } from "#general";
7
7
  import {
8
8
  CertificateAuthority,
9
9
  CommissionableDevice,
@@ -11,14 +11,12 @@ import {
11
11
  ControllerDiscovery,
12
12
  DiscoveryData,
13
13
  Fabric,
14
- MdnsClient,
15
14
  MdnsService,
16
15
  Scanner,
17
16
  } from "#protocol";
18
17
  import { DiscoveryCapabilitiesBitmap, NodeId, TypeFromPartialBitSchema } from "#types";
19
18
  import {
20
19
  CommissioningControllerOptions,
21
- configureNetwork as configureControllerNetwork,
22
20
  ControllerEnvironmentOptions,
23
21
  NodeCommissioningOptions,
24
22
  } from "./CommissioningController.js";
@@ -80,29 +78,17 @@ export class PaseCommissioner {
80
78
 
81
79
  const { certificateAuthorityConfig: rootCertificateData, fabricConfig: fabricConfig } = this.options;
82
80
 
83
- let mdnsClient: MdnsClient | undefined;
84
- let ipv4Disabled = false;
85
-
86
81
  try {
87
- const mdnsService = await this.environment.load(MdnsService);
88
- ipv4Disabled = !mdnsService.enableIpv4;
89
- mdnsClient = mdnsService.client;
82
+ await this.environment.load(MdnsService);
90
83
  } catch {
91
84
  logger.debug("No networking available, using only BLE");
92
85
  }
93
86
 
94
- const { scanners, netInterfaces } = await configureControllerNetwork({
95
- network: this.environment.get(Network),
96
- mdnsClient,
97
- ipv4Disabled,
98
- ...this.options,
99
- });
100
-
101
87
  return await MatterController.createAsPaseCommissioner({
88
+ id: "PaseCommissioner", // In Memory anyway
89
+ environment: this.environment,
102
90
  certificateAuthorityConfig: rootCertificateData,
103
91
  fabricConfig: fabricConfig,
104
- scanners,
105
- transports: netInterfaces,
106
92
  adminFabricLabel: this.options.fabricConfig.label,
107
93
  });
108
94
  }
package/src/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../../packages/tools/tsc/tsconfig.lib.json",
2
+ "extends": "../../tools/tsc/tsconfig.lib.json",
3
3
  "compilerOptions": {
4
4
  "types": [
5
5
  "@matter/tools",
@@ -29,4 +29,4 @@
29
29
  "path": "../../types/src"
30
30
  }
31
31
  ]
32
- }
32
+ }