edfcore 0.5.50 → 0.5.51

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.50";
112
+ export declare const VERSION = "0.5.51";
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.50';
82
+ export const VERSION = '0.5.51';
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.51
10
+
11
+ - **Added** the promise `annotations.md` makes about partial reads, and the thing it costs.
12
+ `readAnnotations` "supplies the rebasing origin from the timeline, so a partial range answers the
13
+ same as a whole-file one" — and could not derive that origin on its own, because "a range that
14
+ does not contain record 0 has to infer it from an observed onset, which only works while the
15
+ records in between are contiguous". Before 0.2.28 the pairing the page recommends,
16
+ `readAnnotations(recording, chunk.records)`, reported the same event a quarter of a second later
17
+ than a whole-file decode did.
18
+ - Three behaviours, one of them a defect that shipped, and none under test: `readAnnotations` was
19
+ checked on whole files and on single ranges, and nothing partitioned a file and compared.
20
+ - The property runs first. For any partition of the record range into contiguous pieces, the reads
21
+ concatenate to the whole-file read — every field of every event, both axes, both exact tick counts
22
+ and `recordOnsetTicks` — over a contiguous file, one with a quarter-second start offset, and an
23
+ EDF+D file with a twenty-second hole.
24
+ - Then the three-way comparison that shows the origin doing the work, on the post-gap range of that
25
+ EDF+D file. `readAnnotations` puts the event at 26.5 s on the record axis. `decodeAnnotations`
26
+ called directly on the same bytes puts it at 26.75 — its inferred origin lands outside `[0, 1)`,
27
+ so rebasing switches off and the two axes come back equal, exactly as documented. Passing
28
+ `startOffsetTicks` by hand restores 26.5. And on the same shape without the hole the inference
29
+ works unaided, which is what makes the failure about EDF+D rather than about partial ranges.
30
+
9
31
  ## 0.5.50
10
32
 
11
33
  - **Added** three ways a header can be written and mean the same thing. Each is documented, each is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.5.50",
3
+ "version": "0.5.51",
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.50';
96
+ export const VERSION = '0.5.51';