react-router 0.0.0-experimental-2d8f5c807 → 0.0.0-experimental-112589a91

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/development/{browser-BZbE3Ab4.d.ts → browser-B5KCrHLj.d.ts} +1 -1
  3. package/dist/development/{browser-DLaTgmx4.d.mts → browser-Bhni69qL.d.mts} +1 -1
  4. package/dist/development/{chunk-KXIRCLYA.js → chunk-34FZZGUI.js} +226 -262
  5. package/dist/{production/chunk-US5B543W.js → development/chunk-3G4UDB3X.js} +7 -7
  6. package/dist/{production/chunk-B3J4R4VT.js → development/chunk-I543CM6H.js} +167 -123
  7. package/dist/development/{chunk-MZVUB5EK.mjs → chunk-U67KY2SK.mjs} +15 -5
  8. package/dist/development/{chunk-TDCYSKXT.mjs → chunk-ZEWYAG3Y.mjs} +233 -225
  9. package/dist/development/dom-export.d.mts +21 -2
  10. package/dist/development/dom-export.d.ts +21 -2
  11. package/dist/development/dom-export.js +158 -103
  12. package/dist/development/dom-export.mjs +133 -79
  13. package/dist/{production/index-react-server-client-R7shcpCk.d.ts → development/index-react-server-client-DFItmx61.d.ts} +61 -8
  14. package/dist/development/{index-react-server-client-57_e7ldB.d.mts → index-react-server-client-P8Q6V881.d.mts} +61 -8
  15. package/dist/development/index-react-server-client.d.mts +2 -2
  16. package/dist/development/index-react-server-client.d.ts +2 -2
  17. package/dist/development/index-react-server-client.js +4 -4
  18. package/dist/development/index-react-server-client.mjs +2 -2
  19. package/dist/development/index-react-server.d.mts +19 -4
  20. package/dist/development/index-react-server.d.ts +19 -4
  21. package/dist/development/index-react-server.js +54 -27
  22. package/dist/development/index-react-server.mjs +54 -27
  23. package/dist/development/index.d.mts +19 -15
  24. package/dist/development/index.d.ts +19 -15
  25. package/dist/development/index.js +92 -82
  26. package/dist/development/index.mjs +3 -3
  27. package/dist/{production/instrumentation-B_F6ST7G.d.ts → development/instrumentation-C-GSKoyE.d.ts} +66 -8
  28. package/dist/development/lib/types/internal.d.mts +2 -2
  29. package/dist/development/lib/types/internal.d.ts +2 -2
  30. package/dist/development/lib/types/internal.js +1 -1
  31. package/dist/development/lib/types/internal.mjs +1 -1
  32. package/dist/development/{register-xwaVkBip.d.ts → register-C8OrDrUD.d.ts} +1 -1
  33. package/dist/development/{register-CgKz1HWA.d.mts → register-D9FGHcfa.d.mts} +1 -1
  34. package/dist/development/{router-BEkBixDr.d.mts → router-J2UInuv0.d.mts} +66 -8
  35. package/dist/production/{browser-BZbE3Ab4.d.ts → browser-B5KCrHLj.d.ts} +1 -1
  36. package/dist/production/{browser-DLaTgmx4.d.mts → browser-Bhni69qL.d.mts} +1 -1
  37. package/dist/production/{chunk-T6WCDMHU.mjs → chunk-B34BDRRY.mjs} +233 -225
  38. package/dist/production/{chunk-XLO27B6Q.js → chunk-GY2EIGWW.js} +226 -262
  39. package/dist/{development/chunk-BZGUM3ZV.js → production/chunk-LFIV6UYU.js} +167 -123
  40. package/dist/{development/chunk-J43LAV67.js → production/chunk-M6HTRD6I.js} +7 -7
  41. package/dist/production/{chunk-LAULUG52.mjs → chunk-MIFJVNHY.mjs} +15 -5
  42. package/dist/production/dom-export.d.mts +21 -2
  43. package/dist/production/dom-export.d.ts +21 -2
  44. package/dist/production/dom-export.js +158 -103
  45. package/dist/production/dom-export.mjs +133 -79
  46. package/dist/{development/index-react-server-client-R7shcpCk.d.ts → production/index-react-server-client-DFItmx61.d.ts} +61 -8
  47. package/dist/production/{index-react-server-client-57_e7ldB.d.mts → index-react-server-client-P8Q6V881.d.mts} +61 -8
  48. package/dist/production/index-react-server-client.d.mts +2 -2
  49. package/dist/production/index-react-server-client.d.ts +2 -2
  50. package/dist/production/index-react-server-client.js +4 -4
  51. package/dist/production/index-react-server-client.mjs +2 -2
  52. package/dist/production/index-react-server.d.mts +19 -4
  53. package/dist/production/index-react-server.d.ts +19 -4
  54. package/dist/production/index-react-server.js +54 -27
  55. package/dist/production/index-react-server.mjs +54 -27
  56. package/dist/production/index.d.mts +19 -15
  57. package/dist/production/index.d.ts +19 -15
  58. package/dist/production/index.js +92 -82
  59. package/dist/production/index.mjs +3 -3
  60. package/dist/{development/instrumentation-B_F6ST7G.d.ts → production/instrumentation-C-GSKoyE.d.ts} +66 -8
  61. package/dist/production/lib/types/internal.d.mts +2 -2
  62. package/dist/production/lib/types/internal.d.ts +2 -2
  63. package/dist/production/lib/types/internal.js +1 -1
  64. package/dist/production/lib/types/internal.mjs +1 -1
  65. package/dist/production/{register-xwaVkBip.d.ts → register-C8OrDrUD.d.ts} +1 -1
  66. package/dist/production/{register-CgKz1HWA.d.mts → register-D9FGHcfa.d.mts} +1 -1
  67. package/dist/production/{router-BEkBixDr.d.mts → router-J2UInuv0.d.mts} +66 -8
  68. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # `react-router`
2
2
 
3
+ ## 7.9.6
4
+
5
+ ### Patch Changes
6
+
7
+ - \[UNSTABLE] Add `location`/`params` as arguments to client-side `unstable_onError` to permit enhanced error reporting. ([#14509](https://github.com/remix-run/react-router/pull/14509))
8
+
9
+ ⚠️ This is a breaking change if you've already adopted `unstable_onError`. The second `errorInfo` parameter is now an object with `location` and `params`:
10
+
11
+ ```tsx
12
+ // Before
13
+ function errorHandler(error: unknown, errorInfo?: React.errorInfo) {
14
+ /*...*/
15
+ }
16
+
17
+ // After
18
+ function errorHandler(
19
+ error: unknown,
20
+ info: {
21
+ location: Location;
22
+ params: Params;
23
+ errorInfo?: React.ErrorInfo;
24
+ },
25
+ ) {
26
+ /*...*/
27
+ }
28
+ ```
29
+
30
+ - Properly handle ancestor thrown middleware errors before `next()` on fetcher submissions ([#14517](https://github.com/remix-run/react-router/pull/14517))
31
+
32
+ - Fix issue with splat routes interfering with multiple calls to patchRoutesOnNavigation ([#14487](https://github.com/remix-run/react-router/pull/14487))
33
+
34
+ - Normalize double-slashes in `resolvePath` ([#14529](https://github.com/remix-run/react-router/pull/14529))
35
+
3
36
  ## 7.9.5
4
37
 
5
38
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction, e as RouterInit } from './instrumentation-B_F6ST7G.js';
2
+ import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction, e as RouterInit } from './instrumentation-C-GSKoyE.js';
3
3
 
4
4
  type RSCRouteConfigEntryBase = {
5
5
  action?: ActionFunction;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction, e as RouterInit } from './router-BEkBixDr.mjs';
2
+ import { L as Location, C as ClientActionFunction, a as ClientLoaderFunction, b as LinksFunction, M as MetaFunction, S as ShouldRevalidateFunction, P as Params, c as RouterContextProvider, A as ActionFunction, H as HeadersFunction, d as LoaderFunction, e as RouterInit } from './router-J2UInuv0.mjs';
3
3
 
4
4
  type RSCRouteConfigEntryBase = {
5
5
  action?: ActionFunction;