edfcore 0.5.25 → 0.5.26
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.26";
|
|
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.26
|
|
10
|
+
|
|
11
|
+
- **Added** the two sentences that promise nothing changes when you run it again. `validation.md`:
|
|
12
|
+
"It does not modify the recording, the header or the source. `validateRecording` reads and
|
|
13
|
+
returns; call it twice and you get the same report." `diagnostics.md`: the formatter output "is
|
|
14
|
+
deterministic ... so it's safe to snapshot in a test." Both are properties of every read in the
|
|
15
|
+
package rather than of one call, and neither had a test — nothing in the suite called anything
|
|
16
|
+
twice and compared, and nothing checked that a read leaves the header it was given alone.
|
|
17
|
+
- They are easy properties to lose and hard to notice losing. A parse that memoises a derived value
|
|
18
|
+
onto the header it returns, a formatter that sorts its input in place, a scan that fills in
|
|
19
|
+
`segments` on the index it was handed: each is a reasonable-looking optimisation, each makes the
|
|
20
|
+
second call disagree with the first, and none fails anything until a caller compares two runs. The
|
|
21
|
+
failure then looks like a file that changed.
|
|
22
|
+
- So both are swept over the whole shape matrix rather than asserted on one fixture. For each of the
|
|
23
|
+
eight `AWKWARD` files — a zero record duration, no data signal at all, duplicate labels, a signal
|
|
24
|
+
with no usable scale — every read and every formatter runs twice and the results are compared; the
|
|
25
|
+
source's bytes are compared before and after; and the header, timeline and index are compared
|
|
26
|
+
through a walk that handles the `bigint`s and typed arrays `JSON.stringify` refuses.
|
|
27
|
+
- The stronger form goes with it: a second recording opened over a copy of the same bytes must agree
|
|
28
|
+
with the first, so the output is a function of the file rather than merely stable per object. And
|
|
29
|
+
the probed index stays probed — `buildRecordIndex` returns a new one rather than filling in the
|
|
30
|
+
one it was handed.
|
|
31
|
+
|
|
9
32
|
## 0.5.25
|
|
10
33
|
|
|
11
34
|
- **Added** the three option tables on `api-helpers.md` and the defaults they promise. Seven fields
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED