@descent-vtt/spec-graph 0.9.10 → 0.11.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 (39) hide show
  1. package/CHANGELOG.md +86 -2
  2. package/README.md +468 -313
  3. package/dist/cli.d.ts +2 -2
  4. package/dist/cli.js +112 -67
  5. package/dist/cli.js.map +1 -1
  6. package/dist/extract.js +66 -6
  7. package/dist/extract.js.map +1 -1
  8. package/dist/glob.d.ts +11 -0
  9. package/dist/glob.js +17 -1
  10. package/dist/glob.js.map +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/lifecycle.js +5 -2
  15. package/dist/lifecycle.js.map +1 -1
  16. package/dist/report.d.ts +22 -0
  17. package/dist/report.js +50 -3
  18. package/dist/report.js.map +1 -1
  19. package/dist/sections.d.ts +7 -1
  20. package/dist/sections.js +9 -1
  21. package/dist/sections.js.map +1 -1
  22. package/dist/vendor/spec-core/markdown/frontmatter.d.ts +11 -1
  23. package/dist/vendor/spec-core/markdown/frontmatter.js +20 -3
  24. package/dist/vendor/spec-core/markdown/frontmatter.js.map +1 -1
  25. package/dist/vendor/spec-core/pattern/glob.d.ts +85 -0
  26. package/dist/vendor/spec-core/pattern/glob.js +207 -17
  27. package/dist/vendor/spec-core/pattern/glob.js.map +1 -1
  28. package/dist/vendor/spec-core/pattern/index.d.ts +2 -2
  29. package/dist/vendor/spec-core/pattern/index.js +1 -1
  30. package/dist/vendor/spec-core/pattern/index.js.map +1 -1
  31. package/dist/vendor/spec-core/text/index.d.ts +1 -0
  32. package/dist/vendor/spec-core/text/index.js +1 -0
  33. package/dist/vendor/spec-core/text/index.js.map +1 -1
  34. package/dist/vendor/spec-core/text/width.d.ts +30 -0
  35. package/dist/vendor/spec-core/text/width.js +113 -0
  36. package/dist/vendor/spec-core/text/width.js.map +1 -0
  37. package/dist/yaml.js +6 -2
  38. package/dist/yaml.js.map +1 -1
  39. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,7 +1,91 @@
1
1
  # Changelog
2
2
 
3
- Notable changes, newest first. Versions follow [semver](https://semver.org):
4
- a patch fixes behaviour without asking anything of a repository that upgrades.
3
+ Notable changes, newest first. Before 1.0, anything that can turn a passing
4
+ run red or change what a script reads - a new finding, a changed exit code,
5
+ input refused that was accepted, a renamed flag or JSON field - comes in a
6
+ minor release, 0.9 to 0.10, with new features; a patch only reports less,
7
+ fixes a crash, runs faster or corrects the documentation, so `^0.10.0` takes
8
+ no release that can fail a build that passed. A flag, key or field is
9
+ deprecated with a warning for at least one minor release before it goes, as
10
+ the family's
11
+ [versioning policy](https://github.com/DescentVTT/spec-core/blob/main/docs/adr/0009-versions-before-1-0.md)
12
+ records.
13
+
14
+ ## 0.11.0
15
+
16
+ spec-graph reads English only again, by the maintainer's decision; the
17
+ two-column status table stays with English keys. spec-core's copy is
18
+ unchanged.
19
+
20
+ ### Removed
21
+
22
+ - Statuses, relations, obligation and bookkeeping headings and markers
23
+ written in Chinese are no longer read: a Chinese status word, `狀態` or
24
+ `状态` as a status key, heading, label or table key, and a full-width
25
+ colon after a status label or heading give an unknown phase, and a
26
+ Chinese phrase, heading or marker draws nothing. The two-column status
27
+ table stays, with `Status` and `State`, and so do the stop at `。?!;`
28
+ and a full-width comma or semicolon between successors (ADR-0002,
29
+ ADR-0003, ADR-0006). Upgrading: write the status in English, e.g.
30
+ `status: superseded`.
31
+
32
+ ## 0.10.0
33
+
34
+ Statuses, status tables, relations, obligations and markers written in
35
+ Chinese are read, and `check` writes GitHub annotations. Over this
36
+ repository, its fixtures and the rest of the family, which write neither,
37
+ every `check` format and graph export is byte for byte what 0.9.10 wrote.
38
+ spec-core is at 5666c96.
39
+
40
+ ### Added
41
+
42
+ - `check --format github` writes one GitHub Actions workflow command per
43
+ finding, with the hint in the message; severities as spec-guard's.
44
+
45
+ ### Changed
46
+
47
+ - A status written in Chinese, Traditional or Simplified, is read as the
48
+ English word it translates (`已接受` accepted, `延後` deferred, `封存`
49
+ archived, `已被 ADR-0003 取代` superseded by ADR-0003), from front matter
50
+ (`狀態:`), a `## 狀態` section or a register label (ADR-0002). Upgrading:
51
+ run `check`; fix what a rule now finds on a Chinese document, or baseline
52
+ it with `--record-baseline <file>`.
53
+ - A two-column table above the first `##`, `| 狀態 | 已接受 |` or
54
+ `| Status | Accepted |`, gives the status, after a `## Status` section and
55
+ never over front matter (ADR-0002). Upgrading: as above.
56
+ - Hand-off phrases (`延後至`, `移交給`, `留待`, `交由`, `併入`), obligation
57
+ and bookkeeping sections (`待辦事項`, `未決問題`, `參考資料`, `附錄`) and
58
+ markers (`已解決:`, `已決定:`, `**技術債**`) written in Chinese are read,
59
+ not after a negation (ADR-0003, ADR-0006). Upgrading: as above.
60
+ - A pattern typed below the root is rebased alternative by alternative:
61
+ `{/docs,x}` in `sub` is `/docs` or `sub/x`, `!/docs` stays rooted, and
62
+ `{../a,b}` in `sub/deep` works; a `..` past the root, an empty pattern, a
63
+ directory name holding glob syntax and `{/,x}` exit 2 (ADR-0018,
64
+ ADR-0022). Upgrading: write `{docs,x}` for what `{/docs,x}` read in a
65
+ subdirectory.
66
+ - `.//docs` reads as `./docs`, where it was rooted and matched nothing
67
+ (ADR-0022). Upgrading: nothing to change.
68
+
69
+ ### Fixed
70
+
71
+ - A statement ends at `。?!;`, so a Chinese phrase no longer governs a
72
+ reference in the next sentence.
73
+ - A front-matter key in any script is read, where it was counted as a
74
+ problem line on every run.
75
+ - A bare `--history` name typed below the root is read from where it was
76
+ typed (ADR-0018).
77
+ - The `--record-baseline` hint names the file as typed where the run was
78
+ (ADR-0018).
79
+ - The terminal report lines up paths in Chinese, and the caret under a
80
+ selector that does not parse.
81
+ - The README's SARIF example uses `upload-sarif@v4` and the
82
+ `security-events: write` permission it needs.
83
+
84
+ ### Documentation
85
+
86
+ - The README is reorganised into lists and tables with nothing left out,
87
+ links the family's glossary and tutorial, and SECURITY.md says how to
88
+ report a vulnerability privately.
5
89
 
6
90
  ## 0.9.10
7
91