Skip to content

chore: commit API Extractor reports of the public surface - #9034

Draft
schiller-manuel wants to merge 6 commits into
chore/composite-projectsfrom
chore/api-extractor-reports
Draft

schiller-manuel wants to merge 6 commits into
chore/composite-projectsfrom
chore/api-extractor-reports

Conversation

@schiller-manuel

Copy link
Copy Markdown
Collaborator

🎯 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 @internal landed on it. stripInternal removes such a declaration without leaving anything dangling, so no type check sees it.

  • scripts/api-report.mjs writes one API Extractor report per declaration file in exports (CJS twins excluded) to packages/<pkg>/api/<entry>.api.md. It reads the published declarations in dist the way a user does, without the paths map. --check fails on a changed, missing or leftover report and prints what changed.
  • API Extractor leaves declare module and declare global blocks out of its report, so the script appends them in an "Augmentations" section (18 reports have one).
  • Baseline for router-core, history, the three router bindings and the Start packages: 102 reports, 14,402 lines. The largest is router-core's root entry with 2,687.
  • The check runs at the end of test:build in those packages (0.5 to 1.3 s each). The script and the API Extractor version are test:build inputs.
  • The reports are excluded from Prettier; the check compares them byte for byte.
  • @microsoft/api-extractor 7.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-installed vite-plugin-solid peer from 2.11.11 to 2.11.17 and one ajv reference from 8.17.1 to 8.20.0, as pnpm resolved them.
  • Tests for the script in the root 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 RouterCore member, a // @internal comment above a public export statement, and an @internal tag inside a binding's declare module block each fail the check. The last two pass the declaration type check, so only the reports catch them.

Validated locally: test:build for packages/* without the Nx cache (108 tasks) and the root test:unit (12 tests). Draft because it inherits the red test:build of #9032 until TanStack/config#443 is released.

Written with AI assistance (Claude Code).

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested code changes locally with the relevant test commands, or tests do not apply to this pull request.
  • I fully understand the code in this pull request, including any code generated with AI assistance.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

🤖 Generated with Claude Code

schiller-manuel and others added 6 commits November 30, 2026 02:31
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>
@changeset-bot

changeset-bot Bot commented Nov 30, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: deb48b8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@nx-cloud

nx-cloud Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit deb48b8

Command Status Duration Result
nx affected --targets=test:eslint,test:unit,tes... ❌ Failed 9m 22s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1m 29s View ↗

💡 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 2026-11-30 01:52:34 UTC

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

11 package(s) bumped directly, 17 bumped as dependents.

🟩 Patch bumps

Package Version Reason
@tanstack/react-router 1.170.46 → 1.170.47 Changeset
@tanstack/react-router-devtools 1.167.4 → 1.167.5 Changeset
@tanstack/react-start-rsc 0.1.69 → 0.1.70 Changeset
@tanstack/router-core 1.171.39 → 1.171.40 Changeset
@tanstack/router-devtools-core 1.168.4 → 1.168.5 Changeset
@tanstack/router-plugin 1.170.0 → 1.170.1 Changeset
@tanstack/solid-router 1.170.43 → 1.170.44 Changeset
@tanstack/solid-router-devtools 1.167.4 → 1.167.5 Changeset
@tanstack/start-plugin-core 1.173.0 → 1.173.1 Changeset
@tanstack/vue-router 1.170.42 → 1.170.43 Changeset
@tanstack/vue-router-devtools 1.167.4 → 1.167.5 Changeset
@tanstack/react-start 1.170.0 → 1.170.1 Dependent
@tanstack/react-start-client 1.168.45 → 1.168.46 Dependent
@tanstack/react-start-server 1.167.52 → 1.167.53 Dependent
@tanstack/router-cli 1.168.1 → 1.168.2 Dependent
@tanstack/router-devtools 1.167.4 → 1.167.5 Dependent
@tanstack/router-generator 1.169.0 → 1.169.1 Dependent
@tanstack/router-vite-plugin 1.167.50 → 1.167.51 Dependent
@tanstack/solid-start 1.170.0 → 1.170.1 Dependent
@tanstack/solid-start-client 1.168.42 → 1.168.43 Dependent
@tanstack/solid-start-server 1.167.50 → 1.167.51 Dependent
@tanstack/start-client-core 1.170.39 → 1.170.40 Dependent
@tanstack/start-server-core 1.169.45 → 1.169.46 Dependent
@tanstack/start-static-server-functions 1.167.44 → 1.167.45 Dependent
@tanstack/start-storage-context 1.167.41 → 1.167.42 Dependent
@tanstack/vue-start 1.170.0 → 1.170.1 Dependent
@tanstack/vue-start-client 1.167.45 → 1.167.46 Dependent
@tanstack/vue-start-server 1.167.50 → 1.167.51 Dependent

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedvite-plugin-solid@​2.11.179910010097100

View full report

@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Benchmarks

  • Commit: 4e149a3afddc
  • Measured at: 2026-11-30T01:44:11.031Z
  • Baseline source: history:a47dc36d0310
  • Dashboard: bundle-size history

The following scenarios have bundle-size changes compared with the baseline:

Scenario Current (gzip) Initial (gzip) Raw Brotli Trend
react-router.minimal 84.0 KiB
-15 B
83.9 KiB
-14 B
261.5 KiB
-25 B
73.3 KiB
-39 B
▁▆▆▆▆▆▆▆▆██▄
react-router.full 87.6 KiB
-16 B
87.5 KiB
-14 B
273.4 KiB
-25 B
76.4 KiB
-42 B
▁▆▆▆▆▆▆▆▆██▅
solid-router.minimal 33.4 KiB
-13 B
33.2 KiB
-12 B
95.3 KiB
-25 B
30.2 KiB
-43 B
▁██████████▆
solid-router.full 38.3 KiB
-14 B
38.1 KiB
-14 B
110.1 KiB
-25 B
34.6 KiB
+2 B
▁██████████▃
vue-router.minimal 49.5 KiB
-12 B
49.3 KiB
-11 B
136.5 KiB
-50 B
44.8 KiB
-8 B
▁██████████▆
vue-router.full 55.0 KiB
-15 B
54.9 KiB
-15 B
154.6 KiB
-50 B
49.7 KiB
-9 B
▁██████████▆
react-start.minimal 96.8 KiB
-10 B
96.7 KiB
-11 B
302.4 KiB
-25 B
84.1 KiB
-18 B
▁▅▅▅▅▅▅▅▅██▄
react-start.query-integration 104.2 KiB
-14 B
104.1 KiB
-12 B
329.0 KiB
-25 B
90.6 KiB
+53 B
▁▅▅▅▅▅▅▅▅██▄
react-start.deferred-hydration 97.5 KiB
-12 B
96.7 KiB
-11 B
303.8 KiB
-25 B
84.7 KiB
-130 B
▁▆▆▆▆▆▆▆▆██▆
react-start.full 99.9 KiB
-14 B
99.7 KiB
-14 B
311.7 KiB
-25 B
86.7 KiB
-27 B
▁▅▅▅▅▅▅▅▅██▄
react-start.rsbuild.minimal 96.7 KiB
-13 B
96.5 KiB
-13 B
298.3 KiB
-25 B
83.5 KiB
-26 B
▇█████████▅▁
react-start.rsbuild.minimal-iife 97.1 KiB
-14 B
96.9 KiB
-14 B
299.2 KiB
-25 B
83.7 KiB
-103 B
▆█████████▅▁
react-start.rsbuild.full 99.9 KiB
-13 B
99.8 KiB
-13 B
307.9 KiB
-25 B
86.2 KiB
+57 B
▇█████████▄▁
solid-start.minimal 46.2 KiB
-11 B
46.1 KiB
-12 B
135.1 KiB
-25 B
41.1 KiB
-106 B
▁██████████▇
solid-start.deferred-hydration 49.2 KiB
-10 B
46.1 KiB
-12 B
142.4 KiB
-25 B
43.9 KiB
-35 B
▁██████████▇
solid-start.full 51.2 KiB
-19 B
51.1 KiB
-16 B
150.1 KiB
-25 B
45.4 KiB
-20 B
▁██████████▆
vue-start.minimal 65.4 KiB
-14 B
65.3 KiB
-13 B
185.7 KiB
-50 B
58.3 KiB
-36 B
▁██████████▆
vue-start.full 69.2 KiB
-17 B
69.0 KiB
-16 B
197.5 KiB
-50 B
61.6 KiB
-101 B
▁██████████▆

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.

@pkg-pr-new

pkg-pr-new Bot commented Nov 30, 2026

Copy link
Copy Markdown
More templates

@tanstack/arktype-adapter

npm i https://pkg.pr.new/@tanstack/arktype-adapter@9034

@tanstack/eslint-plugin-router

npm i https://pkg.pr.new/@tanstack/eslint-plugin-router@9034

@tanstack/eslint-plugin-start

npm i https://pkg.pr.new/@tanstack/eslint-plugin-start@9034

@tanstack/history

npm i https://pkg.pr.new/@tanstack/history@9034

@tanstack/react-router

npm i https://pkg.pr.new/@tanstack/react-router@9034

@tanstack/react-router-devtools

npm i https://pkg.pr.new/@tanstack/react-router-devtools@9034

@tanstack/react-router-ssr-query

npm i https://pkg.pr.new/@tanstack/react-router-ssr-query@9034

@tanstack/react-start

npm i https://pkg.pr.new/@tanstack/react-start@9034

@tanstack/react-start-client

npm i https://pkg.pr.new/@tanstack/react-start-client@9034

@tanstack/react-start-rsc

npm i https://pkg.pr.new/@tanstack/react-start-rsc@9034

@tanstack/react-start-server

npm i https://pkg.pr.new/@tanstack/react-start-server@9034

@tanstack/router-cli

npm i https://pkg.pr.new/@tanstack/router-cli@9034

@tanstack/router-core

npm i https://pkg.pr.new/@tanstack/router-core@9034

@tanstack/router-devtools

npm i https://pkg.pr.new/@tanstack/router-devtools@9034

@tanstack/router-devtools-core

npm i https://pkg.pr.new/@tanstack/router-devtools-core@9034

@tanstack/router-generator

npm i https://pkg.pr.new/@tanstack/router-generator@9034

@tanstack/router-plugin

npm i https://pkg.pr.new/@tanstack/router-plugin@9034

@tanstack/router-ssr-query-core

npm i https://pkg.pr.new/@tanstack/router-ssr-query-core@9034

@tanstack/router-utils

npm i https://pkg.pr.new/@tanstack/router-utils@9034

@tanstack/router-vite-plugin

npm i https://pkg.pr.new/@tanstack/router-vite-plugin@9034

@tanstack/solid-router

npm i https://pkg.pr.new/@tanstack/solid-router@9034

@tanstack/solid-router-devtools

npm i https://pkg.pr.new/@tanstack/solid-router-devtools@9034

@tanstack/solid-router-ssr-query

npm i https://pkg.pr.new/@tanstack/solid-router-ssr-query@9034

@tanstack/solid-start

npm i https://pkg.pr.new/@tanstack/solid-start@9034

@tanstack/solid-start-client

npm i https://pkg.pr.new/@tanstack/solid-start-client@9034

@tanstack/solid-start-server

npm i https://pkg.pr.new/@tanstack/solid-start-server@9034

@tanstack/start-client-core

npm i https://pkg.pr.new/@tanstack/start-client-core@9034

@tanstack/start-fn-stubs

npm i https://pkg.pr.new/@tanstack/start-fn-stubs@9034

@tanstack/start-plugin-core

npm i https://pkg.pr.new/@tanstack/start-plugin-core@9034

@tanstack/start-server-core

npm i https://pkg.pr.new/@tanstack/start-server-core@9034

@tanstack/start-static-server-functions

npm i https://pkg.pr.new/@tanstack/start-static-server-functions@9034

@tanstack/start-storage-context

npm i https://pkg.pr.new/@tanstack/start-storage-context@9034

@tanstack/valibot-adapter

npm i https://pkg.pr.new/@tanstack/valibot-adapter@9034

@tanstack/virtual-file-routes

npm i https://pkg.pr.new/@tanstack/virtual-file-routes@9034

@tanstack/vue-router

npm i https://pkg.pr.new/@tanstack/vue-router@9034

@tanstack/vue-router-devtools

npm i https://pkg.pr.new/@tanstack/vue-router-devtools@9034

@tanstack/vue-router-ssr-query

npm i https://pkg.pr.new/@tanstack/vue-router-ssr-query@9034

@tanstack/vue-start

npm i https://pkg.pr.new/@tanstack/vue-start@9034

@tanstack/vue-start-client

npm i https://pkg.pr.new/@tanstack/vue-start-client@9034

@tanstack/vue-start-server

npm i https://pkg.pr.new/@tanstack/vue-start-server@9034

@tanstack/zod-adapter

npm i https://pkg.pr.new/@tanstack/zod-adapter@9034

commit: deb48b8

@codspeed

codspeed Bot commented Nov 30, 2026

Copy link
Copy Markdown

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

⚠️ 58 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

ℹ️ 2 benchmarks have no flamegraph

The flamegraph wasn't generated: most of the time was spent in runtime internals, which would leave nothing useful to analyze.

See affected benchmarks

⚡ 3 improved benchmarks
✅ 197 untouched benchmarks
⏩ 3 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Memory mem client mount-unmount (solid) 123.1 KB 109.3 KB +12.63%
⚡ Memory mem client loader-data-retention (solid) 101.3 KB 95.1 KB +6.59%
⚡ Memory mem server error-paths error (vue) 135.6 KB 130.4 KB +3.99%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing chore/api-extractor-reports (deb48b8) with chore/composite-projects (dad27ea)

Open in CodSpeed

Footnotes

  1. 3 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment