edfcore 0.4.271 → 0.4.272
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 +16 -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.272";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,22 @@ 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.272
|
|
10
|
+
|
|
11
|
+
- **Executed** the offline claim instead of stating it. `tests/README.md` opens with
|
|
12
|
+
"`git clone && npm test` is green and offline", which is a property of the suite and was
|
|
13
|
+
enforced by nothing. `globalThis.fetch` is now replaced for the whole run, through
|
|
14
|
+
`setupFiles`, with something that refuses and says to inject a `fetch` the way the `httpSource`
|
|
15
|
+
tests do.
|
|
16
|
+
- That fallback is the route a test reaches the network by accident rather than on purpose:
|
|
17
|
+
`httpSource()` uses `globalThis.fetch` when none is passed, which is right for a consumer in a
|
|
18
|
+
browser, so forgetting the option used to send a real request and pass. It fails loudly now, at
|
|
19
|
+
construction, where the length is resolved.
|
|
20
|
+
- The trap rejects rather than throwing synchronously, because a real `fetch` does not throw when
|
|
21
|
+
a host is unreachable and a trap that behaved differently would send `httpSource` down an error
|
|
22
|
+
path production never takes. `offline.test.ts` calls it and asserts it bites, since a setup file
|
|
23
|
+
that failed to load would leave every test passing with nothing to show anything was guarded.
|
|
24
|
+
|
|
9
25
|
## 0.4.271
|
|
10
26
|
|
|
11
27
|
- **Added** the check the whole suite rests on: nothing in `tests/support/` takes a runtime import
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED