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.
@@ -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.70";
112
+ export declare const VERSION = "0.5.71";
113
113
  //# sourceMappingURL=constants.d.ts.map
package/dist/constants.js CHANGED
@@ -79,5 +79,5 @@ export const SIGNAL_FIELD_BLOCK_OFFSETS = {
79
79
  reserved: 224,
80
80
  };
81
81
  /** Published package version. Kept in sync with package.json by a test. */
82
- export const VERSION = '0.5.70';
82
+ export const VERSION = '0.5.71';
83
83
  //# sourceMappingURL=constants.js.map
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.5.70",
3
+ "version": "0.5.71",
4
4
  "description": "Modern, typed, zero-dependency reader for EDF, EDF+, BDF and BDF+ biosignal files. Works in browsers and Node with true random access.",
5
5
  "keywords": [
6
6
  "edf",
package/src/constants.ts CHANGED
@@ -93,4 +93,4 @@ export const SIGNAL_FIELD_BLOCK_OFFSETS = {
93
93
  } as const;
94
94
 
95
95
  /** Published package version. Kept in sync with package.json by a test. */
96
- export const VERSION = '0.5.70';
96
+ export const VERSION = '0.5.71';