edfcore 0.5.73 → 0.5.75
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 +40 -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.75";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,46 @@ 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.75
|
|
10
|
+
|
|
11
|
+
- **Fixed** the rule `awkward-files.ts` states and eleven of its eighteen readers did not follow.
|
|
12
|
+
Its docblock ends by telling every consumer to "assert `AWKWARD.length` rather than trusting it,
|
|
13
|
+
so a shape removed from here fails the test that was relying on it". Seven did. The other eleven
|
|
14
|
+
read the matrix and pinned nothing, and each now states the size it was written against.
|
|
15
|
+
- The failure that prevents is quiet by construction. Almost every consumer is a
|
|
16
|
+
`for (const file of AWKWARD)` loop generating one `it` per shape, so deleting a shape fails
|
|
17
|
+
nothing — it removes cases. The suite goes green with less in it, the count in the terminal drops
|
|
18
|
+
by a number nobody has memorised, and the coverage a file was written to have is gone with no
|
|
19
|
+
evidence it ever existed.
|
|
20
|
+
- `the-matrix-is-checked-by-its-users.test.ts` enforces it from the imports, so a nineteenth
|
|
21
|
+
consumer fails until it says the same, and it also refuses a stated size the matrix no longer has
|
|
22
|
+
— which is what turns "add a shape" into a change the author walks through the suite for. The
|
|
23
|
+
assertion has to live in each consumer rather than once here: one check that the matrix has
|
|
24
|
+
eleven entries keeps the number honest and says nothing about whether the file that needed a BDF
|
|
25
|
+
shape still gets one.
|
|
26
|
+
- **Fixed** seven docblocks describing the matrix by a size it stopped having. Six said "the eight
|
|
27
|
+
`AWKWARD` shapes" — true until 0.5.48 added two — and one said ten, which was mine from 0.5.63.
|
|
28
|
+
`cli-unfamiliar-file.test.ts` had done the arithmetic in prose as well: six commands over eight
|
|
29
|
+
shapes is forty-eight invocations, and it has been running sixty-six.
|
|
30
|
+
|
|
31
|
+
## 0.5.74
|
|
32
|
+
|
|
33
|
+
- **Added** an eleventh shape to the `AWKWARD` matrix: a file with a gap AND a sub-second start
|
|
34
|
+
offset at the same time. Fifteen test files run their sweeps over that matrix, and every one of
|
|
35
|
+
them now sees it.
|
|
36
|
+
- It is the fixture this project's longest-running defect class hides from. Seven separate versions
|
|
37
|
+
fixed one function deriving a time from the nominal grid while every other function used the
|
|
38
|
+
record's true onset — 0.1.4, 0.2.10, 0.2.18, 0.2.19, 0.2.28, the sample-grid family in 0.2.32,
|
|
39
|
+
and 0.2.68, where the function ADDED to fix the class shipped with the defect itself. Several of
|
|
40
|
+
them survived their own review because the fixtures had one of the two properties and never both:
|
|
41
|
+
with only a gap, `t = 0` is still the header start time and a nominal derivation looks right;
|
|
42
|
+
with only a sub-second start, the onsets are still the nominal grid and it looks right again.
|
|
43
|
+
- The matrix had `EDF+D with a gap`, which starts at zero, and no shape with a sub-second start at
|
|
44
|
+
all. The new one starts at 0.25 s and skips five seconds after its third record, so `t = 0` is
|
|
45
|
+
neither the header start time nor a record boundary of the second segment.
|
|
46
|
+
- Every sweep passes over it unchanged, which is the answer that was wanted and not one anybody
|
|
47
|
+
could state before. The two length assertions that pin the matrix size move from ten to eleven.
|
|
48
|
+
|
|
9
49
|
## 0.5.73
|
|
10
50
|
|
|
11
51
|
- **Added** the day the network hiccups. `index.onsetTicks(r)` memoises, which is why `locate()`
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED