Skip to content

fix: re-export PathParamError class from @tanstack/router-core#6805

Open
Rendez wants to merge 1 commit intoTanStack:mainfrom
Rendez:patch-1
Open

fix: re-export PathParamError class from @tanstack/router-core#6805
Rendez wants to merge 1 commit intoTanStack:mainfrom
Rendez:patch-1

Conversation

@Rendez
Copy link
Contributor

@Rendez Rendez commented Mar 3, 2026

Re-add PathParamError re-exported from @tanstack/router-core alongside the already existing SearchParamError export.

The removal happened last week: d6af3a2#diff-d59f1a00dff1823e6f16ddf621c708682b1acc37566b17d047bbe4263a580058R238-R274

Summary by CodeRabbit

  • New Features
    • PathParamError is now publicly exported from the main package, making it directly available for import. This allows applications to reference and handle route parameter errors more explicitly (e.g., for better error handling or user feedback) without changing existing behavior. No other public APIs were altered.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 3, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f7dab0b and 277d6d6.

📒 Files selected for processing (1)
  • packages/react-router/src/index.tsx

📝 Walkthrough

Walkthrough

The React Router package index export was updated to re-export PathParamError from @tanstack/router-core alongside lazyFn and SearchParamError, expanding the module's public exports.

Changes

Cohort / File(s) Summary
Public API Surface
packages/react-router/src/index.tsx
Added PathParamError to the named exports re-exported from @tanstack/router-core, updating the package's public API surface.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A tiny export hopped into view,
PathParamError joined the crew,
A tidy change, so quick and neat,
The package hums a little beat. 🥕✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the main change: re-exporting PathParamError from @tanstack/router-core.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link

nx-cloud bot commented Mar 3, 2026

🤖 Nx Cloud AI Fix Eligible

An automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs.

To disable these notifications, a workspace admin can disable them in workspace settings.


View your CI Pipeline Execution ↗ for commit 277d6d6

Command Status Duration Result
nx run @benchmarks/client-nav:test:perf:solid ❌ Failed 1m 13s View ↗
nx run @benchmarks/ssr:test:perf:vue ✅ Succeeded 2m 6s View ↗
nx run @benchmarks/ssr:test:perf:solid ✅ Succeeded 1m 51s View ↗
nx run @benchmarks/ssr:test:perf:react ✅ Succeeded 2m View ↗
nx run @benchmarks/client-nav:test:perf:vue ✅ Succeeded 1m 23s View ↗
nx run @benchmarks/client-nav:test:perf:react ✅ Succeeded 4m 33s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-03 12:47:22 UTC

@github-actions
Copy link

github-actions bot commented Mar 3, 2026

Bundle Size Benchmarks

  • Commit: 33188782e179
  • Measured at: 2026-03-03T12:31:04.721Z
  • Baseline source: history:33188782e179
  • Dashboard: bundle-size history
Scenario Current (gzip) Delta vs baseline Raw Brotli Trend
react-router.minimal 86.58 KiB 0 B (0.00%) 272.45 KiB 75.22 KiB ▅▅▅▅▅▅▅▅▅▅▅
react-router.full 89.61 KiB 0 B (0.00%) 282.78 KiB 77.90 KiB ▅▅▅▅▅▅▅▅▅▅▅
solid-router.minimal 35.88 KiB 0 B (0.00%) 107.56 KiB 32.26 KiB ▅▅▅▅▅▅▅▅▅▅▅
solid-router.full 40.21 KiB 0 B (0.00%) 120.61 KiB 36.13 KiB ▅▅▅▅▅▅▅▅▅▅▅
vue-router.minimal 51.75 KiB 0 B (0.00%) 147.54 KiB 46.50 KiB ▅▅▅▅▅▅▅▅▅▅▅
vue-router.full 56.55 KiB 0 B (0.00%) 163.12 KiB 50.86 KiB ▅▅▅▅▅▅▅▅▅▅▅
react-start.minimal 99.11 KiB 0 B (0.00%) 311.58 KiB 85.68 KiB ▅▅▅▅▅▅▅▅▅▅▅
react-start.full 102.50 KiB 0 B (0.00%) 321.39 KiB 88.63 KiB ▁▁▁▁███████
solid-start.minimal 48.19 KiB 0 B (0.00%) 145.13 KiB 42.67 KiB ▅▅▅▅▅▅▅▅▅▅▅
solid-start.full 53.68 KiB 0 B (0.00%) 161.08 KiB 47.37 KiB ▁▁▁▁███████

Trend sparkline is historical gzip bytes ending with this PR measurement; lower is better.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 3, 2026

More templates

@tanstack/arktype-adapter

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

@tanstack/eslint-plugin-router

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

@tanstack/history

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

@tanstack/nitro-v2-vite-plugin

npm i https://pkg.pr.new/@tanstack/nitro-v2-vite-plugin@6805

@tanstack/react-router

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

@tanstack/react-router-devtools

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

@tanstack/react-router-ssr-query

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

@tanstack/react-start

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

@tanstack/react-start-client

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

@tanstack/react-start-server

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

@tanstack/router-cli

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

@tanstack/router-core

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

@tanstack/router-devtools

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

@tanstack/router-devtools-core

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

@tanstack/router-generator

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

@tanstack/router-plugin

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

@tanstack/router-ssr-query-core

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

@tanstack/router-utils

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

@tanstack/router-vite-plugin

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

@tanstack/solid-router

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

@tanstack/solid-router-devtools

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

@tanstack/solid-router-ssr-query

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

@tanstack/solid-start

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

@tanstack/solid-start-client

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

@tanstack/solid-start-server

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

@tanstack/start-client-core

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

@tanstack/start-fn-stubs

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

@tanstack/start-plugin-core

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

@tanstack/start-server-core

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

@tanstack/start-static-server-functions

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

@tanstack/start-storage-context

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

@tanstack/valibot-adapter

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

@tanstack/virtual-file-routes

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

@tanstack/vue-router

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

@tanstack/vue-router-devtools

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

@tanstack/vue-router-ssr-query

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

@tanstack/vue-start

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

@tanstack/vue-start-client

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

@tanstack/vue-start-server

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

@tanstack/zod-adapter

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

commit: 0e7c25c

@Rendez Rendez changed the title Add PathParamError export from @tanstack/router-core fix: add PathParamError export from @tanstack/router-core Mar 3, 2026
@Rendez Rendez changed the title fix: add PathParamError export from @tanstack/router-core fix: re-export PathParamError class from @tanstack/router-core Mar 3, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 3, 2026

Merging this PR will not alter performance

✅ 5 untouched benchmarks


Comparing Rendez:patch-1 (5feb152) with main (3318878)

Open in CodSpeed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant