edfcore 0.4.469 → 0.4.471
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/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/docs/CHANGELOG.md +34 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
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.4.
|
|
112
|
+
export declare const VERSION = "0.4.471";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,40 @@ 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.471
|
|
10
|
+
|
|
11
|
+
- **Fixed** a one-each test table. 0.3.48 fixed the same defect on the two identification lines of
|
|
12
|
+
`edfcore header --patient` in one commit, and the cases behind it checked the empty field on
|
|
13
|
+
`patient` and the populated field on `recording`. Half the fix had nothing behind it: dropping
|
|
14
|
+
the `|| 'unknown'` from the recording line left every test green.
|
|
15
|
+
- That half is the one a reader meets. A plain EDF file leaves the local recording identification
|
|
16
|
+
blank, which is most of them, so `edfcore header --patient` would print `recording` followed by
|
|
17
|
+
nothing at all — or, without the `trimEdfField`, by eighty dots, which is the shape 0.3.48
|
|
18
|
+
describes as reading like redaction rather than like an empty field.
|
|
19
|
+
- Both cases now run for both fields from one table, so a fix applied to one line and not the
|
|
20
|
+
other fails here.
|
|
21
|
+
|
|
22
|
+
## 0.4.470
|
|
23
|
+
|
|
24
|
+
- **Added** process-level tests for `cli.ts`'s failure handling. Every other CLI test drives
|
|
25
|
+
`runCli` through an injected `CliIo`, which is deliberate and is why they run without a build;
|
|
26
|
+
it also means the shell around it — argv, the exit code, the real streams, and the one
|
|
27
|
+
`readFile` in the package that is not a `ByteSource` — was reached only by `cli-pipe.test.ts`,
|
|
28
|
+
for EPIPE alone. Three promises had nothing checking them.
|
|
29
|
+
- A DIRECTORY is named as one. Node answers `fs.readFile` with `EISDIR: illegal operation on a
|
|
30
|
+
directory, read`, an errno with no path in it and no move to make; `fileSource` was fixed for
|
|
31
|
+
this in 0.3.98 and the CLI, which reads the file itself, in 0.4.178. Removing that translation
|
|
32
|
+
failed nothing. `ENOENT` is asserted to pass through unchanged, because Node's own text already
|
|
33
|
+
names the path and replacing it would be worse.
|
|
34
|
+
- The EXIT CODE separates a typo from a bad file: 2 for a `CliUsageError`, 1 for anything else.
|
|
35
|
+
`documented-exit-codes.test.ts` pins what `runCli` returns; the mapping from a THROWN error to a
|
|
36
|
+
code lives in a `catch` no injected `CliIo` can reach, and collapsing both to 1 was invisible.
|
|
37
|
+
- And a failure is one line. An `EdfError` already says what is wrong, where and what to do next,
|
|
38
|
+
so a stack trace over the top of it buries the only useful line — asserted by matching for a
|
|
39
|
+
run of ` at ` frames on both a directory and a truncated file.
|
|
40
|
+
- Skips when `dist/` is absent, for the same reason `cli-pipe.test.ts` does: spawning is the only
|
|
41
|
+
way to run any of this, and a pass nobody earned is worse than a skip.
|
|
42
|
+
|
|
9
43
|
## 0.4.469
|
|
10
44
|
|
|
11
45
|
- **Added** the cases where a 206's `Content-Range` cannot be parsed at all. edfcore checks that
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED