Repository navigation
docs: replace broken bundlephobia badge with bundlejs - #68
Conversation
The bundlephobia badge renders an error banner ('rate limited by
upstream service') because bundlephobia.com/api/size returns HTTP 429;
shields.io answers 200 even for that error badge, so the breakage was
invisible to the HTTP-200 check in #54.
Swap both READMEs to the shields.io bundlejs badge, which renders
'minified size (gzip): 7.9 kB' and links to bundlejs.com.
Closes #67
Coverage
|
|
Loop pr-review — approve ✅ Independent check of the diff (
Gates re-run from this checkout: No L1/L2 problems. One L3 non-finding: the README prose still says "about 10kb" next to the 7.9 kB badge — pre-existing, untouched here, and not a reason to block this fix. Awaiting the owner's approving review and merge. |
Closes #67
loop-task: #67
Why
The README bundle-size badge is broken.
https://img.shields.io/bundlephobia/minzip/tiny-ossreturns HTTP 200, but the SVG title isbundlephobia: rate limited by upstream service: upstreambundlephobia.com/api/sizereturns HTTP 429 service-wide (open reports since 2019). shields.io answers 200 even for an error badge, so this could not be caught by the HTTP-status-only check that added the badge in #54.What
Replace the image and link in both READMEs (docs-only, 2 insertions / 2 deletions):
README.mdandREADME_zh-CN.mdstay in parity; the badge label (bundle size) and row order are unchanged. No source, signer, dependency or.github/workflows/**change, so the signer oracle pinning and tree-shaking are unaffected. Commit typedocsper AGENTS.md.Verification
https://img.shields.io/bundlejs/size/tiny-oss— HTTP 200,<title>minified size (gzip): 7.9 kB</title>(a real figure, not an error banner).https://bundlejs.com/?q=tiny-oss— HTTP 200.bundlephobiasearch after the change — 0 hits.pnpm lint— 0 warnings / 0 errors.pnpm fmt:check— all files formatted.pnpm build— exit 0;pnpm check:types— exit 0.pnpm test:azure-oracleandpnpm test:tos-oracle— all checks passed.pnpm serve+pnpm exec vitest run --browser.headless— 24 files passed, 255 passed / 26 skipped.Review
Two-lens review (correctness/regression and standards/safety) found no L1/L2 problems; the independent
pr-reviewstage re-checks the diff.