edfcore 0.5.49 → 0.5.50
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 +23 -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.50";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,29 @@ 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.50
|
|
10
|
+
|
|
11
|
+
- **Added** three ways a header can be written and mean the same thing. Each is documented, each is
|
|
12
|
+
reached by real writers, and each was tested for the thing it produces rather than for the
|
|
13
|
+
equivalence it implies.
|
|
14
|
+
- **A record count of `-1`.** `types.ts` says of the field: "Verbatim. `-1` means the writer never
|
|
15
|
+
closed the file." `parseHeader` recovers the count from the source's length and says so with
|
|
16
|
+
`RECORD_COUNT_RECOVERED` and `recordCountSource: 'sourceByteLength'`. `parse.test.ts` checks the
|
|
17
|
+
recovery; nothing checked that the recovered file is the same recording as one that declares its
|
|
18
|
+
count — which is the only reason recovering beats refusing.
|
|
19
|
+
- **Either family's annotation label.** `annotations.md`: "edfcore accepts either label in either
|
|
20
|
+
family, because the label names the channel's *role*." `isAnnotationLabel` is tested on the
|
|
21
|
+
strings; whether a BDF+ file whose channel says `EDF Annotations` reads its events was not. Both
|
|
22
|
+
crossings now do, with the same events, the same record onsets and the same data indices — and the
|
|
23
|
+
label reported verbatim, which is the one thing that differs.
|
|
24
|
+
- **NUL padding.** EDF pads with spaces; real writers pad with NUL, which is why `trimEdfField`
|
|
25
|
+
exists and why five docblocks in `src/` warn that `String.prototype.trim` does not strip it. The
|
|
26
|
+
function is tested. That the two paddings give the same header, with no diagnostic between them,
|
|
27
|
+
was not — and the test asserts that `.trim()` on the raw field really would have got it wrong, so
|
|
28
|
+
the equivalence is not a coincidence of the fixture.
|
|
29
|
+
- Each is asserted as a whole-recording equivalence — every sample, every event, every derived
|
|
30
|
+
number — with the one legitimately differing field named beside it.
|
|
31
|
+
|
|
9
32
|
## 0.5.49
|
|
10
33
|
|
|
11
34
|
- **Added** the two things about an EDF+ annotations channel that are decisions of the writer rather
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED