edfcore 0.3.107 → 0.3.109
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/CHANGELOG.md +34 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/diagnostics/collector.d.ts +3 -2
- package/dist/diagnostics/collector.d.ts.map +1 -1
- package/dist/diagnostics/collector.js +3 -2
- package/dist/diagnostics/collector.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/constants.ts +1 -1
- package/src/diagnostics/collector.ts +3 -2
- package/src/index.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,40 @@ 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.3.109
|
|
10
|
+
|
|
11
|
+
- **Fixed** three more places saying one file in the package holds every `node:` import.
|
|
12
|
+
- The true statement is about reachability, which is what the packaging test checks and what
|
|
13
|
+
0.3.84 corrected four places to say. It missed `api-sources.md` ("the only module in the
|
|
14
|
+
package that imports a Node built-in (`node:fs/promises`, and nothing else)"),
|
|
15
|
+
`data-sources.md` (the same in the other phrasing) and `src/index.ts`, which ships in
|
|
16
|
+
`dist/index.d.ts`. `src/cli.ts` imports `node:fs/promises` **and** `node:process` and is the
|
|
17
|
+
package's `bin`, inside the published `files` list, so all three were false — and the
|
|
18
|
+
parenthetical was false twice over.
|
|
19
|
+
- The guard is anchored to the code rather than to three sentences: it asserts the premise
|
|
20
|
+
(exactly `cli.ts` and `node.ts` import `node:`, and nothing reachable from the universal entry
|
|
21
|
+
imports `node.js`) and only then sweeps every page and every `src/` docblock for the
|
|
22
|
+
package-wide phrasing. If a refactor ever really does leave one importer, the premise fails
|
|
23
|
+
first and the sentences become sayable again.
|
|
24
|
+
|
|
25
|
+
## 0.3.108
|
|
26
|
+
|
|
27
|
+
- **Fixed** the strict-mode claim in three more places, and rewrote the guard so a rewording cannot
|
|
28
|
+
walk past it again.
|
|
29
|
+
- `collector.ts` gates on `this.strict && diagnostic.severity !== 'info'`, so a strict parse of a
|
|
30
|
+
file whose only note is `info` resolves with that note present — and
|
|
31
|
+
`DATE_CLIPPED_TO_1985_2084` is carried by nearly every conforming EDF file. Still saying
|
|
32
|
+
otherwise: `api-reading.md` twice ("the first defect of any severity", "the first diagnostic of
|
|
33
|
+
any severity", four lines from a row on the same page stating the exemption),
|
|
34
|
+
`api-primitives.md` ("Empty under `strict`, because the first one threw"), and the
|
|
35
|
+
`collector.ts` module docblock itself — sixty lines above the gate that disproves it, and
|
|
36
|
+
shipped verbatim in `dist/diagnostics/collector.d.ts` as hover text.
|
|
37
|
+
- The guard now normalises whitespace and comment leaders before matching, tests the CLAIM rather
|
|
38
|
+
than a sentence, and sweeps `src/**/*.ts` as well as the doc pages — `tsconfig.build.json`
|
|
39
|
+
keeps comments, so a `src/` docblock is published documentation. 0.3.76 pinned two exact
|
|
40
|
+
strings and missed three pages; 0.3.90 widened the strings and missed three more. A guard that
|
|
41
|
+
would still pass if the claim came back is not a guard, and this one had failed that test twice.
|
|
42
|
+
|
|
9
43
|
## 0.3.107
|
|
10
44
|
|
|
11
45
|
- **Fixed** `DATE_UNPARSEABLE` meaning one thing in `edfcore` and another in `edfcore/validate`.
|
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.3.
|
|
112
|
+
export declare const VERSION = "0.3.109";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* Layer 1. Every diagnostic edfcore emits is built here, which is what makes two invariants
|
|
5
5
|
* structural rather than conventional:
|
|
6
6
|
*
|
|
7
|
-
* - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic
|
|
8
|
-
*
|
|
7
|
+
* - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic whose severity
|
|
8
|
+
* is not `info`; `info` notes are exempt and are still collected, which is why a strict parse
|
|
9
|
+
* of a conforming file can still return a `diagnostics` array;
|
|
9
10
|
* - a code whose disposition is `fatal` throws whether or not `strict` is set, because
|
|
10
11
|
* proceeding would require inventing data.
|
|
11
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../src/diagnostics/collector.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../src/diagnostics/collector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAA2B,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,KAAK,iBAAiB,EAA6B,MAAM,YAAY,CAAC;AAE/E;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IAC/B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3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,IAAI,SAAS,aAAa,EAAE;CAKlC"}
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* Layer 1. Every diagnostic edfcore emits is built here, which is what makes two invariants
|
|
5
5
|
* structural rather than conventional:
|
|
6
6
|
*
|
|
7
|
-
* - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic
|
|
8
|
-
*
|
|
7
|
+
* - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic whose severity
|
|
8
|
+
* is not `info`; `info` notes are exempt and are still collected, which is why a strict parse
|
|
9
|
+
* of a conforming file can still return a `diagnostics` array;
|
|
9
10
|
* - a code whose disposition is `fatal` throws whether or not `strict` is set, because
|
|
10
11
|
* proceeding would require inventing data.
|
|
11
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collector.js","sourceRoot":"","sources":["../../src/diagnostics/collector.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"collector.js","sourceRoot":"","sources":["../../src/diagnostics/collector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,cAAc,EAA2B,MAAM,cAAc,CAAC;AAEvE,OAAO,EAA0B,aAAa,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAwB/E;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAuB,EAAE,MAAgC;IACzF,KAAK,MAAM,UAAU,IAAI,MAAM;QAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AAC3D,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,wBAAwB,GAAwB,IAAI,GAAG,CAAC,CAAC,2BAA2B,CAAC,CAAC,CAAC;AAE7F;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAAuB,EACvB,MAAgC,EAChC,IAAiB;IAEjB,KAAK,MAAM,UAAU,IAAI,MAAM,EAAE,CAAC;QAChC,IAAI,wBAAwB,CAAC,GAAG,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,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACnC,CAAC;IAED,iGAAiG;IACjG,IAAI,WAAW;QACb,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,oEAAoE;IACpE,KAAK;QACH,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Two rules hold for everything reachable from this file, transitively:
|
|
8
8
|
*
|
|
9
|
-
* - NO import of a Node built-in, transitively. `edfcore/node` is the only module
|
|
9
|
+
* - NO import of a Node built-in, transitively. `edfcore/node` is the only module in this graph
|
|
10
|
+
* allowed one — the `bin` entry has its own, and nothing reaches it from here — and
|
|
10
11
|
* a packaging test greps the built universal bundle for the scheme prefix to prove it — which is
|
|
11
12
|
* also why that prefix is not written out anywhere in this file. It is what lets one build serve
|
|
12
13
|
* Node, browsers, Deno and Bun with no environment conditions in the exports map: conditions are
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAOH,mFAAmF;AACnF,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AACnF,YAAY,EACV,eAAe,EACf,QAAQ,EACR,iBAAiB,EACjB,UAAU,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AAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Two rules hold for everything reachable from this file, transitively:
|
|
8
8
|
*
|
|
9
|
-
* - NO import of a Node built-in, transitively. `edfcore/node` is the only module
|
|
9
|
+
* - NO import of a Node built-in, transitively. `edfcore/node` is the only module in this graph
|
|
10
|
+
* allowed one — the `bin` entry has its own, and nothing reaches it from here — and
|
|
10
11
|
* a packaging test greps the built universal bundle for the scheme prefix to prove it — which is
|
|
11
12
|
* also why that prefix is not written out anywhere in this file. It is what lets one build serve
|
|
12
13
|
* Node, browsers, Deno and Bun with no environment conditions in the exports map: conditions are
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AA2EH,OAAO,EACL,wBAAwB,EACxB,cAAc,EACd,uBAAuB,EACvB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,aAAa,CAAC;AAErB,8EAA8E;AAC9E,YAAY;AACZ,8EAA8E;AAE9E,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,g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E,oBAAoB;AACpB,8EAA8E;AAE9E,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,wBAAwB,EACxB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,EACL,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC"}
|
package/package.json
CHANGED
package/src/constants.ts
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
* Layer 1. Every diagnostic edfcore emits is built here, which is what makes two invariants
|
|
5
5
|
* structural rather than conventional:
|
|
6
6
|
*
|
|
7
|
-
* - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic
|
|
8
|
-
*
|
|
7
|
+
* - `strict: true` throws `EdfFormatError` carrying the first would-be diagnostic whose severity
|
|
8
|
+
* is not `info`; `info` notes are exempt and are still collected, which is why a strict parse
|
|
9
|
+
* of a conforming file can still return a `diagnostics` array;
|
|
9
10
|
* - a code whose disposition is `fatal` throws whether or not `strict` is set, because
|
|
10
11
|
* proceeding would require inventing data.
|
|
11
12
|
*
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* Two rules hold for everything reachable from this file, transitively:
|
|
8
8
|
*
|
|
9
|
-
* - NO import of a Node built-in, transitively. `edfcore/node` is the only module
|
|
9
|
+
* - NO import of a Node built-in, transitively. `edfcore/node` is the only module in this graph
|
|
10
|
+
* allowed one — the `bin` entry has its own, and nothing reaches it from here — and
|
|
10
11
|
* a packaging test greps the built universal bundle for the scheme prefix to prove it — which is
|
|
11
12
|
* also why that prefix is not written out anywhere in this file. It is what lets one build serve
|
|
12
13
|
* Node, browsers, Deno and Bun with no environment conditions in the exports map: conditions are
|