@ultimat3/manifest 29.3.1 → 29.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.
- package/package.json +7 -7
- package/src/diff-operations.ts +9 -0
- package/src/schema.ts +6 -0
- package/src/sources.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/manifest",
|
|
3
|
-
"version": "29.
|
|
3
|
+
"version": "29.4.0",
|
|
4
4
|
"description": "x.manifest.json: deterministic generated facts, contract diff, AGENTS.md budget",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"test": "bun test"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@ultimat3/action": "29.
|
|
36
|
-
"@ultimat3/core": "29.
|
|
37
|
-
"@ultimat3/entity": "29.
|
|
38
|
-
"@ultimat3/jobs": "29.
|
|
39
|
-
"@ultimat3/query": "29.
|
|
40
|
-
"@ultimat3/realtime": "29.
|
|
35
|
+
"@ultimat3/action": "29.4.0",
|
|
36
|
+
"@ultimat3/core": "29.4.0",
|
|
37
|
+
"@ultimat3/entity": "29.4.0",
|
|
38
|
+
"@ultimat3/jobs": "29.4.0",
|
|
39
|
+
"@ultimat3/query": "29.4.0",
|
|
40
|
+
"@ultimat3/realtime": "29.4.0"
|
|
41
41
|
}
|
|
42
42
|
}
|
package/src/diff-operations.ts
CHANGED
|
@@ -137,6 +137,15 @@ export function diffQueries(
|
|
|
137
137
|
detail: `live ${String(query.live)} -> ${String(next.live)}`,
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
+
// Rows one side, a minted URL and a file the other: every caller of the read is written
|
|
141
|
+
// against one answer, so the flip breaks them whichever way it goes.
|
|
142
|
+
if ((query.download === true) !== (next.download === true)) {
|
|
143
|
+
changes.push({
|
|
144
|
+
kind: 'breaking',
|
|
145
|
+
path: `${path}.download`,
|
|
146
|
+
detail: next.download === true ? 'rows -> download' : 'download -> rows',
|
|
147
|
+
});
|
|
148
|
+
}
|
|
140
149
|
// The same fact as an action's `cacheInvalidates`, and the same class: which tag flushes a
|
|
141
150
|
// read is not a caller's contract, but a reviewer has to see it move.
|
|
142
151
|
if (canonicalJson(query.cacheTags) !== canonicalJson(next.cacheTags)) {
|
package/src/schema.ts
CHANGED
|
@@ -213,6 +213,12 @@ export interface QueryFact {
|
|
|
213
213
|
*/
|
|
214
214
|
readonly subscribes?: readonly string[];
|
|
215
215
|
readonly cacheTags: readonly string[];
|
|
216
|
+
/**
|
|
217
|
+
* `true` when the read is a `query({ download })` — it answers a file at a signed URL, never
|
|
218
|
+
* rows. Absent on every other read, like `ActionFact.mutator`: a `false` per read is bytes for
|
|
219
|
+
* no fact. A caller built against rows is broken by the flip, and one built against a URL too.
|
|
220
|
+
*/
|
|
221
|
+
readonly download?: true;
|
|
216
222
|
}
|
|
217
223
|
|
|
218
224
|
/**
|
package/src/sources.ts
CHANGED
|
@@ -137,6 +137,8 @@ export function frameworkSources(input: FrameworkSourcesInput): ManifestSources
|
|
|
137
137
|
// empty list is refused at `query()`, so absence carries the whole meaning.
|
|
138
138
|
...(query.subscribes === null ? {} : { subscribes: query.subscribes }),
|
|
139
139
|
cacheTags: query.tags,
|
|
140
|
+
// Written only when true — the reason `mutator` is: absence already means "answers rows".
|
|
141
|
+
...(query.download ? { download: true as const } : {}),
|
|
140
142
|
})),
|
|
141
143
|
// Already the fact's shape, sorted and flattened by `describeChannels` — projected field by
|
|
142
144
|
// field all the same, for the reason above.
|