edfcore 0.4.475 → 0.4.477
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 +31 -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.477";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,37 @@ 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.477
|
|
10
|
+
|
|
11
|
+
- **Added** the case where a 206 says which bytes it sent and not how large the resource is. The
|
|
12
|
+
short-tail message has a clause for that — "the end of the resource" rather than "the end of a
|
|
13
|
+
N-byte resource" — and nothing had ever taken it, because every case supplied a readable total.
|
|
14
|
+
- A streaming origin produces it as a matter of course: the length is not known when the response
|
|
15
|
+
heads out, so RFC 7233's `*` goes in the slot and the range is still exact. Both spellings are
|
|
16
|
+
covered, the star and a total that is simply unreadable, because the clause is about
|
|
17
|
+
readability rather than about the star.
|
|
18
|
+
- What it must not do is print the number it does not have. "the end of a undefined-byte
|
|
19
|
+
resource" is the shape that mistake takes, and it lands in the one sentence a reader consults
|
|
20
|
+
to decide whether their `options.byteLength` or their CDN is at fault. The assertions rule out
|
|
21
|
+
both `-byte resource` and the word `undefined`, and keep the number that IS known — the 32 the
|
|
22
|
+
source was built for, which is what the message is telling them to go and check.
|
|
23
|
+
|
|
24
|
+
## 0.4.476
|
|
25
|
+
|
|
26
|
+
- **Added** the zero-record-duration case to `readTriggers`, the last reader in the package
|
|
27
|
+
without one. `formatHeader`, `resolveTimeWindow`, `trimToWindow`, `gridSampleStartTicks` and
|
|
28
|
+
`readEnvelope` all have theirs; BDF permits a zero record duration, and this is the reader whose
|
|
29
|
+
own comment states what it means — every sample of every record sits at one instant.
|
|
30
|
+
- What that costs is that time can no longer order the events, and `sampleIndex` is the only thing
|
|
31
|
+
that can. Three trigger runs come back as three events, all at tick 0, at sample indices 0, 2
|
|
32
|
+
and 5 — so the change detection still works when the times are all equal, which is the part
|
|
33
|
+
nothing else in the suite says.
|
|
34
|
+
- The all-or-nothing rule is pinned with it: a window starting after that instant yields nothing
|
|
35
|
+
rather than the tail of the recording, and a zero-length window yields nothing either.
|
|
36
|
+
- The guard the comment sits on is NOT claimed to be covered by this, and the test says so.
|
|
37
|
+
`ceilDiv(s * 0n, samplesPerRecord)` is 0 for every `s`, so its two branches agree on every
|
|
38
|
+
input and no test can tell them apart. What is checked is the outcome.
|
|
39
|
+
|
|
9
40
|
## 0.4.475
|
|
10
41
|
|
|
11
42
|
- **Added** the boundary cases for `quote`, which is what keeps a `raw:` line on one line however
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED