edfcore 0.5.43 → 0.5.44
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.5.
|
|
112
|
+
export declare const VERSION = "0.5.44";
|
|
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.5.44
|
|
10
|
+
|
|
11
|
+
- **Added** reading one recording from several places at once. Everything in the suite reads
|
|
12
|
+
sequentially, and nothing in the API documents an ordering requirement — a recording is a plain
|
|
13
|
+
struct, `readWindow` takes it and returns a value, and the obvious thing to write in a viewer is
|
|
14
|
+
`Promise.all` over the channels or the visible range. That was untested territory: the reads share
|
|
15
|
+
a source, an index whose `onsetTicks` memoises, and a timeline every rebasing path consults.
|
|
16
|
+
- Correctness holds. Five overlapping windows resolved together give what the same five give one at
|
|
17
|
+
a time, and so does the whole API at once — a window, a record range, the annotations, an index
|
|
18
|
+
build and a full validation sweep, launched together and compared against the same five in order.
|
|
19
|
+
It also holds over a source that resolves reads in **reverse order of arrival**, which is the case
|
|
20
|
+
worth having: a network returns what it returns when it returns it, and a reader that assumed its
|
|
21
|
+
own issue order would come apart exactly there.
|
|
22
|
+
- Then the one place concurrency costs something, which is worth naming because it is invisible.
|
|
23
|
+
`record-index.ts` says `onsetTicks(r)` "reads that ONE record and memoises the answer", and
|
|
24
|
+
`locate-cost.test.ts` checks that a second call is free. It memoises on **resolution** rather than
|
|
25
|
+
on request, so ten calls for the same record launched together issue ten reads. The eleventh,
|
|
26
|
+
after they settle, issues none.
|
|
27
|
+
- That is a cost rather than a defect, and the package already documents the remedy: `cachedSource`
|
|
28
|
+
exists so that "concurrent reads wanting the same block issue ONE underlying read". Wrapped in it,
|
|
29
|
+
the same ten calls issue none at all — the block was already resident from the open, which is the
|
|
30
|
+
observation `large-files.md` makes about the reads that come with opening a file not being wasted.
|
|
31
|
+
The answer is identical either way.
|
|
32
|
+
|
|
9
33
|
## 0.5.43
|
|
10
34
|
|
|
11
35
|
- **Added** the two halves of what a sample width decides, written side by side. EDF stores each
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED