edfcore 0.4.188 → 0.4.190

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.188";
112
+ export declare const VERSION = "0.4.190";
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.188';
82
+ export const VERSION = '0.4.190';
83
83
  //# sourceMappingURL=constants.js.map
@@ -29,8 +29,8 @@ function clock(ticks) {
29
29
  // Floored toward -Infinity, not truncated toward zero. Taking the magnitude first and then
30
30
  // truncating moves a NEGATIVE onset LATER: `-1.5009 s` printed as `-00:00:01.500`, 0.9 ms after
31
31
  // the event. The positive twin `+1.5009` printed `00:00:01.500`, correctly before its event, so
32
- // the guarantee held for exactly the half of the range that the paragraph below says is the
33
- // unusual one. `-1.5009` now prints `-00:00:01.501` (fixed in 0.3.45).
32
+ // the guarantee held for exactly the half of the range that the note at the top of this file
33
+ // has to argue is legal at all. `-1.5009` now prints `-00:00:01.501` (fixed in 0.3.45).
34
34
  const flooredMilliseconds = floorDiv(ticks, TICKS_PER_MILLISECOND);
35
35
  const negative = flooredMilliseconds < 0n;
36
36
  const totalMilliseconds = negative ? -flooredMilliseconds : flooredMilliseconds;
@@ -1 +1 @@
1
- {"version":3,"file":"format-annotations.js","sourceRoot":"","sources":["../src/format-annotations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;A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KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE9E,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAClC,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QAClC,IAAI,UAAU,KAAK,SAAS;YAAE,SAAS;QACvC,0FAA0F;QAC1F,8FAA8F;QAC9F,4FAA4F;QAC5F,kFAAkF;QAClF,MAAM,KAAK,GAAG;YACZ,KAAK,CAAC,UAAU,CAAC,yBAAyB,CAAC;YAC3C,QAAQ,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC;SAC3B,CAAC;QACF,IAAI,OAAO,EAAE,cAAc,KAAK,IAAI,IAAI,UAAU,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YAC9E,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QACxD,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,GAAG,KAAK,CAAC;IAC1C,mFAAmF;IACnF,IAAI,MAAM,GAAG,CAAC;QAAE,IAAI,CAAC,IAAI,CAAC,WAAW,MAAM,OAAO,CAAC,CAAC;IAEpD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC"}
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,21 @@ 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.190
10
+
11
+ - **Widened** the docs-coverage guard to derive what `./validate` and `./node` export instead of
12
+ hand-listing it. It named five symbols, so it covered those two subpaths as they stood the day it
13
+ was written and nothing added afterwards — while the universal barrel beside it has been read from
14
+ `Object.keys` all along. Checked by adding an undocumented export to `src/validate.ts`: the list
15
+ passed it, the derived set names it.
16
+
17
+ ## 0.4.189
18
+
19
+ - **Corrected** a pointer in `clock()` that sent the reader the wrong way. It cited "the paragraph
20
+ below" for why a negative onset is the unusual half of the range; that paragraph is the module
21
+ note at the top of the file, and nothing below the comment discusses it. It now names the note by
22
+ position instead of by direction, which is what rotted.
23
+
9
24
  ## 0.4.188
10
25
 
11
26
  - **Corrected** the `readWindow` docblock, which told the reader the sentence above it "said could
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.188",
3
+ "version": "0.4.190",
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.188';
96
+ export const VERSION = '0.4.190';
@@ -45,8 +45,8 @@ function clock(ticks: bigint): string {
45
45
  // Floored toward -Infinity, not truncated toward zero. Taking the magnitude first and then
46
46
  // truncating moves a NEGATIVE onset LATER: `-1.5009 s` printed as `-00:00:01.500`, 0.9 ms after
47
47
  // the event. The positive twin `+1.5009` printed `00:00:01.500`, correctly before its event, so
48
- // the guarantee held for exactly the half of the range that the paragraph below says is the
49
- // unusual one. `-1.5009` now prints `-00:00:01.501` (fixed in 0.3.45).
48
+ // the guarantee held for exactly the half of the range that the note at the top of this file
49
+ // has to argue is legal at all. `-1.5009` now prints `-00:00:01.501` (fixed in 0.3.45).
50
50
  const flooredMilliseconds = floorDiv(ticks, TICKS_PER_MILLISECOND);
51
51
  const negative = flooredMilliseconds < 0n;
52
52
  const totalMilliseconds = negative ? -flooredMilliseconds : flooredMilliseconds;