edfcore 0.4.270 → 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.
@@ -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.270";
112
+ export declare const VERSION = "0.4.272";
113
113
  //# sourceMappingURL=constants.d.ts.map
package/dist/constants.js CHANGED
@@ -79,5 +79,5 @@ export const SIGNAL_FIELD_BLOCK_OFFSETS = {
79
79
  reserved: 224,
80
80
  };
81
81
  /** Published package version. Kept in sync with package.json by a test. */
82
- export const VERSION = '0.4.270';
82
+ export const VERSION = '0.4.272';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,38 @@ 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
+
25
+ ## 0.4.271
26
+
27
+ - **Added** the check the whole suite rests on: nothing in `tests/support/` takes a runtime import
28
+ from `src/`. `tests/README.md` states it twice — "a reader and a writer that share a
29
+ misunderstanding agree with each other and are wrong together" — and nothing enforced it.
30
+ Ninety test files build their fixtures with that writer. Had it taken `EDF_HEADER_BLOCK_BYTES`
31
+ from `src/constants.ts`, which looks exactly like sensible de-duplication and is one line, a
32
+ wrong constant would have produced fixtures shaped to match the wrong reader and two thousand
33
+ tests would have passed on a broken package, proving only that edfcore agrees with itself. That
34
+ is the one failure a suite cannot see from the inside.
35
+ - Walked transitively, because independence one import deep is not independence — a helper
36
+ importing both the writer and a `src/` constant would launder precisely what this forbids, and
37
+ the check was verified against that shape as well as the direct one. `import type` is exempt on
38
+ the same reasoning 0.4.256 used: `spy-source.ts` has to name the `ByteSource` it wraps, and
39
+ naming a shape is not sharing an understanding of the bytes.
40
+
9
41
  ## 0.4.270
10
42
 
11
43
  - **Added** a check that every file this repository names in a comment is a file that is there.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.270",
3
+ "version": "0.4.272",
4
4
  "description": "Modern, typed, zero-dependency reader for EDF, EDF+, BDF and BDF+ biosignal files. Works in browsers and Node with true random access.",
5
5
  "keywords": [
6
6
  "edf",
package/src/constants.ts CHANGED
@@ -93,4 +93,4 @@ export const SIGNAL_FIELD_BLOCK_OFFSETS = {
93
93
  } as const;
94
94
 
95
95
  /** Published package version. Kept in sync with package.json by a test. */
96
- export const VERSION = '0.4.270';
96
+ export const VERSION = '0.4.272';