edfcore 0.4.473 → 0.4.474

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.474";
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.474';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,21 @@ 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.474
10
+
11
+ - **Added** all twelve month names to the `dd-MMM-yyyy` subfield tests. `MONTH_ABBREVIATIONS
12
+ .indexOf(...) + 1` turns a zero-based position into a month number, and `0` doubles as "not a
13
+ month name" — so January sits exactly on the boundary the bounds check uses.
14
+ - Narrowing `month < 1` to `month <= 1` refuses every January and passed the whole suite. The
15
+ fixtures ran on August, May and December, and no test had ever read a `JAN` subfield: that is a
16
+ twelfth of every patient birthdate and every recording `Startdate` there is, on the two fields
17
+ EDF+ added specifically so a year could be unambiguous.
18
+ - December was covered by accident, through one birthdate fixture. Both ends are now stated rather
19
+ than left to chance, and the ten in between cost one line.
20
+ - Two non-vacuity cases go with the table: a name that is not one of the twelve is refused, which
21
+ is what the lower bound is really for, and the numeric spelling is checked at 0, 1, 12 and 13,
22
+ since it reaches the same bounds by the other route.
23
+
9
24
  ## 0.4.473
10
25
 
11
26
  - **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.474",
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.474';