edfcore 0.3.51 → 0.3.53

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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,32 @@ 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.3.53
10
+
11
+ - **Fixed** the README status line, which said **"Status: 0.1.x, early"** — through fifty-one
12
+ releases and two minor versions. It is the first thing a reader sees on npm, and it named a
13
+ series nobody could install.
14
+ - `tests/integration/readme-status.test.ts` reads the series back out of the line and compares it
15
+ with `package.json`, which changes on its own every release. The line cannot go stale again
16
+ without failing the suite.
17
+ - The "1,200+ tests" in the same sentence is left as written. It is a floor and it is still true —
18
+ the suite runs 1,772 — and raising it to a number no test can verify would reintroduce exactly
19
+ the kind of unchecked claim this release is about.
20
+
21
+ ## 0.3.52
22
+
23
+ - **Documented** `-v`. `parseArgs` has accepted it as an alias for `--version` for as long as it has
24
+ accepted `--version`, and the usage banner printed `--version` alone — while printing `--help, -h`
25
+ with its alias two lines above. A flag that works and is not in `--help` is one nobody can find
26
+ and nobody can rely on.
27
+ - `tests/integration/cli.test.ts` now derives the flag list from `parseArgs` itself and requires
28
+ every accepted flag to appear in the usage banner, so a new one fails the suite until it is
29
+ documented.
30
+ - The check matches whole tokens, not substrings. `expect(usage).toContain('-v')` is satisfied by
31
+ the `-v` inside `--version` — that is, by the exact text that had the bug — so the obvious
32
+ spelling of this guard would have passed on it. There is an assertion pinning that distinction
33
+ beside the others, because it is the only reason this test works.
34
+
9
35
  ## 0.3.51
10
36
 
11
37
  - **Corrected** the `filterAnnotationsByText` docblock, which said a string "matches on the exact
package/README.md CHANGED
@@ -72,7 +72,7 @@ for (const event of annotations) {
72
72
  }
73
73
  ```
74
74
 
75
- > **Status: 0.1.x, early.** edfcore runs 1,200+ tests on generated fixtures, and it's checked
75
+ > **Status: 0.3.x, early.** edfcore runs 1,200+ tests on generated fixtures, and it's checked
76
76
  > against public corpora it didn't author: the EDF, EDF+ and 24-bit BDF+ test files from
77
77
  > teuniz.net, and PhysioNet's sleep-edfx (a real 22-hour polysomnography recording and its
78
78
  > sleep-staging file). Those checks are numeric. Channels labelled `sine 8.5 Hz` decode to
package/dist/cli-run.js CHANGED
@@ -51,7 +51,7 @@ Options
51
51
  --list list events one per line instead of counting (events)
52
52
  --limit <n> individual diagnostics or events to print (default 20)
53
53
 
54
- --version print the version and exit
54
+ --version, -v print the version and exit
55
55
 
56
56
  Exit codes: 0 success, 1 the file is unreadable or failed validation, 2 bad usage.
57
57
  `;
@@ -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.3.51";
112
+ export declare const VERSION = "0.3.53";
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.3.51';
82
+ export const VERSION = '0.3.53';
83
83
  //# sourceMappingURL=constants.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.3.51",
3
+ "version": "0.3.53",
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/cli-run.ts CHANGED
@@ -62,7 +62,7 @@ Options
62
62
  --list list events one per line instead of counting (events)
63
63
  --limit <n> individual diagnostics or events to print (default 20)
64
64
 
65
- --version print the version and exit
65
+ --version, -v print the version and exit
66
66
 
67
67
  Exit codes: 0 success, 1 the file is unreadable or failed validation, 2 bad usage.
68
68
  `;
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.3.51';
96
+ export const VERSION = '0.3.53';