edfcore 0.5.31 → 0.5.32
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/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/docs/CHANGELOG.md +25 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -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.5.
|
|
112
|
+
export declare const VERSION = "0.5.32";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,31 @@ 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.5.32
|
|
10
|
+
|
|
11
|
+
- **Added** a lattice check over the ten microvolt values `quick-start.md` prints. That page prints
|
|
12
|
+
two `Float64Array` blocks — five values from a window at `t = 0` in the browser example, five more
|
|
13
|
+
from `t = 60` in the Node one. They are the first numbers anyone sees from this library, and
|
|
14
|
+
`quick-start-page.test.ts` runs everything around them: the header listing, the sample count, the
|
|
15
|
+
byte count, the annotation lines, the three refusals. The values themselves it did not touch.
|
|
16
|
+
- They cannot be reproduced from the page, which names its file's geometry and not its waveform.
|
|
17
|
+
What they can be checked against is the scale that geometry implies, and that turns out to be the
|
|
18
|
+
check worth having: a physical value is `bitValue * (offset + digital)` for an integer `digital`,
|
|
19
|
+
so on a given declaration the reachable values are a lattice, and a float that is not on it was
|
|
20
|
+
produced by a different expression or a different range.
|
|
21
|
+
- That is not hypothetical. 0.5.6 found exactly that on `api-types.md` — two printed values belonged
|
|
22
|
+
to a file with a different digital range from the one the rest of the page's example used, and the
|
|
23
|
+
existing test checked five of seven lines and stopped before them. A lattice check catches it
|
|
24
|
+
without needing the waveform, and would have caught it there. The last test makes the point
|
|
25
|
+
concretely by converting the same digital sample on a 12-bit declaration and showing it lands
|
|
26
|
+
somewhere else.
|
|
27
|
+
- Each of the ten is inverted through the declared scale, asserted to be a whole number inside the
|
|
28
|
+
declared range, and put back through `toPhysical` on a real signal, compared with `Object.is` —
|
|
29
|
+
`toBeCloseTo` would pass on a value from the wrong scale. The page's own argument for the array
|
|
30
|
+
type goes with them: every one of the ten changes under `Math.fround`, so "a sample scaled into
|
|
31
|
+
float32 loses about a quarter of a quantisation step" is true of the very values printed beneath
|
|
32
|
+
it. And the first value is asserted to be what digital zero converts to, which is not zero.
|
|
33
|
+
|
|
9
34
|
## 0.5.31
|
|
10
35
|
|
|
11
36
|
- **Added** the record-range contract at the five calls that take one. `RecordRange` is the other
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED