@react-router/dev 0.0.0-experimental-dd63c14ca → 0.0.0-experimental-abd9fc79b

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 CHANGED
@@ -1,5 +1,114 @@
1
1
  # `@react-router/dev`
2
2
 
3
+ ## v8.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - [`react-router@8.0.1`](https://github.com/remix-run/react-router/releases/tag/react-router@8.0.1)
9
+ - [`@react-router/node@8.0.1`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@8.0.1)
10
+ - [`@react-router/serve@8.0.1`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@8.0.1)
11
+
12
+ ## v8.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - Remove `@react-router/dev/vite/cloudflare` dev proxy export; use `@cloudflare/vite-plugin` instead ([#15077](https://github.com/remix-run/react-router/pull/15077))
17
+ - Drops support for `wrangler@3` as a peer dependency of `@react-router/dev`
18
+ - Remove the `future.v8_trailingSlashAwareDataRequests` flag ([#15100](https://github.com/remix-run/react-router/pull/15100))
19
+ - Trailing slash-aware data request URLs are now the default behavior.
20
+ - Remove `future.v8_passThroughRequests` flag - the raw incoming `request` is now always passed through to `loader`/`action`. ([#15079](https://github.com/remix-run/react-router/pull/15079))
21
+ - Move `future.v8_splitRouteModules` to a top-level `splitRouteModules` config option and change the default behavior to `true` ([#15086](https://github.com/remix-run/react-router/pull/15086))
22
+ - Set `splitRouteModules: false` to keep route modules in a single chunk
23
+ - Set `splitRouteModules: "enforce"` to require all routes to be splittable
24
+ - Update minimum Node version to 22.22.0 ([#14928](https://github.com/remix-run/react-router/pull/14928))
25
+ - Require Vite 7+ and make the Vite Environment API build path mandatory ([#15077](https://github.com/remix-run/react-router/pull/15077))
26
+ - Removed the `future.v8_viteEnvironmentApi` flag because the Vite Environment API is always enabled ([#15077](https://github.com/remix-run/react-router/pull/15077))
27
+ - Removed the `future.unstable_previewServerPrerendering` flag and make prerendering with the Vite Environment API the default. ([#15077](https://github.com/remix-run/react-router/pull/15077))
28
+
29
+ ### Minor Changes
30
+
31
+ - Bump dependencies ([#15080](https://github.com/remix-run/react-router/pull/15080))
32
+ - Bumped `@babel/core` from `^7.27.7` to `^7.29.7`
33
+ - Bumped `@babel/generator` from `^7.27.5` to `^7.29.7`
34
+ - Bumped `@babel/parser` from `^7.27.7` to `^7.29.7`
35
+ - Bumped `@babel/plugin-syntax-jsx` from `^7.27.1` to `^7.29.7`
36
+ - Bumped `@babel/preset-typescript` from `^7.27.1` to `^7.29.7`
37
+ - Bumped `@babel/traverse` from `^7.27.7` to `^7.29.7`
38
+ - Bumped `@babel/types` from `^7.27.7` to `^7.29.7`
39
+ - Bumped `dedent` from `^1.5.3` to `^1.7.2`
40
+ - Bumped `jsesc` from `3.0.2` to `3.1.0`
41
+ - Bumped `lodash` from `^4.17.21` to `^4.18.1`
42
+ - Bumped `prettier` from `^3.6.2` to `^3.8.3`
43
+ - Bumped `@remix-run/node-fetch-server` from `^0.13.0` to `^0.13.3`
44
+ - Bumped `react-refresh` from `^0.14.0` to `^0.18.0`
45
+ - Bumped `semver` from `^7.3.7` to `^7.8.1`
46
+ - Bumped `tinyglobby` from `^0.2.14` to `^0.2.16`
47
+ - Bumped `valibot` from `^1.2.0` to `^1.4.1`
48
+ - Replace `cookie` and `set-cookie-parser` with `cookie-es` ([#15109](https://github.com/remix-run/react-router/pull/15109))
49
+ - Removed the `vite-node` dependency in favor of Vite's native module runner APIs ([#15104](https://github.com/remix-run/react-router/pull/15104))
50
+
51
+ ### Patch Changes
52
+
53
+ - Bump dependencies ([#15080](https://github.com/remix-run/react-router/pull/15080))
54
+ - Bumped `@babel/core` from `^7.29.0` to `^7.29.7`
55
+ - Bumped `@babel/generator` from `^7.29.1` to `^7.29.7`
56
+ - Bumped `@babel/parser` from `^7.29.3` to `^7.29.7`
57
+ - Bumped `@babel/plugin-syntax-jsx` from `^7.28.6` to `^7.29.7`
58
+ - Bumped `@babel/preset-typescript` from `^7.28.5` to `^7.29.7`
59
+ - Bumped `@babel/traverse` from `^7.29.0` to `^7.29.7`
60
+ - Bumped `@babel/types` from `^7.29.0` to `^7.29.7`
61
+ - Bumped `babel-dead-code-elimination` from `^1.0.6` to `^1.0.12`
62
+ - Bumped `chokidar` from `^4.0.0` to `^5.0.0`
63
+ - Bumped `es-module-lexer` from `^1.3.1` to `^2.1.0`
64
+ - Bumped `exit-hook` from `2.2.1` to `5.1.0`
65
+ - Bumped `isbot` from `^5.1.11` to `^5.1.40`
66
+ - Bumped `p-map` from `^7.0.3` to `^7.0.4`
67
+ - Bumped `pathe` from `^1.1.2` to `^2.0.3`
68
+ - Bumped `pkg-types` from `^2.3.0` to `^2.3.1`
69
+ - Bumped `react-refresh` from `^0.14.0` to `^0.18.0`
70
+ - Bumped `semver` from `^7.8.0` to `^7.8.1`
71
+ - Bumped `tinyglobby` from `^0.2.14` to `^0.2.16`
72
+ - Bumped `valibot` from `^1.4.0` to `^1.4.1`
73
+ - Fix Windows libuv assertion (`!(handle->flags & UV_HANDLE_CLOSING)` in `src/win/async.c`) during prerendering by using `node:http` instead of `fetch` for internal prerender requests against the Vite preview server ([#15077](https://github.com/remix-run/react-router/pull/15077))
74
+ - Updated dependencies:
75
+ - [`react-router@8.0.0`](https://github.com/remix-run/react-router/releases/tag/react-router@8.0.0)
76
+ - [`@react-router/node@8.0.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@8.0.0)
77
+ - [`@react-router/serve@8.0.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@8.0.0)
78
+
79
+ ## v7.18.0
80
+
81
+ ### Patch Changes
82
+
83
+ - Pass Vite `server.watch` config to child compiler in development mode. ([#15178](https://github.com/remix-run/react-router/pull/15178))
84
+
85
+ - Ignore external Vite server environments in Framework Mode build hooks ([#14883](https://github.com/remix-run/react-router/pull/14883))
86
+
87
+ When `future.v8_viteEnvironmentApi` is enabled, React Router previously treated any non-client Vite environment as its own server build. This caused issues with integrations like Nitro, where plugins can register additional environments.
88
+
89
+ Framework Mode build hooks now ignore external server environments and only process the app's own server build.
90
+
91
+ - Updated dependencies:
92
+ - [`react-router@7.18.0`](https://github.com/remix-run/react-router/releases/tag/react-router@7.18.0)
93
+ - [`@react-router/node@7.18.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@7.18.0)
94
+ - [`@react-router/serve@7.18.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@7.18.0)
95
+
96
+ ## v7.17.0
97
+
98
+ ### Patch Changes
99
+
100
+ - Fix future flag warning URLs and only log each future flag warning one time ([#15138](https://github.com/remix-run/react-router/pull/15138))
101
+
102
+ ### Unstable Changes
103
+
104
+ ⚠️ _[Unstable features](https://reactrouter.com/community/api-development-strategy#unstable-flags) are not recommended for production use_
105
+
106
+ - Prevent RSC route module server exports from being scanned by the client dependency optimizer when `future.unstable_optimizeDeps` is enabled. ([#15005](https://github.com/remix-run/react-router/pull/15005))
107
+ - Updated dependencies:
108
+ - [`react-router@7.17.0`](https://github.com/remix-run/react-router/releases/tag/react-router@7.17.0)
109
+ - [`@react-router/node@7.17.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@7.17.0)
110
+ - [`@react-router/serve@7.17.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@7.17.0)
111
+
3
112
  ## v7.16.0
4
113
 
5
114
  ### Minor Changes
package/bin.cjs ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ void (async () => {
3
+ let { default: arg } = await import("arg");
4
+
5
+ // Minimal replication of our actual parsing in `run.ts`. If not already set,
6
+ // default `NODE_ENV` so React loads the proper version in its CJS entry script.
7
+ // We have to do this before importing `run.ts` since that is what imports
8
+ // `react` (indirectly via `react-router`)
9
+ let args = arg({}, { argv: process.argv.slice(2), permissive: true });
10
+ if (args._.length === 0 || args._[0] === "dev") {
11
+ process.env.NODE_ENV = process.env.NODE_ENV ?? "development";
12
+ } else {
13
+ process.env.NODE_ENV = process.env.NODE_ENV ?? "production";
14
+ }
15
+
16
+ await import("./dist/cli/index.js");
17
+ })().catch((error) => {
18
+ if (error) console.error(error);
19
+ process.exit(1);
20
+ });
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @react-router/dev v0.0.0-experimental-abd9fc79b
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ import { g as preloadVite, h as getVite } from "./typegen-DWfipfw8.js";
12
+ //#region vite/build.ts
13
+ async function build(root, viteBuildOptions) {
14
+ await preloadVite();
15
+ let { assetsInlineLimit, clearScreen, config: configFile, emptyOutDir, force, logLevel, minify, mode, sourcemapClient, sourcemapServer } = viteBuildOptions;
16
+ await (await getVite().createBuilder({
17
+ root,
18
+ mode,
19
+ configFile,
20
+ build: {
21
+ assetsInlineLimit,
22
+ emptyOutDir,
23
+ minify
24
+ },
25
+ optimizeDeps: { force },
26
+ clearScreen,
27
+ logLevel,
28
+ plugins: [{
29
+ name: "react-router:cli-config",
30
+ configEnvironment(name) {
31
+ if (sourcemapClient && name === "client") return { build: { sourcemap: sourcemapClient } };
32
+ if (sourcemapServer && name !== "client") return { build: { sourcemap: sourcemapServer } };
33
+ },
34
+ configResolved(config) {
35
+ if (!config.plugins.find((plugin) => plugin.name === "react-router" || plugin.name === "react-router/rsc")) throw new Error("React Router Vite plugin not found in Vite config");
36
+ }
37
+ }]
38
+ })).buildApp();
39
+ }
40
+ //#endregion
41
+ export { build };
@@ -1 +1,2 @@
1
- #!/usr/bin/env node
1
+
2
+ export { };