edfcore 0.4.426 → 0.4.428
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 +41 -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.428";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,47 @@ 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.428
|
|
10
|
+
|
|
11
|
+
- **Added** a check that a version number which never reached npm says so at the heading and says
|
|
12
|
+
where its work went. Nineteen of the six hundred-odd headings in this file name a version nobody
|
|
13
|
+
can install; they exist because a reader comparing `npm view edfcore versions` against the file
|
|
14
|
+
would otherwise find a hole and be unable to tell a lost number from a missing note.
|
|
15
|
+
- `changelog-continuity.test.ts` checks the sequence. What it cannot see is whether a heading tells
|
|
16
|
+
the truth about itself, which is the half 0.4.307 was about: fourteen entries had been written
|
|
17
|
+
before their release failed, so each read exactly like one that shipped, with the correction in a
|
|
18
|
+
different entry further up that a reader landing on `## 0.4.288` never sees.
|
|
19
|
+
- So the marker has to be first — a note further down is a note nobody scrolling to a version
|
|
20
|
+
reads — and it has to point forward, because "Never released" alone strands the reader with work
|
|
21
|
+
that exists under a number they now have to search for. The pointer is bounded at twenty patches
|
|
22
|
+
and every real one is within six, so an incidental mention of some later release cannot stand in
|
|
23
|
+
for it: the 0.2.29 entry names 0.4.194 as the release that wrote it down, and that is not where
|
|
24
|
+
its work went.
|
|
25
|
+
- The two forms are kept apart on purpose. A number consumed before a tag was cut never became
|
|
26
|
+
public at all; a version that was tagged and whose publish then failed is public on GitHub and
|
|
27
|
+
absent from npm, which is a different thing to be told.
|
|
28
|
+
|
|
29
|
+
## 0.4.427
|
|
30
|
+
|
|
31
|
+
- **Added** a property test for `trimToWindow` against the rule it states rather than the examples
|
|
32
|
+
it was written from. The source says which samples belong in a window in one line — "Sample j is
|
|
33
|
+
in the window when `ceil(j * D / S)` is in `[R, Rend)`" — and what the code does is a closed form
|
|
34
|
+
derived from it: two `floorDiv`s over bigint products, with the derivation written above them. A
|
|
35
|
+
closed form is exactly where an off-by-one lives, and the derivation is the part a reader takes
|
|
36
|
+
on trust.
|
|
37
|
+
- So the rule is implemented the obvious way, asking every sample, and the two must select the same
|
|
38
|
+
set for arbitrary geometries and windows. The naive version is too slow for a library and is
|
|
39
|
+
obviously right, which is the only pairing worth testing a closed form against.
|
|
40
|
+
- The rounding it turns on is not incidental. 256 samples in a one-second record puts sample 1 at
|
|
41
|
+
39,062.5 ticks, published as 39,063, and selecting on the exact start rather than the published
|
|
42
|
+
one excluded that sample from a window beginning at its own published start — half of all indices
|
|
43
|
+
at that rate, and at 128 samples per 0.29 s a one-sample window came back empty (0.3.56).
|
|
44
|
+
Geometries whose boundaries miss whole ticks are generated deliberately, because the ones that
|
|
45
|
+
land on them cannot tell the two rules apart.
|
|
46
|
+
- Three obligations from the docblock come with it, none previously checked in general: adjacent
|
|
47
|
+
windows partition a chunk exactly, a window covering the chunk is the identity, and the result is
|
|
48
|
+
a view rather than a copy.
|
|
49
|
+
|
|
9
50
|
## 0.4.426
|
|
10
51
|
|
|
11
52
|
- **Added** a property test that the cache is invisible at every size it can be configured to.
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED