edfcore 0.4.525 → 0.4.526

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.525";
112
+ export declare const VERSION = "0.4.526";
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.525';
82
+ export const VERSION = '0.4.526';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,25 @@ 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.526
10
+
11
+ - **Added** the callout on `diagnostics.md` that stops a reader gating a read on the wrong number:
12
+ "`report.ok` is `severity !== 'error'` over a superset of `header.diagnostics`". It says three
13
+ things, each a claim about behaviour, and `diagnostic-docs.test.ts` checked only that the page
14
+ still words it that way.
15
+ - The superset half is the one that could rot in silence. `validateRecording` builds its own list,
16
+ so a header diagnostic dropped on the way in leaves the report describing a cleaner file than the
17
+ header did — and the report is the stricter of the two by construction, which is the direction
18
+ nobody thinks to check. Every diagnostic is now matched by severity, code and message, so two
19
+ occurrences of one code are two entries rather than one.
20
+ - `ok` is asserted as the sentence the page writes it as, twice over: directly against the report's
21
+ own diagnostics, and through `summarizeDiagnostics(...).errors === 0`, which is what a caller
22
+ actually counts with.
23
+ - The last clause is checked on the file it is about. A signal with a degenerate digital range
24
+ carries an `error`-severity diagnostic and makes `report.ok` false — and the file reads perfectly,
25
+ including that channel's samples, which is the deferred-fatal contract and the entire reason the
26
+ callout exists. Both verdicts are reached across the eight shapes, so neither is a constant.
27
+
9
28
  ## 0.4.525
10
29
 
11
30
  - **Added** a check that what the CLI prints is what the library reports, over the eight awkward
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.525",
3
+ "version": "0.4.526",
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.525';
96
+ export const VERSION = '0.4.526';