edfcore 0.4.473 → 0.4.475

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.473";
112
+ export declare const VERSION = "0.4.475";
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.473';
82
+ export const VERSION = '0.4.475';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,38 @@ 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.475
10
+
11
+ - **Added** the boundary cases for `quote`, which is what keeps a `raw:` line on one line however
12
+ hostile the 80 bytes behind it are. It has four boundaries and only the space at 0x20 was
13
+ pinned; the other three could each be narrowed with the whole suite still green.
14
+ - All three are about ordinary bytes. `~` is 0x7e, the last printable ASCII character, and it
15
+ appears in real prefiltering fields (`HP:~0.1Hz`) — printed as an escape it reads as a control
16
+ byte in a field where the writer typed a tilde. U+00FF is the last character with a two-digit
17
+ escape, so narrowing that bound spells it `\u{ff}` while every other Latin-1 byte in the same
18
+ field is spelled `\xNN`, and one header field prints in two notations.
19
+ - The one-line property is asserted directly as well: a field holding a newline, a tab and a
20
+ carriage return renders as exactly one `raw:` line.
21
+ - And the deliberately different rule on `expected:` and `actual:` is asserted beside it. Those
22
+ are unquoted values in fixed-width columns, so a control byte becomes one dot through
23
+ `printable` rather than a four-character escape — the same byte prints two ways on two lines,
24
+ which is the design and not an inconsistency, and neither half is obvious without the other.
25
+
26
+ ## 0.4.474
27
+
28
+ - **Added** all twelve month names to the `dd-MMM-yyyy` subfield tests. `MONTH_ABBREVIATIONS
29
+ .indexOf(...) + 1` turns a zero-based position into a month number, and `0` doubles as "not a
30
+ month name" — so January sits exactly on the boundary the bounds check uses.
31
+ - Narrowing `month < 1` to `month <= 1` refuses every January and passed the whole suite. The
32
+ fixtures ran on August, May and December, and no test had ever read a `JAN` subfield: that is a
33
+ twelfth of every patient birthdate and every recording `Startdate` there is, on the two fields
34
+ EDF+ added specifically so a year could be unambiguous.
35
+ - December was covered by accident, through one birthdate fixture. Both ends are now stated rather
36
+ than left to chance, and the ten in between cost one line.
37
+ - Two non-vacuity cases go with the table: a name that is not one of the twelve is refused, which
38
+ is what the lower bound is really for, and the numeric spelling is checked at 0, 1, 12 and 13,
39
+ since it reaches the same bounds by the other route.
40
+
9
41
  ## 0.4.473
10
42
 
11
43
  - **Added** tests for a runtime with no `TextDecoder`, which `tal/grammar.ts` is written for and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.473",
3
+ "version": "0.4.475",
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.473';
96
+ export const VERSION = '0.4.475';