edfcore 0.5.10 → 0.5.11

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.10";
112
+ export declare const VERSION = "0.5.11";
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.10';
82
+ export const VERSION = '0.5.11';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,26 @@ 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.11
10
+
11
+ - **Added** the sentence `api-helpers.md` gives as the entire reason `readEnvelopeAtResolution`
12
+ exists separately from `readEnvelope`: "Widths that disagree cannot be drawn on one axis." Above
13
+ it the page lists the two ways that went wrong, each with the numbers it produced — a window of
14
+ 11 s asked at 1 s per bucket coming back as 0.27 s per bucket in one chunk and 0.09 s in the
15
+ other (0.2.31), and a 100 s run at 30 s per bucket giving four buckets of 25 s while a 60 s run in
16
+ the same call gave two of 30 s (0.3.9). Both were history, and neither was pinned.
17
+ - The existing envelope tests cover the bucket COUNT — that it is not always what you asked for, and
18
+ why the two entry points clamp differently — which is the field a caller loops over. The WIDTH is
19
+ the field a caller draws with. A viewer placing bucket `b` at `startSeconds + b * secondsPerBucket`
20
+ gets a plot whose x-axis changes scale halfway across if two chunks disagree; nothing looks wrong,
21
+ the second half of the trace is simply drawn at a different rate from the first.
22
+ - Both ways one call ends up with runs of different lengths are exercised: a window spanning a gap,
23
+ and a window that does not begin on a record boundary and so produces a first run wider than it
24
+ asked for. The run lengths are asserted to differ, or the check is one run repeated.
25
+ - The grid is also asserted to cover its run and not sprawl past it — the span of the buckets is at
26
+ least the chunk's duration and overhangs it by less than one bucket — which is what makes the
27
+ reported width usable for placing them.
28
+
9
29
  ## 0.5.10
10
30
 
11
31
  - **Added** the hex dump line `diagnostics.md` prints. The page shows one line — `bytes: 63 61 66
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
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.10';
96
+ export const VERSION = '0.5.11';