pixiebrix-extension
pixiebrix-extension copied to clipboard
Strengthen `Metadata` type to require version
Context
- FLUP to https://github.com/pixiebrix/pixiebrix-extension/pull/9264
- Safe to do because all packages on server are required to have a version
Implementation Sketch
- Mark
Metadata.versionas required - Might be able to use properties on the BrickABC/IntegrationABC/StarterBrick class to support that via computer property
- Change BrickABC constructor to take
public readonly platform: PlatformProtocol, metadata: Metadatasimilar toStarterBrickABC - Should return the
PlatformProtocol.version
- Change BrickABC constructor to take
- Drop
VersionedMetadatatype