edfcore 0.5.34 → 0.5.35
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 +24 -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.35";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/docs/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,30 @@ 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.35
|
|
10
|
+
|
|
11
|
+
- **Added** the resolution of every name a `Next:` clause points at. `next-clause.test.ts` proves
|
|
12
|
+
every thrown message and every diagnostic has one; 0.5.34 follows the eight whose advice is a
|
|
13
|
+
concrete instruction. This is the mechanical half between them: of the 166 clauses in `src/`, most
|
|
14
|
+
name something — a function to call instead, an option to raise, a field to read — and a name that
|
|
15
|
+
no longer exists is how this rots. Nothing renames a public export without noticing, but a message
|
|
16
|
+
is a string, so a clause mentioning one is not a reference and no compiler follows it.
|
|
17
|
+
- Three kinds of name, each checked against the thing it would have to be true of. A bare
|
|
18
|
+
`something()` must be exported from one of the three entry points, or be a method on a value
|
|
19
|
+
edfcore hands back — `locate` on the index and `read` on a source are the two clauses that name a
|
|
20
|
+
method rather than an export, and both are resolved on the real object. An `options.something`
|
|
21
|
+
must be a field some options type declares; the two misdiagnoses `options.ts` records were both of
|
|
22
|
+
that shape, a message naming a lever the caller does not hold. A `header.something`,
|
|
23
|
+
`signal.something` or `index.something` must exist on a recording opened from a fixture, checked
|
|
24
|
+
with `in` rather than against a type: a field that is declared and never populated would satisfy a
|
|
25
|
+
type check and still leave the reader looking for something that is not there.
|
|
26
|
+
- The extraction is narrow about what counts as advice, and says so. Comments are stripped first, so
|
|
27
|
+
a helper mentioned in a note beside a message is not mistaken for a name the message uses.
|
|
28
|
+
`${...}` interpolations are stripped too — `Next: ${adapterFor(source)}` names no function to the
|
|
29
|
+
reader, since the function is how the sentence was built rather than what it says. And the capture
|
|
30
|
+
crosses the `'…' + '…'` seams a long clause is written in, because stopping at the first would
|
|
31
|
+
read half of every one of them, and the half that names the field is usually the second.
|
|
32
|
+
|
|
9
33
|
## 0.5.34
|
|
10
34
|
|
|
11
35
|
- **Added** the `Next:` clause, followed. Every message edfcore throws ends with one, and
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED