edfcore 0.4.309 → 0.4.311

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.309";
112
+ export declare const VERSION = "0.4.311";
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.309';
82
+ export const VERSION = '0.4.311';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,30 @@ 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.311
10
+
11
+ - **Added** an execution of the worked address on `edf-format.md`. The page prints a hand-written
12
+ `byteOfSample` and one result — byte 1832 for sample 20 of a 16-samples-per-record channel,
13
+ "record 1, sample 4" — as the fastest way to understand the layout. The index and the address
14
+ are parsed out of the page, the arithmetic is run against a file built to the snippet's
15
+ description, and the two bytes at that address are decoded and compared with the sample edfcore
16
+ returns for the same index.
17
+ - The page says "edfcore does that arithmetic for you", and that sentence is the one worth
18
+ holding: the value of the printed byte is that it is the byte the library reads, so the check
19
+ is against a real read rather than against the formula restated.
20
+
21
+ ## 0.4.310
22
+
23
+ - **Added** the second half of 0.4.309: the per-signal address table on `edf-format.md`, ten rows
24
+ of `256 + ns*K + i*W`. Each row's `K` and `W` are checked against `SIGNAL_FIELD_BLOCK_OFFSETS`
25
+ and `SIGNAL_FIELD_WIDTHS`, each address is resolved for several signal counts and compared with
26
+ `signalFieldOffset`, and the two claims the page makes about the table's own shape — that every
27
+ `K` is the sum of the widths before it, and that the widths total 256 — are computed from it.
28
+ - This is the table the page calls "the layout detail that produces the most wrong parsers", and
29
+ the reason is in the check: at `ns = 1` the field-major and struct-per-signal layouts are
30
+ identical, so a one-signal fixture cannot tell them apart. The addresses are resolved at 1, 2 and
31
+ 30 for that reason.
32
+
9
33
  ## 0.4.309
10
34
 
11
35
  - **Added** a check over the fixed header table on `edf-format.md`: ten rows giving the offset and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.309",
3
+ "version": "0.4.311",
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.309';
96
+ export const VERSION = '0.4.311';