edfcore 0.4.331 → 0.4.333
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 +24 -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.333";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,30 @@ 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.333
|
|
10
|
+
|
|
11
|
+
- **Added** the rest of `migrating-to-0-3.md`: the difference the page calls structural. `sampleAt`
|
|
12
|
+
returns `undefined` for each of the three reasons the page gives — the instant falls in a gap,
|
|
13
|
+
before the recording, or after it — and returns a location either side of the hole, so that
|
|
14
|
+
`undefined` is a statement about the file rather than the function's usual answer.
|
|
15
|
+
- The other half is that the grid form has no way to say it. Given only a signal and a record
|
|
16
|
+
duration it returns an index at every instant, including one past the end of the file, which is
|
|
17
|
+
checked against the record count. And both refuse a probed index on a file with gaps: the same
|
|
18
|
+
fixture throws before `buildRecordIndex` and answers after it, with `contiguityOf` reporting
|
|
19
|
+
`'unknown'` in between.
|
|
20
|
+
|
|
21
|
+
## 0.4.332
|
|
22
|
+
|
|
23
|
+
- **Fixed** a test of mine that could time out. The UTF-8 sweep added in 0.4.324 encoded each of
|
|
24
|
+
the 1.1 million code points above U+007F on its own and walked the result with an iterator, which
|
|
25
|
+
took about 2.6 seconds alone and over five under a loaded suite — past the default timeout. It
|
|
26
|
+
had passed every run until the suite grew enough to starve it.
|
|
27
|
+
- Now encoded in blocks and scanned by index. UTF-8 is context-free, so the bytes of a run of code
|
|
28
|
+
points are the concatenation of each one's, and the check covers the same 4,382,464 bytes in
|
|
29
|
+
about a tenth of the time. Raising the timeout was the other option and the wrong one: it would
|
|
30
|
+
have left a five-second check running on every commit to prove something that takes a third of a
|
|
31
|
+
second to prove.
|
|
32
|
+
|
|
9
33
|
## 0.4.331
|
|
10
34
|
|
|
11
35
|
- **Added** an execution of the example `migrating-to-0-3.md` builds its whole argument on: on a
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED