edfcore 0.5.51 → 0.5.52
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 +25 -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.52";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,31 @@ 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.52
|
|
10
|
+
|
|
11
|
+
- **Added** the sweep for a selection that came from JSON. `io/read.ts` says why this is not a
|
|
12
|
+
type-system question: "`records` is typed, and the type is not the only way in: a selection built
|
|
13
|
+
from JSON, from a config file or from a JavaScript call site arrives at run time." It then records
|
|
14
|
+
what used to happen — every wrong shape reached a refusal with a next step, "while `undefined` and
|
|
15
|
+
`null` threw `TypeError: Cannot read properties of undefined (reading 'start')` ... which names
|
|
16
|
+
neither the option nor anything to do about it" (fixed in 0.4.443).
|
|
17
|
+
- That is a whole class and it had one test. A saved view, a URL parameter, a job on a queue: all of
|
|
18
|
+
them arrive as `JSON.parse` output, where a number written as a string stays a string and an
|
|
19
|
+
omitted field is simply absent. `record-range-contract.test.ts` covers ranges that are well formed
|
|
20
|
+
and out of bounds; this covers ranges that are not ranges.
|
|
21
|
+
- Nine malformed `records` shapes — absent, null, empty, half-filled, an array, a string,
|
|
22
|
+
string-valued fields, a null field — are each refused at all three entry points with an
|
|
23
|
+
`EdfRangeError` carrying the same next step, and absent and null are asserted not to raise the
|
|
24
|
+
`TypeError` they once did. A valid range survives a JSON round-trip, extra properties and all.
|
|
25
|
+
- Four malformed `signalIndices` shapes are a plain `RangeError`, since a selection that is not an
|
|
26
|
+
array is a caller's mistake and not a file's.
|
|
27
|
+
- One shape is accepted, and it is named rather than left to be discovered: an array holding the
|
|
28
|
+
canonical decimal string for an index — `['0']`, which is what `JSON.parse('["0"]')` from a query
|
|
29
|
+
string gives — resolves to that signal. It is ordinary array-index coercion and it is tight:
|
|
30
|
+
`'00'`, `' 0'`, `'0.0'`, `'+0'` and a label are each an `EdfChannelNotFoundError` naming the
|
|
31
|
+
selector verbatim, and the chunk reports `signalIndex` as a number, so nothing downstream carries
|
|
32
|
+
the string.
|
|
33
|
+
|
|
9
34
|
## 0.5.51
|
|
10
35
|
|
|
11
36
|
- **Added** the promise `annotations.md` makes about partial reads, and the thing it costs.
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED