@react-router/dev 0.0.0-experimental-ae6d61df4 → 0.0.0-experimental-4cf5bd08c
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/CHANGELOG.md +31 -0
- package/dist/cli/index.js +10 -3
- package/dist/config.d.ts +0 -4
- package/dist/config.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/vite/cloudflare.js +1 -2
- package/dist/vite.d.ts +3 -1
- package/dist/vite.js +991 -117
- package/package.json +6 -10
- package/dist/internal.d.ts +0 -9
- package/dist/internal.js +0 -2274
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# `@react-router/dev`
|
|
2
2
|
|
|
3
|
+
## 7.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix internal `Future` interface naming from `middleware` -> `v8_middleware` ([#14327](https://github.com/remix-run/react-router/pull/14327))
|
|
8
|
+
- Updated dependencies:
|
|
9
|
+
- `react-router@7.9.1`
|
|
10
|
+
- `@react-router/node@7.9.1`
|
|
11
|
+
- `@react-router/serve@7.9.1`
|
|
12
|
+
|
|
13
|
+
## 7.9.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- Stabilize middleware and context APIs. ([#14215](https://github.com/remix-run/react-router/pull/14215))
|
|
18
|
+
|
|
19
|
+
We have removed the `unstable_` prefix from the following APIs and they are now considered stable and ready for production use:
|
|
20
|
+
- [`RouterContextProvider`](https://reactrouter.com/api/utils/RouterContextProvider)
|
|
21
|
+
- [`createContext`](https://reactrouter.com/api/utils/createContext)
|
|
22
|
+
- `createBrowserRouter` [`getContext`](https://reactrouter.com/api/data-routers/createBrowserRouter#optsgetcontext) option
|
|
23
|
+
- `<HydratedRouter>` [`getContext`](https://reactrouter.com/api/framework-routers/HydratedRouter#getcontext) prop
|
|
24
|
+
|
|
25
|
+
Please see the [Middleware Docs](https://reactrouter.com/how-to/middleware), the [Middleware RFC](https://github.com/remix-run/remix/discussions/7642), and the [Client-side Context RFC](https://github.com/remix-run/react-router/discussions/9856) for more information.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies:
|
|
30
|
+
- `react-router@7.9.0`
|
|
31
|
+
- `@react-router/node@7.9.0`
|
|
32
|
+
- `@react-router/serve@7.9.0`
|
|
33
|
+
|
|
3
34
|
## 7.8.2
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/dist/cli/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* @react-router/dev v0.0.0-experimental-
|
|
3
|
+
* @react-router/dev v0.0.0-experimental-4cf5bd08c
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Remix Software Inc.
|
|
6
6
|
*
|
|
@@ -503,7 +503,6 @@ async function resolveConfig({
|
|
|
503
503
|
serverBundles,
|
|
504
504
|
serverModuleFormat,
|
|
505
505
|
ssr,
|
|
506
|
-
unstable_rootRouteFile: rootRouteFile,
|
|
507
506
|
unstable_routeConfig: routeConfig
|
|
508
507
|
});
|
|
509
508
|
for (let preset of reactRouterUserConfig.presets ?? []) {
|
|
@@ -914,7 +913,7 @@ function generateFuture(ctx) {
|
|
|
914
913
|
|
|
915
914
|
declare module "react-router" {
|
|
916
915
|
interface Future {
|
|
917
|
-
|
|
916
|
+
v8_middleware: ${ctx.config.future.v8_middleware}
|
|
918
917
|
}
|
|
919
918
|
}
|
|
920
919
|
`;
|
|
@@ -1492,6 +1491,13 @@ var init_with_props = __esm({
|
|
|
1492
1491
|
}
|
|
1493
1492
|
});
|
|
1494
1493
|
|
|
1494
|
+
// vite/load-dotenv.ts
|
|
1495
|
+
var init_load_dotenv = __esm({
|
|
1496
|
+
"vite/load-dotenv.ts"() {
|
|
1497
|
+
"use strict";
|
|
1498
|
+
}
|
|
1499
|
+
});
|
|
1500
|
+
|
|
1495
1501
|
// vite/plugins/validate-plugin-order.ts
|
|
1496
1502
|
var init_validate_plugin_order = __esm({
|
|
1497
1503
|
"vite/plugins/validate-plugin-order.ts"() {
|
|
@@ -1779,6 +1785,7 @@ var init_plugin = __esm({
|
|
|
1779
1785
|
init_config();
|
|
1780
1786
|
init_optimize_deps_entries();
|
|
1781
1787
|
init_with_props();
|
|
1788
|
+
init_load_dotenv();
|
|
1782
1789
|
init_validate_plugin_order();
|
|
1783
1790
|
init_warn_on_client_source_maps();
|
|
1784
1791
|
CLIENT_NON_COMPONENT_EXPORTS = [
|
package/dist/config.d.ts
CHANGED
|
@@ -202,10 +202,6 @@ type ResolvedReactRouterConfig = Readonly<{
|
|
|
202
202
|
* SPA without server-rendering. Default's to `true`.
|
|
203
203
|
*/
|
|
204
204
|
ssr: boolean;
|
|
205
|
-
/**
|
|
206
|
-
* The absolute path to the root route file.
|
|
207
|
-
*/
|
|
208
|
-
unstable_rootRouteFile: string;
|
|
209
205
|
/**
|
|
210
206
|
* The resolved array of route config entries exported from `routes.ts`
|
|
211
207
|
*/
|
package/dist/config.js
CHANGED
package/dist/routes.js
CHANGED
package/dist/vite/cloudflare.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @react-router/dev v0.0.0-experimental-
|
|
2
|
+
* @react-router/dev v0.0.0-experimental-4cf5bd08c
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -599,7 +599,6 @@ async function resolveConfig({
|
|
|
599
599
|
serverBundles,
|
|
600
600
|
serverModuleFormat,
|
|
601
601
|
ssr,
|
|
602
|
-
unstable_rootRouteFile: rootRouteFile,
|
|
603
602
|
unstable_routeConfig: routeConfig
|
|
604
603
|
});
|
|
605
604
|
for (let preset of reactRouterUserConfig.presets ?? []) {
|
package/dist/vite.d.ts
CHANGED
|
@@ -8,4 +8,6 @@ type ReactRouterVitePlugin = () => Vite.Plugin[];
|
|
|
8
8
|
*/
|
|
9
9
|
declare const reactRouterVitePlugin: ReactRouterVitePlugin;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
declare function reactRouterRSCVitePlugin(): Vite.PluginOption[];
|
|
12
|
+
|
|
13
|
+
export { reactRouterVitePlugin as reactRouter, reactRouterRSCVitePlugin as unstable_reactRouterRSC };
|