edfcore 0.5.70 → 0.5.71
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.71";
|
|
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.71
|
|
10
|
+
|
|
11
|
+
- **Added** the case every diagnostic test avoids: a file with more than one thing wrong with it.
|
|
12
|
+
Each code is demonstrated on a fixture broken in exactly one way, which is how you show which
|
|
13
|
+
defect produces which code — and real files are not like that. Defects come in families, because
|
|
14
|
+
they come from one mistaken program.
|
|
15
|
+
- The header parse is a single pass over shared state: one sink, a pinned check order, and checks
|
|
16
|
+
that read fields other checks have already judged. That is the shape in which one defect swallows
|
|
17
|
+
another — an early return on the first bad field, a check skipped because its input was already
|
|
18
|
+
reported unusable — and the file would still open with a report that looked complete.
|
|
19
|
+
- `a-second-defect-hides-nothing.test.ts` applies seven independent corruptions alone, then in all
|
|
20
|
+
twenty-one pairs, then in both orders, then all seven at once. Making the recording-identification
|
|
21
|
+
check skip itself once anything else has been reported fails six of them.
|
|
22
|
+
- Six of the seven are independent in the file. The seventh is not, and finding that out is half of
|
|
23
|
+
what this is worth: a reserved field that is not a recognised marker makes the file plain EDF, and
|
|
24
|
+
`parse.ts` passes `edfPlus: variant.isPlus` into both identification grammars — so on that file
|
|
25
|
+
they are not checked and their two codes correctly disappear. Not masking; the file no longer
|
|
26
|
+
deserves them. Worth pinning anyway, because the visible effect is that one wrong five-byte field
|
|
27
|
+
silently stops the patient and recording identification from being examined at all, and nothing
|
|
28
|
+
in the report says so. Fixing the reserved field alone brings both codes back, which is what makes
|
|
29
|
+
it the cause rather than an ordering coincidence.
|
|
30
|
+
|
|
9
31
|
## 0.5.70
|
|
10
32
|
|
|
11
33
|
- **Added** the third thing a caller hands edfcore that edfcore does not own. The buffer is checked
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED