edfcore 0.4.345 → 0.4.347

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.345";
112
+ export declare const VERSION = "0.4.347";
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.345';
82
+ export const VERSION = '0.4.347';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,39 @@ 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.347
10
+
11
+ - **Added** an execution of the `bigint` ticks decision on `design-decisions.md`. It is defended
12
+ with a specific, hard-to-notice failure — two onsets that are one instant on disk comparing
13
+ unequal after a round trip through a binary fraction, an averaging window landing a sample off
14
+ for a subset of trials — and that is arithmetic, so it can be shown instead of asserted.
15
+ - Worth showing, because the cost paragraph underneath is a standing invitation to convert to
16
+ seconds and be done with it. Three tenths is now demonstrated to be three times one tenth to the
17
+ tick and not in seconds, and a seven-decimal onset survives exactly while its float does not.
18
+ - The path itself is checked from the source. `tal/ticks.ts` states that `parseFloat`,
19
+ `Number(text)` and float arithmetic appear nowhere on it, and nothing made that true — it is one
20
+ careless conversion away from being false while every existing test passes, because the two agree
21
+ on almost every value. Scanned with comments stripped, since the docblock making the claim quotes
22
+ the very calls being looked for.
23
+
24
+ ## 0.4.346
25
+
26
+ - **Added** an execution of the `strict` section of `design-decisions.md`, which is where the
27
+ odd-looking choices are defended and where two pieces of load-bearing behaviour had no test that
28
+ read the page.
29
+ - The `info` exemption is the first. Without it, `strict: true` would reject nearly every real
30
+ recording — `DATE_CLIPPED_TO_1985_2084` is on almost all of them — and it would do it while
31
+ looking correct, because the mode is called strict and rejecting is what it is for. Removing it
32
+ reads as tightening. A conforming file now has to open under strict and still carry that
33
+ diagnostic.
34
+ - The second is the list of conditions that throw "either way". Three of the four are properties of
35
+ the header and are checked in both modes. The fourth, record onsets that go backwards, gets its
36
+ own section, because choosing a fixture where it throws at open would have hidden something real:
37
+ `openEdf` reads records 0 and n-1 and nothing else, so a reversal between them throws immediately
38
+ and one in the middle is not something it has seen. That file opens with a probed index and
39
+ throws the moment `buildRecordIndex` reads the records — "either way" is about the two modes, not
40
+ about throwing before the bytes are read.
41
+
9
42
  ## 0.4.345
10
43
 
11
44
  - **Added** a check that the six single-interface field tables on `api-types.md` list exactly the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.345",
3
+ "version": "0.4.347",
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.345';
96
+ export const VERSION = '0.4.347';