edfcore 0.5.17 → 0.5.18
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 +22 -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.5.
|
|
112
|
+
export declare const VERSION = "0.5.18";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ 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.5.18
|
|
10
|
+
|
|
11
|
+
- **Added** the unscalable signal `diagnostics.md` walks through, run from the throw to the read.
|
|
12
|
+
That page uses one file for three separate arguments and prints values for all three — the
|
|
13
|
+
`strict` transcript, the callout headed "`errors > 0` does not mean the file failed to read", and
|
|
14
|
+
the `EdfScalingError` block at the bottom. They are the same signal seen from three angles, and
|
|
15
|
+
none of the three was run.
|
|
16
|
+
- The `strict` transcript is four fields off a thrown error and a fifth off the diagnostic inside
|
|
17
|
+
it: `DEGENERATE_DIGITAL_RANGE digitalMinimum 504 1`, then `EDF+ additional specification 5`. The
|
|
18
|
+
`504` is the sharpest of them — the byte at which signal 1's `digitalMinimum` field starts in a
|
|
19
|
+
two-signal file, `256 + 2 x 120 + 8`, and the number a reader would take to a hex editor. It is
|
|
20
|
+
now asserted against that arithmetic as well as against the page. `error-fields.test.ts` checks
|
|
21
|
+
the fields exist and `spec-references.test.ts` that every diagnostic cites something; neither was
|
|
22
|
+
pointed at this file.
|
|
23
|
+
- "The error carries the whole `diagnostic` it would otherwise have recorded, so nothing is lost by
|
|
24
|
+
throwing" is checked by comparing what the strict throw carries against what the non-strict parse
|
|
25
|
+
of the same bytes collected.
|
|
26
|
+
- The callout is the part worth having pinned. It says `errors > 0` **and** `report.ok === false`
|
|
27
|
+
are both true of a file that reads perfectly, and tells the reader to gate on the thrown
|
|
28
|
+
`EdfError` instead — three values agreeing on one file, asserted in prose. All three are now read
|
|
29
|
+
off that file, alongside the other signal converting to eight finite microvolt values.
|
|
30
|
+
|
|
9
31
|
## 0.5.17
|
|
10
32
|
|
|
11
33
|
- **Added** the record onsets that quietly stop being true when a read is narrowed to a secondary
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED