edfcore 0.3.107 → 0.3.108

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/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.3.108
10
+
11
+ - **Fixed** the strict-mode claim in three more places, and rewrote the guard so a rewording cannot
12
+ walk past it again.
13
+ - `collector.ts` gates on `this.strict && diagnostic.severity !== 'info'`, so a strict parse of a
14
+ file whose only note is `info` resolves with that note present — and
15
+ `DATE_CLIPPED_TO_1985_2084` is carried by nearly every conforming EDF file. Still saying
16
+ otherwise: `api-reading.md` twice ("the first defect of any severity", "the first diagnostic of
17
+ any severity", four lines from a row on the same page stating the exemption),
18
+ `api-primitives.md` ("Empty under `strict`, because the first one threw"), and the
19
+ `collector.ts` module docblock itself — sixty lines above the gate that disproves it, and
20
+ shipped verbatim in `dist/diagnostics/collector.d.ts` as hover text.
21
+ - The guard now normalises whitespace and comment leaders before matching, tests the CLAIM rather
22
+ than a sentence, and sweeps `src/**/*.ts` as well as the doc pages — `tsconfig.build.json`
23
+ keeps comments, so a `src/` docblock is published documentation. 0.3.76 pinned two exact
24
+ strings and missed three pages; 0.3.90 widened the strings and missed three more. A guard that
25
+ would still pass if the claim came back is not a guard, and this one had failed that test twice.
26
+
9
27
  ## 0.3.107
10
28
 
11
29
  - **Fixed** `DATE_UNPARSEABLE` meaning one thing in `edfcore` and another in `edfcore/validate`.
@@ -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.3.107";
112
+ export declare const VERSION = "0.3.108";
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.3.107';
82
+ export const VERSION = '0.3.108';
83
83
  //# sourceMappingURL=constants.js.map
@@ -4,8 +4,9 @@
4
4
  * Layer 1. Every diagnostic edfcore emits is built here, which is what makes two invariants
5
5
  * structural rather than conventional:
6
6
  *
7
- * - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic, so under
8
- * strict every `diagnostics` array is empty by construction;
7
+ * - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic whose severity
8
+ * is not `info`; `info` notes are exempt and are still collected, which is why a strict parse
9
+ * of a conforming file can still return a `diagnostics` array;
9
10
  * - a code whose disposition is `fatal` throws whether or not `strict` is set, because
10
11
  * proceeding would require inventing data.
11
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../src/diagnostics/collector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,cAAc,EAA2B,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,KAAK,iBAAiB,EAA6B,MAAM,YAAY,CAAC;AAE/E;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IAC/B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ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SAAS,aAAa,EAAE,EAChC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,GAChB,IAAI,CAQN;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,aAAa,CAkBpE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,aAAa,EACzB,KAAK,CAAC,EAAE,OAAO,EACf,SAAS,CAAC,EAAE,SAAS,aAAa,EAAE,GACnC,cAAc,CAUhB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc,CAEhF;AAED,qBAAa,cAAc;;IACzB;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;gBAIb,OAAO,CAAC,EAAE,YAAY;IAIlC,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;;;;;OASG;IACH;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,cAAc;IAI5D,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IASlC,iGAAiG;IACjG,IAAI,WAAW,IAAI,SAAS,aAAa,EAAE,CAE1C;IAED,oEAAoE;IACpE,KAAK,IAAI,SAAS,aAAa,EAAE;CAKlC"}
@@ -4,8 +4,9 @@
4
4
  * Layer 1. Every diagnostic edfcore emits is built here, which is what makes two invariants
5
5
  * structural rather than conventional:
6
6
  *
7
- * - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic, so under
8
- * strict every `diagnostics` array is empty by construction;
7
+ * - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic whose severity
8
+ * is not `info`; `info` notes are exempt and are still collected, which is why a strict parse
9
+ * of a conforming file can still return a `diagnostics` array;
9
10
  * - a code whose disposition is `fatal` throws whether or not `strict` is set, because
10
11
  * proceeding would require inventing data.
11
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"collector.js","source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AAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,IAAoB;QACzB,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,KAAK,MAAM,CAAC,EAAE,CAAC;YACtF,yEAAyE;YACzE,MAAM,aAAa,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAC9D,CAAC;QACD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC;IAED,iGAAiG;IACjG,IAAI,WAAW;QACb,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,oEAAoE;IACpE,KAAK;QACH,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.3.107",
3
+ "version": "0.3.108",
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.3.107';
96
+ export const VERSION = '0.3.108';
@@ -4,8 +4,9 @@
4
4
  * Layer 1. Every diagnostic edfcore emits is built here, which is what makes two invariants
5
5
  * structural rather than conventional:
6
6
  *
7
- * - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic, so under
8
- * strict every `diagnostics` array is empty by construction;
7
+ * - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic whose severity
8
+ * is not `info`; `info` notes are exempt and are still collected, which is why a strict parse
9
+ * of a conforming file can still return a `diagnostics` array;
9
10
  * - a code whose disposition is `fatal` throws whether or not `strict` is set, because
10
11
  * proceeding would require inventing data.
11
12
  *