From 7cefc2d980a00b0e9f21a50c382638923b6f4fd1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 12:02:46 -0500 Subject: [PATCH] chore: Update version for release (pre) (#8463) Co-authored-by: github-actions[bot] --- packages/remix-dev/CHANGELOG.md | 80 ++++++++++++++++++++++ packages/remix-dev/package.json | 10 +-- packages/remix-express/CHANGELOG.md | 7 ++ packages/remix-express/package.json | 4 +- packages/remix-node/CHANGELOG.md | 7 ++ packages/remix-node/package.json | 4 +- packages/remix-serve/CHANGELOG.md | 9 +++ packages/remix-serve/package.json | 6 +- packages/remix-server-runtime/CHANGELOG.md | 39 +++++++++++ packages/remix-server-runtime/package.json | 2 +- packages/remix-testing/CHANGELOG.md | 44 ++++++++++++ packages/remix-testing/package.json | 6 +- 12 files changed, 202 insertions(+), 16 deletions(-) diff --git a/packages/remix-dev/CHANGELOG.md b/packages/remix-dev/CHANGELOG.md index 8b4a87ab28..837af66953 100644 --- a/packages/remix-dev/CHANGELOG.md +++ b/packages/remix-dev/CHANGELOG.md @@ -1,5 +1,85 @@ # `@remix-run/dev` +## 2.5.0-pre.0 + +### Minor Changes + +- Add `unstable_serverBundles` option to Vite plugin to support splitting server code into multiple request handlers. ([#8332](https://github.com/remix-run/remix/pull/8332)) + + This is an advanced feature designed for hosting provider integrations. When compiling your app into multiple server bundles, there will need to be a custom routing layer in front of your app directing requests to the correct bundle. This feature is currently unstable and only designed to gather early feedback. + + **Example usage:** + + ```ts + import { unstable_vitePlugin as remix } from "@remix-run/dev"; + import { defineConfig } from "vite"; + + export default defineConfig({ + plugins: [ + remix({ + unstable_serverBundles: ({ branch }) => { + const isAuthenticatedRoute = branch.some( + (route) => route.id === "routes/_authenticated" + ); + + return isAuthenticatedRoute ? "authenticated" : "unauthenticated"; + }, + }), + ], + }); + ``` + +- Add unstable support for "SPA Mode" ([#8457](https://github.com/remix-run/remix/pull/8457)) + + You can opt into SPA Mode by setting `unstable_ssr: false` in your Remix Vite plugin config: + + ```js + // vite.config.ts + import { unstable_vitePlugin as remix } from "@remix-run/dev"; + import { defineConfig } from "vite"; + + export default defineConfig({ + plugins: [remix({ unstable_ssr: false })], + }); + ``` + + Development in SPA Mode is just like a normal Remix app, and still uses the Remix dev server for HMR/HDR: + + ```sh + remix vite:dev + ``` + + Building in SPA Mode will generate an `index.html` file in your client assets directory: + + ```sh + remix vite:build + ``` + + To run your SPA, you serve your client assets directory via an HTTP server: + + ```sh + npx http-server build/client + ``` + + For more information, please refer to the [SPA Mode docs][https://reactrouter.com/en/main/guides/spa-mode]. + +### Patch Changes + +- Vite: Fix HMR issues when altering exports for non-rendered routes ([#8157](https://github.com/remix-run/remix/pull/8157)) +- Vite: Default `NODE_ENV` to `"production"` when running `remix vite:build` command ([#8405](https://github.com/remix-run/remix/pull/8405)) +- Remove Vite plugin config option `serverBuildPath` in favor of separate `serverBuildDirectory` and `serverBuildFile` options ([#8332](https://github.com/remix-run/remix/pull/8332)) +- Vite: Loosen strict route exports restriction, reinstating support for non-Remix route exports ([#8420](https://github.com/remix-run/remix/pull/8420)) +- Fix issue with `isbot` v4 released on 1/1/2024 ([#8415](https://github.com/remix-run/remix/pull/8415)) + + - `remix dev` wil now add `"isbot": "^4"` to `package.json` instead of using `latest` + - Update built-in `entry.server` files to work with both `isbot@3` and `isbot@4` for backwards-compatibility with Remix apps that have pinned `isbot` to v3 + - Templates are updated to use `isbot@4` moving forward via `create-remix` + +- Updated dependencies: + - `@remix-run/serve@2.5.0-pre.0` + - `@remix-run/server-runtime@2.5.0-pre.0` + - `@remix-run/node@2.5.0-pre.0` + ## 2.4.1 ### Patch Changes diff --git a/packages/remix-dev/package.json b/packages/remix-dev/package.json index 98ea2dcc32..3ae49f0808 100644 --- a/packages/remix-dev/package.json +++ b/packages/remix-dev/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/dev", - "version": "2.4.1", + "version": "2.5.0-pre.0", "description": "Dev tools and CLI for Remix", "homepage": "https://remix.run", "bugs": { @@ -28,9 +28,9 @@ "@babel/types": "^7.22.5", "@mdx-js/mdx": "^2.3.0", "@npmcli/package-json": "^4.0.1", - "@remix-run/node": "2.4.1", + "@remix-run/node": "2.5.0-pre.0", "@remix-run/router": "1.14.2-pre.0", - "@remix-run/server-runtime": "2.4.1", + "@remix-run/server-runtime": "2.5.0-pre.0", "@types/mdx": "^2.0.5", "@vanilla-extract/integration": "^6.2.0", "arg": "^5.0.1", @@ -73,7 +73,7 @@ "ws": "^7.4.5" }, "devDependencies": { - "@remix-run/serve": "2.4.1", + "@remix-run/serve": "2.5.0-pre.0", "@types/cacache": "^17.0.0", "@types/cross-spawn": "^6.0.2", "@types/gunzip-maybe": "^1.4.0", @@ -94,7 +94,7 @@ "vite": "^5.0.0" }, "peerDependencies": { - "@remix-run/serve": "^2.4.1", + "@remix-run/serve": "^2.5.0-pre.0", "typescript": "^5.1.0", "vite": "^5.0.0" }, diff --git a/packages/remix-express/CHANGELOG.md b/packages/remix-express/CHANGELOG.md index 547fdbdb54..bf340e9fec 100644 --- a/packages/remix-express/CHANGELOG.md +++ b/packages/remix-express/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/express` +## 2.5.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.5.0-pre.0` + ## 2.4.1 ### Patch Changes diff --git a/packages/remix-express/package.json b/packages/remix-express/package.json index 73bbd0d2cb..cfa4030135 100644 --- a/packages/remix-express/package.json +++ b/packages/remix-express/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/express", - "version": "2.4.1", + "version": "2.5.0-pre.0", "description": "Express server request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -14,7 +14,7 @@ "main": "dist/index.js", "typings": "dist/index.d.ts", "dependencies": { - "@remix-run/node": "2.4.1" + "@remix-run/node": "2.5.0-pre.0" }, "devDependencies": { "@types/express": "^4.17.9", diff --git a/packages/remix-node/CHANGELOG.md b/packages/remix-node/CHANGELOG.md index b289a2b688..10f60c0f2c 100644 --- a/packages/remix-node/CHANGELOG.md +++ b/packages/remix-node/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/node` +## 2.5.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.5.0-pre.0` + ## 2.4.1 ### Patch Changes diff --git a/packages/remix-node/package.json b/packages/remix-node/package.json index eff7047a12..f74c355915 100644 --- a/packages/remix-node/package.json +++ b/packages/remix-node/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/node", - "version": "2.4.1", + "version": "2.5.0-pre.0", "description": "Node.js platform abstractions for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -17,7 +17,7 @@ "./install.js" ], "dependencies": { - "@remix-run/server-runtime": "2.4.1", + "@remix-run/server-runtime": "2.5.0-pre.0", "@remix-run/web-fetch": "^4.4.2", "@remix-run/web-file": "^3.1.0", "@remix-run/web-stream": "^1.1.0", diff --git a/packages/remix-serve/CHANGELOG.md b/packages/remix-serve/CHANGELOG.md index 1b12ee5332..dece1ab30d 100644 --- a/packages/remix-serve/CHANGELOG.md +++ b/packages/remix-serve/CHANGELOG.md @@ -1,5 +1,14 @@ # `@remix-run/serve` +## 2.5.0-pre.0 + +### Patch Changes + +- Don't try to load sourcemaps if they don't exist on disk ([#8446](https://github.com/remix-run/remix/pull/8446)) +- Updated dependencies: + - `@remix-run/node@2.5.0-pre.0` + - `@remix-run/express@2.5.0-pre.0` + ## 2.4.1 ### Patch Changes diff --git a/packages/remix-serve/package.json b/packages/remix-serve/package.json index 1323331759..24e19372f5 100644 --- a/packages/remix-serve/package.json +++ b/packages/remix-serve/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/serve", - "version": "2.4.1", + "version": "2.5.0-pre.0", "description": "Production application server for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -15,8 +15,8 @@ "remix-serve": "dist/cli.js" }, "dependencies": { - "@remix-run/express": "2.4.1", - "@remix-run/node": "2.4.1", + "@remix-run/express": "2.5.0-pre.0", + "@remix-run/node": "2.5.0-pre.0", "chokidar": "^3.5.3", "compression": "^1.7.4", "express": "^4.17.1", diff --git a/packages/remix-server-runtime/CHANGELOG.md b/packages/remix-server-runtime/CHANGELOG.md index 61e97efcdd..b9953c6d49 100644 --- a/packages/remix-server-runtime/CHANGELOG.md +++ b/packages/remix-server-runtime/CHANGELOG.md @@ -1,5 +1,44 @@ # `@remix-run/server-runtime` +## 2.5.0-pre.0 + +### Minor Changes + +- Updated `cookie` dependency to [`0.6.0`](https://github.com/jshttp/cookie/blob/master/HISTORY.md#060--2023-11-06) to inherit support for the [`Partitioned`](https://developer.mozilla.org/en-US/docs/Web/Privacy/Partitioned_cookies) attribute ([#8375](https://github.com/remix-run/remix/pull/8375)) +- Add unstable support for "SPA Mode" ([#8457](https://github.com/remix-run/remix/pull/8457)) + + You can opt into SPA Mode by setting `unstable_ssr: false` in your Remix Vite plugin config: + + ```js + // vite.config.ts + import { unstable_vitePlugin as remix } from "@remix-run/dev"; + import { defineConfig } from "vite"; + + export default defineConfig({ + plugins: [remix({ unstable_ssr: false })], + }); + ``` + + Development in SPA Mode is just like a normal Remix app, and still uses the Remix dev server for HMR/HDR: + + ```sh + remix vite:dev + ``` + + Building in SPA Mode will generate an `index.html` file in your client assets directory: + + ```sh + remix vite:build + ``` + + To run your SPA, you serve your client assets directory via an HTTP server: + + ```sh + npx http-server build/client + ``` + + For more information, please refer to the [SPA Mode docs][https://reactrouter.com/en/main/guides/spa-mode]. + ## 2.4.1 ### Patch Changes diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index ecb227ac62..d9cce09b51 100644 --- a/packages/remix-server-runtime/package.json +++ b/packages/remix-server-runtime/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/server-runtime", - "version": "2.4.1", + "version": "2.5.0-pre.0", "description": "Server runtime for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-testing/CHANGELOG.md b/packages/remix-testing/CHANGELOG.md index 0e44df460f..c1b9a37d91 100644 --- a/packages/remix-testing/CHANGELOG.md +++ b/packages/remix-testing/CHANGELOG.md @@ -1,5 +1,49 @@ # `@remix-run/testing` +## 2.5.0-pre.0 + +### Minor Changes + +- Add unstable support for "SPA Mode" ([#8457](https://github.com/remix-run/remix/pull/8457)) + + You can opt into SPA Mode by setting `unstable_ssr: false` in your Remix Vite plugin config: + + ```js + // vite.config.ts + import { unstable_vitePlugin as remix } from "@remix-run/dev"; + import { defineConfig } from "vite"; + + export default defineConfig({ + plugins: [remix({ unstable_ssr: false })], + }); + ``` + + Development in SPA Mode is just like a normal Remix app, and still uses the Remix dev server for HMR/HDR: + + ```sh + remix vite:dev + ``` + + Building in SPA Mode will generate an `index.html` file in your client assets directory: + + ```sh + remix vite:build + ``` + + To run your SPA, you serve your client assets directory via an HTTP server: + + ```sh + npx http-server build/client + ``` + + For more information, please refer to the [SPA Mode docs][https://reactrouter.com/en/main/guides/spa-mode]. + +### Patch Changes + +- Updated dependencies: + - `@remix-run/react@2.5.0-pre.0` + - `@remix-run/node@2.5.0-pre.0` + ## 2.4.1 ### Patch Changes diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index d55ac5479d..c7d5cd80fc 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/testing", - "version": "2.4.1", + "version": "2.5.0-pre.0", "description": "Testing utilities for Remix apps", "homepage": "https://remix.run", "bugs": { @@ -16,8 +16,8 @@ "typings": "./dist/index.d.ts", "module": "./dist/esm/index.js", "dependencies": { - "@remix-run/node": "2.4.1", - "@remix-run/react": "2.4.1", + "@remix-run/node": "2.5.0-pre.0", + "@remix-run/react": "2.5.0-pre.0", "@remix-run/router": "1.14.2-pre.0", "react-router-dom": "6.21.2-pre.0" },