diff --git a/.changeset/bright-rabbits-attend.md b/.changeset/bright-rabbits-attend.md deleted file mode 100644 index fc6e428fc28..00000000000 --- a/.changeset/bright-rabbits-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/server-runtime": patch ---- - -Single Fetch: Do not try to encode a `turbo-stream` body into 304 responses diff --git a/.changeset/dirty-adults-sparkle.md b/.changeset/dirty-adults-sparkle.md deleted file mode 100644 index 93580cb0200..00000000000 --- a/.changeset/dirty-adults-sparkle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -Lazy Route Discovery: Sort `/__manifest` query parameters for better caching diff --git a/.changeset/five-monkeys-sort.md b/.changeset/five-monkeys-sort.md deleted file mode 100644 index 268eda1be70..00000000000 --- a/.changeset/five-monkeys-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -[REMOVE] cleanup tests diff --git a/.changeset/flat-wasps-heal.md b/.changeset/flat-wasps-heal.md deleted file mode 100644 index 99a7bed7c89..00000000000 --- a/.changeset/flat-wasps-heal.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@remix-run/react": patch -"@remix-run/server-runtime": patch ---- - -Single Fetch: fix revalidation behavior bugs - -- With Single Fetch, existing routes revalidate by default -- This means requests do not need special query params for granular route revalidations out of the box - i.e., `GET /a/b/c.data` -- There are two conditions that will trigger granular revalidation: - - If a route opts out of revalidation via `shouldRevalidate`, it will be excluded from the single fetch call - - If a route defines a `clientLoader` then it will be excluded from the single fetch call and if you call `serverLoader()` from your `clientLoader`, that will make a separarte HTTP call for just that route loader - i.e., `GET /a/b/c.data?_routes=routes/a` for a `clientLoader` in `routes/a.tsx` -- When one or more routes are excluded from the single fetch call, the remaining routes that have loaders are included as query params: - - For example, if A was excluded, and the `root` route and `routes/b` had a `loader` but `routes/c` did not, the single fetch request would be `GET /a/b/c.data?_routes=root,routes/a` diff --git a/.changeset/friendly-walls-brake.md b/.changeset/friendly-walls-brake.md deleted file mode 100644 index 14754c7524d..00000000000 --- a/.changeset/friendly-walls-brake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/dev": patch ---- - -Handle circular dependencies in modulepreload manifest generation. diff --git a/.changeset/giant-olives-sort.md b/.changeset/giant-olives-sort.md deleted file mode 100644 index 91d868f245a..00000000000 --- a/.changeset/giant-olives-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -[REMOVE] Align single fetch prefetchign with new revalidation logic diff --git a/.changeset/gorgeous-toys-flash.md b/.changeset/gorgeous-toys-flash.md deleted file mode 100644 index 44e5e9abc8f..00000000000 --- a/.changeset/gorgeous-toys-flash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"remix": patch ---- - -REMOVE: bump prerelease version diff --git a/.changeset/hot-dogs-applaud.md b/.changeset/hot-dogs-applaud.md deleted file mode 100644 index 8e4684ebcfc..00000000000 --- a/.changeset/hot-dogs-applaud.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@remix-run/dev": minor ---- - -New `future.unstable_optimizeDeps` flag for automatic dependency optimization - -You can now opt-in to automatic dependency optimization during development by using the `future.unstable_optimizeDeps` future flag. -For details, check out the docs at [`Guides` > `Dependency optimization`](https://remix.run/docs/en/main/guides/dependency-optimization). - -For users who were previously working around this limitation, you no longer need to explicitly add routes to Vite's `optimizeDeps.entries` nor do you need to disable the `remix-dot-server` plugin. diff --git a/.changeset/khaki-ads-buy.md b/.changeset/khaki-ads-buy.md deleted file mode 100644 index 485360f60bf..00000000000 --- a/.changeset/khaki-ads-buy.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@remix-run/react": patch -"@remix-run/server-runtime": patch ---- - -Remove hydration URL check that was originally added for React 17 hydration issues and we no longer support React 17 - -- Reverts the logic originally added in Remix `v1.18.0` via https://github.com/remix-run/remix/pull/6409 -- This was added to resolve an issue that could arise when doing quick back/forward history navigations while JS was loading which would cause a mismatch between the server matches and client matches: https://github.com/remix-run/remix/issues/1757 -- This specific hydration issue would then cause this React v17 only looping issue: https://github.com/remix-run/remix/issues/1678 -- The URL comparison that we added in `1.18.0` turned out to be subject to false positives of it's own which could also put the user in looping scenarios -- Remix v2 upgraded it's minimal React version to v18 which eliminated the v17 hydration error loop -- React v18 handles this hydration error like any other error and does not result in a loop -- So we can remove our check and thus avoid the false-positive scenarios in which it may also trigger a loop diff --git a/.changeset/khaki-plums-care.md b/.changeset/khaki-plums-care.md deleted file mode 100644 index 2a5c2e42de8..00000000000 --- a/.changeset/khaki-plums-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -[REMOVE] Bump router diff --git a/.changeset/light-moons-reply.md b/.changeset/light-moons-reply.md deleted file mode 100644 index ec545911d02..00000000000 --- a/.changeset/light-moons-reply.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"remix": patch ---- - -REMOVE: bump prerelease diff --git a/.changeset/moody-cups-give.md b/.changeset/moody-cups-give.md deleted file mode 100644 index 245c44b2fca..00000000000 --- a/.changeset/moody-cups-give.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -"@remix-run/cloudflare": patch -"@remix-run/deno": patch -"@remix-run/node": patch -"@remix-run/react": patch -"@remix-run/server-runtime": patch ---- - -Single Fetch: Improved typesafety - -If you were already using previously released unstable single-fetch types: - -- Remove `"@remix-run/react/future/single-fetch.d.ts"` override from `tsconfig.json` > `compilerOptions` > `types` -- Remove `defineLoader`, `defineAction`, `defineClientLoader`, `defineClientAction` helpers from your route modules -- Replace `UIMatch_SingleFetch` type helper with `UIMatch` -- Replace `MetaArgs_SingleFetch` type helper with `MetaArgs` - -Then you are ready for the new typesafety setup: - -```ts -// vite.config.ts - -declare module "@remix-run/server-runtime" { - interface Future { - unstable_singleFetch: true; // 👈 enable _types_ for single-fetch - } -} - -export default defineConfig({ - plugins: [ - remix({ - future: { - unstable_singleFetch: true, // 👈 enable single-fetch - }, - }), - ], -}); -``` - -For more information, see [Guides > Single Fetch](https://remix.run/docs/en/dev/guides/single-fetch) in our docs. diff --git a/.changeset/neat-mayflies-design.md b/.changeset/neat-mayflies-design.md deleted file mode 100644 index 44e5e9abc8f..00000000000 --- a/.changeset/neat-mayflies-design.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"remix": patch ---- - -REMOVE: bump prerelease version diff --git a/.changeset/popular-meals-hide.md b/.changeset/popular-meals-hide.md deleted file mode 100644 index 3d2cd1cc734..00000000000 --- a/.changeset/popular-meals-hide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/server-runtime": patch ---- - -Single Fetch: Change content type on `.data` requests to `text/x-script` to allow Cloudflare compression diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index b572163c1e4..00000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "mode": "exit", - "tag": "pre", - "initialVersions": { - "integration": "0.0.0", - "integration-cf-template": "0.0.0", - "integration-deno-template": "0.0.0", - "integration-node-template": "0.0.0", - "integration-vite-cloudflare-template": "0.0.0", - "integration-vite-template": "0.0.0", - "create-remix": "2.11.2", - "remix": "2.11.2", - "@remix-run/architect": "2.11.2", - "@remix-run/cloudflare": "2.11.2", - "@remix-run/cloudflare-pages": "2.11.2", - "@remix-run/cloudflare-workers": "2.11.2", - "@remix-run/css-bundle": "2.11.2", - "@remix-run/deno": "2.11.2", - "@remix-run/dev": "2.11.2", - "@remix-run/eslint-config": "2.11.2", - "@remix-run/express": "2.11.2", - "@remix-run/node": "2.11.2", - "@remix-run/react": "2.11.2", - "@remix-run/serve": "2.11.2", - "@remix-run/server-runtime": "2.11.2", - "@remix-run/testing": "2.11.2" - }, - "changesets": [ - "bright-rabbits-attend", - "dirty-adults-sparkle", - "five-monkeys-sort", - "flat-wasps-heal", - "friendly-walls-brake", - "giant-olives-sort", - "gorgeous-toys-flash", - "hot-dogs-applaud", - "khaki-ads-buy", - "khaki-plums-care", - "light-moons-reply", - "moody-cups-give", - "neat-mayflies-design", - "popular-meals-hide", - "rude-cows-brake", - "slow-socks-juggle", - "tiny-crabs-deliver", - "two-chicken-provide" - ] -} diff --git a/.changeset/rude-cows-brake.md b/.changeset/rude-cows-brake.md deleted file mode 100644 index fc1c7b29fdf..00000000000 --- a/.changeset/rude-cows-brake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -[REMOVE] Fix HDR for single fetch diff --git a/.changeset/slow-socks-juggle.md b/.changeset/slow-socks-juggle.md deleted file mode 100644 index 8f7bc9cf626..00000000000 --- a/.changeset/slow-socks-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/server-runtime": patch ---- - -Support 304 responses on document requests diff --git a/.changeset/tiny-crabs-deliver.md b/.changeset/tiny-crabs-deliver.md deleted file mode 100644 index 790961e2522..00000000000 --- a/.changeset/tiny-crabs-deliver.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/dev": patch ---- - -Fix `dest already exists` build errors by only moving SSR assets to the client build directory when they're not already present on disk diff --git a/.changeset/two-chicken-provide.md b/.changeset/two-chicken-provide.md deleted file mode 100644 index 3bd7ff47a66..00000000000 --- a/.changeset/two-chicken-provide.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -Clarify wording in default `HydrateFallback` console warning diff --git a/integration/helpers/vite-cloudflare-template/package.json b/integration/helpers/vite-cloudflare-template/package.json index 103512b0800..84c8085bf46 100644 --- a/integration/helpers/vite-cloudflare-template/package.json +++ b/integration/helpers/vite-cloudflare-template/package.json @@ -11,9 +11,9 @@ "typecheck": "tsc" }, "dependencies": { - "@remix-run/cloudflare": "2.12.0-pre.4", - "@remix-run/cloudflare-pages": "2.12.0-pre.4", - "@remix-run/react": "2.12.0-pre.4", + "@remix-run/cloudflare": "2.12.0", + "@remix-run/cloudflare-pages": "2.12.0", + "@remix-run/react": "2.12.0", "isbot": "^4.1.0", "miniflare": "^3.20231030.4", "react": "^18.2.0", diff --git a/packages/create-remix/CHANGELOG.md b/packages/create-remix/CHANGELOG.md index 1833f9c551a..845fff30086 100644 --- a/packages/create-remix/CHANGELOG.md +++ b/packages/create-remix/CHANGELOG.md @@ -1,14 +1,8 @@ # `create-remix` -## 2.12.0-pre.4 +## 2.12.0 -## 2.12.0-pre.3 - -## 2.12.0-pre.2 - -## 2.12.0-pre.1 - -## 2.12.0-pre.0 +No significant changes to this package were made in this release. [See the repo `CHANGELOG.md`](https://github.com/remix-run/remix/blob/main/CHANGELOG.md) for an overview of all changes in v2.12.0. ## 2.11.2 diff --git a/packages/create-remix/package.json b/packages/create-remix/package.json index dcb96908a85..727c5babaf1 100644 --- a/packages/create-remix/package.json +++ b/packages/create-remix/package.json @@ -1,6 +1,6 @@ { "name": "create-remix", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Create a new Remix app", "homepage": "https://remix.run", "bugs": { diff --git a/packages/remix-architect/CHANGELOG.md b/packages/remix-architect/CHANGELOG.md index 85587c212ad..696b907da26 100644 --- a/packages/remix-architect/CHANGELOG.md +++ b/packages/remix-architect/CHANGELOG.md @@ -1,39 +1,11 @@ # `@remix-run/architect` -## 2.12.0-pre.4 +## 2.12.0 ### Patch Changes - Updated dependencies: - - `@remix-run/node@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.1` - -## 2.12.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.0` + - `@remix-run/node@2.12.0` ## 2.11.2 diff --git a/packages/remix-architect/package.json b/packages/remix-architect/package.json index d14b2abc354..4023d9edcb3 100644 --- a/packages/remix-architect/package.json +++ b/packages/remix-architect/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/architect", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Architect server request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-cloudflare-pages/CHANGELOG.md b/packages/remix-cloudflare-pages/CHANGELOG.md index 9e61aaf04f2..7f9fdeb1ea4 100644 --- a/packages/remix-cloudflare-pages/CHANGELOG.md +++ b/packages/remix-cloudflare-pages/CHANGELOG.md @@ -1,39 +1,11 @@ # `@remix-run/cloudflare-pages` -## 2.12.0-pre.4 +## 2.12.0 ### Patch Changes - Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.1` - -## 2.12.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.0` + - `@remix-run/cloudflare@2.12.0` ## 2.11.2 diff --git a/packages/remix-cloudflare-pages/package.json b/packages/remix-cloudflare-pages/package.json index 88fa1e7f00a..ae13051720a 100644 --- a/packages/remix-cloudflare-pages/package.json +++ b/packages/remix-cloudflare-pages/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/cloudflare-pages", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Cloudflare Pages request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-cloudflare-workers/CHANGELOG.md b/packages/remix-cloudflare-workers/CHANGELOG.md index dd77bb5cee3..6930c40c9a9 100644 --- a/packages/remix-cloudflare-workers/CHANGELOG.md +++ b/packages/remix-cloudflare-workers/CHANGELOG.md @@ -1,39 +1,11 @@ # `@remix-run/cloudflare-workers` -## 2.12.0-pre.4 +## 2.12.0 ### Patch Changes - Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.1` - -## 2.12.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.12.0-pre.0` + - `@remix-run/cloudflare@2.12.0` ## 2.11.2 diff --git a/packages/remix-cloudflare-workers/package.json b/packages/remix-cloudflare-workers/package.json index c46496d6717..9e59528b1e5 100644 --- a/packages/remix-cloudflare-workers/package.json +++ b/packages/remix-cloudflare-workers/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/cloudflare-workers", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Cloudflare worker request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-cloudflare/CHANGELOG.md b/packages/remix-cloudflare/CHANGELOG.md index 5e0aba3bd2c..4825be0a57b 100644 --- a/packages/remix-cloudflare/CHANGELOG.md +++ b/packages/remix-cloudflare/CHANGELOG.md @@ -1,40 +1,12 @@ # `@remix-run/cloudflare` -## 2.12.0-pre.4 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.1` - -## 2.12.0-pre.0 +## 2.12.0 ### Patch Changes - Single Fetch: Improved typesafety ([#9893](https://github.com/remix-run/remix/pull/9893)) - If you were already using single-fetch types: + If you were already using previously released unstable single-fetch types: - Remove `"@remix-run/react/future/single-fetch.d.ts"` override from `tsconfig.json` > `compilerOptions` > `types` - Remove `defineLoader`, `defineAction`, `defineClientLoader`, `defineClientAction` helpers from your route modules @@ -66,7 +38,7 @@ For more information, see [Guides > Single Fetch](https://remix.run/docs/en/dev/guides/single-fetch) in our docs. - Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.0` + - `@remix-run/server-runtime@2.12.0` ## 2.11.2 diff --git a/packages/remix-cloudflare/package.json b/packages/remix-cloudflare/package.json index 02b58bdd4a0..6e65754e8cc 100644 --- a/packages/remix-cloudflare/package.json +++ b/packages/remix-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/cloudflare", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Cloudflare platform abstractions for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-css-bundle/CHANGELOG.md b/packages/remix-css-bundle/CHANGELOG.md index 5075cf19e98..25de667e8b9 100644 --- a/packages/remix-css-bundle/CHANGELOG.md +++ b/packages/remix-css-bundle/CHANGELOG.md @@ -1,14 +1,8 @@ # @remix-run/css-bundle -## 2.12.0-pre.4 +## 2.12.0 -## 2.12.0-pre.3 - -## 2.12.0-pre.2 - -## 2.12.0-pre.1 - -## 2.12.0-pre.0 +No significant changes to this package were made in this release. [See the repo `CHANGELOG.md`](https://github.com/remix-run/remix/blob/main/CHANGELOG.md) for an overview of all changes in v2.12.0. ## 2.11.2 diff --git a/packages/remix-css-bundle/package.json b/packages/remix-css-bundle/package.json index ef4f501566c..5d62a44d4f0 100644 --- a/packages/remix-css-bundle/package.json +++ b/packages/remix-css-bundle/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/css-bundle", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "CSS bundle href when using CSS bundling features in Remix", "homepage": "https://remix.run", "bugs": { diff --git a/packages/remix-deno/CHANGELOG.md b/packages/remix-deno/CHANGELOG.md index cbb30cf6c28..c2191665f3f 100644 --- a/packages/remix-deno/CHANGELOG.md +++ b/packages/remix-deno/CHANGELOG.md @@ -1,40 +1,12 @@ # `@remix-run/deno` -## 2.12.0-pre.4 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.1` - -## 2.12.0-pre.0 +## 2.12.0 ### Patch Changes - Single Fetch: Improved typesafety ([#9893](https://github.com/remix-run/remix/pull/9893)) - If you were already using single-fetch types: + If you were already using previously released unstable single-fetch types: - Remove `"@remix-run/react/future/single-fetch.d.ts"` override from `tsconfig.json` > `compilerOptions` > `types` - Remove `defineLoader`, `defineAction`, `defineClientLoader`, `defineClientAction` helpers from your route modules @@ -66,7 +38,7 @@ For more information, see [Guides > Single Fetch](https://remix.run/docs/en/dev/guides/single-fetch) in our docs. - Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.0` + - `@remix-run/server-runtime@2.12.0` ## 2.11.2 diff --git a/packages/remix-deno/package.json b/packages/remix-deno/package.json index d6419e9e21b..f9b46f44db2 100644 --- a/packages/remix-deno/package.json +++ b/packages/remix-deno/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/deno", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Deno platform abstractions for Remix", "homepage": "https://remix.run", "main": "./index.ts", diff --git a/packages/remix-dev/CHANGELOG.md b/packages/remix-dev/CHANGELOG.md index 60af5f952ac..b7cbb9ad54d 100644 --- a/packages/remix-dev/CHANGELOG.md +++ b/packages/remix-dev/CHANGELOG.md @@ -1,57 +1,21 @@ # `@remix-run/dev` -## 2.12.0-pre.4 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.4` - - `@remix-run/server-runtime@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.3` - - `@remix-run/server-runtime@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.2` - - `@remix-run/node@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.1` - - `@remix-run/server-runtime@2.12.0-pre.1` - -## 2.12.0-pre.0 +## 2.12.0 ### Minor Changes -- (unstable) Automatic dependency optimization ([#9921](https://github.com/remix-run/remix/pull/9921)) - - You can now opt-in to automatic dependency optimization during development by using the `future.unstable_optimizeDeps` future flag. - For details, check out the docs at [`Guides` > `Dependency optimization`](https://remix.run/docs/en/main/guides/dependency-optimization). - - For users who were previously working around this limitation, you no longer need to explicitly add routes to Vite's `optimizeDeps.entries` nor do you need to disable the `remix-dot-server` plugin. +- New `future.unstable_optimizeDeps` flag for automatic dependency optimization ([#9921](https://github.com/remix-run/remix/pull/9921)) + - You can now opt-in to automatic dependency optimization during development by using the `future.unstable_optimizeDeps` future flag + - For details, check out the docs at [`Guides` > `Dependency optimization`](https://remix.run/docs/en/main/guides/dependency-optimization) + - For users who were previously working around this limitation, you no longer need to explicitly add routes to Vite's `optimizeDeps.entries` nor do you need to disable the `remix-dot-server` plugin ### Patch Changes -- Handle circular dependencies in modulepreload manifest generation. ([#9917](https://github.com/remix-run/remix/pull/9917)) +- Handle circular dependencies in modulepreload manifest generation ([#9917](https://github.com/remix-run/remix/pull/9917)) - Fix `dest already exists` build errors by only moving SSR assets to the client build directory when they're not already present on disk ([#9901](https://github.com/remix-run/remix/pull/9901)) - Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.0` - - `@remix-run/react@2.12.0-pre.0` - - `@remix-run/node@2.12.0-pre.0` - - `@remix-run/serve@2.12.0-pre.0` + - `@remix-run/server-runtime@2.12.0` + - `@remix-run/node@2.12.0` ## 2.11.2 diff --git a/packages/remix-dev/package.json b/packages/remix-dev/package.json index 8f5a746cf3d..81a939b29d6 100644 --- a/packages/remix-dev/package.json +++ b/packages/remix-dev/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/dev", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Dev tools and CLI for Remix", "homepage": "https://remix.run", "bugs": { @@ -106,8 +106,8 @@ "wrangler": "^3.28.2" }, "peerDependencies": { - "@remix-run/react": "^2.12.0-pre.4", - "@remix-run/serve": "^2.12.0-pre.4", + "@remix-run/react": "^2.12.0", + "@remix-run/serve": "^2.12.0", "typescript": "^5.1.0", "vite": "^5.1.0", "wrangler": "^3.28.2" diff --git a/packages/remix-eslint-config/CHANGELOG.md b/packages/remix-eslint-config/CHANGELOG.md index cbef5570a8a..03fbed7f466 100644 --- a/packages/remix-eslint-config/CHANGELOG.md +++ b/packages/remix-eslint-config/CHANGELOG.md @@ -1,14 +1,8 @@ # `@remix-run/eslint-config` -## 2.12.0-pre.4 +## 2.12.0 -## 2.12.0-pre.3 - -## 2.12.0-pre.2 - -## 2.12.0-pre.1 - -## 2.12.0-pre.0 +No significant changes to this package were made in this release. [See the repo `CHANGELOG.md`](https://github.com/remix-run/remix/blob/main/CHANGELOG.md) for an overview of all changes in v2.12.0. ## 2.11.2 diff --git a/packages/remix-eslint-config/package.json b/packages/remix-eslint-config/package.json index f3d78deff91..6a520758fde 100644 --- a/packages/remix-eslint-config/package.json +++ b/packages/remix-eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/eslint-config", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "ESLint configuration for Remix projects", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-express/CHANGELOG.md b/packages/remix-express/CHANGELOG.md index de9135d519a..daee7517143 100644 --- a/packages/remix-express/CHANGELOG.md +++ b/packages/remix-express/CHANGELOG.md @@ -1,39 +1,11 @@ # `@remix-run/express` -## 2.12.0-pre.4 +## 2.12.0 ### Patch Changes - Updated dependencies: - - `@remix-run/node@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.1` - -## 2.12.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.0` + - `@remix-run/node@2.12.0` ## 2.11.2 diff --git a/packages/remix-express/package.json b/packages/remix-express/package.json index 0720d0a981d..9a2681edc01 100644 --- a/packages/remix-express/package.json +++ b/packages/remix-express/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/express", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Express server request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-node/CHANGELOG.md b/packages/remix-node/CHANGELOG.md index 9030ee18e15..86ad76d41c4 100644 --- a/packages/remix-node/CHANGELOG.md +++ b/packages/remix-node/CHANGELOG.md @@ -1,40 +1,12 @@ # `@remix-run/node` -## 2.12.0-pre.4 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.1` - -## 2.12.0-pre.0 +## 2.12.0 ### Patch Changes - Single Fetch: Improved typesafety ([#9893](https://github.com/remix-run/remix/pull/9893)) - If you were already using single-fetch types: + If you were already using previously released unstable single-fetch types: - Remove `"@remix-run/react/future/single-fetch.d.ts"` override from `tsconfig.json` > `compilerOptions` > `types` - Remove `defineLoader`, `defineAction`, `defineClientLoader`, `defineClientAction` helpers from your route modules @@ -66,7 +38,7 @@ For more information, see [Guides > Single Fetch](https://remix.run/docs/en/dev/guides/single-fetch) in our docs. - Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.0` + - `@remix-run/server-runtime@2.12.0` ## 2.11.2 diff --git a/packages/remix-node/package.json b/packages/remix-node/package.json index 22efbdc1c04..62eeb2d36c7 100644 --- a/packages/remix-node/package.json +++ b/packages/remix-node/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/node", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Node.js platform abstractions for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-react/CHANGELOG.md b/packages/remix-react/CHANGELOG.md index e7a8bea99ca..88d564335ec 100644 --- a/packages/remix-react/CHANGELOG.md +++ b/packages/remix-react/CHANGELOG.md @@ -1,42 +1,11 @@ # `@remix-run/react` -## 2.12.0-pre.4 - -### Patch Changes - -- [REMOVE] Bump router ([#9963](https://github.com/remix-run/remix/pull/9963)) -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- [REMOVE] Align single fetch prefetchign with new revalidation logic ([#9958](https://github.com/remix-run/remix/pull/9958)) -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- [REMOVE] Fix HDR for single fetch ([#9954](https://github.com/remix-run/remix/pull/9954)) -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- [REMOVE] cleanup tests ([#9945](https://github.com/remix-run/remix/pull/9945)) -- Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.1` - -## 2.12.0-pre.0 +## 2.12.0 ### Patch Changes - Lazy Route Discovery: Sort `/__manifest` query parameters for better caching ([#9888](https://github.com/remix-run/remix/pull/9888)) + - Single Fetch: fix revalidation behavior bugs ([#9938](https://github.com/remix-run/remix/pull/9938)) - With Single Fetch, existing routes revalidate by default @@ -49,9 +18,9 @@ - Remove hydration URL check that was originally added for React 17 hydration issues and we no longer support React 17 ([#9890](https://github.com/remix-run/remix/pull/9890)) - - Reverts the logic originally added in Remix `v1.18.0` via https://github.com/remix-run/remix/pull/6409 - - This was added to resolve an issue that could arise when doing quick back/forward history navigations while JS was loading which would cause a mismatch between the server matches and client matches: https://github.com/remix-run/remix/issues/1757 - - This specific hydration issue would then cause this React v17 only looping issue: https://github.com/remix-run/remix/issues/1678 + - Reverts the logic originally added in Remix `v1.18.0` via + - This was added to resolve an issue that could arise when doing quick back/forward history navigations while JS was loading which would cause a mismatch between the server matches and client matches: + - This specific hydration issue would then cause this React v17 only looping issue: - The URL comparison that we added in `1.18.0` turned out to be subject to false positives of it's own which could also put the user in looping scenarios - Remix v2 upgraded it's minimal React version to v18 which eliminated the v17 hydration error loop - React v18 handles this hydration error like any other error and does not result in a loop @@ -59,7 +28,7 @@ - Single Fetch: Improved typesafety ([#9893](https://github.com/remix-run/remix/pull/9893)) - If you were already using single-fetch types: + If you were already using previously released unstable single-fetch types: - Remove `"@remix-run/react/future/single-fetch.d.ts"` override from `tsconfig.json` > `compilerOptions` > `types` - Remove `defineLoader`, `defineAction`, `defineClientLoader`, `defineClientAction` helpers from your route modules @@ -91,8 +60,9 @@ For more information, see [Guides > Single Fetch](https://remix.run/docs/en/dev/guides/single-fetch) in our docs. - Clarify wording in default `HydrateFallback` console warning ([#9899](https://github.com/remix-run/remix/pull/9899)) + - Updated dependencies: - - `@remix-run/server-runtime@2.12.0-pre.0` + - `@remix-run/server-runtime@2.12.0` ## 2.11.2 diff --git a/packages/remix-react/package.json b/packages/remix-react/package.json index 242a0948963..798318f9438 100644 --- a/packages/remix-react/package.json +++ b/packages/remix-react/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/react", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "React DOM bindings for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-serve/CHANGELOG.md b/packages/remix-serve/CHANGELOG.md index 9974f68b540..5ea3f9af956 100644 --- a/packages/remix-serve/CHANGELOG.md +++ b/packages/remix-serve/CHANGELOG.md @@ -1,44 +1,12 @@ # `@remix-run/serve` -## 2.12.0-pre.4 +## 2.12.0 ### Patch Changes - Updated dependencies: - - `@remix-run/express@2.12.0-pre.4` - - `@remix-run/node@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/express@2.12.0-pre.3` - - `@remix-run/node@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.2` - - `@remix-run/express@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/express@2.12.0-pre.1` - - `@remix-run/node@2.12.0-pre.1` - -## 2.12.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.12.0-pre.0` - - `@remix-run/express@2.12.0-pre.0` + - `@remix-run/node@2.12.0` + - `@remix-run/express@2.12.0` ## 2.11.2 diff --git a/packages/remix-serve/package.json b/packages/remix-serve/package.json index fcc2b92508a..df5babd952b 100644 --- a/packages/remix-serve/package.json +++ b/packages/remix-serve/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/serve", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Production application server for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" diff --git a/packages/remix-server-runtime/CHANGELOG.md b/packages/remix-server-runtime/CHANGELOG.md index f4d7fb0594c..8f339348193 100644 --- a/packages/remix-server-runtime/CHANGELOG.md +++ b/packages/remix-server-runtime/CHANGELOG.md @@ -1,24 +1,11 @@ # `@remix-run/server-runtime` -## 2.12.0-pre.4 - -## 2.12.0-pre.3 - -## 2.12.0-pre.2 - -### Patch Changes - -- Support 304 responses on document requests ([#9955](https://github.com/remix-run/remix/pull/9955)) - -## 2.12.0-pre.1 - -## 2.12.0-pre.0 +## 2.12.0 ### Patch Changes - Single Fetch: Do not try to encode a `turbo-stream` body into 304 responses ([#9941](https://github.com/remix-run/remix/pull/9941)) - Single Fetch: fix revalidation behavior bugs ([#9938](https://github.com/remix-run/remix/pull/9938)) - - With Single Fetch, existing routes revalidate by default - This means requests do not need special query params for granular route revalidations out of the box - i.e., `GET /a/b/c.data` - There are two conditions that will trigger granular revalidation: @@ -26,12 +13,11 @@ - If a route defines a `clientLoader` then it will be excluded from the single fetch call and if you call `serverLoader()` from your `clientLoader`, that will make a separarte HTTP call for just that route loader - i.e., `GET /a/b/c.data?_routes=routes/a` for a `clientLoader` in `routes/a.tsx` - When one or more routes are excluded from the single fetch call, the remaining routes that have loaders are included as query params: - For example, if A was excluded, and the `root` route and `routes/b` had a `loader` but `routes/c` did not, the single fetch request would be `GET /a/b/c.data?_routes=root,routes/a` - - Remove hydration URL check that was originally added for React 17 hydration issues and we no longer support React 17 ([#9890](https://github.com/remix-run/remix/pull/9890)) - - Reverts the logic originally added in Remix `v1.18.0` via https://github.com/remix-run/remix/pull/6409 - - This was added to resolve an issue that could arise when doing quick back/forward history navigations while JS was loading which would cause a mismatch between the server matches and client matches: https://github.com/remix-run/remix/issues/1757 - - This specific hydration issue would then cause this React v17 only looping issue: https://github.com/remix-run/remix/issues/1678 + - Reverts the logic originally added in Remix `v1.18.0` via + - This was added to resolve an issue that could arise when doing quick back/forward history navigations while JS was loading which would cause a mismatch between the server matches and client matches: + - This specific hydration issue would then cause this React v17 only looping issue: - The URL comparison that we added in `1.18.0` turned out to be subject to false positives of it's own which could also put the user in looping scenarios - Remix v2 upgraded it's minimal React version to v18 which eliminated the v17 hydration error loop - React v18 handles this hydration error like any other error and does not result in a loop @@ -39,7 +25,7 @@ - Single Fetch: Improved typesafety ([#9893](https://github.com/remix-run/remix/pull/9893)) - If you were already using single-fetch types: + If you were already using previously released unstable single-fetch types: - Remove `"@remix-run/react/future/single-fetch.d.ts"` override from `tsconfig.json` > `compilerOptions` > `types` - Remove `defineLoader`, `defineAction`, `defineClientLoader`, `defineClientAction` helpers from your route modules @@ -72,6 +58,8 @@ - Single Fetch: Change content type on `.data` requests to `text/x-script` to allow Cloudflare compression ([#9889](https://github.com/remix-run/remix/pull/9889)) +- Support 304 responses on document requests ([#9955](https://github.com/remix-run/remix/pull/9955)) + ## 2.11.2 ### Patch Changes diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index 225bc999fb4..b7cd15393d7 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.12.0-pre.4", + "version": "2.12.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 d8e63d6b717..968b691be03 100644 --- a/packages/remix-testing/CHANGELOG.md +++ b/packages/remix-testing/CHANGELOG.md @@ -1,44 +1,12 @@ # `@remix-run/testing` -## 2.12.0-pre.4 +## 2.12.0 ### Patch Changes - Updated dependencies: - - `@remix-run/react@2.12.0-pre.4` - - `@remix-run/node@2.12.0-pre.4` - -## 2.12.0-pre.3 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/react@2.12.0-pre.3` - - `@remix-run/node@2.12.0-pre.3` - -## 2.12.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/react@2.12.0-pre.2` - - `@remix-run/node@2.12.0-pre.2` - -## 2.12.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/react@2.12.0-pre.1` - - `@remix-run/node@2.12.0-pre.1` - -## 2.12.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/react@2.12.0-pre.0` - - `@remix-run/node@2.12.0-pre.0` + - `@remix-run/react@2.12.0` + - `@remix-run/node@2.12.0` ## 2.11.2 diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index d2ac0c8623f..0bcf7bd3e6e 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/testing", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "Testing utilities for Remix apps", "homepage": "https://remix.run", "bugs": { diff --git a/packages/remix/package.json b/packages/remix/package.json index 389bdc91897..7dc1af11b01 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "remix", - "version": "2.12.0-pre.4", + "version": "2.12.0", "description": "A framework for building better websites", "homepage": "https://remix.run", "bugs": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5749c908f2b..c8be1d96c04 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -548,13 +548,13 @@ importers: integration/helpers/vite-cloudflare-template: dependencies: '@remix-run/cloudflare': - specifier: 2.12.0-pre.4 + specifier: 2.12.0 version: link:../../../packages/remix-cloudflare '@remix-run/cloudflare-pages': - specifier: 2.12.0-pre.4 + specifier: 2.12.0 version: link:../../../packages/remix-cloudflare-pages '@remix-run/react': - specifier: 2.12.0-pre.4 + specifier: 2.12.0 version: link:../../../packages/remix-react isbot: specifier: ^4.1.0 @@ -868,7 +868,7 @@ importers: specifier: workspace:* version: link:../remix-node '@remix-run/react': - specifier: ^2.12.0-pre.4 + specifier: ^2.12.0 version: link:../remix-react '@remix-run/router': specifier: 1.19.2