Repository navigation
chore: commit API Extractor reports of the public surface - #9034
schiller-manuel wants to merge 6 commits into
Conversation
scripts/api-report.mjs writes one API Extractor report per declaration file that a package's `exports` points at, to `api/<entry>.api.md`, from the published declarations in `dist` with no tsconfig `paths`. `--check` fails when a report is out of date, missing or left over. @microsoft/api-extractor 7.60.2 was already in the lockfile as a peer of vite-plugin-dts. Regenerating the lockfile also moved router-plugin's vite-plugin-solid to 2.11.17 and one ajv reference to 8.20.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generated by scripts/api-report.mjs from a fresh build, for router-core, history, the three router bindings and the Start packages, before any internals are hidden. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
router-core, history, the router bindings and the Start packages run `node ../../scripts/api-report.mjs --check` after the declaration check. The script and the API Extractor version are `test:build` inputs; the reports already are, through `buildProduction`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
API Extractor leaves `declare module '<specifier>'` and `declare global` blocks out of its report, yet the bindings add public fields to router-core's and history's interfaces that way. Each report now ends with an "Augmentations" section: every such block in the declaration files the entry reaches inside its own tree, printed by the TypeScript printer without comments or source layout, sorted by specifier, file and position. Entries without such blocks get no section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Regenerated from a fresh build. 18 of the 102 reports gain an "Augmentations" section; the others are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
View your CI Pipeline Execution ↗ for commit deb48b8
💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗ ☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version Preview11 package(s) bumped directly, 17 bumped as dependents. 🟩 Patch bumps
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Bundle Size Benchmarks
The following scenarios have bundle-size changes compared with the baseline:
Current gzip tracks all emitted client JS chunks. Initial gzip tracks only the entry/import graph. Trend sparkline is historical current gzip ending with this PR measurement; lower is better. |
Merging this PR will improve performance by 7.67%Warning TanStack has exceeded the Hobby plan limit of 5 active contributors. Upgrade your plan or apply to the open source program by December 13, 2026 to keep using CodSpeed. 1 warning, 1 note
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
🎯 Changes
Stacked on #9033.
Baseline reports of the public API, committed before any internals are hidden. From here on, every change to the public surface shows up as a diff in the pull request, in both directions: a new undocumented export that nobody tagged, or a public export that disappears because a comment with
@internallanded on it.stripInternalremoves such a declaration without leaving anything dangling, so no type check sees it.scripts/api-report.mjswrites one API Extractor report per declaration file inexports(CJS twins excluded) topackages/<pkg>/api/<entry>.api.md. It reads the published declarations indistthe way a user does, without thepathsmap.--checkfails on a changed, missing or leftover report and prints what changed.declare moduleanddeclare globalblocks out of its report, so the script appends them in an "Augmentations" section (18 reports have one).test:buildin those packages (0.5 to 1.3 s each). The script and the API Extractor version aretest:buildinputs.@microsoft/api-extractor7.60.2 was already in the lockfile as a peer; it is now a root dev dependency through the catalog. Regenerating the lockfile also moved router-plugin's auto-installedvite-plugin-solidpeer from 2.11.11 to 2.11.17 and oneajvreference from 8.17.1 to 8.20.0, as pnpm resolved them.test:unit, and a line in AGENTS.md on when reports change and how to regenerate them.Checked by mutation: a new export, a new
RouterCoremember, a// @internalcomment above a public export statement, and an@internaltag inside a binding'sdeclare moduleblock each fail the check. The last two pass the declaration type check, so only the reports catch them.Validated locally:
test:buildforpackages/*without the Nx cache (108 tasks) and the roottest:unit(12 tests). Draft because it inherits the redtest:buildof #9032 until TanStack/config#443 is released.Written with AI assistance (Claude Code).
✅ Checklist
🚀 Release Impact
🤖 Generated with Claude Code