Commit 23a2b64
Tidy the Connect README (#275)
Four fixes, one of which is the reason the README misleads readers about what
this package is.
**Say what the "Report a vulnerability" button is, before using the phrase.**
The button was named in the install prompt and the quick start, then not defined
until "The disclosure widget" nearly 300 lines later. Read top-down — which is
how an assistant reads it — the phrase lands next to a package about
vulnerability monitoring and reads as either a way to report vulnerable
dependencies to Patchstack, or as this package's own security-contact channel.
It is neither: it is a button Connect renders on the reader's site for their
visitors. The new opening says so at first use.
**Describe the whole package.** The opening line covered dependency scanning
only, and named `package-lock.json` when five lockfile formats are supported.
The runtime guard, the disclosure widget and the attack-surface map all ship in
`dist/` and were documented further down, so the summary a reader forms from the
first paragraph was narrower than the package. It now lists the four things
Connect does and links to each, and says `map` is never run for you.
**Correct the release process.** It described bumping `package.json`, committing
it, and a tag that must match or the workflow fails. None of that is how this
releases: the tag is the source of truth, `Publish` writes the version into
`package.json` in CI, and `Release` computes the bump. The section now matches
`RELEASING.md` and `publish.yml` and points at the former for the rest. The
one-time npm trusted-publishing setup moves to `RELEASING.md`, where a
maintainer would look for it.
**Fix the development loop order.** It listed `npm test` before `npm run build`.
Several tests only run once `dist/` exists and skip without it, so that order
reads exactly like passing while testing less. Also moves the local-endpoint
manifest recipe to `CONTRIBUTING.md`; it is contributor-only and shipped to
every consumer in the tarball.
The install prompt is untouched, so all three copies still agree.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 5cf5db8 commit 23a2b64
3 files changed
Lines changed: 50 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
57 | 74 | | |
58 | 75 | | |
59 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
| |||
446 | 453 | | |
447 | 454 | | |
448 | 455 | | |
449 | | - | |
| 456 | + | |
450 | 457 | | |
| 458 | + | |
451 | 459 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | 460 | | |
462 | 461 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
| 462 | + | |
470 | 463 | | |
471 | 464 | | |
472 | 465 | | |
473 | 466 | | |
474 | 467 | | |
475 | | - | |
476 | | - | |
477 | | - | |
| 468 | + | |
478 | 469 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
486 | 473 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
| 474 | + | |
496 | 475 | | |
497 | | - | |
| 476 | + | |
498 | 477 | | |
499 | 478 | | |
500 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
115 | 131 | | |
116 | 132 | | |
117 | 133 | | |
| |||
0 commit comments