edfcore 0.5.10 → 0.5.12
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 +42 -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.12";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,48 @@ 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.12
|
|
10
|
+
|
|
11
|
+
- **Added** the six mistakes `AGENTS.md` tells a code generator to avoid, run. That file carries two
|
|
12
|
+
lists: "Things that look like bugs and are not" is bound to tests by `agents-rules.test.ts`, which
|
|
13
|
+
fails if a rule is added without one; the other list had only `agents-snippet.test-d.ts`, which
|
|
14
|
+
compiles the fence beneath it. Whether the six sentences are true of a running file was
|
|
15
|
+
established nowhere.
|
|
16
|
+
- They are the sentences most likely to be acted on without being read carefully, because they are
|
|
17
|
+
written for something generating code rather than for someone reading. Each describes a mistake
|
|
18
|
+
that produces OUTPUT rather than an error: microvolts that are really ADC counts, a chunk that is
|
|
19
|
+
really an array, an index computed from a rate that does not exist, an event compared on the wrong
|
|
20
|
+
axis, one rate assumed for a file with three, a defect reported as a value and never looked at.
|
|
21
|
+
- The fourth has arithmetic in it and is checked as arithmetic. The two annotation onset fields
|
|
22
|
+
"differ by record 0's sub-second offset", so the fixture declares a quarter-second one and the
|
|
23
|
+
difference is asserted against it. On a file with no offset the two are equal, and a test written
|
|
24
|
+
against such a file would pass while the sentence was wrong.
|
|
25
|
+
- The sixth is checked with the console replaced: the diagnostics arrive as values on the header,
|
|
26
|
+
nothing throws, and no `log`, `warn`, `error`, `info`, `debug` or `trace` is called.
|
|
27
|
+
- The list is enumerated from `AGENTS.md` and bound by content rather than position, so a reordered
|
|
28
|
+
list keeps its bindings, a rewritten entry loses one loudly, and a seventh mistake is a mistake
|
|
29
|
+
with no test until it has one.
|
|
30
|
+
|
|
31
|
+
## 0.5.11
|
|
32
|
+
|
|
33
|
+
- **Added** the sentence `api-helpers.md` gives as the entire reason `readEnvelopeAtResolution`
|
|
34
|
+
exists separately from `readEnvelope`: "Widths that disagree cannot be drawn on one axis." Above
|
|
35
|
+
it the page lists the two ways that went wrong, each with the numbers it produced — a window of
|
|
36
|
+
11 s asked at 1 s per bucket coming back as 0.27 s per bucket in one chunk and 0.09 s in the
|
|
37
|
+
other (0.2.31), and a 100 s run at 30 s per bucket giving four buckets of 25 s while a 60 s run in
|
|
38
|
+
the same call gave two of 30 s (0.3.9). Both were history, and neither was pinned.
|
|
39
|
+
- The existing envelope tests cover the bucket COUNT — that it is not always what you asked for, and
|
|
40
|
+
why the two entry points clamp differently — which is the field a caller loops over. The WIDTH is
|
|
41
|
+
the field a caller draws with. A viewer placing bucket `b` at `startSeconds + b * secondsPerBucket`
|
|
42
|
+
gets a plot whose x-axis changes scale halfway across if two chunks disagree; nothing looks wrong,
|
|
43
|
+
the second half of the trace is simply drawn at a different rate from the first.
|
|
44
|
+
- Both ways one call ends up with runs of different lengths are exercised: a window spanning a gap,
|
|
45
|
+
and a window that does not begin on a record boundary and so produces a first run wider than it
|
|
46
|
+
asked for. The run lengths are asserted to differ, or the check is one run repeated.
|
|
47
|
+
- The grid is also asserted to cover its run and not sprawl past it — the span of the buckets is at
|
|
48
|
+
least the chunk's duration and overhangs it by less than one bucket — which is what makes the
|
|
49
|
+
reported width usable for placing them.
|
|
50
|
+
|
|
9
51
|
## 0.5.10
|
|
10
52
|
|
|
11
53
|
- **Added** the hex dump line `diagnostics.md` prints. The page shows one line — `bytes: 63 61 66
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED