@thi.ng/rstream-query 2.1.112 → 2.1.114

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-09T09:18:17Z
3
+ - **Last updated**: 2024-03-13T14:04:31Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rstream-query",
3
- "version": "2.1.112",
3
+ "version": "2.1.114",
4
4
  "description": "@thi.ng/rstream based triple store & reactive query engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,23 +36,23 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.29",
40
- "@thi.ng/associative": "^6.3.47",
41
- "@thi.ng/checks": "^3.5.2",
42
- "@thi.ng/equiv": "^2.1.51",
43
- "@thi.ng/errors": "^2.4.20",
44
- "@thi.ng/logger": "^3.0.5",
45
- "@thi.ng/math": "^5.10.6",
46
- "@thi.ng/rstream": "^8.3.12",
47
- "@thi.ng/rstream-dot": "^3.0.62",
48
- "@thi.ng/transducers": "^8.9.11"
39
+ "@thi.ng/api": "^8.9.30",
40
+ "@thi.ng/associative": "^6.3.49",
41
+ "@thi.ng/checks": "^3.5.3",
42
+ "@thi.ng/equiv": "^2.1.52",
43
+ "@thi.ng/errors": "^2.5.1",
44
+ "@thi.ng/logger": "^3.0.6",
45
+ "@thi.ng/math": "^5.10.7",
46
+ "@thi.ng/rstream": "^8.3.14",
47
+ "@thi.ng/rstream-dot": "^3.0.64",
48
+ "@thi.ng/transducers": "^8.9.13"
49
49
  },
50
50
  "devDependencies": {
51
- "@microsoft/api-extractor": "^7.40.1",
52
- "esbuild": "^0.20.0",
51
+ "@microsoft/api-extractor": "^7.42.3",
52
+ "esbuild": "^0.20.1",
53
53
  "rimraf": "^5.0.5",
54
- "typedoc": "^0.25.7",
55
- "typescript": "^5.3.3"
54
+ "typedoc": "^0.25.12",
55
+ "typescript": "^5.4.2"
56
56
  },
57
57
  "keywords": [
58
58
  "database",
@@ -109,5 +109,5 @@
109
109
  "parent": "@thi.ng/rstream",
110
110
  "year": 2018
111
111
  },
112
- "gitHead": "69100942474942f7446ac645d59d91e7dfc352f9\n"
112
+ "gitHead": "bc0f3cb07d6f1cab6dbdc5ff57428f5484e711bb\n"
113
113
  }
package/store.d.ts CHANGED
@@ -44,8 +44,8 @@ export declare class TripleStore implements Iterable<Triple>, IToDot {
44
44
  * matched triples. If only the raw triple IDs are wanted, set
45
45
  * `emitTriples` arg to `false`.
46
46
  *
47
+ * @param pattern -
47
48
  * @param id -
48
- * @param param1 -
49
49
  */
50
50
  addPatternQuery(pattern: Pattern, id?: string): ISubscription<any, Triples>;
51
51
  addPatternQuery(pattern: Pattern, id?: string, emitTriples?: false): ISubscription<any, TripleIds>;
@@ -68,8 +68,8 @@ export declare class TripleStore implements Iterable<Triple>, IToDot {
68
68
  * [{ a: "asterix", b: "obelix" }, { a: "romeo", b: "julia" }]
69
69
  * ```
70
70
  *
71
+ * @param pattern -
71
72
  * @param id -
72
- * @param param1 -
73
73
  */
74
74
  addParamQuery([s, p, o]: Pattern, id?: string): QuerySolution;
75
75
  /**
@@ -82,7 +82,7 @@ export declare class TripleStore implements Iterable<Triple>, IToDot {
82
82
  * @param maxDepth -
83
83
  * @param id -
84
84
  */
85
- addPathQuery(path: PathPattern, len?: number, id?: string): QuerySolution;
85
+ addPathQuery(path: PathPattern, maxDepth?: number, id?: string): QuerySolution;
86
86
  /**
87
87
  * Like {@link TripleStore.addMultiJoin}, but optimized for only two
88
88
  * input queries. Returns a rstream subscription computing the
package/store.js CHANGED
@@ -196,8 +196,8 @@ class TripleStore {
196
196
  * [{ a: "asterix", b: "obelix" }, { a: "romeo", b: "julia" }]
197
197
  * ```
198
198
  *
199
+ * @param pattern -
199
200
  * @param id -
200
- * @param param1 -
201
201
  */
202
202
  addParamQuery([s, p, o], id) {
203
203
  const vs = isQVar(s);
@@ -234,9 +234,9 @@ class TripleStore {
234
234
  * @param maxDepth -
235
235
  * @param id -
236
236
  */
237
- addPathQuery(path, len = path[1].length, id) {
237
+ addPathQuery(path, maxDepth = path[1].length, id) {
238
238
  return this.addMultiJoin(
239
- this.addParamQueries(resolvePathPattern(path, len)[0]),
239
+ this.addParamQueries(resolvePathPattern(path, maxDepth)[0]),
240
240
  patternVars(path),
241
241
  id
242
242
  );