edfcore 0.4.522 → 0.4.523

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/README.md CHANGED
@@ -77,7 +77,7 @@ for (const event of annotations) {
77
77
  }
78
78
  ```
79
79
 
80
- > **Status: 0.4.x, early.** edfcore runs 2,500+ tests on generated fixtures, and it's checked
80
+ > **Status: 0.4.x, early.** edfcore runs 2,700+ tests on generated fixtures, and it's checked
81
81
  > against public corpora it didn't author: the EDF, EDF+ and 24-bit BDF+ test files from
82
82
  > teuniz.net, and PhysioNet's sleep-edfx (a real 22-hour polysomnography recording and its
83
83
  > sleep-staging file). Those checks are numeric. Channels labelled `sine 8.5 Hz` decode to
@@ -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.4.522";
112
+ export declare const VERSION = "0.4.523";
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.4.522';
82
+ export const VERSION = '0.4.523';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,34 @@ 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.4.523
10
+
11
+ - **Fixed** a vacuous assertion in `inspect-safety.test.ts`, the property test for the strongest
12
+ promise in the package. It read `header.signals.length` against
13
+ `header.signals.filter((signal) => signal !== undefined).length` — a `readonly EdfSignal[]` has
14
+ no holes, so the filter drops nothing and the line compared a number with itself.
15
+ - It is the same line, in the same words, that `whole-api.test.ts` carried until 0.3.101, where its
16
+ own docblock records finding it. The copy here outlived the fix by four hundred releases, and it
17
+ was the one line in the file claiming to check that a report is internally coherent rather than
18
+ merely present.
19
+ - In its place are the four consistency claims the corpus test now makes, and here they run over
20
+ damaged bytes rather than six real files: the two index arrays partition the signals (each is
21
+ data or annotations, none is both, none is missing from both), each signal's `index` is its
22
+ position, the reported `headerByteLength` is the one its own signal count implies, `ok` is
23
+ exactly "no error-severity diagnostic", and `bytesRead` exceeds neither the file nor the 128 KiB
24
+ ceiling. All of them hold today under bit flips, truncation at every length, and uniformly
25
+ random bytes.
26
+ - Everything from `header !== undefined` onwards is skipped when triage could not parse one, and
27
+ random bytes almost never produce one — so the run now counts how many reports came back with a
28
+ header and asserts the count. A run that got past that line zero times would report green having
29
+ checked only that nothing threw, which is how the assertion it replaces survived.
30
+ - The suite-size figure moves from 2,500 to 2,700, in the three places that state it — the README's
31
+ status line, the foot of `installation.md`, and the docblock of `browser-safety.test.ts`. The
32
+ tests added over 0.4.520-0.4.522 pushed the written-out count past it, which is the direction
33
+ `test-count-claims.test.ts` exists to catch: "N or more" stays true forever once it is true, so
34
+ the property that makes it safe is the property that makes it worthless. It refused the release
35
+ rather than letting the number quietly describe a smaller repository.
36
+
9
37
  ## 0.4.522
10
38
 
11
39
  - **Added** the reading/scaling/decimating agreement checks to the offline suite — the third group
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.522",
3
+ "version": "0.4.523",
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.4.522';
96
+ export const VERSION = '0.4.523';