edfcore 0.4.465 → 0.4.467

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.4.465";
112
+ export declare const VERSION = "0.4.467";
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.465';
82
+ export const VERSION = '0.4.467';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,41 @@ 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.467
10
+
11
+ - **Added** the test for the third arm of `DIGITAL_RANGE_EXCEEDS_FORMAT`'s advice clause, added in
12
+ 0.3.120 and never run. Deleting it left every case in the suite green.
13
+ - The diagnostic fires when a declared digital range does not fit the format's sample width, and
14
+ its last sentence tells the reader what to expect. 0.3.72 split the annotations case out;
15
+ 0.3.120 added the case where a DATA signal gets no scale either, because the check runs before
16
+ `buildScale` and never asked whether one would exist. Both tested arms were covered; the one in
17
+ the middle was not.
18
+ - The two fixtures are the two commonest ways a writer stamps BDF bounds into an EDF header —
19
+ swapping the pair, and writing one value twice — which leave `INVERTED_DIGITAL_RANGE` and
20
+ `DEGENERATE_DIGITAL_RANGE` behind and no gain at all. Both premises are asserted before the
21
+ wording is: the range really is outside 16 bits, and `signal.scale` really is `undefined`.
22
+ - The assertions exclude the other two arms by name as well as checking their own, so a clause
23
+ that collapsed back to either of them fails here rather than passing on a shared phrase.
24
+
25
+ ## 0.4.466
26
+
27
+ - **Added** tests for `buildSegmentation` over a sparse `ArrayLike`, which is what its signature
28
+ admits and what nothing had ever passed it. `decodeAnnotations` returns a `BigInt64Array`, where
29
+ an index inside the length always holds a value, so both `undefined` checks inside the walk were
30
+ dead: deleting either changed nothing, and the function would then throw on an input its own
31
+ type accepts.
32
+ - Throwing is the wrong answer for this module. It is documented as structural — it reports the
33
+ shape the onsets have and judges none of it — so a hole is not a discontinuity, and a caller
34
+ assembling onsets from partial probes would get a stack trace instead of the segments it does
35
+ know about.
36
+ - Four cases: a hole is skipped and the walk continues past it; a discontinuity between two
37
+ entries that ARE present still splits, so skipping a hole has not become skipping the
38
+ comparison; and a missing record 0 returns nothing at all, with or without an explicit origin,
39
+ because that onset is the axis every second here is measured from.
40
+ - The third `undefined` check, in the gaps loop, is left alone and said so in the test: it reads
41
+ the `segments` array the function built itself, so no input reaches it and pinning it would mean
42
+ faking the array.
43
+
9
44
  ## 0.4.465
10
45
 
11
46
  - **Added** the close half of `cachedSource`'s pass-through, which had never run. At `maxBytes: 0`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.465",
3
+ "version": "0.4.467",
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.465';
96
+ export const VERSION = '0.4.467';