Skip to content

Commit

Permalink
Merge pull request #1278 from lauckhart/client-node
Browse files Browse the repository at this point in the history
Some refactoring, additional work on client node and new "cli tool"
  • Loading branch information
lauckhart authored Oct 13, 2024
2 parents 630b23b + a1a41be commit d38e934
Show file tree
Hide file tree
Showing 150 changed files with 3,556 additions and 1,237 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,18 @@ The main work (all changes without a GitHub username in brackets in the below li
- @matter/examples:
- Enhancement: Adds a new example to show a PlugIn-Socket with Energy and Power measurement

- @matter/cli-tool:
- Feature: This new package offers a specialized JS environment for interacting with Matter and matter.js
- The "matter" command supports standard JS syntax and a "shell" style syntax that emulates common shell commands
- The virtual filesystem exposed by the tool allows you to navigate matter.js's packages and active subsystems
- This is an alpha feature. We'll add command line control and additional functionality over time

- Matter-Core functionality:
- Enhancement: Allow to discover VendorId + ProductId together optionally

- Matter.js clusters:
- Adds convenience helper method for ElectricalEnergyMeasurement cluster (usage see new example MeasuredSocketDevice) to set measurements and also trigger the needed events when imported and exported values changed in the measurement and events are required by specification

- matter.js Controller API:
- Breaking: PairedNode instances are now created and directly returned also when the node is not et connected. This do not block code flows anymore for offline devices
- Breaking: Because of this "getConnectedNode()" got renamed to "getPairedNode()"
Expand Down
4 changes: 2 additions & 2 deletions chip-testing/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"path": "../../packages/matter.js/src"
},
{
"path": "../src"
"path": "../../packages/tools/src"
},
{
"path": "../../packages/tools/src"
"path": "../src"
}
]
}
3 changes: 0 additions & 3 deletions codegen/bin/repl.js

This file was deleted.

5 changes: 2 additions & 3 deletions codegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"clean": "matter-build clean",
"build": "matter-build",
"build-clean": "matter-build --clean",
"console": "matter-run bin/repl.ts",
"generate-spec": "matter-run bin/generate-spec.js",
"generate-chip": "matter-run bin/generate-chip.js",
"generate-model": "matter-run bin/generate-model.js",
Expand All @@ -33,9 +32,9 @@
"homepage": "https://github.com/project-chip/matter.js#readme",
"dependencies": {
"@matter/general": "*",
"@matter/intermediate-models": "*",
"@matter/model": "*",
"@matter/tools": "*",
"@matter/intermediate-models": "*"
"@matter/tools": "*"
},
"devDependencies": {
"@types/jsdom": "^21.1.6",
Expand Down
28 changes: 0 additions & 28 deletions codegen/src/repl.ts

This file was deleted.

6 changes: 3 additions & 3 deletions codegen/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
},
"references": [
{
"path": "../../packages/general/src"
"path": "../../models/src"
},
{
"path": "../../packages/model/src"
"path": "../../packages/general/src"
},
{
"path": "../../models/src"
"path": "../../packages/model/src"
}
]
}
4 changes: 2 additions & 2 deletions compat/matter-node.js-examples/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
},
"references": [
{
"path": "../../matter-node-ble.js/src"
"path": "../../../packages/matter.js/src"
},
{
"path": "../../../packages/matter.js/src"
"path": "../../matter-node-ble.js/src"
}
]
}
4 changes: 2 additions & 2 deletions compat/matter-node.js/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"path": "../../../packages/general/src"
},
{
"path": "../../../packages/nodejs/src"
"path": "../../../packages/matter.js/src"
},
{
"path": "../../../packages/matter.js/src"
"path": "../../../packages/nodejs/src"
}
]
}
4 changes: 2 additions & 2 deletions models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"homepage": "https://github.com/project-chip/matter.js#readme",
"devDependencies": {
"@matter/tools": "*",
"@matter/model": "*"
"@matter/model": "*",
"@matter/tools": "*"
}
}
Loading

0 comments on commit d38e934

Please sign in to comment.