edfcore 0.4.518 → 0.4.519

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.4.518";
112
+ export declare const VERSION = "0.4.519";
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.4.518';
82
+ export const VERSION = '0.4.519';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,26 @@ 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.4.519
10
+
11
+ - **Added** an offline check of the claim `api-helpers.md` makes for `streamRecords`: "a streamed
12
+ chunk and a read chunk are the same object in every respect, diagnostics included". It is what
13
+ lets a caller develop against `readWindow` and switch to streaming for the twenty-two-hour file
14
+ without touching their own downstream code.
15
+ - It was checked in exactly one place, `tests/corpus/large-file.test.ts`, which skips without
16
+ `npm run corpus:fetch` — so on a fresh clone nothing compared the two at all. And that comparison
17
+ is of samples, which is the half that survives a chunk losing its diagnostics, its
18
+ `precededByGap` or its byte accounting.
19
+ - "Every respect" is now taken literally: each streamed chunk is compared field for field with the
20
+ chunk `readRecords` returns for the same records, at four chunk sizes. The fixture makes the
21
+ usually-empty fields non-empty — a gap in the middle so one chunk carries a `precededByGap`, a
22
+ malformed TAL onset so one carries a diagnostic — because a chunk whose optional fields are all
23
+ absent compares equal to a chunk that dropped them, and the run asserts both were populated.
24
+ - The two claims in the same sentence are checked beside it: the chunks arrive in time order, and
25
+ none spans a gap at any chunk size. The second is what makes `durationTicks` mean what a reader
26
+ thinks — `readRecords` will hand back a chunk straddling a discontinuity, because you named the
27
+ records, and a streamed chunk must never be one.
28
+
9
29
  ## 0.4.518
10
30
 
11
31
  - **Added** the other convention `api-types.md` states in bold: "Anything checkable against the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.518",
3
+ "version": "0.4.519",
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.4.518';
96
+ export const VERSION = '0.4.519';