edfcore 0.4.425 → 0.4.426

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.425";
112
+ export declare const VERSION = "0.4.426";
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.425';
82
+ export const VERSION = '0.4.426';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,27 @@ 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.426
10
+
11
+ - **Added** a property test that the cache is invisible at every size it can be configured to.
12
+ `api-sources.md` describes `cachedSource` as "removed by deleting one wrapper from the expression
13
+ that built the source", which is the property a caller relies on when they add it: the reads get
14
+ cheaper and nothing else changes.
15
+ - The existing demonstration is one script of six reads at the default block size, where the 1 MiB
16
+ block swallows the fixture whole — so it demonstrates a cache that never evicts, never stitches
17
+ and never splits. The interesting sizes are the other ones: a block smaller than a read makes
18
+ every answer a stitch, a budget smaller than a few blocks makes the cache evict mid-sequence, and
19
+ a read wider than the budget bypasses the cache entirely. All three are reachable from an
20
+ ordinary configuration — blocks sized to a record, a budget sized to a phone.
21
+ - The failure is not a crash. Stitching arithmetic off by a block start returns the right number of
22
+ bytes from the right file, taken from the wrong offset: a header that parses, samples that plot,
23
+ and a recording quietly shifted.
24
+ - The copy rule is scoped rather than assumed. It is asserted for reads the cache actually serves;
25
+ a read wider than the whole budget returns the wrapped source's own array by design, because
26
+ nothing is retained on that path, and `cached.ts` says so. Each property builds its fixture
27
+ fresh, since a test that writes into a result would otherwise edit the bytes it compares against
28
+ and pass on the damage.
29
+
9
30
  ## 0.4.425
10
31
 
11
32
  - **Added** tests for the one sentence `api-reading.md` gives about the shape of `signalIndices`:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.425",
3
+ "version": "0.4.426",
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.425';
96
+ export const VERSION = '0.4.426';