@dxos/echo-query 0.8.4-main.21d9917 → 0.8.4-main.2244d791bb

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-query",
3
- "version": "0.8.4-main.21d9917",
3
+ "version": "0.8.4-main.2244d791bb",
4
4
  "description": "ECHO queries.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -19,8 +19,7 @@
19
19
  ".": {
20
20
  "source": "./src/index.ts",
21
21
  "types": "./dist/types/src/index.d.ts",
22
- "browser": "./dist/lib/browser/index.mjs",
23
- "node": "./dist/lib/node-esm/index.mjs"
22
+ "default": "./dist/lib/neutral/index.mjs"
24
23
  },
25
24
  "./api.d.ts": "./dist/query-lite/index.d.ts"
26
25
  },
@@ -36,22 +35,22 @@
36
35
  "@lezer/common": "^1.2.2",
37
36
  "@lezer/lezer": "^1.1.2",
38
37
  "@lezer/lr": "^1.4.2",
39
- "@dxos/context": "0.8.4-main.21d9917",
40
- "@dxos/debug": "0.8.4-main.21d9917",
41
- "@dxos/echo-protocol": "0.8.4-main.21d9917",
42
- "@dxos/echo": "0.8.4-main.21d9917",
43
- "@dxos/errors": "0.8.4-main.21d9917",
44
- "@dxos/invariant": "0.8.4-main.21d9917",
45
- "@dxos/node-std": "0.8.4-main.21d9917",
46
- "@dxos/util": "0.8.4-main.21d9917",
47
- "@dxos/vendor-quickjs": "0.8.4-main.21d9917"
38
+ "@dxos/context": "0.8.4-main.2244d791bb",
39
+ "@dxos/echo": "0.8.4-main.2244d791bb",
40
+ "@dxos/echo-protocol": "0.8.4-main.2244d791bb",
41
+ "@dxos/invariant": "0.8.4-main.2244d791bb",
42
+ "@dxos/errors": "0.8.4-main.2244d791bb",
43
+ "@dxos/node-std": "0.8.4-main.2244d791bb",
44
+ "@dxos/util": "0.8.4-main.2244d791bb",
45
+ "@dxos/vendor-quickjs": "0.8.4-main.2244d791bb",
46
+ "@dxos/debug": "0.8.4-main.2244d791bb"
48
47
  },
49
48
  "devDependencies": {
50
49
  "@lezer/generator": "^1.7.1",
51
50
  "tsdown": "^0.16.7",
52
51
  "typescript": "^5.9.3",
53
- "@dxos/echo-generator": "0.8.4-main.21d9917",
54
- "@dxos/random": "0.8.4-main.21d9917"
52
+ "@dxos/echo-generator": "0.8.4-main.2244d791bb",
53
+ "@dxos/random": "0.8.4-main.2244d791bb"
55
54
  },
56
55
  "publishConfig": {
57
56
  "access": "public"
@@ -449,6 +449,22 @@ class QueryClass implements Query$.Any {
449
449
  });
450
450
  }
451
451
 
452
+ parent(): Query$.Any {
453
+ return new QueryClass({
454
+ type: 'hierarchy-traversal',
455
+ anchor: this.ast,
456
+ direction: 'to-parent',
457
+ });
458
+ }
459
+
460
+ children(): Query$.Any {
461
+ return new QueryClass({
462
+ type: 'hierarchy-traversal',
463
+ anchor: this.ast,
464
+ direction: 'to-children',
465
+ });
466
+ }
467
+
452
468
  orderBy(...order: Order$.Any[]): Query$.Any {
453
469
  return new QueryClass({
454
470
  type: 'order',