edfcore 0.5.12 → 0.5.13
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/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/docs/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -109,5 +109,5 @@ export declare const SIGNAL_FIELD_BLOCK_OFFSETS: {
|
|
|
109
109
|
readonly reserved: 224;
|
|
110
110
|
};
|
|
111
111
|
/** Published package version. Kept in sync with package.json by a test. */
|
|
112
|
-
export declare const VERSION = "0.5.
|
|
112
|
+
export declare const VERSION = "0.5.13";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ alone does not tell you whether you were affected.
|
|
|
6
6
|
edfcore is pre-1.0. Patch releases have carried behaviour changes where the old behaviour was a
|
|
7
7
|
defect; those are called out below.
|
|
8
8
|
|
|
9
|
+
## 0.5.13
|
|
10
|
+
|
|
11
|
+
- **Added** a `NaN` budget driven through every entry point that reads one. `options.ts` exists
|
|
12
|
+
because `maxMaterializeBytes` is typed `number`, which admits `NaN`, and `NaN` arrives without
|
|
13
|
+
anyone writing it — `Number(process.env.EDF_BUDGET)`, an absent query parameter, a missing JSON
|
|
14
|
+
key. Its docblock states the reach the guard needs: the option is resolved in six modules and read
|
|
15
|
+
raw and handed on in two more, and "a guard that only one of the eight applies is not a guard".
|
|
16
|
+
- Nothing checked the eight. `options.test.ts` checks the resolver in isolation, and
|
|
17
|
+
`budget-boundary.test.ts` enumerates the five sites that compare a REQUIREMENT against the budget
|
|
18
|
+
— a different set, reached only by a request large enough to refuse. A `NaN` is refused earlier
|
|
19
|
+
than that, by the resolver, in modules that list names: `record-index.ts` compares nothing, and
|
|
20
|
+
`biosemi.ts` resolves nothing.
|
|
21
|
+
- The eight are now read out of `src/` and split by what they do with the option, with the counts
|
|
22
|
+
checked against the sentence in the docblock that states them. Each is then driven through its own
|
|
23
|
+
public entry point — `readRecordBytes`, `readRecords`, `decodeDigital`, `toPhysical`,
|
|
24
|
+
`readEnvelope`, `buildRecordIndex`, `validateRecording` on both its branches, and `readTriggers`,
|
|
25
|
+
which owns no resolver and borrows the scan chunker's.
|
|
26
|
+
- The eighth is stated rather than asserted away: `cachedSource` hands the option to the source it
|
|
27
|
+
wraps, so a `NaN` survives it and is refused by the first resolving module downstream. That is the
|
|
28
|
+
design — a cache is not the layer that owns a materialisation budget — and it is now a fact the
|
|
29
|
+
suite records instead of a gap in it.
|
|
30
|
+
|
|
9
31
|
## 0.5.12
|
|
10
32
|
|
|
11
33
|
- **Added** the six mistakes `AGENTS.md` tells a code generator to avoid, run. That file carries two
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED