edfcore 0.4.523 → 0.4.524

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.523";
112
+ export declare const VERSION = "0.4.524";
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.523';
82
+ export const VERSION = '0.4.524';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,30 @@ 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.524
10
+
11
+ - **Added** the six CLI commands over the eight awkward shapes, without the corpus. The CLI is
12
+ where an unfamiliar file arrives — that is the argument `cli.md` makes for it, "so you can look
13
+ at a file before writing any code" — and the test that runs it over unfamiliar REAL files,
14
+ `tests/corpus/cli-corpus.test.ts`, skips on a fresh clone. Offline the commands had been run over
15
+ `minimalEdf` and `minimalEdfPlus`: two tidy files.
16
+ - Forty-eight invocations, and each must not throw, must not write to stderr on a file that parsed,
17
+ must print something, must end its last line, and must print no control byte. The shapes are the
18
+ ones a command can be surprised by: no data signal at all makes `signals` an empty listing and
19
+ `gaps` a question about a recording that has none, a zero record duration takes the time axis
20
+ from `gaps` and the rate from `signals`, a duplicate label breaks the one lookup `header` does by
21
+ name.
22
+ - The exit code is checked against its meaning rather than against a constant. `validate` returns 1
23
+ for a file carrying an error-severity diagnostic and 0 otherwise — the CI gate the page documents
24
+ — and a final case asserts the eight shapes produce both codes, or the rule is a constant in
25
+ disguise.
26
+ - No rendered value may be the word `undefined`, and that needs a precise form: the word appears
27
+ legitimately in prose, since `ZERO_RECORD_DURATION` says "it makes every sample rate undefined",
28
+ which is the sentence a reader needs. What is refused is a value SLOT — a field of the
29
+ tab-separated listing, a leaf of the JSON, the right-hand side of a `label: value` line. Those
30
+ mean `String(undefined)` reached the output, and a zero record duration is exactly the file that
31
+ would produce one.
32
+
9
33
  ## 0.4.523
10
34
 
11
35
  - **Fixed** a vacuous assertion in `inspect-safety.test.ts`, the property test for the strongest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.523",
3
+ "version": "0.4.524",
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.523';
96
+ export const VERSION = '0.4.524';