@descent-vtt/spec-guard 0.16.0 → 0.18.0

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.
Files changed (57) hide show
  1. package/CHANGELOG.md +89 -4
  2. package/README.md +478 -512
  3. package/dist/cites.d.ts.map +1 -1
  4. package/dist/cites.js +5 -1
  5. package/dist/cites.js.map +1 -1
  6. package/dist/cli.d.ts +3 -2
  7. package/dist/cli.d.ts.map +1 -1
  8. package/dist/cli.js +8 -4
  9. package/dist/cli.js.map +1 -1
  10. package/dist/glob.d.ts +25 -18
  11. package/dist/glob.d.ts.map +1 -1
  12. package/dist/glob.js +127 -136
  13. package/dist/glob.js.map +1 -1
  14. package/dist/impact.d.ts.map +1 -1
  15. package/dist/impact.js +12 -2
  16. package/dist/impact.js.map +1 -1
  17. package/dist/mcp.d.ts.map +1 -1
  18. package/dist/mcp.js +5 -3
  19. package/dist/mcp.js.map +1 -1
  20. package/dist/parser.d.ts +11 -9
  21. package/dist/parser.d.ts.map +1 -1
  22. package/dist/parser.js +128 -32
  23. package/dist/parser.js.map +1 -1
  24. package/dist/prove.d.ts.map +1 -1
  25. package/dist/prove.js +2 -1
  26. package/dist/prove.js.map +1 -1
  27. package/dist/reporter.d.ts +12 -4
  28. package/dist/reporter.d.ts.map +1 -1
  29. package/dist/reporter.js +199 -48
  30. package/dist/reporter.js.map +1 -1
  31. package/dist/runner.d.ts +12 -2
  32. package/dist/runner.d.ts.map +1 -1
  33. package/dist/runner.js +13 -4
  34. package/dist/runner.js.map +1 -1
  35. package/dist/types.d.ts +24 -2
  36. package/dist/types.d.ts.map +1 -1
  37. package/dist/vendor/spec-core/markdown/frontmatter.d.ts +11 -1
  38. package/dist/vendor/spec-core/markdown/frontmatter.d.ts.map +1 -1
  39. package/dist/vendor/spec-core/markdown/frontmatter.js +20 -3
  40. package/dist/vendor/spec-core/markdown/frontmatter.js.map +1 -1
  41. package/dist/vendor/spec-core/pattern/glob.d.ts +85 -0
  42. package/dist/vendor/spec-core/pattern/glob.d.ts.map +1 -1
  43. package/dist/vendor/spec-core/pattern/glob.js +207 -17
  44. package/dist/vendor/spec-core/pattern/glob.js.map +1 -1
  45. package/dist/vendor/spec-core/pattern/index.d.ts +2 -2
  46. package/dist/vendor/spec-core/pattern/index.d.ts.map +1 -1
  47. package/dist/vendor/spec-core/pattern/index.js +1 -1
  48. package/dist/vendor/spec-core/pattern/index.js.map +1 -1
  49. package/dist/vendor/spec-core/text/index.d.ts +1 -0
  50. package/dist/vendor/spec-core/text/index.d.ts.map +1 -1
  51. package/dist/vendor/spec-core/text/index.js +1 -0
  52. package/dist/vendor/spec-core/text/index.js.map +1 -1
  53. package/dist/vendor/spec-core/text/width.d.ts +31 -0
  54. package/dist/vendor/spec-core/text/width.d.ts.map +1 -0
  55. package/dist/vendor/spec-core/text/width.js +113 -0
  56. package/dist/vendor/spec-core/text/width.js.map +1 -0
  57. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,9 +1,94 @@
1
1
  # Changelog
2
2
 
3
- All notable changes to this project are documented here. Versions follow
4
- [semantic versioning](https://semver.org), with the 0.x caveat that behaviour
5
- may change in a minor release — each such change is listed under **Changed**
6
- with the flag that restores the previous behaviour.
3
+ All notable changes to this project are documented here. Before 1.0 a minor
4
+ release (0.16.x to 0.17.0) carries anything that can turn a passing run red or
5
+ change what a script reads - a finding or a failure that was not there, a
6
+ changed exit code or JSON field, input refused that was accepted - and a patch
7
+ only what reports less, crashes, performance and documentation, so `^0.17.0`
8
+ takes no release that can turn a run red. Each entry under **Changed** says
9
+ what to do when upgrading; the family's policy, including how a flag or field
10
+ is deprecated before it goes, is spec-core's
11
+ [ADR-0009](https://github.com/DescentVTT/spec-core/blob/main/docs/adr/0009-versions-before-1-0.md).
12
+
13
+ ## 0.18.0
14
+
15
+ spec-guard reads a status in English only again, by the maintainer's
16
+ decision: a Chinese status stays in force with a warning whose hint asks for
17
+ an English word. The two-column status table stays with English keys.
18
+
19
+ ### Removed
20
+
21
+ - A status written in Chinese is no longer read, and neither is `狀態` or
22
+ `状态` as the status key. Under an English key, `status: 已取代` is a status
23
+ that cannot be read: the document stays in force, with a warning whose
24
+ `hint` says to write the status as an English word; every such warning now
25
+ carries that hint in `hint`, where 0.17.0 carried one only for a full-width
26
+ colon, and GitLab and GitHub show it after the message. A heading, label,
27
+ table row or front-matter key in Chinese names no status, so an English
28
+ status below it decides
29
+ ([ADR-0010](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0010-spec-status.md)).
30
+ The warning for `狀態:` with a full-width colon in front matter goes with
31
+ them. A two-column status table is still read, with `Status` or `State` as
32
+ the key. Upgrading: write the status in English, e.g. `status: superseded`.
33
+
34
+ ## 0.17.0
35
+
36
+ Chinese statuses and status tables are read, `--strict` refuses a run that
37
+ verified nothing, a hint travels with every finding to GitLab and GitHub,
38
+ fingerprints no longer follow a message's wording, and spec-core is at
39
+ 5666c96.
40
+
41
+ ### Changed
42
+
43
+ - A status written in Chinese is read as the English word it translates
44
+ (`已取代` superseded, `草稿` draft, `延後` deferred), from a heading, a
45
+ label with `:` or `:`, a table, or front matter (`狀態:`); only the six
46
+ English words withhold a document ([ADR-0010](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0010-spec-status.md)).
47
+ Upgrading: a Chinese ADR marked superseded, deprecated, rejected, archived,
48
+ draft or proposed stops running its rules; write its status in English or
49
+ run with `--ignore-status` to keep them.
50
+ - A two-column table before the first section whose left cell is `Status`,
51
+ `State`, `狀態` or `状态` gives the status, after a `## Status` section.
52
+ Upgrading: as above.
53
+ - A `## Status` section or label that cannot be read keeps its document in
54
+ force with a warning, where it fell through to a later label. Upgrading:
55
+ write the status in the section.
56
+ - Under `--strict`, a run or `prove` that executed no assertion exits 1, with
57
+ a `nothing-verified` finding in every format; a selection that picks no
58
+ rule still passes (ADR-0010). Upgrading: put a rule in force, fix the spec
59
+ patterns, or pass `--no-strict`.
60
+ - `cites --strict` that read no source file writes a `nothing-read` finding
61
+ in every format; its exit code is unchanged
62
+ ([ADR-0017](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0017-citations-in-comments.md)).
63
+ Upgrading: a code-scanning or GitLab report shows one finding where it
64
+ showed none.
65
+ - GitLab descriptions and GitHub messages carry the hint after the message.
66
+ Upgrading: nothing, unless a script compares a description whole.
67
+ - The GitLab and SARIF fingerprints of a directive that cannot be read are
68
+ built from the directive as written, never its message. Upgrading: each
69
+ such issue or alert closes and reopens once.
70
+ - spec-core at 5666c96: `.//f.ts` is `f.ts` at any depth, as `./f.ts` is,
71
+ in every pattern and under both engines, where it meant the root
72
+ ([ADR-0015](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0015-globs-from-spec-core.md),
73
+ [ADR-0013](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0013-structure-assertions.md)).
74
+ Upgrading: write `/f.ts` for the root.
75
+
76
+ ### Fixed
77
+
78
+ - `glob="./!a"` and the spec pattern `./!*.md` name files called `!a` and
79
+ `!*.md`, where they were refused as negations.
80
+ - `impact` lines up paths in Chinese, Japanese or Korean.
81
+ - The README describes the GitLab fingerprint as the code builds it, lists
82
+ the `spec-warning` severity, says how to install ripgrep on GitLab runners
83
+ and Windows, and uploads SARIF with `upload-sarif@v4`.
84
+
85
+ ### Documentation
86
+
87
+ - The README is reorganised: the directive reference sits under Directives,
88
+ Design decisions is an index of the ADRs, and development, mutation testing
89
+ and releasing moved to CONTRIBUTING.md, with the release flow in
90
+ [ADR-0019](https://github.com/DescentVTT/spec-guard/blob/main/docs/adr/0019-releases-are-staged-by-ci.md);
91
+ SECURITY.md says how to report a vulnerability privately.
7
92
 
8
93
  ## 0.16.0
9
94