edfcore 0.4.393 → 0.4.395

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.393";
112
+ export declare const VERSION = "0.4.395";
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.393';
82
+ export const VERSION = '0.4.395';
83
83
  //# sourceMappingURL=constants.js.map
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,40 @@ 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.395
10
+
11
+ - **Added** a check that `vercel.json` describes the site this repository builds. It is the one
12
+ configuration file here nothing reads on a normal day — the tests do not need it, `npm run check`
13
+ does not touch it, and it takes effect on a machine nobody watches — and its couplings are all
14
+ silent when broken.
15
+ - The build command names four scripts across two workspaces, and each has to exist. Its
16
+ `outputDirectory` has to be the directory `check-site-output.mjs` inspects, or one of them is
17
+ looking at a build nobody serves. The two `Content-Type: text/plain` rules have to name routes a
18
+ page generator produces, or `/llms.txt` arrives as a download while CI still finds the file in
19
+ `dist/` and passes. And `trailingSlash` is stated here and again in `astro.config.mjs` in
20
+ different vocabularies: disagreeing gives every documentation URL a redirect it did not ask for.
21
+ - The `Permissions-Policy` row is checked for a different reason. `inspector-privacy.test.ts`
22
+ proves the demo sends nothing; this is the other half — the header that stops the page asking for
23
+ a camera, a microphone or a location at all. That is the kind of line dropped in a config tidy-up
24
+ because nothing appears to use it.
25
+
26
+ ## 0.4.394
27
+
28
+ - **Added** a check that every field the error tables on `api-errors.md` document is on the error
29
+ you actually catch. Those tables are the point of the classes: a caller reads `matchingIndices`
30
+ to offer a choice of channel, `budgetBytes` to decide how much to ask for next time, `available`
31
+ to clamp a range, `receivedLength` to tell a short read from a truncated file.
32
+ - `error-classes.test.ts` checks the class-to-`edfErrorKind` table above them, because that is what
33
+ a cross-realm `catch` switches on. The field tables underneath were never executed, and a renamed
34
+ field passes everything here: TypeScript is happy, because the rename is consistent inside the
35
+ package, the page still describes the old name, and the consumer reading it gets `undefined` —
36
+ which in a handler looks like "this error did not carry that detail" rather than a breaking
37
+ change.
38
+ - So one error of each class is provoked by the condition its row describes, and every documented
39
+ field is looked for on the instance with the documented type. A field documented as `X |
40
+ undefined` may be absent, but the name still has to be one the class defines, which is what stops
41
+ a misspelt row from being unfalsifiable.
42
+
9
43
  ## 0.4.393
10
44
 
11
45
  - **Added** a property test for the rule `design-decisions.md` states about out-of-range samples: a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.4.393",
3
+ "version": "0.4.395",
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.393';
96
+ export const VERSION = '0.4.395';