@dxos/echo-protocol 0.8.4-main.03d5cd7b56 → 0.8.4-main.05e74ebcff

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/echo-protocol",
3
- "version": "0.8.4-main.03d5cd7b56",
3
+ "version": "0.8.4-main.05e74ebcff",
4
4
  "description": "Core ECHO APIs.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -8,7 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/dxos/dxos"
10
10
  },
11
- "license": "MIT",
11
+ "license": "FSL-1.1-Apache-2.0",
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": false,
14
14
  "type": "module",
@@ -26,11 +26,11 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "effect": "3.20.0",
29
- "@dxos/invariant": "0.8.4-main.03d5cd7b56",
30
- "@dxos/keys": "0.8.4-main.03d5cd7b56",
31
- "@dxos/protocols": "0.8.4-main.03d5cd7b56",
32
- "@dxos/crypto": "0.8.4-main.03d5cd7b56",
33
- "@dxos/util": "0.8.4-main.03d5cd7b56"
29
+ "@dxos/crypto": "0.8.4-main.05e74ebcff",
30
+ "@dxos/invariant": "0.8.4-main.05e74ebcff",
31
+ "@dxos/protocols": "0.8.4-main.05e74ebcff",
32
+ "@dxos/keys": "0.8.4-main.05e74ebcff",
33
+ "@dxos/util": "0.8.4-main.05e74ebcff"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
@@ -230,6 +230,18 @@ export type ObjectMeta = {
230
230
  * NOTE: Optional for backwards compatibilty.
231
231
  */
232
232
  tags?: string[];
233
+
234
+ /**
235
+ * Fully-qualified registry key for the object (FQN format, e.g. `org.example.type.foo`).
236
+ * Identifies the canonical registry entry the object instance was created from.
237
+ */
238
+ key?: string;
239
+
240
+ /**
241
+ * Semantic version of the registry entry the object was created from.
242
+ * Must be a valid semver string (e.g. `1.2.3`).
243
+ */
244
+ version?: string;
233
245
  };
234
246
 
235
247
  /**
package/src/query/ast.ts CHANGED
@@ -42,6 +42,17 @@ const FilterObject_ = Schema.Struct({
42
42
  */
43
43
  foreignKeys: Schema.optional(Schema.Array(ForeignKey)),
44
44
 
45
+ /**
46
+ * Match objects whose meta `key` equals this fully-qualified registry key (FQN format).
47
+ */
48
+ metaKey: Schema.optional(Schema.String),
49
+
50
+ /**
51
+ * Semver range matched against the object's meta `version`.
52
+ * Only consulted when {@link metaKey} is set. Objects with no `version` do not satisfy a version-constrained filter.
53
+ */
54
+ metaVersion: Schema.optional(Schema.String),
55
+
45
56
  // NOTE: Make sure to update `FilterStep.isNoop` if you change this.
46
57
  });
47
58
  export interface FilterObject extends Schema.Schema.Type<typeof FilterObject_> {}
@@ -441,21 +452,21 @@ export const Scope = Schema.Struct({
441
452
  /**
442
453
  * The nested select statemets will select from the given spaces.
443
454
  *
444
- * NOTE: Spaces and queues are unioned together if both are specified.
455
+ * NOTE: Spaces and feeds are unioned together if both are specified.
445
456
  */
446
457
  spaceIds: Schema.optional(Schema.Array(Schema.String)),
447
458
 
448
459
  /**
449
- * If true, the nested select statements will select from all queues in the spaces specified by `spaceIds`.
460
+ * If true, the nested select statements will select from all feeds in the spaces specified by `spaceIds`.
450
461
  */
451
- allQueuesFromSpaces: Schema.optional(Schema.Boolean),
462
+ allFeedsFromSpaces: Schema.optional(Schema.Boolean),
452
463
 
453
464
  /**
454
- * The nested select statemets will select from the given queues.
465
+ * The nested select statemets will select from the given feeds (by underlying queue DXN).
455
466
  *
456
- * NOTE: Spaces and queues are unioned together if both are specified.
467
+ * NOTE: Spaces and feeds are unioned together if both are specified.
457
468
  */
458
- queues: Schema.optional(Schema.Array(DXN.Schema)),
469
+ feeds: Schema.optional(Schema.Array(DXN.Schema)),
459
470
  });
460
471
  export interface Scope extends Schema.Schema.Type<typeof Scope> {}
461
472