Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @matter/main from 0.12.0-alpha.0-20241231-9ac20db97 to 0.12.0-alpha.0-20250101-22e7c1044 #281

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Bump @matter/main
Bumps [@matter/main](https://github.com/project-chip/matter.js) from 0.12.0-alpha.0-20241231-9ac20db97 to 0.12.0-alpha.0-20250101-22e7c1044.
- [Release notes](https://github.com/project-chip/matter.js/releases)
- [Changelog](https://github.com/project-chip/matter.js/blob/main/CHANGELOG.md)
- [Commits](project-chip/matter.js@v0.12.0-alpha.0-20241231-9ac20db97...v0.12.0-alpha.0-20250101-22e7c1044)

---
updated-dependencies:
- dependency-name: "@matter/main"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
dependabot[bot] authored Jan 1, 2025
commit 21f0135fbaea853f3d991abcaff0ca7563332181
89 changes: 77 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@
"@iobroker/i18n": "^0.3.1",
"@iobroker/dm-utils": "^0.6.11",
"@iobroker/type-detector": "^4.1.1",
"@matter/main": "0.12.0-alpha.0-20241231-9ac20db97",
"@matter/main": "0.12.0-alpha.0-20250101-22e7c1044",
"@matter/nodejs": "0.12.0-alpha.0-20241231-9ac20db97",
"@project-chip/matter.js": "0.12.0-alpha.0-20241231-9ac20db97",
"axios": "^1.7.9",

Unchanged files with check annotations Beta

* Handle new pairing code request
*/
async #handlePairingCode(node: GeneralMatterNode, context: ActionContext): Promise<{ refresh: DeviceRefresh }> {
const result = await this.adapter.controllerNode?.showNewCommissioningCode(node.node.nodeId);

Check failure on line 335 in src/lib/DeviceManagement.ts

GitHub Actions / check-and-lint

Argument of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/types/dist/cjs/datatype/NodeId").NodeId' is not assignable to parameter of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/main/node_modules/@matter/types/dist/cjs/datatype/NodeId").NodeId'.
this.adapter.log.info(`New pairing code for node ${node.nodeId}: ${JSON.stringify(result)}`);
async #handleLogDebugNode(node: GeneralMatterNode, context: ActionContext): Promise<{ refresh: DeviceRefresh }> {
const rootEndpoint = node.node.getRootEndpoint();
const debugInfos = rootEndpoint ? logEndpoint(rootEndpoint) : 'No root endpoint found';

Check failure on line 381 in src/lib/DeviceManagement.ts

GitHub Actions / check-and-lint

Argument of type 'Endpoint' is not assignable to parameter of type 'EndpointInterface'.
await context.showForm(
{
) {
try {
const hciId = config.hciId === undefined ? undefined : parseInt(config.hciId);
Ble.get = singleton(() => new NodeJsBle({ hciId }));

Check failure on line 87 in src/matter/ControllerNode.ts

GitHub Actions / check-and-lint

Type '() => NodeJsBle' is not assignable to type '() => Ble'.
this.#useBle = true;
} catch (error) {
this.#adapter.log.warn(`Failed to initialize BLE: ${error.message}`);
#registerNodeHandlers(node: PairedNode): void {
node.events.attributeChanged.on(data => {
void this.#nodes.get(node.nodeId.toString())?.handleChangedAttribute(data);

Check failure on line 196 in src/matter/ControllerNode.ts

GitHub Actions / check-and-lint

Argument of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/protocol/dist/cjs/interaction/AttributeDataDecoder").DecodedAttributeReportValue<any>' is not assignable to parameter of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/main/node_modules/@matter/protocol/dist/cjs/interaction/AttributeDataDecoder").DecodedAttributeReportValue<any>'.
});
node.events.eventTriggered.on(data => {
void this.#nodes.get(node.nodeId.toString())?.handleTriggeredEvent(data);

Check failure on line 199 in src/matter/ControllerNode.ts

GitHub Actions / check-and-lint

Argument of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/protocol/dist/cjs/interaction/EventDataDecoder").DecodedEventReportValue<any>' is not assignable to parameter of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/main/node_modules/@matter/protocol/dist/cjs/interaction/EventDataDecoder").DecodedEventReportValue<any>'.
});
node.events.stateChanged.on(async (info: PairedNodeStates) => {
const nodeDetails = (this.#commissioningController?.getCommissionedNodesDetails() ?? []).find(
this.#commissioningController = new CommissioningController({
autoConnect: false,
environment: {
environment: this.#adapter.matterEnvironment,

Check failure on line 255 in src/matter/ControllerNode.ts

GitHub Actions / check-and-lint

Type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/main/node_modules/@matter/general/dist/cjs/environment/Environment").Environment' is not assignable to type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/general/dist/cjs/environment/Environment").Environment'.
id: 'controller',
},
adminFabricLabel: this.#fabricLabel,
const options: NodeCommissioningOptions = {
...this.nodeConnectSettings,
commissioning: commissioningOptions,

Check failure on line 416 in src/matter/ControllerNode.ts

GitHub Actions / check-and-lint

Type 'ControllerCommissioningFlowOptions' is not assignable to type 'Omit<DiscoveryAndCommissioningOptions, "fabric" | "passcode" | "discovery">'.
discovery: {
knownAddress,
commissionableDevice: device || undefined,
const nodeId = await this.#commissioningController.commissionNode(options);
await this.registerCommissionedNode(nodeId);

Check failure on line 434 in src/matter/ControllerNode.ts

GitHub Actions / check-and-lint

Argument of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/types/dist/cjs/datatype/NodeId").NodeId' is not assignable to parameter of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/main/node_modules/@matter/types/dist/cjs/datatype/NodeId").NodeId'.
return { result: true, nodeId: nodeId.toString() };
}
};
}
await this.#commissioningController.completeCommissioningForNode(nodeId, discoveryData);

Check failure on line 447 in src/matter/ControllerNode.ts

GitHub Actions / check-and-lint

Argument of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/main/node_modules/@matter/types/dist/cjs/datatype/NodeId").NodeId' is not assignable to parameter of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/types/dist/cjs/datatype/NodeId").NodeId'.
await this.registerCommissionedNode(nodeId);
throw new Error(`Can not register NodeId "${nodeId}" because controller not initialized.`);
}
const node = this.#commissioningController.getPairedNode(nodeId);

Check failure on line 459 in src/matter/ControllerNode.ts

GitHub Actions / check-and-lint

Argument of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/main/node_modules/@matter/types/dist/cjs/datatype/NodeId").NodeId' is not assignable to parameter of type 'import("/home/runner/work/ioBroker.matter/ioBroker.matter/node_modules/@matter/types/dist/cjs/datatype/NodeId").NodeId'.
if (node === undefined) {
// should never happen
throw new Error(`Node ${nodeId} is not connected but commissioning was successful. Should not happen.`);