edfcore 0.5.8 → 0.5.9
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 +18 -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.9";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,24 @@ 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.9
|
|
10
|
+
|
|
11
|
+
- **Added** the row of `data-sources.md`'s "When a 200 is first seen" table that had no test. The
|
|
12
|
+
page refuses a `200 OK` answer to a Range request by default — the server sent the whole resource
|
|
13
|
+
rather than the bytes asked for — and tabulates when that is discovered, three ways.
|
|
14
|
+
`hardening.test.ts` covers the two the page calls "the ordinary shape of this failure": a CDN
|
|
15
|
+
that answers `HEAD` and then ignores `Range` constructs cleanly and refuses the first read.
|
|
16
|
+
- The uncovered row is the one a caller reaches deliberately. Passing `options.byteLength` skips
|
|
17
|
+
both the `HEAD` and the probe, so nothing is asked while constructing — the run asserts zero
|
|
18
|
+
requests — and the refusal lands on the first `read()` instead.
|
|
19
|
+
- Which matters for where a `try`/`catch` goes. A source that constructs and then refuses needs the
|
|
20
|
+
guard around the read; one that refuses at construction needs it around the constructor. Getting
|
|
21
|
+
that wrong is not a crash, it is an unhandled rejection somewhere a page never expected one.
|
|
22
|
+
- The same row is checked with `allowFullDownload`, where the body is buffered at the point the 200
|
|
23
|
+
arrives: the first read returns real bytes, a second read is served from what is already held, and
|
|
24
|
+
only one `GET` is ever issued — "one download rather than two", as the page puts it. The rows are
|
|
25
|
+
read out of the table, so a row added to it is a row with no test until it has one.
|
|
26
|
+
|
|
9
27
|
## 0.5.8
|
|
10
28
|
|
|
11
29
|
- **Added** the tie between the three places that count the ways a scale can be refused.
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED