edfcore 0.4.404 → 0.4.406
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 +35 -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.406";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,41 @@ 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.406
|
|
10
|
+
|
|
11
|
+
- **Added** tests for the index `validateRecording` is handed, and whether it is allowed to answer
|
|
12
|
+
for the file. `api-validate.md` describes the option as a complete index "whose onsets the sweep
|
|
13
|
+
reuses instead of reading them again", and nothing checked what happens when the index does not
|
|
14
|
+
fit.
|
|
15
|
+
- That is an ordinary mistake — a viewer holding indices for several open recordings, a helper that
|
|
16
|
+
caches one per session, a loop that forgets to rebuild — and the consequence is not a wrong number
|
|
17
|
+
but a wrong file: the segments and gaps of recording A reported as the structure of recording B,
|
|
18
|
+
in a report whose whole purpose is to say whether *this* file conforms.
|
|
19
|
+
- The rejection is checked by observation rather than by reading the guard. A rejected index makes
|
|
20
|
+
the sweep read the onsets itself, so a spy counts it, and the cost is required to equal passing no
|
|
21
|
+
index at all — which is what "ignored" has to mean.
|
|
22
|
+
- Also covers `DISCONTINUITY_IN_CONTINUOUS_FILE` on a file that both skips and repeats time. Gaps
|
|
23
|
+
travel in one array partitioned by sign, an overlap being an entry with a negative duration
|
|
24
|
+
(0.2.69), and counting the array told a reader that a file missing no data had a gap (0.3.3). One
|
|
25
|
+
of each is the case where the message has to say both, and no fixture produced it.
|
|
26
|
+
|
|
27
|
+
## 0.4.405
|
|
28
|
+
|
|
29
|
+
- **Added** tests for `locate` at the edges of a file. `discontinuous.md` states the contract in
|
|
30
|
+
one sentence — "`undefined` means the instant is in a gap or outside the recording, never that
|
|
31
|
+
the lookup failed" — and only the gap half was covered.
|
|
32
|
+
- A caller cannot distinguish the two. A viewer scrubbing to a timestamp gets `undefined` and draws
|
|
33
|
+
nothing; if that came from a search that ran off the end of an array it would draw nothing for a
|
|
34
|
+
time that does exist, and the recording would appear to be missing data it holds.
|
|
35
|
+
- Four shapes, each a different branch: a time before the first record, which is also where a
|
|
36
|
+
negative time lands; a file with one record, where there is no interval to bisect; a file with no
|
|
37
|
+
records, where every instant is outside; and records of zero duration, which contain only the
|
|
38
|
+
instant they start on and answer with the last record sharing it, because with no interval there
|
|
39
|
+
is nothing to prefer an earlier one by.
|
|
40
|
+
- `onsetTicks` is the other refusal on the index and the one a caller reaches by arithmetic — an
|
|
41
|
+
index computed from a duration and a rate is exactly where a fractional or out-of-range number
|
|
42
|
+
comes from. Its `requested` and `available` fields are checked, not just its message.
|
|
43
|
+
|
|
9
44
|
## 0.4.404
|
|
10
45
|
|
|
11
46
|
- **Added** tests for the buffered whole body — what `allowFullDownload: true` leaves behind once
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED