edfcore 0.4.467 → 0.4.468

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.467";
112
+ export declare const VERSION = "0.4.468";
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.467';
82
+ export const VERSION = '0.4.468';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,23 @@ 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.468
10
+
11
+ - **Added** tests for the half of `redactDiagnostic` that had never been asked: what happens to a
12
+ diagnostic on a withheld field that carried no `raw` or no `actual`. Both substitutions are
13
+ conditional, and making either unconditional left the suite green.
14
+ - The consequence is the 0.3.31 failure with its sign flipped. `raw: "[redacted]"` on a diagnostic
15
+ that never held the bytes makes `formatDiagnostics` print a `raw:` line under it, so a reader
16
+ auditing a report for what the tool held back finds evidence of patient text where there was
17
+ none. Output that looks redacted is worse than an obvious leak in both directions.
18
+ - Also pinned: `expected` survives redaction. It is the grammar the field should have followed,
19
+ not a value read out of the file, and substituting it removes the only part of the line that
20
+ says what to do. And `actual` alone is enough to clear the message, which matters because a
21
+ diagnostic with no `raw` has no other spelling of the value to substitute by.
22
+ - The diagnostics are written out rather than provoked from a file: `formatDiagnostics` is public
23
+ and takes any `EdfDiagnostic[]`, every parser-built identification diagnostic happens to carry
24
+ both fields, and the contract being pinned is the function's rather than one file's.
25
+
9
26
  ## 0.4.467
10
27
 
11
28
  - **Added** the test for the third arm of `DIGITAL_RANGE_EXCEEDS_FORMAT`'s advice clause, added in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.467",
3
+ "version": "0.4.468",
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.467';
96
+ export const VERSION = '0.4.468';