edfcore 0.4.480 → 0.4.481

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.480";
112
+ export declare const VERSION = "0.4.481";
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.480';
82
+ export const VERSION = '0.4.481';
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.481
10
+
11
+ - **Added** tests for the two overlaps `validate.ts` documents as deliberate. Its docblock names
12
+ `RECORD_SIZE_ABOVE_RECOMMENDED` and `PATIENT_ID_NONCONFORMANT` as codes the parser already
13
+ emits, re-checked here "so a validation report stands on its own instead of only making sense
14
+ next to `header.diagnostics`" — and neither had ever been produced by `validateHeader` in a
15
+ test. Both were covered through `parseHeader`, which is the other copy, so deleting either
16
+ function from this module left the suite green.
17
+ - A report that silently stopped standing on its own is the one failure that sentence exists to
18
+ prevent, and it is invisible: the codes are identical, so only the wording says which function
19
+ produced a diagnostic. Each case now asserts that the parser reports it, that `validateHeader`
20
+ reports it too, and that the two are distinguishable.
21
+ - The list is read out of the docblock rather than written into the test. A third overlap added to
22
+ that sentence without a case fails the first check, which is what stops the prose and the cover
23
+ drifting apart — the same shape of drift 0.4.455 found in a test name.
24
+ - The record-size boundary is pinned in both copies: 61,440 bytes exactly is not above the
25
+ recommendation. Narrowing that comparison warns every file that sized its records to the number
26
+ the specification names, which is the one size a careful writer would pick.
27
+
9
28
  ## 0.4.480
10
29
 
11
30
  - **Added** membership checks inside the two directories the package actually ships.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.480",
3
+ "version": "0.4.481",
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.480';
96
+ export const VERSION = '0.4.481';