edfcore 0.4.350 → 0.4.351
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 +16 -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.351";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,22 @@ 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.351
|
|
10
|
+
|
|
11
|
+
- **Added** checks for two read counts on `api-reading.md`, a page that opens by inviting them:
|
|
12
|
+
"They are exact and testable: wrap your source in a recorder and count."
|
|
13
|
+
- Both are about paths a well-formed file never takes, which is why neither had a test.
|
|
14
|
+
`readHeader` is exactly two reads, and one when the signal-count field is unreadable — because
|
|
15
|
+
the second read's size is computed from that field, and a speculative read of an unknown size is
|
|
16
|
+
the thing being avoided. The saved read is not the point: the caller gets `SIGNAL_COUNT_INVALID`
|
|
17
|
+
rather than a complaint about a byte range, and that is what is asserted.
|
|
18
|
+
- The same distinction on the next line. A file too short for the header it declares is a file
|
|
19
|
+
defect, `SOURCE_TOO_SMALL`, not an `EdfSourceError` about a range past the end — getting it
|
|
20
|
+
backwards is not a crash but a truncated recording reported as an I/O error, which sends the
|
|
21
|
+
reader to their network stack instead of to their file. Also pinned: the probe costs nothing
|
|
22
|
+
without an annotations signal, and both probed onsets are memoised into the index while a record
|
|
23
|
+
between them is not.
|
|
24
|
+
|
|
9
25
|
## 0.4.350
|
|
10
26
|
|
|
11
27
|
- **Added** an execution of the truth table on `validation.md` — four rows over two independent
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED