@react-router/dev 8.0.0-pre.1 → 8.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,72 @@
1
1
  # `@react-router/dev`
2
2
 
3
+ ## v8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Remove `@react-router/dev/vite/cloudflare` dev proxy export; use `@cloudflare/vite-plugin` instead ([#15077](https://github.com/remix-run/react-router/pull/15077))
8
+ - Drops support for `wrangler@3` as a peer dependency of `@react-router/dev`
9
+ - Remove the `future.v8_trailingSlashAwareDataRequests` flag ([#15100](https://github.com/remix-run/react-router/pull/15100))
10
+ - Trailing slash-aware data request URLs are now the default behavior.
11
+ - 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))
12
+ - 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))
13
+ - Set `splitRouteModules: false` to keep route modules in a single chunk
14
+ - Set `splitRouteModules: "enforce"` to require all routes to be splittable
15
+ - Update minimum Node version to 22.22.0 ([#14928](https://github.com/remix-run/react-router/pull/14928))
16
+ - Require Vite 7+ and make the Vite Environment API build path mandatory ([#15077](https://github.com/remix-run/react-router/pull/15077))
17
+ - Removed the `future.v8_viteEnvironmentApi` flag because the Vite Environment API is always enabled ([#15077](https://github.com/remix-run/react-router/pull/15077))
18
+ - 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))
19
+
20
+ ### Minor Changes
21
+
22
+ - Bump dependencies ([#15080](https://github.com/remix-run/react-router/pull/15080))
23
+ - Bumped `@babel/core` from `^7.27.7` to `^7.29.7`
24
+ - Bumped `@babel/generator` from `^7.27.5` to `^7.29.7`
25
+ - Bumped `@babel/parser` from `^7.27.7` to `^7.29.7`
26
+ - Bumped `@babel/plugin-syntax-jsx` from `^7.27.1` to `^7.29.7`
27
+ - Bumped `@babel/preset-typescript` from `^7.27.1` to `^7.29.7`
28
+ - Bumped `@babel/traverse` from `^7.27.7` to `^7.29.7`
29
+ - Bumped `@babel/types` from `^7.27.7` to `^7.29.7`
30
+ - Bumped `dedent` from `^1.5.3` to `^1.7.2`
31
+ - Bumped `jsesc` from `3.0.2` to `3.1.0`
32
+ - Bumped `lodash` from `^4.17.21` to `^4.18.1`
33
+ - Bumped `prettier` from `^3.6.2` to `^3.8.3`
34
+ - Bumped `@remix-run/node-fetch-server` from `^0.13.0` to `^0.13.3`
35
+ - Bumped `react-refresh` from `^0.14.0` to `^0.18.0`
36
+ - Bumped `semver` from `^7.3.7` to `^7.8.1`
37
+ - Bumped `tinyglobby` from `^0.2.14` to `^0.2.16`
38
+ - Bumped `valibot` from `^1.2.0` to `^1.4.1`
39
+ - Replace `cookie` and `set-cookie-parser` with `cookie-es` ([#15109](https://github.com/remix-run/react-router/pull/15109))
40
+ - Removed the `vite-node` dependency in favor of Vite's native module runner APIs ([#15104](https://github.com/remix-run/react-router/pull/15104))
41
+
42
+ ### Patch Changes
43
+
44
+ - Bump dependencies ([#15080](https://github.com/remix-run/react-router/pull/15080))
45
+ - Bumped `@babel/core` from `^7.29.0` to `^7.29.7`
46
+ - Bumped `@babel/generator` from `^7.29.1` to `^7.29.7`
47
+ - Bumped `@babel/parser` from `^7.29.3` to `^7.29.7`
48
+ - Bumped `@babel/plugin-syntax-jsx` from `^7.28.6` to `^7.29.7`
49
+ - Bumped `@babel/preset-typescript` from `^7.28.5` to `^7.29.7`
50
+ - Bumped `@babel/traverse` from `^7.29.0` to `^7.29.7`
51
+ - Bumped `@babel/types` from `^7.29.0` to `^7.29.7`
52
+ - Bumped `babel-dead-code-elimination` from `^1.0.6` to `^1.0.12`
53
+ - Bumped `chokidar` from `^4.0.0` to `^5.0.0`
54
+ - Bumped `es-module-lexer` from `^1.3.1` to `^2.1.0`
55
+ - Bumped `exit-hook` from `2.2.1` to `5.1.0`
56
+ - Bumped `isbot` from `^5.1.11` to `^5.1.40`
57
+ - Bumped `p-map` from `^7.0.3` to `^7.0.4`
58
+ - Bumped `pathe` from `^1.1.2` to `^2.0.3`
59
+ - Bumped `pkg-types` from `^2.3.0` to `^2.3.1`
60
+ - Bumped `react-refresh` from `^0.14.0` to `^0.18.0`
61
+ - Bumped `semver` from `^7.8.0` to `^7.8.1`
62
+ - Bumped `tinyglobby` from `^0.2.14` to `^0.2.16`
63
+ - Bumped `valibot` from `^1.4.0` to `^1.4.1`
64
+ - 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))
65
+ - Updated dependencies:
66
+ - [`react-router@8.0.0`](https://github.com/remix-run/react-router/releases/tag/react-router@8.0.0)
67
+ - [`@react-router/node@8.0.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/node@8.0.0)
68
+ - [`@react-router/serve@8.0.0`](https://github.com/remix-run/react-router/releases/tag/@react-router/serve@8.0.0)
69
+
3
70
  ## v7.18.0
4
71
 
5
72
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v8.0.0-pre.1
2
+ * @react-router/dev v8.0.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { g as preloadVite, h as getVite } from "./typegen-BNUacd46.js";
11
+ import { g as preloadVite, h as getVite } from "./typegen-DXCQyb6V.js";
12
12
  //#region vite/build.ts
13
13
  async function build(root, viteBuildOptions) {
14
14
  await preloadVite();
package/dist/cli/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * @react-router/dev v8.0.0-pre.1
3
+ * @react-router/dev v8.0.0
4
4
  *
5
5
  * Copyright (c) Remix Software Inc.
6
6
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @license MIT
11
11
  */
12
- import { g as preloadVite, h as getVite, l as loadConfig, n as watch, t as run$1 } from "../typegen-BNUacd46.js";
12
+ import { g as preloadVite, h as getVite, l as loadConfig, n as watch, t as run$1 } from "../typegen-DXCQyb6V.js";
13
13
  import { createRequire } from "node:module";
14
14
  import fs, { existsSync } from "node:fs";
15
15
  import * as path$1 from "node:path";
@@ -141,7 +141,7 @@ async function routes(rootDirectory, flags = {}) {
141
141
  }
142
142
  async function build(root, options = {}) {
143
143
  root = resolveRootDirectory(root, options);
144
- let { build } = await import("../build-BNyvbPOz.js");
144
+ let { build } = await import("../build-_6nEtuOY.js");
145
145
  if (options.profile) await start();
146
146
  try {
147
147
  await build(root, options);
@@ -150,7 +150,7 @@ async function build(root, options = {}) {
150
150
  }
151
151
  }
152
152
  async function dev(root, options = {}) {
153
- let { dev } = await import("../dev-m_IzFFzQ.js");
153
+ let { dev } = await import("../dev-BG0vJBnS.js");
154
154
  if (options.profile) await start();
155
155
  exitHook(() => stop(console.info));
156
156
  root = resolveRootDirectory(root, options);
package/dist/config.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v8.0.0-pre.1
2
+ * @react-router/dev v8.0.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v8.0.0-pre.1
2
+ * @react-router/dev v8.0.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { g as preloadVite, h as getVite } from "./typegen-BNUacd46.js";
11
+ import { g as preloadVite, h as getVite } from "./typegen-DXCQyb6V.js";
12
12
  import { n as start, r as stop, t as getSession } from "./cli/index.js";
13
13
  import colors from "picocolors";
14
14
  //#region vite/dev.ts
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v8.0.0-pre.1
2
+ * @react-router/dev v8.0.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
package/dist/routes.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v8.0.0-pre.1
2
+ * @react-router/dev v8.0.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8,5 +8,5 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { a as prefix, i as layout, n as getAppDirectory, o as relative, r as index, s as route } from "./routes-DPac_fCT.js";
11
+ import { a as prefix, i as layout, n as getAppDirectory, o as relative, r as index, s as route } from "./routes-Df3IS9IO.js";
12
12
  export { getAppDirectory, index, layout, prefix, relative, route };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v8.0.0-pre.1
2
+ * @react-router/dev v8.0.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { c as setAppDirectory, l as validateRouteConfig, t as configRoutesToRouteManifest, u as invariant } from "./routes-DPac_fCT.js";
11
+ import { c as setAppDirectory, l as validateRouteConfig, t as configRoutesToRouteManifest, u as invariant } from "./routes-Df3IS9IO.js";
12
12
  import { createRequire } from "node:module";
13
13
  import fs from "node:fs";
14
14
  import colors from "picocolors";
package/dist/vite.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @react-router/dev v8.0.0-pre.1
2
+ * @react-router/dev v8.0.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8,8 +8,8 @@
8
8
  *
9
9
  * @license MIT
10
10
  */
11
- import { a as t, c as createConfigLoader, d as resolveRSCEntryFiles, f as ssrExternals, g as preloadVite, h as getVite, i as parse$1, m as defineOptimizeDepsCompilerOptions, n as watch, o as traverse, p as defineCompilerOptions, r as generate, s as configRouteToBranchRoute, u as resolveEntryFiles } from "./typegen-BNUacd46.js";
12
- import { u as invariant } from "./routes-DPac_fCT.js";
11
+ import { a as t, c as createConfigLoader, d as resolveRSCEntryFiles, f as ssrExternals, g as preloadVite, h as getVite, i as parse$1, m as defineOptimizeDepsCompilerOptions, n as watch, o as traverse, p as defineCompilerOptions, r as generate, s as configRouteToBranchRoute, u as resolveEntryFiles } from "./typegen-DXCQyb6V.js";
12
+ import { u as invariant } from "./routes-Df3IS9IO.js";
13
13
  import { createRequire } from "node:module";
14
14
  import { existsSync, readFileSync, readdirSync } from "node:fs";
15
15
  import * as path$2 from "node:path";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-router/dev",
3
3
  "type": "module",
4
- "version": "8.0.0-pre.1",
4
+ "version": "8.0.0",
5
5
  "description": "Dev tools and CLI for React Router",
6
6
  "homepage": "https://reactrouter.com",
7
7
  "bugs": {
@@ -88,7 +88,7 @@
88
88
  "semver": "^7.8.1",
89
89
  "tinyglobby": "^0.2.16",
90
90
  "valibot": "^1.4.1",
91
- "@react-router/node": "8.0.0-pre.1"
91
+ "@react-router/node": "8.0.0"
92
92
  },
93
93
  "devDependencies": {
94
94
  "@types/babel__core": "^7.20.5",
@@ -110,17 +110,17 @@
110
110
  "vite": "^7.0.0",
111
111
  "wireit": "0.14.12",
112
112
  "wrangler": "^4.95.0",
113
- "react-router": "^8.0.0-pre.1",
114
- "@react-router/serve": "8.0.0-pre.1"
113
+ "react-router": "^8.0.0",
114
+ "@react-router/serve": "8.0.0"
115
115
  },
116
116
  "peerDependencies": {
117
117
  "@vitejs/plugin-rsc": "~0.5.26",
118
- "react-server-dom-webpack": "^19.2.6",
118
+ "react-server-dom-webpack": "^19.2.7",
119
119
  "typescript": "^5.1.0 || ^6.0.0",
120
120
  "vite": "^7.0.0 || ^8.0.0",
121
121
  "wrangler": "^4.0.0",
122
- "@react-router/serve": "^8.0.0-pre.1",
123
- "react-router": "^8.0.0-pre.1"
122
+ "react-router": "^8.0.0",
123
+ "@react-router/serve": "^8.0.0"
124
124
  },
125
125
  "peerDependenciesMeta": {
126
126
  "@vitejs/plugin-rsc": {