Matter versions
Matter updates often, and the SDK and data API grow with it. Each extension says which versions of Matter it runs on, in matter.json:
{ "minMatterVersion": "0.4.0", "maxMatterVersion": "0.9.0"}minMatterVersionis required: the oldest Matter that can run the extension.matter extension createwrites the version you’re on.matter extension deploystops if it’s missing.maxMatterVersionis optional: the newest Matter the extension is known to run on. Leave it out unless a newer Matter breaks your extension.
Versions are three numbers, like 0.4.0.
What members see
Section titled “What members see”A computer outside the range doesn’t open the extension. Instead it shows:
- “Update Matter to use App”, with the version it needs, when its Matter is older than
minMatterVersion; - that the extension doesn’t support this version of Matter yet, when its Matter is newer than
maxMatterVersion.
The extension’s worker and run server don’t start there either.
Choosing the range
Section titled “Choosing the range”- Raise
minMatterVersionwhen you start using something a newer Matter added: a new SDK call, a new option. Update@matter.work/extension-sdkfor its types (npm install @matter.work/extension-sdk@latest). Members on older versions are asked to update. matter extension deploytells you when the computer you deploy from is outside the range, since you won’t be able to open the extension there.