edfcore 0.4.345 → 0.4.346
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 +18 -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.346";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,24 @@ 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.346
|
|
10
|
+
|
|
11
|
+
- **Added** an execution of the `strict` section of `design-decisions.md`, which is where the
|
|
12
|
+
odd-looking choices are defended and where two pieces of load-bearing behaviour had no test that
|
|
13
|
+
read the page.
|
|
14
|
+
- The `info` exemption is the first. Without it, `strict: true` would reject nearly every real
|
|
15
|
+
recording — `DATE_CLIPPED_TO_1985_2084` is on almost all of them — and it would do it while
|
|
16
|
+
looking correct, because the mode is called strict and rejecting is what it is for. Removing it
|
|
17
|
+
reads as tightening. A conforming file now has to open under strict and still carry that
|
|
18
|
+
diagnostic.
|
|
19
|
+
- The second is the list of conditions that throw "either way". Three of the four are properties of
|
|
20
|
+
the header and are checked in both modes. The fourth, record onsets that go backwards, gets its
|
|
21
|
+
own section, because choosing a fixture where it throws at open would have hidden something real:
|
|
22
|
+
`openEdf` reads records 0 and n-1 and nothing else, so a reversal between them throws immediately
|
|
23
|
+
and one in the middle is not something it has seen. That file opens with a probed index and
|
|
24
|
+
throws the moment `buildRecordIndex` reads the records — "either way" is about the two modes, not
|
|
25
|
+
about throwing before the bytes are read.
|
|
26
|
+
|
|
9
27
|
## 0.4.345
|
|
10
28
|
|
|
11
29
|
- **Added** a check that the six single-interface field tables on `api-types.md` list exactly the
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED