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 +26 -0
- package/README.md +1 -1
- package/dist/cli-run.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/package.json +1 -1
- package/src/cli-run.ts +1 -1
- package/src/constants.ts +1 -1
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.
|
|
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
|
|
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
|
`;
|
package/dist/constants.d.ts
CHANGED
|
@@ -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.
|
|
112
|
+
export declare const VERSION = "0.3.53";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/package.json
CHANGED
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
|
|
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