edfcore 0.3.51 → 0.3.52
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 +14 -0
- package/dist/cli-run.js +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/package.json +1 -1
- package/src/cli-run.ts +1 -1
- package/src/constants.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,20 @@ 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.52
|
|
10
|
+
|
|
11
|
+
- **Documented** `-v`. `parseArgs` has accepted it as an alias for `--version` for as long as it has
|
|
12
|
+
accepted `--version`, and the usage banner printed `--version` alone — while printing `--help, -h`
|
|
13
|
+
with its alias two lines above. A flag that works and is not in `--help` is one nobody can find
|
|
14
|
+
and nobody can rely on.
|
|
15
|
+
- `tests/integration/cli.test.ts` now derives the flag list from `parseArgs` itself and requires
|
|
16
|
+
every accepted flag to appear in the usage banner, so a new one fails the suite until it is
|
|
17
|
+
documented.
|
|
18
|
+
- The check matches whole tokens, not substrings. `expect(usage).toContain('-v')` is satisfied by
|
|
19
|
+
the `-v` inside `--version` — that is, by the exact text that had the bug — so the obvious
|
|
20
|
+
spelling of this guard would have passed on it. There is an assertion pinning that distinction
|
|
21
|
+
beside the others, because it is the only reason this test works.
|
|
22
|
+
|
|
9
23
|
## 0.3.51
|
|
10
24
|
|
|
11
25
|
- **Corrected** the `filterAnnotationsByText` docblock, which said a string "matches on the exact
|
package/dist/cli-run.js
CHANGED
|
@@ -51,7 +51,7 @@ Options
|
|
|
51
51
|
--list list events one per line instead of counting (events)
|
|
52
52
|
--limit <n> individual diagnostics or events to print (default 20)
|
|
53
53
|
|
|
54
|
-
--version
|
|
54
|
+
--version, -v print the version and exit
|
|
55
55
|
|
|
56
56
|
Exit codes: 0 success, 1 the file is unreadable or failed validation, 2 bad usage.
|
|
57
57
|
`;
|
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.52";
|
|
113
113
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.js
CHANGED
package/package.json
CHANGED
package/src/cli-run.ts
CHANGED
|
@@ -62,7 +62,7 @@ Options
|
|
|
62
62
|
--list list events one per line instead of counting (events)
|
|
63
63
|
--limit <n> individual diagnostics or events to print (default 20)
|
|
64
64
|
|
|
65
|
-
--version
|
|
65
|
+
--version, -v print the version and exit
|
|
66
66
|
|
|
67
67
|
Exit codes: 0 success, 1 the file is unreadable or failed validation, 2 bad usage.
|
|
68
68
|
`;
|
package/src/constants.ts
CHANGED