edfcore 0.6.73 → 0.6.75

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.6.73";
112
+ export declare const VERSION = "0.6.75";
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.6.73';
82
+ export const VERSION = '0.6.75';
83
83
  //# sourceMappingURL=constants.js.map
@@ -18,12 +18,18 @@
18
18
  * is a gap here" with "nobody looked" is the confusion this whole area of the API avoids.
19
19
  *
20
20
  * ONE LIMIT, and it belongs to the file rather than to these functions. If two records cover the
21
- * same instant — a timeline whose onsets repeat, which EDF+ does not forbid and which edfcore
22
- * reports without a diagnostic — then more than one sample exists at that time and no function can
23
- * return both. `sampleAt` returns the one whose segment `segmentAt` finds. The round-trip
24
- * "the sample at a sample's start is that sample" therefore holds for files whose records do not
25
- * overlap, which is every file anyone is likely to have; it is not a universal law and 0.2.60
26
- * claimed it as one.
21
+ * same instant — a timeline whose onsets repeat, which EDF+ does not forbid then more than one
22
+ * sample exists at that time and no function can return both.
23
+ *
24
+ * Repeating onsets are not silent, which this said until 0.6.74. With any positive record
25
+ * duration they are an overlap, so the probes report `RECORD_ONSET_SPACING_VIOLATION` and a
26
+ * complete index reports one per overlapping pair. The one file where they pass unremarked is a
27
+ * `recordDuration` of 0, where every record legally starts at the same instant — and `sampleAt`
28
+ * refuses such a file outright, so it never reaches this limit.
29
+ *
30
+ * `sampleAt` returns the one whose segment `segmentAt` finds. The round-trip "the sample at a
31
+ * sample's start is that sample" therefore holds for files whose records do not overlap, which is
32
+ * every file anyone is likely to have; it is not a universal law and 0.2.60 claimed it as one.
27
33
  */
28
34
  import type { EdfRecording, EdfSampleLocation } from './types.js';
29
35
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sample-locate.d.ts","sourceRoot":"","sources":["../src/sample-locate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAyB,MAAM,YAAY,CAAC;AA2FzF;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,iBAAiB,GAAG,SAAS,CA+D/B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,MAAM,CAuCR;AAED,wFAAwF;AACxF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,MAAM,CAER"}
1
+ {"version":3,"file":"sample-locate.d.ts","sourceRoot":"","sources":["../src/sample-locate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAyB,MAAM,YAAY,CAAC;AA2FzF;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GACd,iBAAiB,GAAG,SAAS,CA+D/B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,MAAM,CAuCR;AAED,wFAAwF;AACxF,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,YAAY,EACvB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,MAAM,CAER"}
@@ -18,12 +18,18 @@
18
18
  * is a gap here" with "nobody looked" is the confusion this whole area of the API avoids.
19
19
  *
20
20
  * ONE LIMIT, and it belongs to the file rather than to these functions. If two records cover the
21
- * same instant — a timeline whose onsets repeat, which EDF+ does not forbid and which edfcore
22
- * reports without a diagnostic — then more than one sample exists at that time and no function can
23
- * return both. `sampleAt` returns the one whose segment `segmentAt` finds. The round-trip
24
- * "the sample at a sample's start is that sample" therefore holds for files whose records do not
25
- * overlap, which is every file anyone is likely to have; it is not a universal law and 0.2.60
26
- * claimed it as one.
21
+ * same instant — a timeline whose onsets repeat, which EDF+ does not forbid then more than one
22
+ * sample exists at that time and no function can return both.
23
+ *
24
+ * Repeating onsets are not silent, which this said until 0.6.74. With any positive record
25
+ * duration they are an overlap, so the probes report `RECORD_ONSET_SPACING_VIOLATION` and a
26
+ * complete index reports one per overlapping pair. The one file where they pass unremarked is a
27
+ * `recordDuration` of 0, where every record legally starts at the same instant — and `sampleAt`
28
+ * refuses such a file outright, so it never reaches this limit.
29
+ *
30
+ * `sampleAt` returns the one whose segment `segmentAt` finds. The round-trip "the sample at a
31
+ * sample's start is that sample" therefore holds for files whose records do not overlap, which is
32
+ * every file anyone is likely to have; it is not a universal law and 0.2.60 claimed it as one.
27
33
  */
28
34
  import { EdfChannelNotFoundError } from './errors.js';
29
35
  import { segmentAt } from './record-index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"sample-locate.js","sourceRoot":"","sources":["../src/sample-locate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,M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CAAC,kBAAkB,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AACjF,CAAC"}
package/docs/CHANGELOG.md CHANGED
@@ -6,6 +6,36 @@ 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.6.75
10
+
11
+ - **Fixed** the inspector deciding whether a file needs a complete index by comparing
12
+ `spanSeconds` with `coveredSeconds`. `EdfTimeline` says which fields carry that verdict:
13
+ "`spanTicks === coveredTicks` is the two-probe contiguity verdict, and the ticks are what it
14
+ must be asked of", because the seconds are float64 conversions and two tick counts can round to
15
+ one float once the span is large enough that an ulp exceeds a tick.
16
+ - Asked of the floats, such a file answers "contiguous", `buildRecordIndex` is skipped, and the
17
+ page draws a discontinuous recording on the nominal grid — the silently wrong timeline the
18
+ library exists to refuse, on the page that is its central claim made checkable. The same
19
+ comparison was fixed inside `resolveTimeWindow` in 0.3.4 and the type's docblock records it.
20
+ - The test demonstrates the collision rather than arguing it, and shows the two staying apart at
21
+ an ordinary scale, which is why this could sit there.
22
+
23
+ ## 0.6.74
24
+
25
+ - **Fixed** `sample-locate.ts` describing a repeated record onset as something "edfcore reports
26
+ without a diagnostic". Wherever the limit that paragraph is about can be reached, it is
27
+ reported: a record duration above zero makes a repeat an overlap, so the two probes `openEdf`
28
+ issues raise `RECORD_ONSET_SPACING_VIOLATION`, and a complete index raises one per overlapping
29
+ pair.
30
+ - The one file where repeats really are silent is `recordDuration = 0`, where every record legally
31
+ starts at the same instant — and `sampleAt` refuses such a file outright, so it never reaches
32
+ the limit.
33
+ - A docblock saying a condition goes unreported is read as "check for it yourself". The paragraph
34
+ now names the code and the one case it does not fire on.
35
+ - The test's first doc assertion was vacuous on its first draft: the sentence being removed wrapped
36
+ across two comment lines, so matching the raw file for it would have passed on the defect. It
37
+ collapses the wrapping first, and the canary confirmed both halves fail without the fix.
38
+
9
39
  ## 0.6.73
10
40
 
11
41
  - **Fixed** the cost figure in `io/read.ts`, which states the unit-of-I/O rule as one of "two
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edfcore",
3
- "version": "0.6.73",
3
+ "version": "0.6.75",
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.6.73';
96
+ export const VERSION = '0.6.75';
@@ -18,12 +18,18 @@
18
18
  * is a gap here" with "nobody looked" is the confusion this whole area of the API avoids.
19
19
  *
20
20
  * ONE LIMIT, and it belongs to the file rather than to these functions. If two records cover the
21
- * same instant — a timeline whose onsets repeat, which EDF+ does not forbid and which edfcore
22
- * reports without a diagnostic — then more than one sample exists at that time and no function can
23
- * return both. `sampleAt` returns the one whose segment `segmentAt` finds. The round-trip
24
- * "the sample at a sample's start is that sample" therefore holds for files whose records do not
25
- * overlap, which is every file anyone is likely to have; it is not a universal law and 0.2.60
26
- * claimed it as one.
21
+ * same instant — a timeline whose onsets repeat, which EDF+ does not forbid then more than one
22
+ * sample exists at that time and no function can return both.
23
+ *
24
+ * Repeating onsets are not silent, which this said until 0.6.74. With any positive record
25
+ * duration they are an overlap, so the probes report `RECORD_ONSET_SPACING_VIOLATION` and a
26
+ * complete index reports one per overlapping pair. The one file where they pass unremarked is a
27
+ * `recordDuration` of 0, where every record legally starts at the same instant — and `sampleAt`
28
+ * refuses such a file outright, so it never reaches this limit.
29
+ *
30
+ * `sampleAt` returns the one whose segment `segmentAt` finds. The round-trip "the sample at a
31
+ * sample's start is that sample" therefore holds for files whose records do not overlap, which is
32
+ * every file anyone is likely to have; it is not a universal law and 0.2.60 claimed it as one.
27
33
  */
28
34
 
29
35
  import { EdfChannelNotFoundError } from './errors.js';