edfcore 0.6.81 → 0.6.83

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.81";
112
+ export declare const VERSION = "0.6.83";
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.81';
82
+ export const VERSION = '0.6.83';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,33 @@ 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.83
10
+
11
+ - **Fixed** the landing page's gap example, whose two working lines both fail on the index it was
12
+ holding. `readWindow` across a gap THROWS on the probed index `openEdf` returns — two probes
13
+ cannot say where the hole is — and `precededByGap` is documented as "`undefined` on a probed
14
+ index, which is 'nobody looked' rather than 'no gap'".
15
+ - That example is the page's whole argument for EDF+D support, and `discontinuous.md` opens by
16
+ demonstrating the same call failing before it reaches for `buildRecordIndex`. The landing page
17
+ showed the destination without the step. It now builds the index first, which is two lines.
18
+ - `chunks[1]` is optional-chained as well, the class 0.6.78 fixed one sample above it. The test
19
+ runs the sequence against a file with a real hole and pins the old one throwing.
20
+
21
+ ## 0.6.82
22
+
23
+ - **Fixed** the clock the inspector prints beside each event, which read
24
+ `onsetSecondsFromFirstRecord` and floored it. `format-annotations.ts` states the rule for the
25
+ library's own event list and why it is not fussiness: the seconds are "a float64 produced by
26
+ dividing an exact tick count by 10,000,000 … and an event list is exactly where someone reads a
27
+ number off the screen and types it into something else."
28
+ - The inspector's table is that event list. It now divides `onsetTicksFromFirstRecord` in integers,
29
+ floors the way the library floors — so the printed time never names an instant later than the
30
+ event — and keeps the sign a negative onset carries, which EDF+ allows because a recording may
31
+ begin after its first annotation.
32
+ - The test finds a tick count where the two routes disagree rather than assuming one exists: one
33
+ tick short of a whole second, at a scale where one tick is below the float's ulp, the float
34
+ route names the second AFTER the event.
35
+
9
36
  ## 0.6.81
10
37
 
11
38
  - **Fixed** the inspector deciding which events fall in the window it draws by comparing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.6.81",
3
+ "version": "0.6.83",
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.81';
96
+ export const VERSION = '0.6.83';