edfcore 0.5.29 → 0.5.30

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.29";
112
+ export declare const VERSION = "0.5.30";
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.29';
82
+ export const VERSION = '0.5.30';
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.30
10
+
11
+ - **Added** what `diagnostics.md` prints for one header, printed. The page introduces the two ways of
12
+ looking at a diagnostics array by showing both on the same file: `formatDiagnostics` renders one
13
+ entry in full, five detail lines and all, and `summarizeDiagnostics` reduces the same four
14
+ diagnostics to `total 4, errors 1, warnings 1, infos 2`. Neither transcript was run.
15
+ `diagnostics.test.ts` covers the vocabulary and the sink, `diagnostic-message-lines.test.ts` the
16
+ line discipline, and `summarize-diagnostics.test.ts` the counting rules — all against fixtures of
17
+ their own.
18
+ - The rendered block is the one worth comparing whole. It is what a user pastes into an issue, and
19
+ every part of it is load-bearing differently: the severity and code a reader greps for, the
20
+ message, the byte offset they take to a hex editor, the raw bytes as written, the expected/actual
21
+ pair, and the spec clause. The page is the only place the whole shape appears.
22
+ - The paragraph under it makes four smaller claims and each is now checked: no ANSI escapes unless
23
+ you ask; `color` adds them, and stripping them gives back the uncoloured text exactly, so colour
24
+ is decoration and not content; `maxItems` caps the blocks and appends `... and N more`, dimmed
25
+ with SGR 2 when colour is on; and `formatDiagnostics([])` returns the empty string rather than a
26
+ blank line, which is what lets it concatenate into a larger report.
27
+ - The fixture is built to the page's own numbers rather than to a convenient shape — one error, one
28
+ warning and two infos is what the summary transcript says, and the two infos come from two
29
+ different codes because `byCode` is printed beside them.
30
+
9
31
  ## 0.5.29
10
32
 
11
33
  - **Added** the contract `signalIndices` has to keep at all five reads that take one.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.5.29",
3
+ "version": "0.5.30",
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.29';
96
+ export const VERSION = '0.5.30';