edfcore 0.5.8 → 0.5.9

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.8";
112
+ export declare const VERSION = "0.5.9";
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.8';
82
+ export const VERSION = '0.5.9';
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.5.9
10
+
11
+ - **Added** the row of `data-sources.md`'s "When a 200 is first seen" table that had no test. The
12
+ page refuses a `200 OK` answer to a Range request by default — the server sent the whole resource
13
+ rather than the bytes asked for — and tabulates when that is discovered, three ways.
14
+ `hardening.test.ts` covers the two the page calls "the ordinary shape of this failure": a CDN
15
+ that answers `HEAD` and then ignores `Range` constructs cleanly and refuses the first read.
16
+ - The uncovered row is the one a caller reaches deliberately. Passing `options.byteLength` skips
17
+ both the `HEAD` and the probe, so nothing is asked while constructing — the run asserts zero
18
+ requests — and the refusal lands on the first `read()` instead.
19
+ - Which matters for where a `try`/`catch` goes. A source that constructs and then refuses needs the
20
+ guard around the read; one that refuses at construction needs it around the constructor. Getting
21
+ that wrong is not a crash, it is an unhandled rejection somewhere a page never expected one.
22
+ - The same row is checked with `allowFullDownload`, where the body is buffered at the point the 200
23
+ arrives: the first read returns real bytes, a second read is served from what is already held, and
24
+ only one `GET` is ever issued — "one download rather than two", as the page puts it. The rows are
25
+ read out of the table, so a row added to it is a row with no test until it has one.
26
+
9
27
  ## 0.5.8
10
28
 
11
29
  - **Added** the tie between the three places that count the ways a scale can be refused.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
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.8';
96
+ export const VERSION = '0.5.9';