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.
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/docs/CHANGELOG.md +24 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -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.
|
|
112
|
+
export declare const VERSION = "0.5.28";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
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
package/src/constants.ts
CHANGED