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

Migrate Node.js specialization to new package #1183

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

lauckhart
Copy link
Collaborator

Based on #1154

Creates @project-chip/matter.js-nodejs. Leaves old package as compatibility layer.

Removes re-exports from matter.js from matter-node.js (requested by Ingo).

Updates exports in all examples and utilities.

Copy link

semanticdiff-com bot commented Sep 9, 2024

Review changes with SemanticDiff.

Analyzed 89 of 132 files.

Overall, the semantic diff is 8% smaller than the GitHub diff.

42 files do not contain logic changes.

File Information
Filename Status
CHANGELOG.md Unsupported file format
✔️ package-lock.json 46.96% smaller
✔️ package.json 55.84% smaller
✔️ tsconfig.eslint.json 3.12% smaller
packages/nodejs/README.md Unsupported file format
packages/nodejs/package.json Unsupported file format
✔️ packages/nodejs/tsconfig.json No logic changes found
✔️ packages/nodejs/test/IntegrationTest.ts No logic changes found
✔️ packages/nodejs/test/test.config.ts No logic changes found
✔️ packages/nodejs/test/tsconfig.json No logic changes found
✔️ packages/nodejs/test/storage/StorageBackendDiskTest.ts No logic changes found
✔️ packages/nodejs/test/storage/StorageBackendJsonFileTest.ts No logic changes found
✔️ packages/nodejs/test/session/SecureSessionTest.ts No logic changes found
✔️ packages/nodejs/test/session/SessionManagerTest.ts No logic changes found
✔️ packages/nodejs/test/session/secure/CasePairingTest.ts No logic changes found
✔️ packages/nodejs/test/session/secure/PasePairingTest.ts No logic changes found
✔️ packages/nodejs/test/interaction/InteractionProtocolTest.ts No logic changes found
✔️ packages/nodejs/test/interaction/InteractionTestUtils.ts No logic changes found
✔️ packages/nodejs/test/fabric/FabricManagerTest.ts No logic changes found
✔️ packages/nodejs/test/fabric/FabricTest.ts No logic changes found
✔️ packages/nodejs/test/fabric/FabricTestingUtil.ts No logic changes found
✔️ packages/nodejs/test/crypto/CryptoTest.ts No logic changes found
✔️ packages/nodejs/test/crypto/Spake2pTest.ts No logic changes found
✔️ packages/nodejs/test/common/FailsafeContextTest.ts No logic changes found
✔️ packages/nodejs/test/common/FailsafeTimerTest.ts No logic changes found
✔️ packages/nodejs/test/cluster/ClusterServerTestingUtil.ts No logic changes found
✔️ packages/nodejs/test/cluster/GeneralCommissioningServerTest.ts No logic changes found
✔️ packages/nodejs/test/cluster/GroupsServerTest.ts No logic changes found
✔️ packages/nodejs/test/certificate/CertificateManagerTest.ts No logic changes found
✔️ packages/nodejs/test/certificate/TestCertificates.ts No logic changes found
packages/nodejs/src/index.ts Unsupported file format
✔️ packages/nodejs/src/tsconfig.json No logic changes found
✔️ packages/nodejs/src/util/CommandLine.ts No logic changes found
✔️ packages/nodejs/src/util/index.ts 12.88% smaller
✔️ packages/nodejs/src/util/nodejs-version.ts No logic changes found
✔️ packages/nodejs/src/time/TimeNode.ts No logic changes found
packages/nodejs/src/time/index.ts Unsupported file format
✔️ packages/nodejs/src/time/register.ts No logic changes found
✔️ packages/nodejs/src/storage/StorageBackendDisk.ts No logic changes found
✔️ packages/nodejs/src/storage/StorageBackendJsonFile.ts No logic changes found
✔️ packages/nodejs/src/storage/index.ts Analyzed
✔️ packages/nodejs/src/net/NetworkNode.ts No logic changes found
✔️ packages/nodejs/src/net/UdpChannelNode.ts No logic changes found
✔️ packages/nodejs/src/net/index.ts 21.46% smaller
✔️ packages/nodejs/src/net/register.ts No logic changes found
✔️ packages/nodejs/src/log/FileLogger.ts No logic changes found
packages/nodejs/src/log/index.ts Unsupported file format
✔️ packages/nodejs/src/environment/NodeJsActionTracer.ts No logic changes found
✔️ packages/nodejs/src/environment/NodeJsEnvironment.ts Analyzed
✔️ packages/nodejs/src/environment/ProcessManager.ts No logic changes found
packages/nodejs/src/environment/index.ts Unsupported file format
✔️ packages/nodejs/src/environment/register.ts No logic changes found
✔️ packages/nodejs/src/crypto/CryptoNode.ts No logic changes found
✔️ packages/nodejs/src/crypto/index.ts 28.61% smaller
✔️ packages/nodejs/src/crypto/register.ts No logic changes found
packages/nodejs/src/behavior/index.ts Unsupported file format
✔️ packages/nodejs/src/behavior/instrumentation.ts No logic changes found
✔️ packages/nodejs/src/behavior/register.ts No logic changes found
✔️ packages/matter.js-react-native/package.json 86.57% smaller
✔️ packages/matter.js-react-native/src/time/TimeReactNative.ts Analyzed
✔️ packages/matter.js-react-native/src/crypto/CryptoReactNative.ts 69.58% smaller
✔️ packages/matter-node.js-examples/package.json 86.57% smaller
✔️ packages/matter-node.js-examples/src/tutorial/example01.ts Analyzed
✔️ packages/matter-node.js-examples/src/tutorial/example02.ts Analyzed
✔️ packages/matter-node.js-examples/src/tutorial/example03.ts Analyzed
✔️ packages/matter-node.js-examples/src/tutorial/example04.ts Analyzed
✔️ packages/matter-node.js-examples/src/tutorial/example05.ts Analyzed
✔️ packages/matter-node.js-examples/src/examples/BridgedDevicesNode.ts 22.88% smaller
✔️ packages/matter-node.js-examples/src/examples/BridgedDevicesNodeLegacy.ts Analyzed
✔️ packages/matter-node.js-examples/src/examples/ComposedDeviceNode.ts 22.88% smaller
✔️ packages/matter-node.js-examples/src/examples/ComposedDeviceNodeLegacy.ts Analyzed
✔️ packages/matter-node.js-examples/src/examples/ControllerNode.ts 32.67% smaller
✔️ packages/matter-node.js-examples/src/examples/ControllerNodeLegacy.ts 38.19% smaller
✔️ packages/matter-node.js-examples/src/examples/DeviceNode.ts 22.88% smaller
✔️ packages/matter-node.js-examples/src/examples/DeviceNodeFull.ts 0.55% smaller
✔️ packages/matter-node.js-examples/src/examples/DeviceNodeFullLegacy.ts Analyzed
✔️ packages/matter-node.js-examples/src/examples/IlluminatedRollerShade.ts Analyzed
✔️ packages/matter-node.js-examples/src/examples/LegacyStorageConverter.ts 19.2% smaller
✔️ packages/matter-node.js-examples/src/examples/LightDevice.ts Analyzed
✔️ packages/matter-node.js-examples/src/examples/MultiDeviceNode.ts 22.88% smaller
✔️ packages/matter-node.js-examples/src/examples/MultiDeviceNodeLegacy.ts Analyzed
✔️ packages/matter-node.js-examples/src/examples/SensorDeviceNode.ts 22.88% smaller
✔️ packages/matter-node.js-examples/src/examples/cluster/DummyWifiNetworkCommissioningServerLegacy.ts Analyzed
packages/matter-node.js/.mocharc.cjs Unsupported file format
packages/matter-node.js/.mocharc.json Unsupported file format
packages/matter-node.js/CODE_OF_CONDUCT.md Unsupported file format
packages/matter-node.js/CONTRIBUTING.md Unsupported file format
packages/matter-node.js/LICENSE Unsupported file format
packages/matter-node.js/README.md Unsupported file format
packages/matter-node.js/package.json Unsupported file format
packages/matter-node.js/src/export.ts Unsupported file format
packages/matter-node.js/src/net/export.ts Unsupported file format
packages/matter-node.js/src/exports/cluster.ts Unsupported file format
packages/matter-node.js/src/exports/codec.ts Unsupported file format
packages/matter-node.js/src/exports/common.ts Unsupported file format
packages/matter-node.js/src/exports/datatype.ts Unsupported file format
packages/matter-node.js/src/exports/device.ts Unsupported file format
packages/matter-node.js/src/exports/fabric.ts Unsupported file format
packages/matter-node.js/src/exports/interaction.ts Unsupported file format
packages/matter-node.js/src/exports/math.ts Unsupported file format
packages/matter-node.js/src/exports/mdns.ts Unsupported file format
packages/matter-node.js/src/exports/model.ts Unsupported file format
packages/matter-node.js/src/exports/protocol.ts Unsupported file format
packages/matter-node.js/src/exports/schema.ts Unsupported file format
packages/matter-node.js/src/exports/securechannel.ts Unsupported file format
packages/matter-node.js/src/exports/session.ts Unsupported file format
packages/matter-node.js/src/exports/tlv.ts Unsupported file format
packages/matter-node.js/src/dts/package.json.d.ts Unsupported file format
✔️ packages/matter-node-shell.js/package.json 86.57% smaller
✔️ packages/matter-node-shell.js/src/MatterNode.ts 10.72% smaller
✔️ packages/matter-node-shell.js/src/app.ts Analyzed
compat/matter-node.js/.gitignore Unsupported file format
compat/matter-node.js/.npmignore Unsupported file format
compat/matter-node.js/README.md Unsupported file format
compat/matter-node.js/package.json Unsupported file format
compat/matter-node.js/tsconfig.json Unsupported file format
✔️ compat/matter-node.js/src/export.ts 42.95% smaller
compat/matter-node.js/src/tsconfig.json Unsupported file format
compat/matter-node.js/src/util/export.ts Unsupported file format
compat/matter-node.js/src/time/export.ts Unsupported file format
compat/matter-node.js/src/storage/export.ts Unsupported file format
✔️ compat/matter-node.js/src/net/export.ts 45.09% smaller
✔️ compat/matter-node.js/src/log/export.ts 32.63% smaller
compat/matter-node.js/src/environment/export.ts Unsupported file format
✔️ compat/matter-node.js/src/crypto/export.ts 50.0% smaller
✔️ chip-testing/package.json 86.57% smaller
✔️ chip-testing/src/AllClustersTestApp.ts 82.11% smaller
✔️ chip-testing/src/AllClustersTestInstanceLegacy.ts Analyzed
✔️ chip-testing/src/BridgeTestApp.ts Analyzed
✔️ chip-testing/src/BridgeTestInstanceLegacy.ts Analyzed
✔️ chip-testing/src/GenericTestApp.ts Analyzed
✔️ chip-testing/src/TvTestApp.ts Analyzed

Creates @project-chip/matter.js-nodejs.  Leaves old package as compatibility layer.

Removes re-exports from matter.js from matter-node.js (requested by Ingo).

Updates exports in all examples and utilities.
@mergify mergify bot merged commit f15c582 into project-chip:main Sep 9, 2024
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants