edfcore 0.4.429 → 0.4.430

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.429";
112
+ export declare const VERSION = "0.4.430";
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.429';
82
+ export const VERSION = '0.4.430';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,24 @@ 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.430
10
+
11
+ - **Added** tests for a patient's date of birth being redacted out of a message that never quotes
12
+ the field. `redactDiagnostic` withholds identification by substituting the field's value out of
13
+ the message by text, and `DATE_IMPLAUSIBLE` defeats every spelling of it: the field says
14
+ `02-MAY-2050`, the message says `2050-05-02`, because it is comparing two dates and prints both
15
+ in one form. No substring of the raw field appears in that sentence. It is redacted anyway, from
16
+ `actual` — which carries whatever the message chose to print.
17
+ - It is also the case with the widest reach. The other identification diagnostics fire on a
18
+ malformed field, so a conformant file never produces them; this one fires on a perfectly
19
+ conformant patient field whose only fault is a year the two-digit header rule resolved into the
20
+ future, which is what a recording made before 1985 or after 2084 looks like. A clinical file with
21
+ nothing wrong with it, printed by a command asked to withhold the patient, and a date of birth in
22
+ the output.
23
+ - The other half is what must survive. Substitution is on the value, never on the code or the rule,
24
+ so the code, the byte offset, the field name, the spec clause and the recording's own start date
25
+ are all still there — and a field nobody asked to withhold is still quoted verbatim.
26
+
9
27
  ## 0.4.429
10
28
 
11
29
  - **Added** tests for `edfcore validate` exiting 1 because validation failed. The exit-code table on
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.429",
3
+ "version": "0.4.430",
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.429';
96
+ export const VERSION = '0.4.430';