|
1 | 1 | # `@remix-run/dev` |
2 | 2 |
|
3 | | -## 2.6.0-pre.3 |
4 | | - |
5 | | -### Patch Changes |
6 | | - |
7 | | -- Updated dependencies: |
8 | | - - `@remix-run/node@2.6.0-pre.3` |
9 | | - - `@remix-run/server-runtime@2.6.0-pre.3` |
10 | | - |
11 | | -## 2.6.0-pre.2 |
12 | | - |
13 | | -### Patch Changes |
14 | | - |
15 | | -- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654)) |
16 | | -- Updated dependencies: |
17 | | - - `@remix-run/node@2.6.0-pre.2` |
18 | | - - `@remix-run/server-runtime@2.6.0-pre.2` |
19 | | - |
20 | | -## 2.6.0-pre.1 |
21 | | - |
22 | | -### Patch Changes |
23 | | - |
24 | | -- Vite: add dev load context option to Cloudflare preset ([#8649](https://github.com/remix-run/remix/pull/8649)) |
25 | | -- Updated dependencies: |
26 | | - - `@remix-run/node@2.6.0-pre.1` |
27 | | - - `@remix-run/server-runtime@2.6.0-pre.1` |
28 | | - |
29 | | -## 2.6.0-pre.0 |
| 3 | +## 2.6.0 |
30 | 4 |
|
31 | 5 | ### Minor Changes |
32 | 6 |
|
|
40 | 14 |
|
41 | 15 | The `build/server/bundles.json` file has been superseded by the more general `build/.remix/manifest.json`. While the old server bundles manifest was always written to disk when generating server bundles, the build manifest file must be explicitly enabled via the `manifest` option. |
42 | 16 |
|
| 17 | +- Vite: Provide `Unstable_ServerBundlesFunction` and `Unstable_VitePluginConfig` types ([#8654](https://github.com/remix-run/remix/pull/8654)) |
| 18 | + |
43 | 19 | - Vite: add `--sourcemapClient` and `--sourcemapServer` flags to `remix vite:build` ([#8613](https://github.com/remix-run/remix/pull/8613)) |
44 | 20 |
|
45 | 21 | - `--sourcemapClient` |
| 22 | + |
46 | 23 | - `--sourcemapClient=inline` |
| 24 | + |
47 | 25 | - `--sourcemapClient=hidden` |
48 | 26 |
|
49 | 27 | - `--sourcemapServer` |
| 28 | + |
50 | 29 | - `--sourcemapServer=inline` |
| 30 | + |
51 | 31 | - `--sourcemapServer=hidden` |
52 | 32 |
|
53 | | - See https://vitejs.dev/config/build-options.html#build-sourcemap |
| 33 | + See <https://vitejs.dev/config/build-options.html#build-sourcemap> |
54 | 34 |
|
55 | 35 | - Vite: Validate IDs returned from the `serverBundles` function to ensure they only contain alphanumeric characters, hyphens and underscores ([#8598](https://github.com/remix-run/remix/pull/8598)) |
| 36 | + |
56 | 37 | - Vite: fix "could not fast refresh" false alarm ([#8580](https://github.com/remix-run/remix/pull/8580)) |
57 | 38 |
|
58 | 39 | HMR is already functioning correctly but was incorrectly logging that it "could not fast refresh" on internal client routes. |
|
61 | 42 |
|
62 | 43 | - Vite: Cloudflare Pages support ([#8531](https://github.com/remix-run/remix/pull/8531)) |
63 | 44 |
|
64 | | - To get started with Cloudflare, you can use the [`unstable-vite-cloudflare`][template-vite-cloudflare] template: |
| 45 | + To get started with Cloudflare, you can use the \[`unstable-vite-cloudflare`]\[template-vite-cloudflare] template: |
65 | 46 |
|
66 | 47 | ```shellscript nonumber |
67 | 48 | npx create-remix@latest --template remix-run/remix/templates/unstable-vite-cloudflare |
|
71 | 52 | [Future > Vite > Migrating > Migrating Cloudflare Functions](https://remix.run/docs/en/main/future/vite#migrating-cloudflare-functions). |
72 | 53 |
|
73 | 54 | - Vite: Remove undocumented backwards compatibility layer for Vite v4 ([#8581](https://github.com/remix-run/remix/pull/8581)) |
| 55 | + |
74 | 56 | - Vite: rely on Vite plugin ordering ([#8627](https://github.com/remix-run/remix/pull/8627)) |
75 | 57 |
|
76 | 58 | **This is a breaking change for projects using the unstable Vite plugin.** |
|
99 | 81 | The official [Vite React SWC plugin](https://github.com/vitejs/vite-plugin-react-swc/blob/main/src/index.ts#L97-L116) also relies on plugin ordering for MDX. |
100 | 82 |
|
101 | 83 | - Vite: Add `presets` option to ease integration with different platforms and tools. ([#8514](https://github.com/remix-run/remix/pull/8514)) |
| 84 | + |
102 | 85 | - Vite: Remove interop with `<LiveReload />`, rely on `<Scripts />` instead ([#8636](https://github.com/remix-run/remix/pull/8636)) |
103 | 86 |
|
104 | 87 | **This is a breaking change for projects using the unstable Vite plugin.** |
|
136 | 119 | ``` |
137 | 120 |
|
138 | 121 | - Vite: Add `buildEnd` hook ([#8620](https://github.com/remix-run/remix/pull/8620)) |
| 122 | + |
| 123 | +- Vite: add dev load context option to Cloudflare preset ([#8649](https://github.com/remix-run/remix/pull/8649)) |
| 124 | + |
139 | 125 | - Vite: Add `mode` field into generated server build ([#8539](https://github.com/remix-run/remix/pull/8539)) |
| 126 | + |
140 | 127 | - Vite: Only write Vite manifest files if `build.manifest` is enabled within the Vite config ([#8599](https://github.com/remix-run/remix/pull/8599)) |
141 | 128 |
|
142 | 129 | **This is a breaking change for consumers of Vite's `manifest.json` files.** |
|
151 | 138 | ``` |
152 | 139 |
|
153 | 140 | - Vite: reduce network calls for route modules during HMR ([#8591](https://github.com/remix-run/remix/pull/8591)) |
| 141 | + |
154 | 142 | - Vite: Add new `buildDirectory` option with a default value of `"build"`. This replaces the old `assetsBuildDirectory` and `serverBuildDirectory` options which defaulted to `"build/client"` and `"build/server"` respectively. ([#8575](https://github.com/remix-run/remix/pull/8575)) |
155 | 143 |
|
156 | 144 | **This is a breaking change for consumers of the Vite plugin that were using the `assetsBuildDirectory` and `serverBuildDirectory` options.** |
|
173 | 161 | ``` |
174 | 162 |
|
175 | 163 | - Vite: Remove `unstable` prefix from `serverBundles` option. ([#8596](https://github.com/remix-run/remix/pull/8596)) |
| 164 | + |
176 | 165 | - Vite: Write Vite manifest files to `build/.vite` directory rather than being nested within `build/client` and `build/server` directories. ([#8599](https://github.com/remix-run/remix/pull/8599)) |
177 | 166 |
|
178 | 167 | **This is a breaking change for consumers of Vite's `manifest.json` files.** |
179 | 168 |
|
180 | 169 | Vite manifest files are now written to the Remix build directory. Since all Vite manifests are now in the same directory, they're no longer named `manifest.json`. Instead, they're named `build/.vite/client-manifest.json` and `build/.vite/server-manifest.json`, or `build/.vite/server-{BUNDLE_ID}-manifest.json` when using server bundles. |
181 | 170 |
|
182 | 171 | - Updated dependencies: |
183 | | - - `@remix-run/server-runtime@2.6.0-pre.0` |
184 | | - - `@remix-run/node@2.6.0-pre.0` |
185 | | - - `@remix-run/serve@2.6.0-pre.0` |
| 172 | + - `@remix-run/server-runtime@2.6.0` |
| 173 | + - `@remix-run/node@2.6.0` |
186 | 174 |
|
187 | 175 | ## 2.5.1 |
188 | 176 |
|
|
0 commit comments