edfcore 0.5.22 → 0.5.23

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.22";
112
+ export declare const VERSION = "0.5.23";
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.22';
82
+ export const VERSION = '0.5.23';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,32 @@ 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.23
10
+
11
+ - **Added** the conformance report `validation.md` prints, printed. That page ends with a whole
12
+ program and the output it produces on one file: a header line, a summary line, two diagnostic
13
+ blocks, and two per-signal stat lines. `validate-page.test.ts` covers the code table higher up and
14
+ `validation-report.test.ts` the `report.ok` rule; the transcript — the thing a reader compares
15
+ their own terminal against — was prose.
16
+ - The stat lines are the reason it is worth running. They are not printed by edfcore at all: the
17
+ page composes them from `report.signalStats`, `getSignal` and arithmetic of its own, and the
18
+ paragraph under them is an argument built on the result. "The first channel uses half a percent of
19
+ the range its header declares, which is legal and lossy." "81,806 of its 153,600 samples fall
20
+ outside the range the header declares, so that declaration is wrong." A change to
21
+ `observedDigitalMin`, `outOfDigitalRangeCount` or `sampleCount` would leave the page arguing from
22
+ figures the library no longer produces.
23
+ - The snippet is now run rather than restated: the stat lines are built by the same expression the
24
+ page shows and compared against the page's own text character for character, along with the
25
+ summary line's `no errors, 4 diagnostics, 600 records and 650400 bytes read`.
26
+ - The fixture is built to the page's description and its geometry falls out of the transcript —
27
+ 600 one-second records at 650,400 bytes is 1,084 a record, which is two 256-sample channels and a
28
+ 30-sample annotation region, and 153,600 samples is 600 x 256. The one number that cannot be
29
+ derived is how many fall outside; that is read off the page and built into the sample generator,
30
+ which is what makes the count an assertion about the counter rather than about the waveform.
31
+ - The last sentence of the paragraph is checked too. "Any consumer that clamps to it returns
32
+ different numbers for this file than edfcore does" — a read returns the bytes as written, at
33
+ -150..150 outside the declared -100..100, and `clampToDigitalRange` returns something else.
34
+
9
35
  ## 0.5.22
10
36
 
11
37
  - **Added** the scrolling table on `large-files.md`, measured. `large-files-cost.test.ts` runs the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.5.22",
3
+ "version": "0.5.23",
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.22';
96
+ export const VERSION = '0.5.23';