Commit accc291
committed
walkthrough: expand from 1 part to 8 — full library coverage
Previously the walkthrough shipped one part (Anatomy of a PURL, 41
sections across 3 files). The library is much bigger than that — this
extends the plan to cover every public feature.
Eight parts, ordered by reader journey:
1. Anatomy of a PURL — (unchanged) package-url.ts, purl-component.ts,
constants.ts. 41 sections.
2. Building & Stringifying — package-url-builder.ts, stringify.ts.
Fluent PurlBuilder API + canonical pkg:... emission. 46 sections.
3. Parsing & Normalization — encode.ts, decode.ts, normalize.ts,
purl-qualifier-names.ts. Percent-encoding, name/namespace rules,
known-qualifier catalogue. 24 sections.
4. Validation, Errors & Results — validate.ts, result.ts, error.ts,
purl-type.ts. Shape/format validation, Result<T,E> pattern
(Ok/Err/ResultUtils), typed errors (PurlError, PurlInjectionError),
per-ecosystem rule plumbing. 56 sections.
5. URL ↔ PURL Conversion — url-converter.ts. All ~25 ecosystem URL
parsers, toDownloadUrl, toRepositoryUrl, getAllUrls. 65 sections.
6. Ecosystems — all 41 files in src/purl-types/ (alpm through yocto).
Per-ecosystem normalize/validate/encode rules. 181 sections.
7. Comparison, Matching & Existence — compare.ts, exists.ts,
purl-exists.ts, helpers.ts. Wildcard matching with ReDoS guard,
registry existence checks. 20 sections.
8. Security Primitives & VERS — strings.ts, objects.ts, vers.ts.
Injection-character detection, safe freezing, and VERS — the
pre-standard version-range specifier slated for Ecma submission
in late 2026. 35 sections.
Total: 468 annotated sections across the library. Every part page has
the complete 8-part nav in the topbar. Index page lists all 8 with
section counts. SRI, CSP, base-path rewriting, malware audit, and
auto-deploy-to-Val-Town pipelines all handle N parts without changes.1 parent 4948b38 commit accc291
1 file changed
Lines changed: 156 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
16 | 172 | | |
17 | 173 | | |
18 | 174 | | |
0 commit comments