@tanstack/router-core 1.129.9 → 1.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
- "version": "1.129.9",
3
+ "version": "1.130.0",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -407,6 +407,17 @@ export interface RouterOptions<
407
407
  * @default ['window']
408
408
  */
409
409
  scrollToTopSelectors?: Array<string | (() => Element | null | undefined)>
410
+
411
+ /**
412
+ * When `true`, disables the global catch boundary that normally wraps all route matches.
413
+ * This allows unhandled errors to bubble up to top-level error handlers in the browser.
414
+ *
415
+ * Useful for testing tools (like Storybook Test Runner), error reporting services,
416
+ * and debugging scenarios where you want errors to reach the browser's global error handlers.
417
+ *
418
+ * @default false
419
+ */
420
+ disableGlobalCatchBoundary?: boolean
410
421
  }
411
422
 
412
423
  export interface RouterState<