@descent-vtt/spec-graph 0.9.10 → 0.10.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 (43) hide show
  1. package/CHANGELOG.md +68 -2
  2. package/README.md +522 -319
  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.d.ts +14 -1
  7. package/dist/extract.js +114 -10
  8. package/dist/extract.js.map +1 -1
  9. package/dist/glob.d.ts +11 -0
  10. package/dist/glob.js +17 -1
  11. package/dist/glob.js.map +1 -1
  12. package/dist/index.d.ts +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/lifecycle.d.ts +11 -1
  16. package/dist/lifecycle.js +187 -28
  17. package/dist/lifecycle.js.map +1 -1
  18. package/dist/report.d.ts +22 -0
  19. package/dist/report.js +50 -3
  20. package/dist/report.js.map +1 -1
  21. package/dist/sections.d.ts +7 -1
  22. package/dist/sections.js +10 -2
  23. package/dist/sections.js.map +1 -1
  24. package/dist/state.js +19 -3
  25. package/dist/state.js.map +1 -1
  26. package/dist/vendor/spec-core/markdown/frontmatter.d.ts +11 -1
  27. package/dist/vendor/spec-core/markdown/frontmatter.js +20 -3
  28. package/dist/vendor/spec-core/markdown/frontmatter.js.map +1 -1
  29. package/dist/vendor/spec-core/pattern/glob.d.ts +85 -0
  30. package/dist/vendor/spec-core/pattern/glob.js +207 -17
  31. package/dist/vendor/spec-core/pattern/glob.js.map +1 -1
  32. package/dist/vendor/spec-core/pattern/index.d.ts +2 -2
  33. package/dist/vendor/spec-core/pattern/index.js +1 -1
  34. package/dist/vendor/spec-core/pattern/index.js.map +1 -1
  35. package/dist/vendor/spec-core/text/index.d.ts +1 -0
  36. package/dist/vendor/spec-core/text/index.js +1 -0
  37. package/dist/vendor/spec-core/text/index.js.map +1 -1
  38. package/dist/vendor/spec-core/text/width.d.ts +30 -0
  39. package/dist/vendor/spec-core/text/width.js +113 -0
  40. package/dist/vendor/spec-core/text/width.js.map +1 -0
  41. package/dist/yaml.js +6 -2
  42. package/dist/yaml.js.map +1 -1
  43. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,7 +1,73 @@
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.10.0
15
+
16
+ Statuses, status tables, relations, obligations and markers written in
17
+ Chinese are read, and `check` writes GitHub annotations. Over this
18
+ repository, its fixtures and the rest of the family, which write neither,
19
+ every `check` format and graph export is byte for byte what 0.9.10 wrote.
20
+ spec-core is at 5666c96.
21
+
22
+ ### Added
23
+
24
+ - `check --format github` writes one GitHub Actions workflow command per
25
+ finding, with the hint in the message; severities as spec-guard's.
26
+
27
+ ### Changed
28
+
29
+ - A status written in Chinese, Traditional or Simplified, is read as the
30
+ English word it translates (`已接受` accepted, `延後` deferred, `封存`
31
+ archived, `已被 ADR-0003 取代` superseded by ADR-0003), from front matter
32
+ (`狀態:`), a `## 狀態` section or a register label (ADR-0002). Upgrading:
33
+ run `check`; fix what a rule now finds on a Chinese document, or baseline
34
+ it with `--record-baseline <file>`.
35
+ - A two-column table above the first `##`, `| 狀態 | 已接受 |` or
36
+ `| Status | Accepted |`, gives the status, after a `## Status` section and
37
+ never over front matter (ADR-0002). Upgrading: as above.
38
+ - Hand-off phrases (`延後至`, `移交給`, `留待`, `交由`, `併入`), obligation
39
+ and bookkeeping sections (`待辦事項`, `未決問題`, `參考資料`, `附錄`) and
40
+ markers (`已解決:`, `已決定:`, `**技術債**`) written in Chinese are read,
41
+ not after a negation (ADR-0003, ADR-0006). Upgrading: as above.
42
+ - A pattern typed below the root is rebased alternative by alternative:
43
+ `{/docs,x}` in `sub` is `/docs` or `sub/x`, `!/docs` stays rooted, and
44
+ `{../a,b}` in `sub/deep` works; a `..` past the root, an empty pattern, a
45
+ directory name holding glob syntax and `{/,x}` exit 2 (ADR-0018,
46
+ ADR-0022). Upgrading: write `{docs,x}` for what `{/docs,x}` read in a
47
+ subdirectory.
48
+ - `.//docs` reads as `./docs`, where it was rooted and matched nothing
49
+ (ADR-0022). Upgrading: nothing to change.
50
+
51
+ ### Fixed
52
+
53
+ - A statement ends at `。?!;`, so a Chinese phrase no longer governs a
54
+ reference in the next sentence.
55
+ - A front-matter key in any script is read, where it was counted as a
56
+ problem line on every run.
57
+ - A bare `--history` name typed below the root is read from where it was
58
+ typed (ADR-0018).
59
+ - The `--record-baseline` hint names the file as typed where the run was
60
+ (ADR-0018).
61
+ - The terminal report lines up paths in Chinese, and the caret under a
62
+ selector that does not parse.
63
+ - The README's SARIF example uses `upload-sarif@v4` and the
64
+ `security-events: write` permission it needs.
65
+
66
+ ### Documentation
67
+
68
+ - The README is reorganised into lists and tables with nothing left out,
69
+ links the family's glossary and tutorial, and SECURITY.md says how to
70
+ report a vulnerability privately.
5
71
 
6
72
  ## 0.9.10
7
73