Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@matter/types
Advanced tools
This package implements operational types and data structures for Matter.
Due to type definition size, we do not export clusters as part of the root package. You may instead import then as:
import { OnOffCluster } from "@matter/types/clusters/OnOffCluster";
or:
import { OnOffCluster } from "@matter/types/clusters";
0.11.0 (2024-10-29)
IMPORTANT: As of 0.10.0 the @project-chip/matter.js module has grown quite large. This release includes major refactoring that moves functional areas into independent NPM packages under the "@matter" org. We have added exports to maintain backwards compatibility but these are not exhaustive. In some cases you may need to update imports to reference new code locations.
Cross-module changes
package.json
"imports" field. This is an internal change that simplifies imports but should not affect consumers@matter/general:
@project-chip/matter.js
. It now lives in @matter/general
ObserverGroup
class simplifies binding management for multiple observables@matter/main:
@matter/model:
@project-chip/matter.js/model
now resides in @matter/model
@matter/node:
@project-chip/matter.js
now reside in @matter/node
. The Node API includes node management, behavior definitions and endpoint definitions@matter/node/behaviors
or individually (e.g. @matter/node/behaviors/on-off
)@matter/node/endpoints
and @matter/node/devices
respectively. You may also import these via index or individually@matter/nodejs:
@project-chip/matter-node.js
remains as a compatibility import.@matter/nodejs-ble
@project-chip/matter-node-ble.js
remains as a compatibility import.@matter/nodejs-shell:
@matter/protocol:
@project-chip/matter.js
now resides in @matter/protocol
. This includes network communication, fabric management and cluster invocation, read/write, events, etc.DeviceCommissioner
, DeviceAdvertiser
, NodeFinder
and Subscription
now perform functions that previously were in the (deprecated) MatterDevice class@matter/types:
@project-chip/matter.js
now reside in @matter/types
. This includes most TLV structures, cluster definitions, and various support types@project-chip/matter.js
. You can import via @project-chip/types/clusters
or individually (e.g. @project-chip/types/clusters/window-covering
)@matter/examples:
@matter/cli-tool:
@matter/create
npm init @matter help
anywhere you have Node.js installedMatter-Core functionality:
matter.js clusters:
matter.js Controller API:
FAQs
Definitions for Matter application
The npm package @matter/types receives a total of 17,768 weekly downloads. As such, @matter/types popularity was classified as popular.
We found that @matter/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.