edfcore 0.5.27 → 0.5.28

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.27";
112
+ export declare const VERSION = "0.5.28";
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.27';
82
+ export const VERSION = '0.5.28';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,30 @@ 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.28
10
+
11
+ - **Added** an already-aborted signal driven through every entry point that takes one.
12
+ `api-sources.md` says edfcore "polls `.aborted` before and after each read and throws an `Error`
13
+ whose `name` is `'AbortError'`"; `data-sources.md` adds that every bundled adapter checks it
14
+ before it starts, and that the rejection "is a plain `Error` ... not an `EdfError`.
15
+ `isEdfError` returns false for it, so a `catch` that re-throws aborts stays simple."
16
+ - `http-abort-signal.test.ts` covers the adapter with the most to go wrong. What nothing covered is
17
+ the sentence's scope. The guard lives in the SOURCES, and every reading function reaches it only
18
+ by issuing a read — so whether each of them actually does, before allocating, before scanning,
19
+ before decoding, is a property of thirteen call paths rather than of the four adapters. A function
20
+ that resolved its window or sized its buffer first would do that work for a caller who had already
21
+ cancelled.
22
+ - All thirteen are now driven, and each must reject with `name === 'AbortError'` and `isEdfError`
23
+ false — the discriminator the page says consumers branch on, chosen because `DOMException` cannot
24
+ be named without the DOM lib. The four adapters are driven directly alongside them, and each is
25
+ also shown to read normally when the signal is simply not aborted.
26
+ - The one place it does not fire is checked with them, because it is documented rather than
27
+ accidental: `api-reading.md` says a record range with `count: 0` "issues no read at all", and a
28
+ call that reads nothing has nothing to abort.
29
+ - The last block is the other half of `ReadOptions`' own docblock — "cancelling a read and capping an
30
+ allocation never alter what a completed call returns". A signal that is never aborted leaves every
31
+ result identical to one passed no options at all.
32
+
9
33
  ## 0.5.27
10
34
 
11
35
  - **Added** a non-finite bound driven through every entry point that takes a time in seconds.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.5.27",
3
+ "version": "0.5.28",
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.27';
96
+ export const VERSION = '0.5.28';