@ultimat3/query 27.10.1 → 27.10.3
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 +7 -7
- package/src/client.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/query",
|
|
3
|
-
"version": "27.10.
|
|
3
|
+
"version": "27.10.3",
|
|
4
4
|
"description": "The query primitive: a policy-checked read, optionally live, with cursor pagination and an incremental matcher",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"test": "bun test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ultimat3/cache": "27.10.
|
|
41
|
-
"@ultimat3/core": "27.10.
|
|
42
|
-
"@ultimat3/entity": "27.10.
|
|
43
|
-
"@ultimat3/http": "27.10.
|
|
44
|
-
"@ultimat3/policy": "27.10.
|
|
45
|
-
"@ultimat3/schema": "27.10.
|
|
40
|
+
"@ultimat3/cache": "27.10.3",
|
|
41
|
+
"@ultimat3/core": "27.10.3",
|
|
42
|
+
"@ultimat3/entity": "27.10.3",
|
|
43
|
+
"@ultimat3/http": "27.10.3",
|
|
44
|
+
"@ultimat3/policy": "27.10.3",
|
|
45
|
+
"@ultimat3/schema": "27.10.3"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/src/client.ts
CHANGED
|
@@ -53,8 +53,11 @@ export interface QueryCallOptions {
|
|
|
53
53
|
/**
|
|
54
54
|
* The decoded record envelope, after its rows were adopted — only for a read declaring an
|
|
55
55
|
* entity's `rows:`. The store is keyed and unordered; this is where a caller reads the ORDER.
|
|
56
|
+
* With `adopt: false`, the rows are not adopted; the caller adopts them.
|
|
56
57
|
*/
|
|
57
58
|
readonly onEnvelope?: (envelope: RecordEnvelope) => void;
|
|
59
|
+
/** `false`: the rows are handed to `onEnvelope` and NOT adopted — the caller adopts them. */
|
|
60
|
+
readonly adopt?: boolean;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
/**
|
|
@@ -192,6 +195,7 @@ function read(
|
|
|
192
195
|
...(callOptions.fresh === undefined ? {} : { fresh: callOptions.fresh }),
|
|
193
196
|
...(callOptions.retry === undefined ? {} : { retry: callOptions.retry }),
|
|
194
197
|
...(callOptions.onEnvelope === undefined ? {} : { onEnvelope: callOptions.onEnvelope }),
|
|
198
|
+
...(callOptions.adopt === undefined ? {} : { adopt: callOptions.adopt }),
|
|
195
199
|
...(options.fetch === undefined ? {} : { fetchImpl: options.fetch }),
|
|
196
200
|
});
|
|
197
201
|
}
|