edfcore 0.6.269 → 0.6.270
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/dist/format-report.d.ts.map +1 -1
- package/dist/format-report.js +20 -0
- package/dist/format-report.js.map +1 -1
- package/docs/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/src/constants.ts +1 -1
- package/src/format-report.ts +22 -0
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.6.
|
|
112
|
+
export declare const VERSION = "0.6.270";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-report.d.ts","sourceRoot":"","sources":["../src/format-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKnF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,MAAM,
|
|
1
|
+
{"version":3,"file":"format-report.d.ts","sourceRoot":"","sources":["../src/format-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,OAAO,KAAK,EAAE,SAAS,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAKnF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,mBAAmB,GAC5B,MAAM,CA4NR;AAED,qFAAqF;AACrF,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/format-report.js
CHANGED
|
@@ -107,6 +107,26 @@ export function formatValidationReport(report, options) {
|
|
|
107
107
|
const named = Array.isArray(signals) &&
|
|
108
108
|
(signals.length === 0 || typeof signals[0]?.label === 'string');
|
|
109
109
|
if (!named) {
|
|
110
|
+
/*
|
|
111
|
+
* A FORGOTTEN AWAIT, which the sweep across 0.6.229–0.6.239 reached every header-taking CALL
|
|
112
|
+
* for and no header-taking OPTION. This is the only one: `options.header` is the one field in
|
|
113
|
+
* the package that holds a header, so it is the one place that sweep could not have covered by
|
|
114
|
+
* walking the entry points.
|
|
115
|
+
*
|
|
116
|
+
* `{ header: readHeader(source) }` is how it gets written, because this option "is also the
|
|
117
|
+
* one a caller adds last, to a call that already worked" — and the call it is added to is
|
|
118
|
+
* already `await`-ed, so the keyword is in the line and in the wrong place. "Nothing on it
|
|
119
|
+
* carries the labels" is true of a pending Promise and of almost everything else, and the
|
|
120
|
+
* advice names a field on a recording a caller holding a bare header may not have.
|
|
121
|
+
*
|
|
122
|
+
* A property read, never a call.
|
|
123
|
+
*/
|
|
124
|
+
if (typeof options.header?.then === 'function') {
|
|
125
|
+
throw new RangeError('formatValidationReport(): options.header is a pending Promise — readHeader(source) is ' +
|
|
126
|
+
'async, so the header is what it resolves to rather than what it returns. Next: await ' +
|
|
127
|
+
'it once into a variable and put that on the option, or pass recording.header, which ' +
|
|
128
|
+
'is already resolved.');
|
|
129
|
+
}
|
|
110
130
|
throw new RangeError('formatValidationReport(): options.header is not a header — nothing on it carries the ' +
|
|
111
131
|
'labels this names the rows with, which is all this option does. Next: pass ' +
|
|
112
132
|
'recording.header, or omit it and the rows read `signal 0`.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-report.js","sourceRoot":"","sources":["../src/format-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,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AC,CAAC;AAC1B,CAAC"}
|
package/docs/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.6.270
|
|
10
|
+
|
|
11
|
+
- **Fixed** `formatValidationReport(report, { header: readHeader(source) })` being told "options.header
|
|
12
|
+
is not a header — nothing on it carries the labels this names the rows with". True of a pending
|
|
13
|
+
Promise, and of a chunk, a recording, a number and `{}`.
|
|
14
|
+
- The forgotten-await sweep of 0.6.229–0.6.239 reached every published call that takes a header, and
|
|
15
|
+
0.6.238 recorded it as closed: "every header-taking call now names the keyword". That was true of
|
|
16
|
+
the arguments. `options.header` is the one field in the package that holds a header, so it is the
|
|
17
|
+
one place a sweep over entry points could not reach by walking their parameters.
|
|
18
|
+
- It is also where the keyword is likeliest to be on screen already and in the wrong place. This
|
|
19
|
+
option "is the one a caller adds last, to a call that already worked", and that call is awaited — so
|
|
20
|
+
a reader writing `{ header: readHeader(source) }` has an `await` in the line and no reason to look
|
|
21
|
+
at it.
|
|
22
|
+
- The old advice named `recording.header`, which a caller holding the bare header `readHeader` hands
|
|
23
|
+
back does not have. The new one says to await it once into a variable.
|
|
24
|
+
- The existing sentence is unchanged for the shapes it was written for — a chunk, whose `signals`
|
|
25
|
+
entries carry samples rather than labels, is the case 0.6.183 and 0.6.186 settled this rule for.
|
|
26
|
+
|
|
9
27
|
## 0.6.269
|
|
10
28
|
|
|
11
29
|
- **Fixed** a RegExp being described as "an object" by the guards that refuse one. `typeof` answers
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
package/src/format-report.ts
CHANGED
|
@@ -121,6 +121,28 @@ export function formatValidationReport(
|
|
|
121
121
|
Array.isArray(signals) &&
|
|
122
122
|
(signals.length === 0 || typeof (signals[0] as { label?: unknown })?.label === 'string');
|
|
123
123
|
if (!named) {
|
|
124
|
+
/*
|
|
125
|
+
* A FORGOTTEN AWAIT, which the sweep across 0.6.229–0.6.239 reached every header-taking CALL
|
|
126
|
+
* for and no header-taking OPTION. This is the only one: `options.header` is the one field in
|
|
127
|
+
* the package that holds a header, so it is the one place that sweep could not have covered by
|
|
128
|
+
* walking the entry points.
|
|
129
|
+
*
|
|
130
|
+
* `{ header: readHeader(source) }` is how it gets written, because this option "is also the
|
|
131
|
+
* one a caller adds last, to a call that already worked" — and the call it is added to is
|
|
132
|
+
* already `await`-ed, so the keyword is in the line and in the wrong place. "Nothing on it
|
|
133
|
+
* carries the labels" is true of a pending Promise and of almost everything else, and the
|
|
134
|
+
* advice names a field on a recording a caller holding a bare header may not have.
|
|
135
|
+
*
|
|
136
|
+
* A property read, never a call.
|
|
137
|
+
*/
|
|
138
|
+
if (typeof (options.header as { then?: unknown } | null | undefined)?.then === 'function') {
|
|
139
|
+
throw new RangeError(
|
|
140
|
+
'formatValidationReport(): options.header is a pending Promise — readHeader(source) is ' +
|
|
141
|
+
'async, so the header is what it resolves to rather than what it returns. Next: await ' +
|
|
142
|
+
'it once into a variable and put that on the option, or pass recording.header, which ' +
|
|
143
|
+
'is already resolved.',
|
|
144
|
+
);
|
|
145
|
+
}
|
|
124
146
|
throw new RangeError(
|
|
125
147
|
'formatValidationReport(): options.header is not a header — nothing on it carries the ' +
|
|
126
148
|
'labels this names the rows with, which is all this option does. Next: pass ' +
|