@mica-js/document 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,11 +100,20 @@ export declare interface DevicePropertyDescriptor {
100
100
  /** Predefined property value kinds of a device property description (RFC 0009 / RFC 0020). */
101
101
  export declare type DevicePropertyType = 'string' | 'integer' | 'number' | 'boolean' | 'color' | 'enum' | 'image' | 'binary' | 'firmware' | 'program';
102
102
 
103
- /** Resolves a lock to the package bytes hosted by the current mode (RFC 0020). */
103
+ /** Selects available releases and opens exact locks (RFC 0020). */
104
104
  export declare interface DeviceRegistry {
105
+ /** Selects a release by SemVer range and `engines.mica`. */
106
+ resolve?(query: DeviceResolutionQuery): Promise<DeviceLock>;
105
107
  open(lock: DeviceLock): Promise<PackageFiles>;
106
108
  }
107
109
 
110
+ /** Query for the highest available release compatible with a host. */
111
+ export declare interface DeviceResolutionQuery {
112
+ readonly id: string;
113
+ readonly range: string;
114
+ readonly hostApiVersion: string;
115
+ }
116
+
108
117
  /** Connection target of a wire, label or voltage reference (RFC 0024). */
109
118
  export declare type Endpoint = {
110
119
  readonly kind: 'pin';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mica-js/document",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Mica document contracts: schematic and canvas formats, topic delivery and shared format models",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "access": "public"
36
36
  },
37
37
  "dependencies": {
38
- "@mica-js/core": "0.7.0"
38
+ "@mica-js/core": "0.8.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "typescript": "^6.0.3",