edfcore 0.4.262 → 0.4.264

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.262";
112
+ export declare const VERSION = "0.4.264";
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.262';
82
+ export const VERSION = '0.4.264';
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.264
10
+
11
+ - **Widened** the guard added in 0.4.239, which enforced the narrower half of its own rule. It
12
+ forbade a test globbing a TypeScript file out of `website/` and said nothing about importing
13
+ one, which reaches the same vite transform by the more obvious route — and the transform is what
14
+ resolves `website/tsconfig.json` and its `astro/tsconfigs/strict`, which the CI `check` job
15
+ never installs. Confirmed rather than assumed: `import { buildSampleEdf } from
16
+ '../../website/src/scripts/sample-edf.js'` passes locally and dies with the same
17
+ `[TSCONFIG_ERROR]` with `website/node_modules` moved aside, which is exactly how six versions
18
+ were lost in 0.4.237. Static imports, re-exports and `import()` are all covered now, and the
19
+ file is named for the boundary rather than for globs.
20
+ - Comments are stripped before the scan, the rule 0.4.232 arrived at for the same reason: this
21
+ file's own docblock quotes the offending import to explain it, and the first run of the widened
22
+ check reported itself.
23
+
24
+ ## 0.4.263
25
+
26
+ - **Added** a sweep that compiles every self-contained example in the documentation, instead of
27
+ the five somebody remembered to write a twin for. `documented-examples.test-d.ts` keeps a
28
+ hand-written compiled copy per snippet, which is thorough and does not scale; the site has 102
29
+ fenced blocks that import from `edfcore`. All of them are now extracted, pointed at `src/`, and
30
+ compiled in one `tsc` under the flags this repository builds with. It costs about 1.5 seconds.
31
+ - **Fixed** the example it found on `discontinuous.md`, which passed `chunk.signals[0]` to
32
+ `trimToWindow` — `EdfChunkSignal | undefined` under `noUncheckedIndexedAccess`, so
33
+ `TS2345`. That is the fourth page with this defect and the last one; 0.4.260 through 0.4.262
34
+ fixed the README, `reading-signals.md` and `annotations.md`.
35
+ - Fences that cannot stand alone are skipped, on two markers that both mean "part of something
36
+ larger" rather than "wrong": `TS2304 Cannot find name`, for a block using a `recording` an
37
+ earlier block declared, and `TS1108`, for a block that is a function body shown without its
38
+ signature — which is how `api-errors.md` and `diagnostics.md` teach a handler. The number left
39
+ standing alone is asserted to stay above twenty, so the exemption cannot quietly grow to cover
40
+ everything.
41
+
9
42
  ## 0.4.262
10
43
 
11
44
  - **Fixed** the worked example on `annotations.md` — read the sample under each sleep-stage event
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.262",
3
+ "version": "0.4.264",
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.262';
96
+ export const VERSION = '0.4.264';