dsh-plugin-toolkit 0.4.0 → 0.4.1

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.1
4
+
5
+ - `examples/`: four runnable files (`mount-a-bundle`, `route-stubs`, `baseline`, `aria`), each showing one thing testkit does.
6
+ - `test/examples.test.mjs` runs every example and asserts it prints exactly what the README shows, and that the README names each one. An example that does not run teaches a shape that no longer exists.
7
+ - `fixtures/fetching-bundle/`: a bundle that calls its host on mount, so the route-stub example asserts something real instead of printing zeros.
8
+
3
9
  ## 0.4.0
4
10
 
5
11
  `release` can now finish the job instead of printing the next command.
package/README.md CHANGED
@@ -78,6 +78,27 @@ assert.match(panel.must('[role="status"]').textContent, /Score moved 71 → 77/)
78
78
 
79
79
  `must()` throws with the rendered markup when the selector misses, which is the difference between "the assertion failed" and "here is what the user actually got".
80
80
 
81
+ Every example below is a file in this repository, run by CI, and the output shown is the output it prints:
82
+
83
+ | Example | What it shows |
84
+ | --- | --- |
85
+ | `node examples/mount-a-bundle.mjs` | mount a real bundle, read the text, click, read it again |
86
+ | `node examples/route-stubs.mjs` | answer the routes a panel asks for, and assert on the requests |
87
+ | `node examples/baseline.mjs` | a DOM baseline compared on every run |
88
+ | `node examples/aria.mjs` | what assistive tech sees |
89
+
90
+ ```sh
91
+ $ node examples/mount-a-bundle.mjs
92
+ Demo panel Count 0 0
93
+ Demo panel Count 1 1
94
+ ```
95
+
96
+ ```sh
97
+ $ node examples/route-stubs.mjs
98
+ Score 71
99
+ asked for: 1 route(s), undeclared route answers 404
100
+ ```
101
+
81
102
  To look at a bundle by hand:
82
103
 
83
104
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-toolkit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Preflight, release and test DeepSeek Harness plugins: checks what the host needs, waits for npm to actually serve the version, and keeps the market index honest.",
5
5
  "type": "module",
6
6
  "bin": {