edfcore 0.5.71 → 0.5.72

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.71";
112
+ export declare const VERSION = "0.5.72";
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.71';
82
+ export const VERSION = '0.5.72';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,27 @@ 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.72
10
+
11
+ - **Added** the case none of the four caller-supplied callbacks documents: what happens when yours
12
+ throws. edfcore calls a `ByteSource.read`, an `onProgress` on each of the two traversals, and a
13
+ predicate on the two matching helpers. Three of the four say what they should RETURN and none of
14
+ the four says what a throw does — which is not exotic: a progress callback writes to a DOM node
15
+ that has been removed, a label predicate calls `toLowerCase` on a signal with no label.
16
+ - Two answers matter and they pull opposite ways. The error must arrive UNCHANGED — the same
17
+ object, not wrapped, not turned into a diagnostic — because wrapping it makes the caller's own bug
18
+ look like a problem with the file, and `isEdfError` has to say false for it. And the recording
19
+ must SURVIVE it: every one of these calls happens partway through something with state, and a
20
+ throw unwinds through all of it.
21
+ - `when-your-callback-throws.test.ts` checks both for the three that had nothing;
22
+ `source-contract.test.ts` already covers the source. After a callback throws mid-scan, the same
23
+ recording rebuilds to the same index, validates to the same verdict, and leaves the annotation
24
+ array it was given untouched — each compared against a recording that never saw a failure.
25
+ - One check is about the failure a memoised promise would produce: a second attempt has to reach
26
+ the callback again rather than a remembered rejection, or one bad progress callback breaks the
27
+ operation for the life of the recording. Wrapping the progress call in a `try`/`catch` that
28
+ swallows fails three of the nine.
29
+
9
30
  ## 0.5.71
10
31
 
11
32
  - **Added** the case every diagnostic test avoids: a file with more than one thing wrong with it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.5.71",
3
+ "version": "0.5.72",
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.71';
96
+ export const VERSION = '0.5.72';