edfcore 0.3.86 → 0.3.88

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/CHANGELOG.md CHANGED
@@ -6,6 +6,36 @@ 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.3.88
10
+
11
+ - **Fixed** `data-sources.md` saying the ignored-`Range` check "happens during the length probe,
12
+ before a second request is made". The probe runs on only one of the three ways `httpSource` learns
13
+ a length, and on the other two the check cannot fire until the caller's first `read()`.
14
+ - `httpSource` returns before the probe when `options.byteLength` was supplied, and again when
15
+ `HEAD` gave a usable `Content-Length`. A CDN that answers `HEAD` and then ignores `Range` — the
16
+ ordinary shape of this failure — therefore hands back a source that constructs cleanly and
17
+ refuses the first read. A reader who trusted the page treated a successful `httpSource()` as
18
+ proof the origin honours `Range`.
19
+ - The page now gives the rule as a table of the three paths and says which of them can see a 200
20
+ at construction.
21
+ - The test drives both branches through a fake `fetch` and asserts the request METHODS issued —
22
+ `['HEAD']` when HEAD answers, `['HEAD', 'GET']` when it does not — so it pins the reason the two
23
+ behave differently, not just that they do.
24
+
25
+ ## 0.3.87
26
+
27
+ - **Fixed** `api-validate.md` saying "The other five are also emitted by the parser" under a
28
+ ten-row table from which four codes had just been excluded. Ten minus four is six, and all six
29
+ really are parser codes: `RECORD_SIZE_ABOVE_RECOMMENDED`, `PATIENT_ID_NONCONFORMANT`,
30
+ `RECORDING_ID_NONCONFORMANT`, `DATE_UNPARSEABLE`, `DATE_FIELDS_DISAGREE` and
31
+ `STARTTIME_UNPARSEABLE`.
32
+ - The sentence is load-bearing — it is how a reader knows the report stands on its own rather than
33
+ only making sense beside `header.diagnostics` — so a reader who counted the table and got a
34
+ different answer had reason to doubt the claim rather than the arithmetic.
35
+ - Both numbers are now derived from the table itself: the count of rows, minus the count the prose
36
+ says exist nowhere else. Adding a row fails the suite until the prose is updated, which is the
37
+ rule 0.3.63 applied to `diagnostics.md` after the same kind of drift.
38
+
9
39
  ## 0.3.86
10
40
 
11
41
  - **Fixed** `formatStartTimeNaive`'s reference entry naming one of its two `undefined` cases, and
@@ -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.3.86";
112
+ export declare const VERSION = "0.3.88";
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.3.86';
82
+ export const VERSION = '0.3.88';
83
83
  //# sourceMappingURL=constants.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.3.86",
3
+ "version": "0.3.88",
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.3.86';
96
+ export const VERSION = '0.3.88';