edfcore 0.6.18 → 0.6.19

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.6.18";
112
+ export declare const VERSION = "0.6.19";
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.6.18';
82
+ export const VERSION = '0.6.19';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,25 @@ 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.6.19
10
+
11
+ - **Added** a twelfth shape to the `AWKWARD` matrix: a file whose record count field says `-1`, so
12
+ the count is recovered from the source length. `types.ts` says of that field "`-1` means the
13
+ writer never closed the file", and it is not a rare accident — it is what a recorder writes while
14
+ it is still recording, and what stays there if the software crashes or the disk fills.
15
+ - The recovery itself was covered — `parse.test.ts` for the arithmetic,
16
+ `one-recording-two-spellings.test.ts` for the equivalence — and the shape had never been put in
17
+ front of the twenty-two sweeps that run over the matrix: every index resolves, ticks and seconds
18
+ agree, every array is frozen, nothing points at the caller's buffer, the five source spellings,
19
+ and the rest. It is the only shape in the matrix whose geometry rests on arithmetic rather than
20
+ on a number the file states, and each of those sweeps asks a question of a whole file.
21
+ - They all pass over it. That is the result: the properties were stated to hold for any file, and
22
+ until now none of them had seen one whose record count nobody wrote down.
23
+ - `a-count-the-header-never-gave.test.ts` pins what makes it that shape — `-1` in the field, five in
24
+ the header, `recordCountSource: 'sourceByteLength'`, and the diagnostic that says so — and checks
25
+ it is the only shape in the matrix that recovers. A fixture drifting into an ordinary file would
26
+ otherwise leave twenty-two sweeps looking as though they cover something they no longer do.
27
+
9
28
  ## 0.6.18
10
29
 
11
30
  - **Fixed** the same thing in the two files 0.6.17 could not see. `README.md` and `AGENTS.md` are
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.6.18",
3
+ "version": "0.6.19",
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.6.18';
96
+ export const VERSION = '0.6.19';