edfcore 0.4.188 → 0.4.189
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
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.4.
|
|
112
|
+
export declare const VERSION = "0.4.189";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
|
@@ -29,8 +29,8 @@ function clock(ticks) {
|
|
|
29
29
|
// Floored toward -Infinity, not truncated toward zero. Taking the magnitude first and then
|
|
30
30
|
// truncating moves a NEGATIVE onset LATER: `-1.5009 s` printed as `-00:00:01.500`, 0.9 ms after
|
|
31
31
|
// the event. The positive twin `+1.5009` printed `00:00:01.500`, correctly before its event, so
|
|
32
|
-
// the guarantee held for exactly the half of the range that the
|
|
33
|
-
//
|
|
32
|
+
// the guarantee held for exactly the half of the range that the note at the top of this file
|
|
33
|
+
// has to argue is legal at all. `-1.5009` now prints `-00:00:01.501` (fixed in 0.3.45).
|
|
34
34
|
const flooredMilliseconds = floorDiv(ticks, TICKS_PER_MILLISECOND);
|
|
35
35
|
const negative = flooredMilliseconds < 0n;
|
|
36
36
|
const totalMilliseconds = negative ? -flooredMilliseconds : flooredMilliseconds;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-annotations.js","sourceRoot":"","sources":["../src/format-annotations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAehD,MAAM,qBAAqB,GAAG,gBAA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AC1F,8FAA8F;QAC9F,4FAA4F;QAC5F,kFAAkF;QAClF,MAAM,KAAK,GAAG;YACZ,KAAK,CAAC,UAAU,CAAC,yBAAyB,CAAC;YAC3C,QAAQ,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;YAC/B,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC;SAC3B,CAAC;QACF,IAAI,OAAO,EAAE,cAAc,KAAK,IAAI,IAAI,UAAU,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;YAC9E,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QACxD,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;IACxC,CAAC;IAED,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,GAAG,KAAK,CAAC;IAC1C,mFAAmF;IACnF,IAAI,MAAM,GAAG,CAAC;QAAE,IAAI,CAAC,IAAI,CAAC,WAAW,MAAM,OAAO,CAAC,CAAC;IAEpD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC"}
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,13 @@ 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.189
|
|
10
|
+
|
|
11
|
+
- **Corrected** a pointer in `clock()` that sent the reader the wrong way. It cited "the paragraph
|
|
12
|
+
below" for why a negative onset is the unusual half of the range; that paragraph is the module
|
|
13
|
+
note at the top of the file, and nothing below the comment discusses it. It now names the note by
|
|
14
|
+
position instead of by direction, which is what rotted.
|
|
15
|
+
|
|
9
16
|
## 0.4.188
|
|
10
17
|
|
|
11
18
|
- **Corrected** the `readWindow` docblock, which told the reader the sentence above it "said could
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -45,8 +45,8 @@ function clock(ticks: bigint): string {
|
|
|
45
45
|
// Floored toward -Infinity, not truncated toward zero. Taking the magnitude first and then
|
|
46
46
|
// truncating moves a NEGATIVE onset LATER: `-1.5009 s` printed as `-00:00:01.500`, 0.9 ms after
|
|
47
47
|
// the event. The positive twin `+1.5009` printed `00:00:01.500`, correctly before its event, so
|
|
48
|
-
// the guarantee held for exactly the half of the range that the
|
|
49
|
-
//
|
|
48
|
+
// the guarantee held for exactly the half of the range that the note at the top of this file
|
|
49
|
+
// has to argue is legal at all. `-1.5009` now prints `-00:00:01.501` (fixed in 0.3.45).
|
|
50
50
|
const flooredMilliseconds = floorDiv(ticks, TICKS_PER_MILLISECOND);
|
|
51
51
|
const negative = flooredMilliseconds < 0n;
|
|
52
52
|
const totalMilliseconds = negative ? -flooredMilliseconds : flooredMilliseconds;
|