From f51ec665c3adbc24548310c5f6bb43f67057458a Mon Sep 17 00:00:00 2001 From: npapagna Date: Mon, 15 Jul 2024 10:45:10 -0300 Subject: [PATCH 01/21] Docs: Clarify `useActionData` Hook Scope (#9744) Co-authored-by: Matt Brophy --- contributors.yml | 1 + docs/hooks/use-action-data.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contributors.yml b/contributors.yml index b699a984905..ce5dac4887e 100644 --- a/contributors.yml +++ b/contributors.yml @@ -497,6 +497,7 @@ - nobeeakon - nordiauwu - not-ivy +- npapagna - nrako - nurul3101 - nvh95 diff --git a/docs/hooks/use-action-data.md b/docs/hooks/use-action-data.md index c0bc40ead70..ed7b7852ba7 100644 --- a/docs/hooks/use-action-data.md +++ b/docs/hooks/use-action-data.md @@ -5,7 +5,7 @@ toc: false # `useActionData` -Returns the serialized data from the most recent route action or `undefined` if there isn't one. +Returns the serialized data from the most recent route [action][action] or `undefined` if there isn't one. This hook only returns action data from the route in context - it can not access data from other parent or child routes. ```tsx lines=[10,14] import type { ActionFunctionArgs } from "@remix-run/node"; // or cloudflare/deno From c4a00be54e5f9d0ee3cf2430e8a62bae564ae918 Mon Sep 17 00:00:00 2001 From: Ahmed Abdel-Aziz Date: Thu, 18 Jul 2024 15:19:47 +0300 Subject: [PATCH 02/21] remove redundent word (#9768) --- contributors.yml | 1 + docs/guides/single-fetch.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contributors.yml b/contributors.yml index b3aad65ac59..2633cfe7ede 100644 --- a/contributors.yml +++ b/contributors.yml @@ -694,3 +694,4 @@ - zayenz - zhe - zwhitchcox +- AhmadMayo diff --git a/docs/guides/single-fetch.md b/docs/guides/single-fetch.md index 5d8bfa4fec4..29fdeae74f3 100644 --- a/docs/guides/single-fetch.md +++ b/docs/guides/single-fetch.md @@ -6,7 +6,7 @@ title: Single Fetch This is an unstable API and will continue to change, do not adopt in production -Single fetch is a new data data loading strategy and streaming format. When you enable Single Fetch, Remix will make a single HTTP call to your server on client-side transitions, instead of multiple HTTP calls in parallel (one per loader). Additionally, Single Fetch also allows you to send down naked objects from your `loader` and `action`, such as `Date`, `Error`, `Promise`, `RegExp`, and more. +Single fetch is a new data loading strategy and streaming format. When you enable Single Fetch, Remix will make a single HTTP call to your server on client-side transitions, instead of multiple HTTP calls in parallel (one per loader). Additionally, Single Fetch also allows you to send down naked objects from your `loader` and `action`, such as `Date`, `Error`, `Promise`, `RegExp`, and more. ## Overview From bb2d7eeadc579c2c4162e9352cdd4e6c31e7c67f Mon Sep 17 00:00:00 2001 From: Remix Run Bot Date: Thu, 18 Jul 2024 12:21:03 +0000 Subject: [PATCH 03/21] chore: format --- contributors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors.yml b/contributors.yml index 2633cfe7ede..00f435c7a6c 100644 --- a/contributors.yml +++ b/contributors.yml @@ -11,6 +11,7 @@ - AdiRishi - ahabhgk - ahbruns +- AhmadMayo - ahmedeldessouki - ahuth - aiji42 @@ -694,4 +695,3 @@ - zayenz - zhe - zwhitchcox -- AhmadMayo From e161d3bb9d06c85c57c93402f80c44254d9a896a Mon Sep 17 00:00:00 2001 From: "sp.wack" <83104063+amanape@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:27:59 +0300 Subject: [PATCH 04/21] docs: Update quickstart to reference vite config instead of remix config (#9782) Co-authored-by: Matt Brophy --- contributors.yml | 1 + docs/start/quickstart.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contributors.yml b/contributors.yml index 00f435c7a6c..600e371302c 100644 --- a/contributors.yml +++ b/contributors.yml @@ -9,6 +9,7 @@ - adamwathan - adicuco - AdiRishi +- amanape - ahabhgk - ahbruns - AhmadMayo diff --git a/docs/start/quickstart.md b/docs/start/quickstart.md index 47eabca68cf..c38822e6a27 100644 --- a/docs/start/quickstart.md +++ b/docs/start/quickstart.md @@ -95,7 +95,7 @@ First build the app for production: npx remix vite:build ``` -You should now see a `build` folder containing a `server` folder (the server version of your app) and a `client` folder (the browser version) with some build artifacts in them. (This is all [configurable][remix_config].) +You should now see a `build` folder containing a `server` folder (the server version of your app) and a `client` folder (the browser version) with some build artifacts in them. (This is all [configurable][vite_config].) 👉 **Run the app with `remix-serve`** @@ -276,7 +276,7 @@ What's next? [runtimes]: ../discussion/runtimes [inspect]: https://nodejs.org/en/docs/guides/debugging-getting-started/ [tutorial]: ./tutorial -[remix_config]: ../file-conventions/remix-config +[vite_config]: ../file-conventions/vite-config [templates]: /resources?category=templates [http-localhost-3000]: http://localhost:3000 [es-modules]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules From 5ca02dccb7e526e8a63d33419700fb14fb6be114 Mon Sep 17 00:00:00 2001 From: Remix Run Bot Date: Mon, 22 Jul 2024 15:29:24 +0000 Subject: [PATCH 05/21] chore: format --- contributors.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contributors.yml b/contributors.yml index 600e371302c..e894b993874 100644 --- a/contributors.yml +++ b/contributors.yml @@ -9,7 +9,6 @@ - adamwathan - adicuco - AdiRishi -- amanape - ahabhgk - ahbruns - AhmadMayo @@ -37,6 +36,7 @@ - alongdate - AltanS - alvinthen +- amanape - amir-ziaei - amorriscode - andreiduca From ac747ff7cdd8dde2b50fdf392fce0a29bbf2257f Mon Sep 17 00:00:00 2001 From: Pouet-- Date: Wed, 24 Jul 2024 16:19:41 +0200 Subject: [PATCH 06/21] fix: update pending-ui.md starred icons (#9791) --- contributors.yml | 1 + docs/discussion/pending-ui.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contributors.yml b/contributors.yml index e894b993874..04599ec857c 100644 --- a/contributors.yml +++ b/contributors.yml @@ -523,6 +523,7 @@ - plastic041 - plondon - pmbanugo +- Pouet-- - prasook-jain - pratikdevdas - princerajroy diff --git a/docs/discussion/pending-ui.md b/docs/discussion/pending-ui.md index a75d04428fe..4f3445186d5 100644 --- a/docs/discussion/pending-ui.md +++ b/docs/discussion/pending-ui.md @@ -192,7 +192,7 @@ function ProjectListItem({ project }) { value={starred ? "0" : "1"} > {/* 👇 display optimistic value */} - {starred ? "☆" : "★"} + {starred ? "★" : "☆"} From 8c146c59887205943f4340a56fc6d20137463092 Mon Sep 17 00:00:00 2001 From: Andrew Patton Date: Thu, 25 Jul 2024 18:53:24 -0700 Subject: [PATCH 07/21] Convert Cloudflare Workers template entry to TS (#9774) Co-authored-by: Mark Dalgleish --- templates/cloudflare-workers/load-context.ts | 8 +++++++- templates/cloudflare-workers/package.json | 2 +- templates/cloudflare-workers/{server.js => server.ts} | 11 +++++++---- templates/cloudflare-workers/wrangler.toml | 2 +- 4 files changed, 16 insertions(+), 7 deletions(-) rename templates/cloudflare-workers/{server.js => server.ts} (75%) diff --git a/templates/cloudflare-workers/load-context.ts b/templates/cloudflare-workers/load-context.ts index e9604b71ba0..5fc575ba11c 100644 --- a/templates/cloudflare-workers/load-context.ts +++ b/templates/cloudflare-workers/load-context.ts @@ -1,7 +1,13 @@ import { type PlatformProxy } from "wrangler"; +// PlatformProxy’s caches property is incompatible with the caches global +// https://github.com/cloudflare/workers-sdk/blob/main/packages/wrangler/src/api/integrations/platform/caches.ts +type Cloudflare = Omit, "dispose" | "caches"> & { + caches: CacheStorage; +}; + declare module "@remix-run/cloudflare" { interface AppLoadContext { - cloudflare: Omit, "dispose">; + cloudflare: Cloudflare; } } diff --git a/templates/cloudflare-workers/package.json b/templates/cloudflare-workers/package.json index 94c82f16be8..5c226bfde73 100644 --- a/templates/cloudflare-workers/package.json +++ b/templates/cloudflare-workers/package.json @@ -7,7 +7,7 @@ "deploy": "wrangler deploy", "dev": "remix vite:dev", "lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .", - "start": "wrangler dev ./server.js", + "start": "wrangler dev", "typegen": "wrangler types", "typecheck": "tsc" }, diff --git a/templates/cloudflare-workers/server.js b/templates/cloudflare-workers/server.ts similarity index 75% rename from templates/cloudflare-workers/server.js rename to templates/cloudflare-workers/server.ts index 034653d326a..7a988c47d9b 100644 --- a/templates/cloudflare-workers/server.js +++ b/templates/cloudflare-workers/server.ts @@ -1,11 +1,14 @@ import { getAssetFromKV } from "@cloudflare/kv-asset-handler"; -import { createRequestHandler } from "@remix-run/cloudflare"; -import * as remixBuild from "./build/server"; +import { createRequestHandler, type ServerBuild } from "@remix-run/cloudflare"; +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore This file won’t exist if it hasn’t yet been built +import * as build from "./build/server"; // eslint-disable-line import/no-unresolved // eslint-disable-next-line import/no-unresolved import __STATIC_CONTENT_MANIFEST from "__STATIC_CONTENT_MANIFEST"; const MANIFEST = JSON.parse(__STATIC_CONTENT_MANIFEST); -const handleRemixRequest = createRequestHandler(remixBuild); +// eslint-disable-next-line @typescript-eslint/no-explicit-any +const handleRemixRequest = createRequestHandler(build as any as ServerBuild); export default { async fetch(request, env, ctx) { @@ -50,4 +53,4 @@ export default { return new Response("An unexpected error occurred", { status: 500 }); } }, -}; +} satisfies ExportedHandler }>; diff --git a/templates/cloudflare-workers/wrangler.toml b/templates/cloudflare-workers/wrangler.toml index 51b671d52f8..bdebe9f88ea 100644 --- a/templates/cloudflare-workers/wrangler.toml +++ b/templates/cloudflare-workers/wrangler.toml @@ -1,6 +1,6 @@ name = "remix-cloudflare-workers-template" -main = "./server.js" +main = "./server.ts" workers_dev = true # https://developers.cloudflare.com/workers/platform/compatibility-dates compatibility_date = "2023-04-20" From 773e396f037d52036607b7a3b7aeadedbc8b3032 Mon Sep 17 00:00:00 2001 From: Brett Scott Date: Fri, 26 Jul 2024 03:06:11 +0100 Subject: [PATCH 08/21] Include .client/.server directories in Tailwind globs (#9758) Co-authored-by: Mark Dalgleish --- contributors.yml | 1 + docs/styling/tailwind.md | 2 +- integration/hmr-test.ts | 2 +- integration/postcss-test.ts | 2 +- integration/tailwind-test.ts | 6 +++--- scripts/playground/template/tailwind.config.js | 2 +- templates/cloudflare-workers/tailwind.config.ts | 2 +- templates/cloudflare/tailwind.config.ts | 2 +- templates/express/tailwind.config.ts | 2 +- templates/remix-javascript/tailwind.config.js | 2 +- templates/remix/tailwind.config.ts | 2 +- templates/spa/tailwind.config.ts | 2 +- 12 files changed, 14 insertions(+), 13 deletions(-) diff --git a/contributors.yml b/contributors.yml index 04599ec857c..3af4d2c39bc 100644 --- a/contributors.yml +++ b/contributors.yml @@ -85,6 +85,7 @@ - bogas04 - BogdanDevBst - bolchowka +- brettscott - brookslybrand - brophdawg11 - bruno-oliveira diff --git a/docs/styling/tailwind.md b/docs/styling/tailwind.md index 67766cb3f56..e0e0c25bb65 100644 --- a/docs/styling/tailwind.md +++ b/docs/styling/tailwind.md @@ -32,7 +32,7 @@ Now we can tell it which files to generate classes from: import type { Config } from "tailwindcss"; export default { - content: ["./app/**/*.{js,jsx,ts,tsx}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, diff --git a/integration/hmr-test.ts b/integration/hmr-test.ts index a2f5f2ad2a3..b42e40c962b 100644 --- a/integration/hmr-test.ts +++ b/integration/hmr-test.ts @@ -25,7 +25,7 @@ let files = { "tailwind.config.js": js` /** @type {import('tailwindcss').Config} */ export default { - content: ["./app/**/*.{ts,tsx,jsx,js}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, diff --git a/integration/postcss-test.ts b/integration/postcss-test.ts index fa13186e861..fcc8e5f55c1 100644 --- a/integration/postcss-test.ts +++ b/integration/postcss-test.ts @@ -89,7 +89,7 @@ test.describe("PostCSS enabled", () => { `, "tailwind.config.js": js` export default { - content: ["./app/**/*.{ts,tsx,jsx,js}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { spacing: { 'test': ${JSON.stringify(TEST_PADDING_VALUE)} diff --git a/integration/tailwind-test.ts b/integration/tailwind-test.ts index 4f2f91ce155..3a184aa046b 100644 --- a/integration/tailwind-test.ts +++ b/integration/tailwind-test.ts @@ -23,7 +23,7 @@ function runTests(ext: typeof extensions[number]) { let tailwindConfig = ["mjs", "ts", "js"].includes(ext) ? js` export default { - content: ["./app/**/*.{ts,tsx,jsx,js}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { spacing: { 'test': ${JSON.stringify(TEST_PADDING_VALUE)} @@ -33,7 +33,7 @@ function runTests(ext: typeof extensions[number]) { ` : js` module.exports = { - content: ["./app/**/*.{ts,tsx,jsx,js}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { spacing: { 'test': ${JSON.stringify(TEST_PADDING_VALUE)} @@ -364,7 +364,7 @@ test.describe("Tailwind disabled", () => { files: { "tailwind.config.js": js` module.exports = { - content: ["./app/**/*.{ts,tsx,jsx,js}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { spacing: { 'test': ${JSON.stringify(TEST_PADDING_VALUE)} diff --git a/scripts/playground/template/tailwind.config.js b/scripts/playground/template/tailwind.config.js index 8cff356f461..44a7b02ac1f 100644 --- a/scripts/playground/template/tailwind.config.js +++ b/scripts/playground/template/tailwind.config.js @@ -1,6 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: ["./app/**/*.{ts,tsx,jsx,js}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, diff --git a/templates/cloudflare-workers/tailwind.config.ts b/templates/cloudflare-workers/tailwind.config.ts index 64a5243e4d0..34d03da55f6 100644 --- a/templates/cloudflare-workers/tailwind.config.ts +++ b/templates/cloudflare-workers/tailwind.config.ts @@ -1,7 +1,7 @@ import type { Config } from "tailwindcss"; export default { - content: ["./app/**/*.{js,jsx,ts,tsx}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, diff --git a/templates/cloudflare/tailwind.config.ts b/templates/cloudflare/tailwind.config.ts index 64a5243e4d0..34d03da55f6 100644 --- a/templates/cloudflare/tailwind.config.ts +++ b/templates/cloudflare/tailwind.config.ts @@ -1,7 +1,7 @@ import type { Config } from "tailwindcss"; export default { - content: ["./app/**/*.{js,jsx,ts,tsx}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, diff --git a/templates/express/tailwind.config.ts b/templates/express/tailwind.config.ts index 64a5243e4d0..34d03da55f6 100644 --- a/templates/express/tailwind.config.ts +++ b/templates/express/tailwind.config.ts @@ -1,7 +1,7 @@ import type { Config } from "tailwindcss"; export default { - content: ["./app/**/*.{js,jsx,ts,tsx}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, diff --git a/templates/remix-javascript/tailwind.config.js b/templates/remix-javascript/tailwind.config.js index e015c8a89f9..49d20d5defe 100644 --- a/templates/remix-javascript/tailwind.config.js +++ b/templates/remix-javascript/tailwind.config.js @@ -1,5 +1,5 @@ export default { - content: ["./app/**/*.{js,jsx,ts,tsx}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, diff --git a/templates/remix/tailwind.config.ts b/templates/remix/tailwind.config.ts index 64a5243e4d0..34d03da55f6 100644 --- a/templates/remix/tailwind.config.ts +++ b/templates/remix/tailwind.config.ts @@ -1,7 +1,7 @@ import type { Config } from "tailwindcss"; export default { - content: ["./app/**/*.{js,jsx,ts,tsx}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, diff --git a/templates/spa/tailwind.config.ts b/templates/spa/tailwind.config.ts index 64a5243e4d0..34d03da55f6 100644 --- a/templates/spa/tailwind.config.ts +++ b/templates/spa/tailwind.config.ts @@ -1,7 +1,7 @@ import type { Config } from "tailwindcss"; export default { - content: ["./app/**/*.{js,jsx,ts,tsx}"], + content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, From e4f0de63ecb2ab12b52d2162ac3f6fbd6ab66827 Mon Sep 17 00:00:00 2001 From: Remix Run Bot Date: Fri, 26 Jul 2024 02:12:46 +0000 Subject: [PATCH 09/21] chore: format --- docs/styling/tailwind.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/styling/tailwind.md b/docs/styling/tailwind.md index e0e0c25bb65..4ca0f68ee9b 100644 --- a/docs/styling/tailwind.md +++ b/docs/styling/tailwind.md @@ -32,7 +32,9 @@ Now we can tell it which files to generate classes from: import type { Config } from "tailwindcss"; export default { - content: ["./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}"], + content: [ + "./app/**/{**,.client,.server}/**/*.{js,jsx,ts,tsx}", + ], theme: { extend: {}, }, From 1c88ad1f2b69600929139db6776de29749c139d0 Mon Sep 17 00:00:00 2001 From: Brendan <3654061+brenr@users.noreply.github.com> Date: Fri, 26 Jul 2024 09:02:53 -0400 Subject: [PATCH 10/21] docs(file-conventions/routes): fix grammar (#9749) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Michaël De Boey --- contributors.yml | 1 + docs/file-conventions/routes.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contributors.yml b/contributors.yml index 3af4d2c39bc..cee0a803dfd 100644 --- a/contributors.yml +++ b/contributors.yml @@ -85,6 +85,7 @@ - bogas04 - BogdanDevBst - bolchowka +- brenr - brettscott - brookslybrand - brophdawg11 diff --git a/docs/file-conventions/routes.md b/docs/file-conventions/routes.md index f90c3007965..e33004d18d5 100644 --- a/docs/file-conventions/routes.md +++ b/docs/file-conventions/routes.md @@ -21,8 +21,8 @@ Large applications with hundred or thousands of routes will _always_ be a bit ch So, before we dive into the details of the Remix default convention, here's some community alternatives you can check out if you decide that our default is not your cup of tea. - [`remix-flat-routes`][flat_routes] - The Remix default is basically a simplified version of this package. The author has continued to iterate on and evolve this package so if you generally like the "flat routes" idea but want a bit more power (including a hybrid approach of files and folders), definitely check this one out. -- [`remix-custom-routes`][custom_routes] - If you want even more customization, this package lets you define that types of files should be treated as routes. This let's you go beyond simply flat/nested and do something such as _"any file with an extension of `.route.tsx` is a route"_. -- [`remix-json-routes`][json_routes] - If you just want to specify your routes in a config, this is your jam - just give Remix a JSON object with your routes and skip the flat/nested concept entirely. There's even a JSX option in there too. +- [`remix-custom-routes`][custom_routes] - If you want even more customization, this package lets you define that types of files should be treated as routes. This lets you go beyond the simple flat/nested concept and do something such as _"any file with an extension of `.route.tsx` is a route"_. +- [`remix-json-routes`][json_routes] - If you just want to specify your routes via a config file, this is your jam - just provide Remix a JSON object with your routes and skip the flat/nested concept entirely. There's even a JSX option in there too. ## Root Route From ede2012949a784722d8989124dff5a34ae90c008 Mon Sep 17 00:00:00 2001 From: Andrew Patton Date: Fri, 26 Jul 2024 06:06:58 -0700 Subject: [PATCH 11/21] templates(cloudflare): remove `wrangler.toml` bindings warning (#9565) --- templates/cloudflare/README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/templates/cloudflare/README.md b/templates/cloudflare/README.md index d3df5abea1d..dec7f30b37a 100644 --- a/templates/cloudflare/README.md +++ b/templates/cloudflare/README.md @@ -30,10 +30,6 @@ You will need to rerun typegen whenever you make changes to `wrangler.toml`. ## Deployment -> [!WARNING] -> Cloudflare does _not_ use `wrangler.toml` to configure deployment bindings. -> You **MUST** [configure deployment bindings manually in the Cloudflare dashboard][bindings]. - First, build your app for production: ```sh @@ -46,8 +42,6 @@ Then, deploy your app to Cloudflare Pages: npm run deploy ``` -[bindings]: https://developers.cloudflare.com/pages/functions/bindings/ - ## Styling This template comes with [Tailwind CSS](https://tailwindcss.com/) already configured for a simple default starting experience. You can use whatever css framework you prefer. See the [Vite docs on css](https://vitejs.dev/guide/features.html#css) for more information. From 1e1569b4f14a54aa8e423532e2ef8cab54a33c26 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Tue, 30 Jul 2024 16:06:14 -0400 Subject: [PATCH 12/21] Enter prerelease mode --- .changeset/pre.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .changeset/pre.json diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 00000000000..83511675055 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,29 @@ +{ + "mode": "pre", + "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.10.3", + "remix": "2.10.3", + "@remix-run/architect": "2.10.3", + "@remix-run/cloudflare": "2.10.3", + "@remix-run/cloudflare-pages": "2.10.3", + "@remix-run/cloudflare-workers": "2.10.3", + "@remix-run/css-bundle": "2.10.3", + "@remix-run/deno": "2.10.3", + "@remix-run/dev": "2.10.3", + "@remix-run/eslint-config": "2.10.3", + "@remix-run/express": "2.10.3", + "@remix-run/node": "2.10.3", + "@remix-run/react": "2.10.3", + "@remix-run/serve": "2.10.3", + "@remix-run/server-runtime": "2.10.3", + "@remix-run/testing": "2.10.3" + }, + "changesets": [] +} From 94b7aa0ef29f4c6e7856a0de4c4962548a2fb3d4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:53:27 -0400 Subject: [PATCH 13/21] chore: Update version for release (pre) (#9808) Co-authored-by: github-actions[bot] Co-authored-by: Matt Brophy --- .changeset/add-unstable-data.md | 2 +- .changeset/large-donkeys-remember.md | 2 +- .changeset/pre.json | 11 +- .changeset/tender-elephants-kneel.md | 2 +- CHANGELOG.md | 191 ++++++++++++------ .../vite-cloudflare-template/package.json | 6 +- packages/create-remix/CHANGELOG.md | 2 + packages/create-remix/package.json | 2 +- packages/remix-architect/CHANGELOG.md | 7 + packages/remix-architect/package.json | 2 +- packages/remix-cloudflare-pages/CHANGELOG.md | 7 + packages/remix-cloudflare-pages/package.json | 2 +- .../remix-cloudflare-workers/CHANGELOG.md | 7 + .../remix-cloudflare-workers/package.json | 2 +- packages/remix-cloudflare/CHANGELOG.md | 12 ++ packages/remix-cloudflare/package.json | 2 +- packages/remix-css-bundle/CHANGELOG.md | 2 + packages/remix-css-bundle/package.json | 2 +- packages/remix-deno/CHANGELOG.md | 12 ++ packages/remix-deno/package.json | 2 +- packages/remix-dev/CHANGELOG.md | 15 ++ packages/remix-dev/package.json | 6 +- packages/remix-eslint-config/CHANGELOG.md | 2 + packages/remix-eslint-config/package.json | 2 +- packages/remix-express/CHANGELOG.md | 7 + packages/remix-express/package.json | 2 +- packages/remix-node/CHANGELOG.md | 12 ++ packages/remix-node/package.json | 2 +- packages/remix-react/CHANGELOG.md | 36 ++++ packages/remix-react/package.json | 2 +- packages/remix-serve/CHANGELOG.md | 8 + packages/remix-serve/package.json | 2 +- packages/remix-server-runtime/CHANGELOG.md | 32 +++ packages/remix-server-runtime/package.json | 2 +- packages/remix-testing/CHANGELOG.md | 12 ++ packages/remix-testing/package.json | 2 +- packages/remix/package.json | 2 +- pnpm-lock.yaml | 8 +- 38 files changed, 345 insertions(+), 86 deletions(-) diff --git a/.changeset/add-unstable-data.md b/.changeset/add-unstable-data.md index f1eebbd186a..f3e76f2dbf9 100644 --- a/.changeset/add-unstable-data.md +++ b/.changeset/add-unstable-data.md @@ -6,4 +6,4 @@ "@remix-run/server-runtime": minor --- -Add a new `unstable_data()` API for usage with Remix Single Fetch +Single Fetch: Add a new `unstable_data()` API as a replacement for `json`/`defer` when custom `status`/`headers` are needed diff --git a/.changeset/large-donkeys-remember.md b/.changeset/large-donkeys-remember.md index 5499280988d..269d89407b7 100644 --- a/.changeset/large-donkeys-remember.md +++ b/.changeset/large-donkeys-remember.md @@ -2,4 +2,4 @@ "@remix-run/react": patch --- -Ensure single fetch calls don't include any trailing slash from the pathname (i.e., /path/.data) +Single Fetch: Ensure calls don't include any trailing slash from the pathname (i.e., `/path/.data`) diff --git a/.changeset/pre.json b/.changeset/pre.json index 83511675055..3c239f865c8 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -25,5 +25,14 @@ "@remix-run/server-runtime": "2.10.3", "@remix-run/testing": "2.10.3" }, - "changesets": [] + "changesets": [ + "add-unstable-data", + "curvy-vans-remember", + "happy-dots-sleep", + "large-donkeys-remember", + "remove-response-stub", + "silver-laws-invite", + "tender-elephants-kneel", + "vite-absolute-base" + ] } diff --git a/.changeset/tender-elephants-kneel.md b/.changeset/tender-elephants-kneel.md index 9d789d99b69..ecb035aeea6 100644 --- a/.changeset/tender-elephants-kneel.md +++ b/.changeset/tender-elephants-kneel.md @@ -3,4 +3,4 @@ "@remix-run/server-runtime": patch --- -- Change initial hydration route mismatch from a URL check to a matches check to be resistant to URL inconsistenceis +Change initial hydration route mismatch from a URL check to a matches check to be resistant to URL inconsistencies diff --git a/CHANGELOG.md b/CHANGELOG.md index 34342efe734..ba8a63ae4c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,127 +13,135 @@ We manage release notes in this file instead of the paginated Github Releases Pa Table of Contents - [Remix Releases](#remix-releases) - - [v2.10.3](#v2103) + - [v2.11.0](#v2110) + - [What's Changed](#whats-changed) + - [Renamed `unstable_fogOfWar` future flag to `unstable_lazyRouteDiscovery` (unstable)](#renamed-unstable_fogofwar-future-flag-to-unstable_lazyroutediscovery-unstable) + - [Removed `response` stub in Single Fetch (unstable)](#removed-response-stub-in-single-fetch-unstable) + - [Minor Changes](#minor-changes) - [Patch Changes](#patch-changes) - [Updated Dependencies](#updated-dependencies) - [Changes by Package](#changes-by-package) - - [v2.10.2](#v2102) + - [v2.10.3](#v2103) - [Patch Changes](#patch-changes-1) + - [Updated Dependencies](#updated-dependencies-1) - [Changes by Package](#changes-by-package-1) - - [v2.10.1](#v2101) + - [v2.10.2](#v2102) - [Patch Changes](#patch-changes-2) - - [Updated Dependencies](#updated-dependencies-1) - [Changes by Package](#changes-by-package-2) - - [v2.10.0](#v2100) - - [What's Changed](#whats-changed) - - [Lazy Route Discovery (a.k.a. "Fog of War")](#lazy-route-discovery-aka-fog-of-war) - - [Minor Changes](#minor-changes) + - [v2.10.1](#v2101) - [Patch Changes](#patch-changes-3) - [Updated Dependencies](#updated-dependencies-2) - [Changes by Package](#changes-by-package-3) - - [v2.9.2](#v292) + - [v2.10.0](#v2100) - [What's Changed](#whats-changed-1) - - [Updated Type-Safety for Single Fetch](#updated-type-safety-for-single-fetch) + - [Lazy Route Discovery (a.k.a. "Fog of War")](#lazy-route-discovery-aka-fog-of-war) + - [Minor Changes](#minor-changes-1) - [Patch Changes](#patch-changes-4) - [Updated Dependencies](#updated-dependencies-3) - [Changes by Package](#changes-by-package-4) - - [v2.9.1](#v291) + - [v2.9.2](#v292) + - [What's Changed](#whats-changed-2) + - [Updated Type-Safety for Single Fetch](#updated-type-safety-for-single-fetch) - [Patch Changes](#patch-changes-5) + - [Updated Dependencies](#updated-dependencies-4) - [Changes by Package](#changes-by-package-5) + - [v2.9.1](#v291) + - [Patch Changes](#patch-changes-6) + - [Changes by Package](#changes-by-package-6) - [v2.9.0](#v290) - - [What's Changed](#whats-changed-2) + - [What's Changed](#whats-changed-3) - [Single Fetch (unstable)](#single-fetch-unstable) - [Undici](#undici) - - [Minor Changes](#minor-changes-1) - - [Patch Changes](#patch-changes-6) - - [Updated Dependencies](#updated-dependencies-4) - - [Changes by Package](#changes-by-package-6) - - [v2.8.1](#v281) + - [Minor Changes](#minor-changes-2) - [Patch Changes](#patch-changes-7) - [Updated Dependencies](#updated-dependencies-5) - [Changes by Package](#changes-by-package-7) - - [v2.8.0](#v280) - - [Minor Changes](#minor-changes-2) + - [v2.8.1](#v281) - [Patch Changes](#patch-changes-8) - [Updated Dependencies](#updated-dependencies-6) - [Changes by Package](#changes-by-package-8) - - [2.7.2](#272) + - [v2.8.0](#v280) + - [Minor Changes](#minor-changes-3) - [Patch Changes](#patch-changes-9) - - [2.7.1](#271) + - [Updated Dependencies](#updated-dependencies-7) + - [Changes by Package](#changes-by-package-9) + - [2.7.2](#272) - [Patch Changes](#patch-changes-10) + - [2.7.1](#271) + - [Patch Changes](#patch-changes-11) - [v2.7.0](#v270) - - [What's Changed](#whats-changed-3) + - [What's Changed](#whats-changed-4) - [Stabilized Vite Plugin](#stabilized-vite-plugin) - [New `Layout` Export](#new-layout-export) - [Basename support](#basename-support) - [Cloudflare Proxy as a Vite Plugin](#cloudflare-proxy-as-a-vite-plugin) - - [Minor Changes](#minor-changes-3) - - [Patch Changes](#patch-changes-11) - - [Updated Dependencies](#updated-dependencies-7) - - [Changes by Package](#changes-by-package-9) - - [v2.6.0](#v260) - - [What's Changed](#whats-changed-4) - - [Unstable Vite Plugin updates](#unstable-vite-plugin-updates) - [Minor Changes](#minor-changes-4) - [Patch Changes](#patch-changes-12) - [Updated Dependencies](#updated-dependencies-8) - [Changes by Package](#changes-by-package-10) - - [v2.5.1](#v251) + - [v2.6.0](#v260) + - [What's Changed](#whats-changed-5) + - [Unstable Vite Plugin updates](#unstable-vite-plugin-updates) + - [Minor Changes](#minor-changes-5) - [Patch Changes](#patch-changes-13) - [Updated Dependencies](#updated-dependencies-9) - [Changes by Package](#changes-by-package-11) - - [v2.5.0](#v250) - - [What's Changed](#whats-changed-5) - - [SPA Mode (unstable)](#spa-mode-unstable) - - [Server Bundles (unstable)](#server-bundles-unstable) - - [Minor Changes](#minor-changes-5) + - [v2.5.1](#v251) - [Patch Changes](#patch-changes-14) - [Updated Dependencies](#updated-dependencies-10) - [Changes by Package](#changes-by-package-12) - - [v2.4.1](#v241) + - [v2.5.0](#v250) + - [What's Changed](#whats-changed-6) + - [SPA Mode (unstable)](#spa-mode-unstable) + - [Server Bundles (unstable)](#server-bundles-unstable) + - [Minor Changes](#minor-changes-6) - [Patch Changes](#patch-changes-15) - [Updated Dependencies](#updated-dependencies-11) - [Changes by Package](#changes-by-package-13) + - [v2.4.1](#v241) + - [Patch Changes](#patch-changes-16) + - [Updated Dependencies](#updated-dependencies-12) + - [Changes by Package](#changes-by-package-14) - [v2.4.0](#v240) - - [What's Changed](#whats-changed-6) + - [What's Changed](#whats-changed-7) - [Client Data](#client-data) - [`future.v3_relativeSplatPath`](#futurev3_relativesplatpath) - [Vite Updates (Unstable)](#vite-updates-unstable) - - [Minor Changes](#minor-changes-6) - - [Patch Changes](#patch-changes-16) - - [Updated Dependencies](#updated-dependencies-12) - - [Changes by Package](#changes-by-package-14) - - [v2.3.1](#v231) + - [Minor Changes](#minor-changes-7) - [Patch Changes](#patch-changes-17) - [Updated Dependencies](#updated-dependencies-13) - [Changes by Package](#changes-by-package-15) - - [v2.3.0](#v230) - - [What's Changed](#whats-changed-7) - - [Stabilized `useBlocker`](#stabilized-useblocker) - - [`unstable_flushSync` API](#unstable_flushsync-api) - - [Minor Changes](#minor-changes-7) + - [v2.3.1](#v231) - [Patch Changes](#patch-changes-18) - [Updated Dependencies](#updated-dependencies-14) - [Changes by Package](#changes-by-package-16) - - [v2.2.0](#v220) + - [v2.3.0](#v230) - [What's Changed](#whats-changed-8) - - [Vite!](#vite) - - [New Fetcher APIs](#new-fetcher-apis) - - [Persistence Future Flag](#persistence-future-flag) + - [Stabilized `useBlocker`](#stabilized-useblocker) + - [`unstable_flushSync` API](#unstable_flushsync-api) - [Minor Changes](#minor-changes-8) - [Patch Changes](#patch-changes-19) - [Updated Dependencies](#updated-dependencies-15) - [Changes by Package](#changes-by-package-17) - - [v2.1.0](#v210) + - [v2.2.0](#v220) - [What's Changed](#whats-changed-9) - - [View Transitions](#view-transitions) - - [Stable `createRemixStub`](#stable-createremixstub) + - [Vite!](#vite) + - [New Fetcher APIs](#new-fetcher-apis) + - [Persistence Future Flag](#persistence-future-flag) - [Minor Changes](#minor-changes-9) - [Patch Changes](#patch-changes-20) - [Updated Dependencies](#updated-dependencies-16) - [Changes by Package](#changes-by-package-18) - - [v2.0.1](#v201) + - [v2.1.0](#v210) + - [What's Changed](#whats-changed-10) + - [View Transitions](#view-transitions) + - [Stable `createRemixStub`](#stable-createremixstub) + - [Minor Changes](#minor-changes-10) - [Patch Changes](#patch-changes-21) + - [Updated Dependencies](#updated-dependencies-17) + - [Changes by Package](#changes-by-package-19) + - [v2.0.1](#v201) + - [Patch Changes](#patch-changes-22) - [Changes by Package 🔗](#changes-by-package-) - [v2.0.0](#v200) - [Breaking Changes](#breaking-changes) @@ -145,8 +153,8 @@ We manage release notes in this file instead of the paginated Github Releases Pa - [Breaking Type Changes](#breaking-type-changes) - [New Features](#new-features) - [Other Notable Changes](#other-notable-changes) - - [Updated Dependencies](#updated-dependencies-17) - - [Changes by Package](#changes-by-package-19) + - [Updated Dependencies](#updated-dependencies-18) + - [Changes by Package](#changes-by-package-20) @@ -194,6 +202,75 @@ Date: YYYY-MM-DD --> +## v2.11.0 + +Date: 2024-07-31 + +### What's Changed + +#### Renamed `unstable_fogOfWar` future flag to `unstable_lazyRouteDiscovery` (unstable) + +We found that the `future.unstable_fogOfWar` flag name could be a bit confusing without the proper context (notably, the [blog post](https://remix.run/blog/fog-of-war)), so we've renamed the flag to `future.unstable_lazyRouteDiscovery` for clarity. If you had opted into this feature already, please update the name of the flag in your `vite.config.ts` file (or `remix.config.js`). + +#### Removed `response` stub in Single Fetch (unstable) + +The original Single Fetch approach was based on an assumption that an eventual `middleware` implementation would require something like the `ResponseStub` API so users could mutate `status`/`headers` in `middleware` before/after handlers as well as during handlers. As part of Single Fetch, we wanted to align how response headers would be merged between document and data requests, so we made document requests also use the `response` stub and removed the usage of the `headers()` function. + +However, the realization/alignment between Michael and Ryan on the recent [roadmap planning](https://www.youtube.com/watch?v=f5z_axCofW0) made us realize that the original assumption was incorrect. `middleware` won't need a `response` stub - as users can just mutate the `Response` they get from `await next()` directly. + +With that gone, and still wanting to align how headers get merged between document and data requests, it makes more sense to stick with the current `headers()` API and apply that to Single Fetch data requests and avoid introducing a totally new `response` stub (which also always felt a bit awkward to work with anyway). + +With this change: + +- The `headers()` function will let you control header merging for both document and data requests +- In most cases, if you were returning `json()`/`defer()` _without_ setting a custom `status` or `headers`, you can just remove those utility functions and return the raw data + - ❌ `return json({ data: "whatever" });` + - ✅ `return { data: "whatever" };` +- If you _were_ returning a custom `status` or `headers`: + - We've added a new API-compatible `unstable_data({...}, number | responseInit)` utility that will let you send back `status`/`headers` alongside your raw data without having to encode it into a `Response` +- We will be removing both `json` and `defer` in the next major version, but both _should_ still work in Single Fetch in v2 to allow for incremental adoption of the new behavior + +⚠️ If you've already adopted Single Fetch in it's unstable state and converted to `response` stub, you'll need to move those changes back to leveraging the `headers()` API. + +### Minor Changes + +- `@remix-run/dev` - Fog of War: Rename `future.unstable_fogOfWar` to `future.unstable_lazyRouteDiscovery` for clarity ([#9763](https://github.com/remix-run/remix/pull/9763)) +- `@remix-run/server-runtime` - Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) +- `@remix-run/server-runtime` - Single Fetch: Add a new `unstable_data()` API as a replacement for `json`/`defer` when custom `status`/`headers` are needed ([#9769](https://github.com/remix-run/remix/pull/9769)) +- `@remix-run/server-runtime` - Single Fetch: Remove `responseStub` in favor of `headers` ([#9769](https://github.com/remix-run/remix/pull/9769)) + +### Patch Changes + +- `@remix-run/dev` - Handle absolute Vite base URLs ([#9700](https://github.com/remix-run/remix/pull/9700)) +- `@remix-run/react` - Change initial hydration route mismatch from a URL check to a matches check to be resistant to URL inconsistencies ([#9695](https://github.com/remix-run/remix/pull/9695)) +- `@remix-run/react` - Single Fetch: Ensure calls don't include any trailing slash from the pathname (i.e., `/path/.data`) ([#9792](https://github.com/remix-run/remix/pull/9792)) +- `@remix-run/react` - Single Fetch: Add `undefined` to the `useRouteLoaderData` type override ([#9796](https://github.com/remix-run/remix/pull/9796)) + +### Updated Dependencies + +- [`react-router-dom@6.26.0`](https://github.com/remix-run/react-router/releases/tag/react-router%406.26.0) +- [`@remix-run/router@1.19.0`](https://github.com/remix-run/react-router/blob/main/packages/router/CHANGELOG.md#1190) + +### Changes by Package + +- [`create-remix`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/create-remix/CHANGELOG.md#2110) +- [`@remix-run/architect`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-architect/CHANGELOG.md#2110) +- [`@remix-run/cloudflare`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-cloudflare/CHANGELOG.md#2110) +- [`@remix-run/cloudflare-pages`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-cloudflare-pages/CHANGELOG.md#2110) +- [`@remix-run/cloudflare-workers`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-cloudflare-workers/CHANGELOG.md#2110) +- [`@remix-run/css-bundle`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-css-bundle/CHANGELOG.md#2110) +- [`@remix-run/deno`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-deno/CHANGELOG.md#2110) +- [`@remix-run/dev`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-dev/CHANGELOG.md#2110) +- [`@remix-run/eslint-config`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-eslint-config/CHANGELOG.md#2110) +- [`@remix-run/express`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-express/CHANGELOG.md#2110) +- [`@remix-run/node`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-node/CHANGELOG.md#2110) +- [`@remix-run/react`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-react/CHANGELOG.md#2110) +- [`@remix-run/serve`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-serve/CHANGELOG.md#2110) +- [`@remix-run/server-runtime`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-server-runtime/CHANGELOG.md#2110) +- [`@remix-run/testing`](https://github.com/remix-run/remix/blob/remix%402.11.0/packages/remix-testing/CHANGELOG.md#2110) + +**Full Changelog**: [`v2.10.3...v2.11.0`](https://github.com/remix-run/remix/compare/remix@2.10.3...remix@2.11.0) + ## v2.10.3 Date: 2024-07-16 diff --git a/integration/helpers/vite-cloudflare-template/package.json b/integration/helpers/vite-cloudflare-template/package.json index a91e9475c66..8abfd835a5b 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.10.3", - "@remix-run/cloudflare-pages": "2.10.3", - "@remix-run/react": "2.10.3", + "@remix-run/cloudflare": "2.11.0-pre.0", + "@remix-run/cloudflare-pages": "2.11.0-pre.0", + "@remix-run/react": "2.11.0-pre.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 8d6d586c413..d5d9e20d4bc 100644 --- a/packages/create-remix/CHANGELOG.md +++ b/packages/create-remix/CHANGELOG.md @@ -1,5 +1,7 @@ # `create-remix` +## 2.11.0-pre.0 + ## 2.10.3 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.10.3. diff --git a/packages/create-remix/package.json b/packages/create-remix/package.json index ed4f09d3ddb..e93739aa0a0 100644 --- a/packages/create-remix/package.json +++ b/packages/create-remix/package.json @@ -1,6 +1,6 @@ { "name": "create-remix", - "version": "2.10.3", + "version": "2.11.0-pre.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 0c7454ba783..217ebf8d815 100644 --- a/packages/remix-architect/CHANGELOG.md +++ b/packages/remix-architect/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/architect` +## 2.11.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-architect/package.json b/packages/remix-architect/package.json index f96e6597fd5..d58c5ce1d5b 100644 --- a/packages/remix-architect/package.json +++ b/packages/remix-architect/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/architect", - "version": "2.10.3", + "version": "2.11.0-pre.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 dfd626554fb..a5b89f9fbe9 100644 --- a/packages/remix-cloudflare-pages/CHANGELOG.md +++ b/packages/remix-cloudflare-pages/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/cloudflare-pages` +## 2.11.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/cloudflare@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-cloudflare-pages/package.json b/packages/remix-cloudflare-pages/package.json index 188f5b70d3f..3be6c73a674 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.10.3", + "version": "2.11.0-pre.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 48bbb19bc30..7942144cfe6 100644 --- a/packages/remix-cloudflare-workers/CHANGELOG.md +++ b/packages/remix-cloudflare-workers/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/cloudflare-workers` +## 2.11.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/cloudflare@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-cloudflare-workers/package.json b/packages/remix-cloudflare-workers/package.json index ad1bfee5a4a..76b7f814dbf 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.10.3", + "version": "2.11.0-pre.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 5f7e30da7e3..81ae0fb3d6a 100644 --- a/packages/remix-cloudflare/CHANGELOG.md +++ b/packages/remix-cloudflare/CHANGELOG.md @@ -1,5 +1,17 @@ # `@remix-run/cloudflare` +## 2.11.0-pre.0 + +### Minor Changes + +- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-cloudflare/package.json b/packages/remix-cloudflare/package.json index f64ae7cb6d8..2dbe9f412b9 100644 --- a/packages/remix-cloudflare/package.json +++ b/packages/remix-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/cloudflare", - "version": "2.10.3", + "version": "2.11.0-pre.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 43368453d7a..f501eeeeb33 100644 --- a/packages/remix-css-bundle/CHANGELOG.md +++ b/packages/remix-css-bundle/CHANGELOG.md @@ -1,5 +1,7 @@ # @remix-run/css-bundle +## 2.11.0-pre.0 + ## 2.10.3 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.10.3. diff --git a/packages/remix-css-bundle/package.json b/packages/remix-css-bundle/package.json index f64b07290c3..c1511ca37cb 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.10.3", + "version": "2.11.0-pre.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 5f55a7ea520..07d004bd67e 100644 --- a/packages/remix-deno/CHANGELOG.md +++ b/packages/remix-deno/CHANGELOG.md @@ -1,5 +1,17 @@ # `@remix-run/deno` +## 2.11.0-pre.0 + +### Minor Changes + +- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-deno/package.json b/packages/remix-deno/package.json index 5bbf90d707e..9c48e366f26 100644 --- a/packages/remix-deno/package.json +++ b/packages/remix-deno/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/deno", - "version": "2.10.3", + "version": "2.11.0-pre.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 5153c70388f..a247ea490b4 100644 --- a/packages/remix-dev/CHANGELOG.md +++ b/packages/remix-dev/CHANGELOG.md @@ -1,5 +1,20 @@ # `@remix-run/dev` +## 2.11.0-pre.0 + +### Minor Changes + +- Rename `future.unstable_fogOfWar` to `future.unstable_lazyRouteDiscovery` for clarity ([#9763](https://github.com/remix-run/remix/pull/9763)) + +### Patch Changes + +- Handle absolute Vite base URLs ([#9700](https://github.com/remix-run/remix/pull/9700)) +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.0` + - `@remix-run/react@2.11.0-pre.0` + - `@remix-run/server-runtime@2.11.0-pre.0` + - `@remix-run/serve@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-dev/package.json b/packages/remix-dev/package.json index 849b4c77628..bf9cfe57314 100644 --- a/packages/remix-dev/package.json +++ b/packages/remix-dev/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/dev", - "version": "2.10.3", + "version": "2.11.0-pre.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.10.3", - "@remix-run/serve": "^2.10.3", + "@remix-run/react": "^2.11.0-pre.0", + "@remix-run/serve": "^2.11.0-pre.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 729e8a6e23e..b533807512f 100644 --- a/packages/remix-eslint-config/CHANGELOG.md +++ b/packages/remix-eslint-config/CHANGELOG.md @@ -1,5 +1,7 @@ # `@remix-run/eslint-config` +## 2.11.0-pre.0 + ## 2.10.3 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.10.3. diff --git a/packages/remix-eslint-config/package.json b/packages/remix-eslint-config/package.json index def596d3f37..257b0aff2cb 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.10.3", + "version": "2.11.0-pre.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 04e3be23be3..363381e1fec 100644 --- a/packages/remix-express/CHANGELOG.md +++ b/packages/remix-express/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/express` +## 2.11.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-express/package.json b/packages/remix-express/package.json index 2ba9dc378e7..056970f7efb 100644 --- a/packages/remix-express/package.json +++ b/packages/remix-express/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/express", - "version": "2.10.3", + "version": "2.11.0-pre.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 7c57dea0ee3..12b560badc9 100644 --- a/packages/remix-node/CHANGELOG.md +++ b/packages/remix-node/CHANGELOG.md @@ -1,5 +1,17 @@ # `@remix-run/node` +## 2.11.0-pre.0 + +### Minor Changes + +- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-node/package.json b/packages/remix-node/package.json index c9a172b50f1..2bb762dac4f 100644 --- a/packages/remix-node/package.json +++ b/packages/remix-node/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/node", - "version": "2.10.3", + "version": "2.11.0-pre.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 7bf260174a2..3375c17dc5b 100644 --- a/packages/remix-react/CHANGELOG.md +++ b/packages/remix-react/CHANGELOG.md @@ -1,5 +1,41 @@ # `@remix-run/react` +## 2.11.0-pre.0 + +### Minor Changes + +- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) +- Rename `future.unstable_fogOfWar` to `future.unstable_lazyRouteDiscovery` for clarity ([#9763](https://github.com/remix-run/remix/pull/9763)) +- Single Fetch: Remove `responseStub` in favor of `headers` ([#9769](https://github.com/remix-run/remix/pull/9769)) + + - Background + + - The original Single Fetch approach was based on an assumption that an eventual `middleware` implementation would require something like `ResponseStub` so users could mutate `status`/`headers` in `middleware` before/after handlers as well as during handlers + - We wanted to align how `headers` got merged between document and data requests + - So we made document requests also use `ResponseStub` and removed the usage of `headers` in Single Fetch + - The realization/alignment between Michael and Ryan on the recent [roadmap planning](https://www.youtube.com/watch?v=f5z_axCofW0) made us realize that the original assumption was incorrect + - `middleware` won't need a stub - users can just mutate the `Response` they get from `await next()` directly + - With that gone, and still wanting to align how `headers` get merged, it makes more sense to stick with the current `headers` API and apply that to Single Fetch and avoid introducing a totally new thing in `RepsonseStub` (that always felt a bit awkward to work with anyway) + + - With this change: + - You are encouraged to stop returning `Response` instances in favor of returning raw data from loaders and actions: + - ~~`return json({ data: whatever });`~~ + - `return { data: whatever };` + - In most cases, you can remove your `json()` and `defer()` calls in favor of returning raw data if they weren't setting custom `status`/`headers` + - We will be removing both `json` and `defer` in the next major version, but both _should_ still work in Single Fetch in v2 to allow for incremental adoption of the new behavior + - If you need custom `status`/`headers`: + - We've added a new `unstable_data({...}, responseInit)` utility that will let you send back `status`/`headers` alongside your raw data without having to encode it into a `Response` + - The `headers()` function will let you control header merging for both document and data requests + +### Patch Changes + +- Ensure single fetch calls don't include any trailing slash from the pathname (i.e., /path/.data) ([#9792](https://github.com/remix-run/remix/pull/9792)) +- Single Fetch: Add `undefined` to the `useRouteLoaderData` type override ([#9796](https://github.com/remix-run/remix/pull/9796)) +- Change initial hydration route mismatch from a URL check to a matches check to be resistant to URL inconsistencies ([#9695](https://github.com/remix-run/remix/pull/9695)) +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-react/package.json b/packages/remix-react/package.json index c3327100c54..be134a437ca 100644 --- a/packages/remix-react/package.json +++ b/packages/remix-react/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/react", - "version": "2.10.3", + "version": "2.11.0-pre.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 7ac9b29e065..509f8f68666 100644 --- a/packages/remix-serve/CHANGELOG.md +++ b/packages/remix-serve/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/serve` +## 2.11.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.0` + - `@remix-run/express@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-serve/package.json b/packages/remix-serve/package.json index 064f85940f2..399f55f61aa 100644 --- a/packages/remix-serve/package.json +++ b/packages/remix-serve/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/serve", - "version": "2.10.3", + "version": "2.11.0-pre.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 f828cb4fafd..8c3f7d56753 100644 --- a/packages/remix-server-runtime/CHANGELOG.md +++ b/packages/remix-server-runtime/CHANGELOG.md @@ -1,5 +1,37 @@ # `@remix-run/server-runtime` +## 2.11.0-pre.0 + +### Minor Changes + +- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) +- Rename `future.unstable_fogOfWar` to `future.unstable_lazyRouteDiscovery` for clarity ([#9763](https://github.com/remix-run/remix/pull/9763)) +- Single Fetch: Remove `responseStub` in favor of `headers` ([#9769](https://github.com/remix-run/remix/pull/9769)) + + - Background + + - The original Single Fetch approach was based on an assumption that an eventual `middleware` implementation would require something like `ResponseStub` so users could mutate `status`/`headers` in `middleware` before/after handlers as well as during handlers + - We wanted to align how `headers` got merged between document and data requests + - So we made document requests also use `ResponseStub` and removed the usage of `headers` in Single Fetch + - The realization/alignment between Michael and Ryan on the recent [roadmap planning](https://www.youtube.com/watch?v=f5z_axCofW0) made us realize that the original assumption was incorrect + - `middleware` won't need a stub - users can just mutate the `Response` they get from `await next()` directly + - With that gone, and still wanting to align how `headers` get merged, it makes more sense to stick with the current `headers` API and apply that to Single Fetch and avoid introducing a totally new thing in `RepsonseStub` (that always felt a bit awkward to work with anyway) + + - With this change: + - You are encouraged to stop returning `Response` instances in favor of returning raw data from loaders and actions: + - ~~`return json({ data: whatever });`~~ + - `return { data: whatever };` + - In most cases, you can remove your `json()` and `defer()` calls in favor of returning raw data if they weren't setting custom `status`/`headers` + - We will be removing both `json` and `defer` in the next major version, but both _should_ still work in Single Fetch in v2 to allow for incremental adoption of the new behavior + - If you need custom `status`/`headers`: + - We've added a new `unstable_data({...}, responseInit)` utility that will let you send back `status`/`headers` alongside your raw data without having to encode it into a `Response` + - The `headers()` function will let you control header merging for both document and data requests + +### Patch Changes + +- Change initial hydration route mismatch from a URL check to a matches check to be resistant to URL inconsistencies ([#9695](https://github.com/remix-run/remix/pull/9695)) + ## 2.10.3 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.10.3. diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index 32141557162..ac8549e911e 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.10.3", + "version": "2.11.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 63af3b8fb42..5c82a120e08 100644 --- a/packages/remix-testing/CHANGELOG.md +++ b/packages/remix-testing/CHANGELOG.md @@ -1,5 +1,17 @@ # `@remix-run/testing` +## 2.11.0-pre.0 + +### Minor Changes + +- Rename `future.unstable_fogOfWar` to `future.unstable_lazyRouteDiscovery` for clarity ([#9763](https://github.com/remix-run/remix/pull/9763)) + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.0` + - `@remix-run/react@2.11.0-pre.0` + ## 2.10.3 ### Patch Changes diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index 3f8eb421d2e..a2365a998d1 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/testing", - "version": "2.10.3", + "version": "2.11.0-pre.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 ef839f2ce67..5bd92aa4359 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "remix", - "version": "2.10.3", + "version": "2.11.0-pre.0", "description": "A framework for building better websites", "homepage": "https://remix.run", "bugs": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3c5e96190db..7bbe4a0ed1b 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.10.3 + specifier: 2.11.0-pre.0 version: link:../../../packages/remix-cloudflare '@remix-run/cloudflare-pages': - specifier: 2.10.3 + specifier: 2.11.0-pre.0 version: link:../../../packages/remix-cloudflare-pages '@remix-run/react': - specifier: 2.10.3 + specifier: 2.11.0-pre.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.10.3 + specifier: ^2.11.0-pre.0 version: link:../remix-react '@remix-run/router': specifier: 1.19.0-pre.0 From 4e365427426c7a4f9df717fdf43cc8bd04f87086 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Wed, 31 Jul 2024 11:46:38 -0400 Subject: [PATCH 14/21] Add docs for replace utility --- docs/utils/redirectDocument.md | 2 +- docs/utils/replace.md | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 docs/utils/replace.md diff --git a/docs/utils/redirectDocument.md b/docs/utils/redirectDocument.md index 7ed5f2ae5c1..f817ebeb0a9 100644 --- a/docs/utils/redirectDocument.md +++ b/docs/utils/redirectDocument.md @@ -26,7 +26,7 @@ export const action = async () => { Just like [`redirect`][redirect], it accepts a status code or a `ResponseInit` as the second parameter: -``` +```ts redirectDocument(path, 301); redirectDocument(path, 303); ``` diff --git a/docs/utils/replace.md b/docs/utils/replace.md new file mode 100644 index 00000000000..3dee0a92a82 --- /dev/null +++ b/docs/utils/replace.md @@ -0,0 +1,27 @@ +--- +title: replace +toc: false +--- + +# `replace` + +This is a small wrapper around [`redirect`][redirect] that will trigger a client-side redirect to the new location using `history.replaceState` instead of `history.pushState`. + +If JavaScript has not loaded, this will behave as a standard document-level redirect and will add a new entry to the history stack. + +Just like [`redirect`][redirect], it accepts a status code or a `ResponseInit` as the second parameter: + +```ts +replace(path, 301); +replace(path, 303); +``` + +```ts +replace(path, { + headers: { + "Set-Cookie": await commitSession(session), + }, +}); +``` + +[redirect]: ./redirect From ce01ef16e2f25e767b4d31106db7e17af2c646e8 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Wed, 31 Jul 2024 11:57:05 -0400 Subject: [PATCH 15/21] Update docs and release notes --- CHANGELOG.md | 8 ++++---- docs/utils/data.md | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba8a63ae4c5..a3fe7a417e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -214,11 +214,11 @@ We found that the `future.unstable_fogOfWar` flag name could be a bit confusing #### Removed `response` stub in Single Fetch (unstable) -The original Single Fetch approach was based on an assumption that an eventual `middleware` implementation would require something like the `ResponseStub` API so users could mutate `status`/`headers` in `middleware` before/after handlers as well as during handlers. As part of Single Fetch, we wanted to align how response headers would be merged between document and data requests, so we made document requests also use the `response` stub and removed the usage of the `headers()` function. +The original Single Fetch approach was based on an assumption that an eventual `middleware` implementation would require something like the `ResponseStub` API so users could mutate `status`/`headers` in `middleware` before/after handlers as well as during handlers. As part of Single Fetch, we wanted to align how response headers would be merged between document and data requests. Thinking `response` was the future API, we aligned document requests to use the `response` stub that data requests were using, and we stopped using the `headers()` function. However, the realization/alignment between Michael and Ryan on the recent [roadmap planning](https://www.youtube.com/watch?v=f5z_axCofW0) made us realize that the original assumption was incorrect. `middleware` won't need a `response` stub - as users can just mutate the `Response` they get from `await next()` directly. -With that gone, and still wanting to align how headers get merged between document and data requests, it makes more sense to stick with the current `headers()` API and apply that to Single Fetch data requests and avoid introducing a totally new `response` stub (which also always felt a bit awkward to work with anyway). +Removing that assumption, and still wanting to align how headers get merged between document and data requests, it makes more sense to stick with the current `headers()` API and align Single Fetch data requests to use that existing API. This was we don't need to introduce any new header-related APIs which will make the adoption of Single Fetch much easier. With this change: @@ -226,8 +226,8 @@ With this change: - In most cases, if you were returning `json()`/`defer()` _without_ setting a custom `status` or `headers`, you can just remove those utility functions and return the raw data - ❌ `return json({ data: "whatever" });` - ✅ `return { data: "whatever" };` -- If you _were_ returning a custom `status` or `headers`: - - We've added a new API-compatible `unstable_data({...}, number | responseInit)` utility that will let you send back `status`/`headers` alongside your raw data without having to encode it into a `Response` +- If you _were_ returning a custom `status` or `headers` via `json`/`defer`: + - We've added a new API-compatible [`unstable_data`](https://remix.run/docs/utils/data) utility that will let you send back `status`/`headers` alongside your raw data without having to encode it into a `Response` - We will be removing both `json` and `defer` in the next major version, but both _should_ still work in Single Fetch in v2 to allow for incremental adoption of the new behavior ⚠️ If you've already adopted Single Fetch in it's unstable state and converted to `response` stub, you'll need to move those changes back to leveraging the `headers()` API. diff --git a/docs/utils/data.md b/docs/utils/data.md index c7872a64372..6af43a665b0 100644 --- a/docs/utils/data.md +++ b/docs/utils/data.md @@ -11,7 +11,6 @@ This is a utility for use with [Single Fetch][single-fetch] to return raw data a import { unstable_data as data } from "@remix-run/node"; // or cloudflare/deno export const loader = async () => { - // So you can write this: return data( { not: "coffee" }, { From c8f308fb2ca58da186f9bd6757146c0f3f584008 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Wed, 31 Jul 2024 13:56:51 -0400 Subject: [PATCH 16/21] Fix types for unstable_data (#9811) --- .changeset/mighty-needles-destroy.md | 5 ++ integration/package.json | 2 +- packages/remix-dev/package.json | 2 +- packages/remix-react/package.json | 6 +-- packages/remix-server-runtime/package.json | 2 +- packages/remix-server-runtime/single-fetch.ts | 8 ++- packages/remix-testing/package.json | 4 +- pnpm-lock.yaml | 50 +++++++++---------- 8 files changed, 45 insertions(+), 34 deletions(-) create mode 100644 .changeset/mighty-needles-destroy.md diff --git a/.changeset/mighty-needles-destroy.md b/.changeset/mighty-needles-destroy.md new file mode 100644 index 00000000000..d40d3b8a95c --- /dev/null +++ b/.changeset/mighty-needles-destroy.md @@ -0,0 +1,5 @@ +--- +"@remix-run/react": patch +--- + +[REMOVE] Fix typings for unstable_data and useLoaderData diff --git a/integration/package.json b/integration/package.json index de17024eb8d..927688ead3a 100644 --- a/integration/package.json +++ b/integration/package.json @@ -14,7 +14,7 @@ "@remix-run/dev": "workspace:*", "@remix-run/express": "workspace:*", "@remix-run/node": "workspace:*", - "@remix-run/router": "1.19.0-pre.0", + "@remix-run/router": "1.19.0-pre.1", "@remix-run/server-runtime": "workspace:*", "@types/express": "^4.17.9", "@vanilla-extract/css": "^1.10.0", diff --git a/packages/remix-dev/package.json b/packages/remix-dev/package.json index bf9cfe57314..0b5057b4e7f 100644 --- a/packages/remix-dev/package.json +++ b/packages/remix-dev/package.json @@ -32,7 +32,7 @@ "@mdx-js/mdx": "^2.3.0", "@npmcli/package-json": "^4.0.1", "@remix-run/node": "workspace:*", - "@remix-run/router": "1.19.0-pre.0", + "@remix-run/router": "1.19.0-pre.1", "@remix-run/server-runtime": "workspace:*", "@types/mdx": "^2.0.5", "@vanilla-extract/integration": "^6.2.0", diff --git a/packages/remix-react/package.json b/packages/remix-react/package.json index be134a437ca..7fac93cc3a3 100644 --- a/packages/remix-react/package.json +++ b/packages/remix-react/package.json @@ -19,10 +19,10 @@ "tsc": "tsc" }, "dependencies": { - "@remix-run/router": "1.19.0-pre.0", + "@remix-run/router": "1.19.0-pre.1", "@remix-run/server-runtime": "workspace:*", - "react-router": "6.26.0-pre.0", - "react-router-dom": "6.26.0-pre.0", + "react-router": "6.26.0-pre.1", + "react-router-dom": "6.26.0-pre.1", "turbo-stream": "2.2.0" }, "devDependencies": { diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index ac8549e911e..6ea488d5514 100644 --- a/packages/remix-server-runtime/package.json +++ b/packages/remix-server-runtime/package.json @@ -19,7 +19,7 @@ "tsc": "tsc" }, "dependencies": { - "@remix-run/router": "1.19.0-pre.0", + "@remix-run/router": "1.19.0-pre.1", "@types/cookie": "^0.6.0", "@web3-storage/multipart-parser": "^1.0.0", "cookie": "^0.6.0", diff --git a/packages/remix-server-runtime/single-fetch.ts b/packages/remix-server-runtime/single-fetch.ts index f6b8957a011..e9298122a7b 100644 --- a/packages/remix-server-runtime/single-fetch.ts +++ b/packages/remix-server-runtime/single-fetch.ts @@ -2,6 +2,7 @@ import type { StaticHandler, unstable_DataStrategyFunctionArgs as DataStrategyFunctionArgs, unstable_DataStrategyFunction as DataStrategyFunction, + UNSAFE_DataWithResponseInit as DataWithResponseInit, } from "@remix-run/router"; import { isRouteErrorResponse, @@ -335,7 +336,10 @@ export function encodeViaTurboStream( }); } -export function data(value: Serializable, init?: number | ResponseInit) { +export function data( + value: D, + init?: number | ResponseInit +) { return routerData(value, init); } @@ -361,6 +365,7 @@ type Serializable = type DataFunctionReturnValue = | Serializable + | DataWithResponseInit | TypedDeferredData> | TypedResponse>; @@ -372,6 +377,7 @@ type DataFunctionReturnValue = export type Serialize = Awaited> extends TypedDeferredData ? D : Awaited> extends TypedResponse> ? SerializeFrom : + Awaited> extends DataWithResponseInit ? D : Awaited>; export type Loader = ( diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index a2365a998d1..4e571b3bad6 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -21,8 +21,8 @@ "dependencies": { "@remix-run/node": "workspace:*", "@remix-run/react": "workspace:*", - "@remix-run/router": "1.19.0-pre.0", - "react-router-dom": "6.26.0-pre.0" + "@remix-run/router": "1.19.0-pre.1", + "react-router-dom": "6.26.0-pre.1" }, "devDependencies": { "@remix-run/server-runtime": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7bbe4a0ed1b..4c20c39a78c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -323,8 +323,8 @@ importers: specifier: workspace:* version: link:../packages/remix-node '@remix-run/router': - specifier: 1.19.0-pre.0 - version: 1.19.0-pre.0 + specifier: 1.19.0-pre.1 + version: 1.19.0-pre.1 '@remix-run/server-runtime': specifier: workspace:* version: link:../packages/remix-server-runtime @@ -871,8 +871,8 @@ importers: specifier: ^2.11.0-pre.0 version: link:../remix-react '@remix-run/router': - specifier: 1.19.0-pre.0 - version: 1.19.0-pre.0 + specifier: 1.19.0-pre.1 + version: 1.19.0-pre.1 '@remix-run/server-runtime': specifier: workspace:* version: link:../remix-server-runtime @@ -1217,17 +1217,17 @@ importers: packages/remix-react: dependencies: '@remix-run/router': - specifier: 1.19.0-pre.0 - version: 1.19.0-pre.0 + specifier: 1.19.0-pre.1 + version: 1.19.0-pre.1 '@remix-run/server-runtime': specifier: workspace:* version: link:../remix-server-runtime react-router: - specifier: 6.26.0-pre.0 - version: 6.26.0-pre.0(react@18.2.0) + specifier: 6.26.0-pre.1 + version: 6.26.0-pre.1(react@18.2.0) react-router-dom: - specifier: 6.26.0-pre.0 - version: 6.26.0-pre.0(react-dom@18.2.0)(react@18.2.0) + specifier: 6.26.0-pre.1 + version: 6.26.0-pre.1(react-dom@18.2.0)(react@18.2.0) turbo-stream: specifier: 2.2.0 version: 2.2.0 @@ -1303,8 +1303,8 @@ importers: packages/remix-server-runtime: dependencies: '@remix-run/router': - specifier: 1.19.0-pre.0 - version: 1.19.0-pre.0 + specifier: 1.19.0-pre.1 + version: 1.19.0-pre.1 '@types/cookie': specifier: ^0.6.0 version: 0.6.0 @@ -1340,11 +1340,11 @@ importers: specifier: workspace:* version: link:../remix-react '@remix-run/router': - specifier: 1.19.0-pre.0 - version: 1.19.0-pre.0 + specifier: 1.19.0-pre.1 + version: 1.19.0-pre.1 react-router-dom: - specifier: 6.26.0-pre.0 - version: 6.26.0-pre.0(react-dom@18.2.0)(react@18.2.0) + specifier: 6.26.0-pre.1 + version: 6.26.0-pre.1(react-dom@18.2.0)(react@18.2.0) devDependencies: '@remix-run/server-runtime': specifier: workspace:* @@ -4201,8 +4201,8 @@ packages: - encoding dev: false - /@remix-run/router@1.19.0-pre.0: - resolution: {integrity: sha512-kIabFU8rSYO99jUvDVPNN13UBHaonCvqhRoa9ed6thH/zbwQmaYvljP0kd2QvxrRF94XwexpQJE4vTRtiRIr0w==} + /@remix-run/router@1.19.0-pre.1: + resolution: {integrity: sha512-odV+ZH4LbnpZttNvIJ1EDXuLNHC29h+mLcbahCqZrknXonjjwLiYn1qBOFzPxn6onGs0rMJuo1qUyE/+P/jK9A==} engines: {node: '>=14.0.0'} dev: false @@ -12786,26 +12786,26 @@ packages: engines: {node: '>=0.10.0'} dev: false - /react-router-dom@6.26.0-pre.0(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-yG+aNIxCzdyo3ZIeLvPtxxS4RE4av9wL1fUgd4L+Af1sOYz9lxWj7IPMmCKepoXd1XKedwsNsCm/uTJ94Qp/8Q==} + /react-router-dom@6.26.0-pre.1(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-eS7OZvFd+xfWqQfuTW8IOehBof8C0s9KrSFYxlf/ixzhhFYF3AV6qdjV5J3OeUDAT+AmKuAZ8UJ37sKvNO58CQ==} engines: {node: '>=14.0.0'} peerDependencies: react: '>=16.8' react-dom: '>=16.8' dependencies: - '@remix-run/router': 1.19.0-pre.0 + '@remix-run/router': 1.19.0-pre.1 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-router: 6.26.0-pre.0(react@18.2.0) + react-router: 6.26.0-pre.1(react@18.2.0) dev: false - /react-router@6.26.0-pre.0(react@18.2.0): - resolution: {integrity: sha512-ONaqRSj6h7DSCFnAGBkb5PBelbdQKR/Ijv91VxKnvRZQm+roc8jF1a/1xhdmJ+dQRbYT8BxTUAnQAyyZsF1wzg==} + /react-router@6.26.0-pre.1(react@18.2.0): + resolution: {integrity: sha512-j9nqRS72gJV6ZcCvdUP5ryk0edSMsdzkT3fpWFLOPwkfm7Nk5qnBdMP5plK37ufVPSNpq2XT8toEDswyn0wUCg==} engines: {node: '>=14.0.0'} peerDependencies: react: '>=16.8' dependencies: - '@remix-run/router': 1.19.0-pre.0 + '@remix-run/router': 1.19.0-pre.1 react: 18.2.0 dev: false From d975f04f0e811cdddba76c87f2e2379786bdcaae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:06:37 -0400 Subject: [PATCH 17/21] chore: Update version for release (pre) (#9812) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 1 + integration/helpers/vite-cloudflare-template/package.json | 6 +++--- packages/create-remix/CHANGELOG.md | 2 ++ packages/create-remix/package.json | 2 +- packages/remix-architect/CHANGELOG.md | 7 +++++++ packages/remix-architect/package.json | 2 +- packages/remix-cloudflare-pages/CHANGELOG.md | 7 +++++++ packages/remix-cloudflare-pages/package.json | 2 +- packages/remix-cloudflare-workers/CHANGELOG.md | 7 +++++++ packages/remix-cloudflare-workers/package.json | 2 +- packages/remix-cloudflare/CHANGELOG.md | 7 +++++++ packages/remix-cloudflare/package.json | 2 +- packages/remix-css-bundle/CHANGELOG.md | 2 ++ packages/remix-css-bundle/package.json | 2 +- packages/remix-deno/CHANGELOG.md | 7 +++++++ packages/remix-deno/package.json | 2 +- packages/remix-dev/CHANGELOG.md | 8 ++++++++ packages/remix-dev/package.json | 6 +++--- packages/remix-eslint-config/CHANGELOG.md | 2 ++ packages/remix-eslint-config/package.json | 2 +- packages/remix-express/CHANGELOG.md | 7 +++++++ packages/remix-express/package.json | 2 +- packages/remix-node/CHANGELOG.md | 7 +++++++ packages/remix-node/package.json | 2 +- packages/remix-react/CHANGELOG.md | 8 ++++++++ packages/remix-react/package.json | 2 +- packages/remix-serve/CHANGELOG.md | 8 ++++++++ packages/remix-serve/package.json | 2 +- packages/remix-server-runtime/CHANGELOG.md | 2 ++ packages/remix-server-runtime/package.json | 2 +- packages/remix-testing/CHANGELOG.md | 8 ++++++++ packages/remix-testing/package.json | 2 +- packages/remix/package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 34 files changed, 115 insertions(+), 25 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 3c239f865c8..c1a6bacef80 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -30,6 +30,7 @@ "curvy-vans-remember", "happy-dots-sleep", "large-donkeys-remember", + "mighty-needles-destroy", "remove-response-stub", "silver-laws-invite", "tender-elephants-kneel", diff --git a/integration/helpers/vite-cloudflare-template/package.json b/integration/helpers/vite-cloudflare-template/package.json index 8abfd835a5b..b82b7fa5c47 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.11.0-pre.0", - "@remix-run/cloudflare-pages": "2.11.0-pre.0", - "@remix-run/react": "2.11.0-pre.0", + "@remix-run/cloudflare": "2.11.0-pre.1", + "@remix-run/cloudflare-pages": "2.11.0-pre.1", + "@remix-run/react": "2.11.0-pre.1", "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 d5d9e20d4bc..4e78d0edd2d 100644 --- a/packages/create-remix/CHANGELOG.md +++ b/packages/create-remix/CHANGELOG.md @@ -1,5 +1,7 @@ # `create-remix` +## 2.11.0-pre.1 + ## 2.11.0-pre.0 ## 2.10.3 diff --git a/packages/create-remix/package.json b/packages/create-remix/package.json index e93739aa0a0..9dd6c30f013 100644 --- a/packages/create-remix/package.json +++ b/packages/create-remix/package.json @@ -1,6 +1,6 @@ { "name": "create-remix", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "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 217ebf8d815..9180c05d72e 100644 --- a/packages/remix-architect/CHANGELOG.md +++ b/packages/remix-architect/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/architect` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Patch Changes diff --git a/packages/remix-architect/package.json b/packages/remix-architect/package.json index d58c5ce1d5b..89e508c7228 100644 --- a/packages/remix-architect/package.json +++ b/packages/remix-architect/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/architect", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "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 a5b89f9fbe9..0ad02953753 100644 --- a/packages/remix-cloudflare-pages/CHANGELOG.md +++ b/packages/remix-cloudflare-pages/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/cloudflare-pages` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/cloudflare@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Patch Changes diff --git a/packages/remix-cloudflare-pages/package.json b/packages/remix-cloudflare-pages/package.json index 3be6c73a674..c0cd9abf5e8 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.11.0-pre.0", + "version": "2.11.0-pre.1", "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 7942144cfe6..65849c109be 100644 --- a/packages/remix-cloudflare-workers/CHANGELOG.md +++ b/packages/remix-cloudflare-workers/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/cloudflare-workers` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/cloudflare@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Patch Changes diff --git a/packages/remix-cloudflare-workers/package.json b/packages/remix-cloudflare-workers/package.json index 76b7f814dbf..39f6d52911c 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.11.0-pre.0", + "version": "2.11.0-pre.1", "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 81ae0fb3d6a..eca61582419 100644 --- a/packages/remix-cloudflare/CHANGELOG.md +++ b/packages/remix-cloudflare/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/cloudflare` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Minor Changes diff --git a/packages/remix-cloudflare/package.json b/packages/remix-cloudflare/package.json index 2dbe9f412b9..4829d9c1e81 100644 --- a/packages/remix-cloudflare/package.json +++ b/packages/remix-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/cloudflare", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "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 f501eeeeb33..bb822c1044c 100644 --- a/packages/remix-css-bundle/CHANGELOG.md +++ b/packages/remix-css-bundle/CHANGELOG.md @@ -1,5 +1,7 @@ # @remix-run/css-bundle +## 2.11.0-pre.1 + ## 2.11.0-pre.0 ## 2.10.3 diff --git a/packages/remix-css-bundle/package.json b/packages/remix-css-bundle/package.json index c1511ca37cb..87fa4b3a2e5 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.11.0-pre.0", + "version": "2.11.0-pre.1", "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 07d004bd67e..2e6ccc5fe3f 100644 --- a/packages/remix-deno/CHANGELOG.md +++ b/packages/remix-deno/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/deno` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Minor Changes diff --git a/packages/remix-deno/package.json b/packages/remix-deno/package.json index 9c48e366f26..a3f7eaef713 100644 --- a/packages/remix-deno/package.json +++ b/packages/remix-deno/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/deno", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "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 a247ea490b4..df30a17d99d 100644 --- a/packages/remix-dev/CHANGELOG.md +++ b/packages/remix-dev/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/dev` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.1` + - `@remix-run/server-runtime@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Minor Changes diff --git a/packages/remix-dev/package.json b/packages/remix-dev/package.json index 0b5057b4e7f..3c33434d025 100644 --- a/packages/remix-dev/package.json +++ b/packages/remix-dev/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/dev", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "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.11.0-pre.0", - "@remix-run/serve": "^2.11.0-pre.0", + "@remix-run/react": "^2.11.0-pre.1", + "@remix-run/serve": "^2.11.0-pre.1", "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 b533807512f..99bab4c15ca 100644 --- a/packages/remix-eslint-config/CHANGELOG.md +++ b/packages/remix-eslint-config/CHANGELOG.md @@ -1,5 +1,7 @@ # `@remix-run/eslint-config` +## 2.11.0-pre.1 + ## 2.11.0-pre.0 ## 2.10.3 diff --git a/packages/remix-eslint-config/package.json b/packages/remix-eslint-config/package.json index 257b0aff2cb..1124d8cbf2c 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.11.0-pre.0", + "version": "2.11.0-pre.1", "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 363381e1fec..9afc36a8fdb 100644 --- a/packages/remix-express/CHANGELOG.md +++ b/packages/remix-express/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/express` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Patch Changes diff --git a/packages/remix-express/package.json b/packages/remix-express/package.json index 056970f7efb..4c3069f888a 100644 --- a/packages/remix-express/package.json +++ b/packages/remix-express/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/express", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "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 12b560badc9..9976294efd6 100644 --- a/packages/remix-node/CHANGELOG.md +++ b/packages/remix-node/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/node` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Minor Changes diff --git a/packages/remix-node/package.json b/packages/remix-node/package.json index 2bb762dac4f..0b52301f8b6 100644 --- a/packages/remix-node/package.json +++ b/packages/remix-node/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/node", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "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 3375c17dc5b..13400b8af0d 100644 --- a/packages/remix-react/CHANGELOG.md +++ b/packages/remix-react/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/react` +## 2.11.0-pre.1 + +### Patch Changes + +- [REMOVE] Fix typings for unstable_data and useLoaderData ([#9811](https://github.com/remix-run/remix/pull/9811)) +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Minor Changes diff --git a/packages/remix-react/package.json b/packages/remix-react/package.json index 7fac93cc3a3..7b20fc9aae1 100644 --- a/packages/remix-react/package.json +++ b/packages/remix-react/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/react", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "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 509f8f68666..5a211994fe2 100644 --- a/packages/remix-serve/CHANGELOG.md +++ b/packages/remix-serve/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/serve` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/express@2.11.0-pre.1` + - `@remix-run/node@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Patch Changes diff --git a/packages/remix-serve/package.json b/packages/remix-serve/package.json index 399f55f61aa..da069180192 100644 --- a/packages/remix-serve/package.json +++ b/packages/remix-serve/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/serve", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "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 8c3f7d56753..490f58e389b 100644 --- a/packages/remix-server-runtime/CHANGELOG.md +++ b/packages/remix-server-runtime/CHANGELOG.md @@ -1,5 +1,7 @@ # `@remix-run/server-runtime` +## 2.11.0-pre.1 + ## 2.11.0-pre.0 ### Minor Changes diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index 6ea488d5514..48737e3d988 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.11.0-pre.0", + "version": "2.11.0-pre.1", "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 5c82a120e08..802f9fe6598 100644 --- a/packages/remix-testing/CHANGELOG.md +++ b/packages/remix-testing/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/testing` +## 2.11.0-pre.1 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/react@2.11.0-pre.1` + - `@remix-run/node@2.11.0-pre.1` + ## 2.11.0-pre.0 ### Minor Changes diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index 4e571b3bad6..8a6c896cda7 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/testing", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "description": "Testing utilities for Remix apps", "homepage": "https://remix.run", "bugs": { diff --git a/packages/remix/package.json b/packages/remix/package.json index 5bd92aa4359..1f6928ed933 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "remix", - "version": "2.11.0-pre.0", + "version": "2.11.0-pre.1", "description": "A framework for building better websites", "homepage": "https://remix.run", "bugs": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4c20c39a78c..4039f179502 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.11.0-pre.0 + specifier: 2.11.0-pre.1 version: link:../../../packages/remix-cloudflare '@remix-run/cloudflare-pages': - specifier: 2.11.0-pre.0 + specifier: 2.11.0-pre.1 version: link:../../../packages/remix-cloudflare-pages '@remix-run/react': - specifier: 2.11.0-pre.0 + specifier: 2.11.0-pre.1 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.11.0-pre.0 + specifier: ^2.11.0-pre.1 version: link:../remix-react '@remix-run/router': specifier: 1.19.0-pre.1 From 05aedc31e48a86c3610c41bddfc87692047678a4 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Thu, 1 Aug 2024 09:39:06 -0400 Subject: [PATCH 18/21] Bump RR stable (#9815) --- .changeset/few-pets-try.md | 5 +++ integration/package.json | 2 +- packages/remix-dev/package.json | 2 +- packages/remix-react/package.json | 6 +-- packages/remix-server-runtime/package.json | 2 +- packages/remix-testing/package.json | 4 +- pnpm-lock.yaml | 50 +++++++++++----------- 7 files changed, 38 insertions(+), 33 deletions(-) create mode 100644 .changeset/few-pets-try.md diff --git a/.changeset/few-pets-try.md b/.changeset/few-pets-try.md new file mode 100644 index 00000000000..9acbca336a8 --- /dev/null +++ b/.changeset/few-pets-try.md @@ -0,0 +1,5 @@ +--- +"@remix-run/react": patch +--- + +Bump to RR stable diff --git a/integration/package.json b/integration/package.json index 927688ead3a..cbdae1b26a2 100644 --- a/integration/package.json +++ b/integration/package.json @@ -14,7 +14,7 @@ "@remix-run/dev": "workspace:*", "@remix-run/express": "workspace:*", "@remix-run/node": "workspace:*", - "@remix-run/router": "1.19.0-pre.1", + "@remix-run/router": "1.19.0", "@remix-run/server-runtime": "workspace:*", "@types/express": "^4.17.9", "@vanilla-extract/css": "^1.10.0", diff --git a/packages/remix-dev/package.json b/packages/remix-dev/package.json index 3c33434d025..8fbc0e23c8a 100644 --- a/packages/remix-dev/package.json +++ b/packages/remix-dev/package.json @@ -32,7 +32,7 @@ "@mdx-js/mdx": "^2.3.0", "@npmcli/package-json": "^4.0.1", "@remix-run/node": "workspace:*", - "@remix-run/router": "1.19.0-pre.1", + "@remix-run/router": "1.19.0", "@remix-run/server-runtime": "workspace:*", "@types/mdx": "^2.0.5", "@vanilla-extract/integration": "^6.2.0", diff --git a/packages/remix-react/package.json b/packages/remix-react/package.json index 7b20fc9aae1..0d394c381a2 100644 --- a/packages/remix-react/package.json +++ b/packages/remix-react/package.json @@ -19,10 +19,10 @@ "tsc": "tsc" }, "dependencies": { - "@remix-run/router": "1.19.0-pre.1", + "@remix-run/router": "1.19.0", "@remix-run/server-runtime": "workspace:*", - "react-router": "6.26.0-pre.1", - "react-router-dom": "6.26.0-pre.1", + "react-router": "6.26.0", + "react-router-dom": "6.26.0", "turbo-stream": "2.2.0" }, "devDependencies": { diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index 48737e3d988..a30ab1d52cd 100644 --- a/packages/remix-server-runtime/package.json +++ b/packages/remix-server-runtime/package.json @@ -19,7 +19,7 @@ "tsc": "tsc" }, "dependencies": { - "@remix-run/router": "1.19.0-pre.1", + "@remix-run/router": "1.19.0", "@types/cookie": "^0.6.0", "@web3-storage/multipart-parser": "^1.0.0", "cookie": "^0.6.0", diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index 8a6c896cda7..43fbabac379 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -21,8 +21,8 @@ "dependencies": { "@remix-run/node": "workspace:*", "@remix-run/react": "workspace:*", - "@remix-run/router": "1.19.0-pre.1", - "react-router-dom": "6.26.0-pre.1" + "@remix-run/router": "1.19.0", + "react-router-dom": "6.26.0" }, "devDependencies": { "@remix-run/server-runtime": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4039f179502..87487afd9d6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -323,8 +323,8 @@ importers: specifier: workspace:* version: link:../packages/remix-node '@remix-run/router': - specifier: 1.19.0-pre.1 - version: 1.19.0-pre.1 + specifier: 1.19.0 + version: 1.19.0 '@remix-run/server-runtime': specifier: workspace:* version: link:../packages/remix-server-runtime @@ -871,8 +871,8 @@ importers: specifier: ^2.11.0-pre.1 version: link:../remix-react '@remix-run/router': - specifier: 1.19.0-pre.1 - version: 1.19.0-pre.1 + specifier: 1.19.0 + version: 1.19.0 '@remix-run/server-runtime': specifier: workspace:* version: link:../remix-server-runtime @@ -1217,17 +1217,17 @@ importers: packages/remix-react: dependencies: '@remix-run/router': - specifier: 1.19.0-pre.1 - version: 1.19.0-pre.1 + specifier: 1.19.0 + version: 1.19.0 '@remix-run/server-runtime': specifier: workspace:* version: link:../remix-server-runtime react-router: - specifier: 6.26.0-pre.1 - version: 6.26.0-pre.1(react@18.2.0) + specifier: 6.26.0 + version: 6.26.0(react@18.2.0) react-router-dom: - specifier: 6.26.0-pre.1 - version: 6.26.0-pre.1(react-dom@18.2.0)(react@18.2.0) + specifier: 6.26.0 + version: 6.26.0(react-dom@18.2.0)(react@18.2.0) turbo-stream: specifier: 2.2.0 version: 2.2.0 @@ -1303,8 +1303,8 @@ importers: packages/remix-server-runtime: dependencies: '@remix-run/router': - specifier: 1.19.0-pre.1 - version: 1.19.0-pre.1 + specifier: 1.19.0 + version: 1.19.0 '@types/cookie': specifier: ^0.6.0 version: 0.6.0 @@ -1340,11 +1340,11 @@ importers: specifier: workspace:* version: link:../remix-react '@remix-run/router': - specifier: 1.19.0-pre.1 - version: 1.19.0-pre.1 + specifier: 1.19.0 + version: 1.19.0 react-router-dom: - specifier: 6.26.0-pre.1 - version: 6.26.0-pre.1(react-dom@18.2.0)(react@18.2.0) + specifier: 6.26.0 + version: 6.26.0(react-dom@18.2.0)(react@18.2.0) devDependencies: '@remix-run/server-runtime': specifier: workspace:* @@ -4201,8 +4201,8 @@ packages: - encoding dev: false - /@remix-run/router@1.19.0-pre.1: - resolution: {integrity: sha512-odV+ZH4LbnpZttNvIJ1EDXuLNHC29h+mLcbahCqZrknXonjjwLiYn1qBOFzPxn6onGs0rMJuo1qUyE/+P/jK9A==} + /@remix-run/router@1.19.0: + resolution: {integrity: sha512-zDICCLKEwbVYTS6TjYaWtHXxkdoUvD/QXvyVZjGCsWz5vyH7aFeONlPffPdW+Y/t6KT0MgXb2Mfjun9YpWN1dA==} engines: {node: '>=14.0.0'} dev: false @@ -12786,26 +12786,26 @@ packages: engines: {node: '>=0.10.0'} dev: false - /react-router-dom@6.26.0-pre.1(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-eS7OZvFd+xfWqQfuTW8IOehBof8C0s9KrSFYxlf/ixzhhFYF3AV6qdjV5J3OeUDAT+AmKuAZ8UJ37sKvNO58CQ==} + /react-router-dom@6.26.0(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-RRGUIiDtLrkX3uYcFiCIxKFWMcWQGMojpYZfcstc63A1+sSnVgILGIm9gNUA6na3Fm1QuPGSBQH2EMbAZOnMsQ==} engines: {node: '>=14.0.0'} peerDependencies: react: '>=16.8' react-dom: '>=16.8' dependencies: - '@remix-run/router': 1.19.0-pre.1 + '@remix-run/router': 1.19.0 react: 18.2.0 react-dom: 18.2.0(react@18.2.0) - react-router: 6.26.0-pre.1(react@18.2.0) + react-router: 6.26.0(react@18.2.0) dev: false - /react-router@6.26.0-pre.1(react@18.2.0): - resolution: {integrity: sha512-j9nqRS72gJV6ZcCvdUP5ryk0edSMsdzkT3fpWFLOPwkfm7Nk5qnBdMP5plK37ufVPSNpq2XT8toEDswyn0wUCg==} + /react-router@6.26.0(react@18.2.0): + resolution: {integrity: sha512-wVQq0/iFYd3iZ9H2l3N3k4PL8EEHcb0XlU2Na8nEwmiXgIUElEH6gaJDtUQxJ+JFzmIXaQjfdpcGWaM6IoQGxg==} engines: {node: '>=14.0.0'} peerDependencies: react: '>=16.8' dependencies: - '@remix-run/router': 1.19.0-pre.1 + '@remix-run/router': 1.19.0 react: 18.2.0 dev: false From f5e350cf23e3bb43a446f68ffa9a6d759602ea1c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 15:30:53 -0400 Subject: [PATCH 19/21] chore: Update version for release (pre) (#9816) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 1 + integration/helpers/vite-cloudflare-template/package.json | 6 +++--- packages/create-remix/CHANGELOG.md | 2 ++ packages/create-remix/package.json | 2 +- packages/remix-architect/CHANGELOG.md | 7 +++++++ packages/remix-architect/package.json | 2 +- packages/remix-cloudflare-pages/CHANGELOG.md | 7 +++++++ packages/remix-cloudflare-pages/package.json | 2 +- packages/remix-cloudflare-workers/CHANGELOG.md | 7 +++++++ packages/remix-cloudflare-workers/package.json | 2 +- packages/remix-cloudflare/CHANGELOG.md | 7 +++++++ packages/remix-cloudflare/package.json | 2 +- packages/remix-css-bundle/CHANGELOG.md | 2 ++ packages/remix-css-bundle/package.json | 2 +- packages/remix-deno/CHANGELOG.md | 7 +++++++ packages/remix-deno/package.json | 2 +- packages/remix-dev/CHANGELOG.md | 8 ++++++++ packages/remix-dev/package.json | 6 +++--- packages/remix-eslint-config/CHANGELOG.md | 2 ++ packages/remix-eslint-config/package.json | 2 +- packages/remix-express/CHANGELOG.md | 7 +++++++ packages/remix-express/package.json | 2 +- packages/remix-node/CHANGELOG.md | 7 +++++++ packages/remix-node/package.json | 2 +- packages/remix-react/CHANGELOG.md | 8 ++++++++ packages/remix-react/package.json | 2 +- packages/remix-serve/CHANGELOG.md | 8 ++++++++ packages/remix-serve/package.json | 2 +- packages/remix-server-runtime/CHANGELOG.md | 2 ++ packages/remix-server-runtime/package.json | 2 +- packages/remix-testing/CHANGELOG.md | 8 ++++++++ packages/remix-testing/package.json | 2 +- packages/remix/package.json | 2 +- pnpm-lock.yaml | 8 ++++---- 34 files changed, 115 insertions(+), 25 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index c1a6bacef80..05c9b6aede6 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -28,6 +28,7 @@ "changesets": [ "add-unstable-data", "curvy-vans-remember", + "few-pets-try", "happy-dots-sleep", "large-donkeys-remember", "mighty-needles-destroy", diff --git a/integration/helpers/vite-cloudflare-template/package.json b/integration/helpers/vite-cloudflare-template/package.json index b82b7fa5c47..576ecf2e76a 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.11.0-pre.1", - "@remix-run/cloudflare-pages": "2.11.0-pre.1", - "@remix-run/react": "2.11.0-pre.1", + "@remix-run/cloudflare": "2.11.0-pre.2", + "@remix-run/cloudflare-pages": "2.11.0-pre.2", + "@remix-run/react": "2.11.0-pre.2", "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 4e78d0edd2d..ccdee6f18b7 100644 --- a/packages/create-remix/CHANGELOG.md +++ b/packages/create-remix/CHANGELOG.md @@ -1,5 +1,7 @@ # `create-remix` +## 2.11.0-pre.2 + ## 2.11.0-pre.1 ## 2.11.0-pre.0 diff --git a/packages/create-remix/package.json b/packages/create-remix/package.json index 9dd6c30f013..d65889eee03 100644 --- a/packages/create-remix/package.json +++ b/packages/create-remix/package.json @@ -1,6 +1,6 @@ { "name": "create-remix", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "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 9180c05d72e..f56e3e8f0fd 100644 --- a/packages/remix-architect/CHANGELOG.md +++ b/packages/remix-architect/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/architect` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-architect/package.json b/packages/remix-architect/package.json index 89e508c7228..6b5c14ba4fd 100644 --- a/packages/remix-architect/package.json +++ b/packages/remix-architect/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/architect", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "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 0ad02953753..14201f1beb9 100644 --- a/packages/remix-cloudflare-pages/CHANGELOG.md +++ b/packages/remix-cloudflare-pages/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/cloudflare-pages` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/cloudflare@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-cloudflare-pages/package.json b/packages/remix-cloudflare-pages/package.json index c0cd9abf5e8..538f211b4f4 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.11.0-pre.1", + "version": "2.11.0-pre.2", "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 65849c109be..9e9b18a240e 100644 --- a/packages/remix-cloudflare-workers/CHANGELOG.md +++ b/packages/remix-cloudflare-workers/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/cloudflare-workers` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/cloudflare@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-cloudflare-workers/package.json b/packages/remix-cloudflare-workers/package.json index 39f6d52911c..88d34936af8 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.11.0-pre.1", + "version": "2.11.0-pre.2", "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 eca61582419..9a649b036f2 100644 --- a/packages/remix-cloudflare/CHANGELOG.md +++ b/packages/remix-cloudflare/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/cloudflare` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-cloudflare/package.json b/packages/remix-cloudflare/package.json index 4829d9c1e81..1a8ff76e702 100644 --- a/packages/remix-cloudflare/package.json +++ b/packages/remix-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/cloudflare", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "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 bb822c1044c..00853efa0a4 100644 --- a/packages/remix-css-bundle/CHANGELOG.md +++ b/packages/remix-css-bundle/CHANGELOG.md @@ -1,5 +1,7 @@ # @remix-run/css-bundle +## 2.11.0-pre.2 + ## 2.11.0-pre.1 ## 2.11.0-pre.0 diff --git a/packages/remix-css-bundle/package.json b/packages/remix-css-bundle/package.json index 87fa4b3a2e5..c5612470881 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.11.0-pre.1", + "version": "2.11.0-pre.2", "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 2e6ccc5fe3f..49bc346a1c4 100644 --- a/packages/remix-deno/CHANGELOG.md +++ b/packages/remix-deno/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/deno` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-deno/package.json b/packages/remix-deno/package.json index a3f7eaef713..f67d70fa4b0 100644 --- a/packages/remix-deno/package.json +++ b/packages/remix-deno/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/deno", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "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 df30a17d99d..880539cea5b 100644 --- a/packages/remix-dev/CHANGELOG.md +++ b/packages/remix-dev/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/dev` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.2` + - `@remix-run/server-runtime@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-dev/package.json b/packages/remix-dev/package.json index 8fbc0e23c8a..ad6c1369215 100644 --- a/packages/remix-dev/package.json +++ b/packages/remix-dev/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/dev", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "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.11.0-pre.1", - "@remix-run/serve": "^2.11.0-pre.1", + "@remix-run/react": "^2.11.0-pre.2", + "@remix-run/serve": "^2.11.0-pre.2", "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 99bab4c15ca..700c6daa18e 100644 --- a/packages/remix-eslint-config/CHANGELOG.md +++ b/packages/remix-eslint-config/CHANGELOG.md @@ -1,5 +1,7 @@ # `@remix-run/eslint-config` +## 2.11.0-pre.2 + ## 2.11.0-pre.1 ## 2.11.0-pre.0 diff --git a/packages/remix-eslint-config/package.json b/packages/remix-eslint-config/package.json index 1124d8cbf2c..61a315d206a 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.11.0-pre.1", + "version": "2.11.0-pre.2", "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 9afc36a8fdb..4e6818d78f3 100644 --- a/packages/remix-express/CHANGELOG.md +++ b/packages/remix-express/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/express` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-express/package.json b/packages/remix-express/package.json index 4c3069f888a..a19146b57fe 100644 --- a/packages/remix-express/package.json +++ b/packages/remix-express/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/express", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "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 9976294efd6..1619298c1b9 100644 --- a/packages/remix-node/CHANGELOG.md +++ b/packages/remix-node/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/node` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-node/package.json b/packages/remix-node/package.json index 0b52301f8b6..cd0f0fdded2 100644 --- a/packages/remix-node/package.json +++ b/packages/remix-node/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/node", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "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 13400b8af0d..ebee8c88f88 100644 --- a/packages/remix-react/CHANGELOG.md +++ b/packages/remix-react/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/react` +## 2.11.0-pre.2 + +### Patch Changes + +- Bump to RR stable ([#9815](https://github.com/remix-run/remix/pull/9815)) +- Updated dependencies: + - `@remix-run/server-runtime@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-react/package.json b/packages/remix-react/package.json index 0d394c381a2..d857c3396f1 100644 --- a/packages/remix-react/package.json +++ b/packages/remix-react/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/react", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "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 5a211994fe2..a1156ad362c 100644 --- a/packages/remix-serve/CHANGELOG.md +++ b/packages/remix-serve/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/serve` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/express@2.11.0-pre.2` + - `@remix-run/node@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-serve/package.json b/packages/remix-serve/package.json index da069180192..ffffc306706 100644 --- a/packages/remix-serve/package.json +++ b/packages/remix-serve/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/serve", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "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 490f58e389b..482bd70c0ab 100644 --- a/packages/remix-server-runtime/CHANGELOG.md +++ b/packages/remix-server-runtime/CHANGELOG.md @@ -1,5 +1,7 @@ # `@remix-run/server-runtime` +## 2.11.0-pre.2 + ## 2.11.0-pre.1 ## 2.11.0-pre.0 diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index a30ab1d52cd..5db1a7f3d2e 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.11.0-pre.1", + "version": "2.11.0-pre.2", "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 802f9fe6598..2031c86c08c 100644 --- a/packages/remix-testing/CHANGELOG.md +++ b/packages/remix-testing/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/testing` +## 2.11.0-pre.2 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/react@2.11.0-pre.2` + - `@remix-run/node@2.11.0-pre.2` + ## 2.11.0-pre.1 ### Patch Changes diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index 43fbabac379..41daecd9fa6 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/testing", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "description": "Testing utilities for Remix apps", "homepage": "https://remix.run", "bugs": { diff --git a/packages/remix/package.json b/packages/remix/package.json index 1f6928ed933..725e21c3f5c 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "remix", - "version": "2.11.0-pre.1", + "version": "2.11.0-pre.2", "description": "A framework for building better websites", "homepage": "https://remix.run", "bugs": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 87487afd9d6..c8f43c26211 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.11.0-pre.1 + specifier: 2.11.0-pre.2 version: link:../../../packages/remix-cloudflare '@remix-run/cloudflare-pages': - specifier: 2.11.0-pre.1 + specifier: 2.11.0-pre.2 version: link:../../../packages/remix-cloudflare-pages '@remix-run/react': - specifier: 2.11.0-pre.1 + specifier: 2.11.0-pre.2 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.11.0-pre.1 + specifier: ^2.11.0-pre.2 version: link:../remix-react '@remix-run/router': specifier: 1.19.0 From c89bd423d5e23afbaa89abb13a7f629c182d126a Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Thu, 1 Aug 2024 15:39:23 -0400 Subject: [PATCH 20/21] Exit prerelease mode --- .changeset/pre.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 05c9b6aede6..fe3856d7cec 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -1,5 +1,5 @@ { - "mode": "pre", + "mode": "exit", "tag": "pre", "initialVersions": { "integration": "0.0.0", From 63c138588e6b7930b57f9c86fc3fa833e17c8a0c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:35:12 -0400 Subject: [PATCH 21/21] chore: Update version for release (#9817) Co-authored-by: github-actions[bot] Co-authored-by: Matt Brophy --- .changeset/add-unstable-data.md | 9 ----- .changeset/curvy-vans-remember.md | 9 ----- .changeset/few-pets-try.md | 5 --- .changeset/happy-dots-sleep.md | 8 ---- .changeset/large-donkeys-remember.md | 5 --- .changeset/mighty-needles-destroy.md | 5 --- .changeset/pre.json | 40 ------------------- .changeset/remove-response-stub.md | 25 ------------ .changeset/silver-laws-invite.md | 5 --- .changeset/tender-elephants-kneel.md | 6 --- .changeset/vite-absolute-base.md | 5 --- CHANGELOG.md | 2 +- .../vite-cloudflare-template/package.json | 6 +-- packages/create-remix/CHANGELOG.md | 6 +-- packages/create-remix/package.json | 2 +- packages/remix-architect/CHANGELOG.md | 18 +-------- packages/remix-architect/package.json | 2 +- packages/remix-cloudflare-pages/CHANGELOG.md | 18 +-------- packages/remix-cloudflare-pages/package.json | 2 +- .../remix-cloudflare-workers/CHANGELOG.md | 18 +-------- .../remix-cloudflare-workers/package.json | 2 +- packages/remix-cloudflare/CHANGELOG.md | 20 ++-------- packages/remix-cloudflare/package.json | 2 +- packages/remix-css-bundle/CHANGELOG.md | 6 +-- packages/remix-css-bundle/package.json | 2 +- packages/remix-deno/CHANGELOG.md | 20 ++-------- packages/remix-deno/package.json | 2 +- packages/remix-dev/CHANGELOG.md | 24 ++--------- packages/remix-dev/package.json | 6 +-- packages/remix-eslint-config/CHANGELOG.md | 6 +-- packages/remix-eslint-config/package.json | 2 +- packages/remix-express/CHANGELOG.md | 18 +-------- packages/remix-express/package.json | 2 +- packages/remix-node/CHANGELOG.md | 20 ++-------- packages/remix-node/package.json | 2 +- packages/remix-react/CHANGELOG.md | 24 ++--------- packages/remix-react/package.json | 2 +- packages/remix-serve/CHANGELOG.md | 22 ++-------- packages/remix-serve/package.json | 2 +- packages/remix-server-runtime/CHANGELOG.md | 8 +--- packages/remix-server-runtime/package.json | 2 +- packages/remix-testing/CHANGELOG.md | 22 ++-------- packages/remix-testing/package.json | 2 +- packages/remix/package.json | 2 +- pnpm-lock.yaml | 8 ++-- 45 files changed, 64 insertions(+), 360 deletions(-) delete mode 100644 .changeset/add-unstable-data.md delete mode 100644 .changeset/curvy-vans-remember.md delete mode 100644 .changeset/few-pets-try.md delete mode 100644 .changeset/happy-dots-sleep.md delete mode 100644 .changeset/large-donkeys-remember.md delete mode 100644 .changeset/mighty-needles-destroy.md delete mode 100644 .changeset/pre.json delete mode 100644 .changeset/remove-response-stub.md delete mode 100644 .changeset/silver-laws-invite.md delete mode 100644 .changeset/tender-elephants-kneel.md delete mode 100644 .changeset/vite-absolute-base.md diff --git a/.changeset/add-unstable-data.md b/.changeset/add-unstable-data.md deleted file mode 100644 index f3e76f2dbf9..00000000000 --- a/.changeset/add-unstable-data.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@remix-run/cloudflare": minor -"@remix-run/deno": minor -"@remix-run/node": minor -"@remix-run/react": minor -"@remix-run/server-runtime": minor ---- - -Single Fetch: Add a new `unstable_data()` API as a replacement for `json`/`defer` when custom `status`/`headers` are needed diff --git a/.changeset/curvy-vans-remember.md b/.changeset/curvy-vans-remember.md deleted file mode 100644 index 9ce451a7ae6..00000000000 --- a/.changeset/curvy-vans-remember.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@remix-run/cloudflare": minor -"@remix-run/deno": minor -"@remix-run/node": minor -"@remix-run/react": minor -"@remix-run/server-runtime": minor ---- - -Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects diff --git a/.changeset/few-pets-try.md b/.changeset/few-pets-try.md deleted file mode 100644 index 9acbca336a8..00000000000 --- a/.changeset/few-pets-try.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -Bump to RR stable diff --git a/.changeset/happy-dots-sleep.md b/.changeset/happy-dots-sleep.md deleted file mode 100644 index 240fe64b436..00000000000 --- a/.changeset/happy-dots-sleep.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@remix-run/dev": minor -"@remix-run/react": minor -"@remix-run/server-runtime": minor -"@remix-run/testing": minor ---- - -Rename `future.unstable_fogOfWar` to `future.unstable_lazyRouteDiscovery` for clarity diff --git a/.changeset/large-donkeys-remember.md b/.changeset/large-donkeys-remember.md deleted file mode 100644 index 269d89407b7..00000000000 --- a/.changeset/large-donkeys-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -Single Fetch: Ensure calls don't include any trailing slash from the pathname (i.e., `/path/.data`) diff --git a/.changeset/mighty-needles-destroy.md b/.changeset/mighty-needles-destroy.md deleted file mode 100644 index d40d3b8a95c..00000000000 --- a/.changeset/mighty-needles-destroy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -[REMOVE] Fix typings for unstable_data and useLoaderData diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index fe3856d7cec..00000000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,40 +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.10.3", - "remix": "2.10.3", - "@remix-run/architect": "2.10.3", - "@remix-run/cloudflare": "2.10.3", - "@remix-run/cloudflare-pages": "2.10.3", - "@remix-run/cloudflare-workers": "2.10.3", - "@remix-run/css-bundle": "2.10.3", - "@remix-run/deno": "2.10.3", - "@remix-run/dev": "2.10.3", - "@remix-run/eslint-config": "2.10.3", - "@remix-run/express": "2.10.3", - "@remix-run/node": "2.10.3", - "@remix-run/react": "2.10.3", - "@remix-run/serve": "2.10.3", - "@remix-run/server-runtime": "2.10.3", - "@remix-run/testing": "2.10.3" - }, - "changesets": [ - "add-unstable-data", - "curvy-vans-remember", - "few-pets-try", - "happy-dots-sleep", - "large-donkeys-remember", - "mighty-needles-destroy", - "remove-response-stub", - "silver-laws-invite", - "tender-elephants-kneel", - "vite-absolute-base" - ] -} diff --git a/.changeset/remove-response-stub.md b/.changeset/remove-response-stub.md deleted file mode 100644 index ae1d0347c77..00000000000 --- a/.changeset/remove-response-stub.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -"@remix-run/server-runtime": minor -"@remix-run/react": minor ---- - -Single Fetch: Remove `responseStub` in favor of `headers` - -- Background - - - The original Single Fetch approach was based on an assumption that an eventual `middleware` implementation would require something like `ResponseStub` so users could mutate `status`/`headers` in `middleware` before/after handlers as well as during handlers - - We wanted to align how `headers` got merged between document and data requests - - So we made document requests also use `ResponseStub` and removed the usage of `headers` in Single Fetch - - The realization/alignment between Michael and Ryan on the recent [roadmap planning](https://www.youtube.com/watch?v=f5z_axCofW0) made us realize that the original assumption was incorrect - - `middleware` won't need a stub - users can just mutate the `Response` they get from `await next()` directly - - With that gone, and still wanting to align how `headers` get merged, it makes more sense to stick with the current `headers` API and apply that to Single Fetch and avoid introducing a totally new thing in `RepsonseStub` (that always felt a bit awkward to work with anyway) - -- With this change: - - You are encouraged to stop returning `Response` instances in favor of returning raw data from loaders and actions: - - ~~`return json({ data: whatever });`~~ - - `return { data: whatever };` - - In most cases, you can remove your `json()` and `defer()` calls in favor of returning raw data if they weren't setting custom `status`/`headers` - - We will be removing both `json` and `defer` in the next major version, but both _should_ still work in Single Fetch in v2 to allow for incremental adoption of the new behavior - - If you need custom `status`/`headers`: - - We've added a new `unstable_data({...}, responseInit)` utility that will let you send back `status`/`headers` alongside your raw data without having to encode it into a `Response` - - The `headers()` function will let you control header merging for both document and data requests diff --git a/.changeset/silver-laws-invite.md b/.changeset/silver-laws-invite.md deleted file mode 100644 index 70218a39213..00000000000 --- a/.changeset/silver-laws-invite.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/react": patch ---- - -Single Fetch: Add `undefined` to the `useRouteLoaderData` type override diff --git a/.changeset/tender-elephants-kneel.md b/.changeset/tender-elephants-kneel.md deleted file mode 100644 index ecb035aeea6..00000000000 --- a/.changeset/tender-elephants-kneel.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@remix-run/react": patch -"@remix-run/server-runtime": patch ---- - -Change initial hydration route mismatch from a URL check to a matches check to be resistant to URL inconsistencies diff --git a/.changeset/vite-absolute-base.md b/.changeset/vite-absolute-base.md deleted file mode 100644 index 0f4de5c0bce..00000000000 --- a/.changeset/vite-absolute-base.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@remix-run/dev": patch ---- - -Handle absolute Vite base URLs diff --git a/CHANGELOG.md b/CHANGELOG.md index a3fe7a417e4..108a8504fd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -204,7 +204,7 @@ Date: YYYY-MM-DD ## v2.11.0 -Date: 2024-07-31 +Date: 2024-08-01 ### What's Changed diff --git a/integration/helpers/vite-cloudflare-template/package.json b/integration/helpers/vite-cloudflare-template/package.json index 576ecf2e76a..b8139569e00 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.11.0-pre.2", - "@remix-run/cloudflare-pages": "2.11.0-pre.2", - "@remix-run/react": "2.11.0-pre.2", + "@remix-run/cloudflare": "2.11.0", + "@remix-run/cloudflare-pages": "2.11.0", + "@remix-run/react": "2.11.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 ccdee6f18b7..5152023c08b 100644 --- a/packages/create-remix/CHANGELOG.md +++ b/packages/create-remix/CHANGELOG.md @@ -1,10 +1,8 @@ # `create-remix` -## 2.11.0-pre.2 +## 2.11.0 -## 2.11.0-pre.1 - -## 2.11.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.11.0. ## 2.10.3 diff --git a/packages/create-remix/package.json b/packages/create-remix/package.json index d65889eee03..bb23cb856e8 100644 --- a/packages/create-remix/package.json +++ b/packages/create-remix/package.json @@ -1,6 +1,6 @@ { "name": "create-remix", - "version": "2.11.0-pre.2", + "version": "2.11.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 f56e3e8f0fd..713b48e5839 100644 --- a/packages/remix-architect/CHANGELOG.md +++ b/packages/remix-architect/CHANGELOG.md @@ -1,25 +1,11 @@ # `@remix-run/architect` -## 2.11.0-pre.2 +## 2.11.0 ### Patch Changes - Updated dependencies: - - `@remix-run/node@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.11.0-pre.1` - -## 2.11.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.11.0-pre.0` + - `@remix-run/node@2.11.0` ## 2.10.3 diff --git a/packages/remix-architect/package.json b/packages/remix-architect/package.json index 6b5c14ba4fd..1a6f9613bb9 100644 --- a/packages/remix-architect/package.json +++ b/packages/remix-architect/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/architect", - "version": "2.11.0-pre.2", + "version": "2.11.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 14201f1beb9..02c03f650e9 100644 --- a/packages/remix-cloudflare-pages/CHANGELOG.md +++ b/packages/remix-cloudflare-pages/CHANGELOG.md @@ -1,25 +1,11 @@ # `@remix-run/cloudflare-pages` -## 2.11.0-pre.2 +## 2.11.0 ### Patch Changes - Updated dependencies: - - `@remix-run/cloudflare@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.11.0-pre.1` - -## 2.11.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.11.0-pre.0` + - `@remix-run/cloudflare@2.11.0` ## 2.10.3 diff --git a/packages/remix-cloudflare-pages/package.json b/packages/remix-cloudflare-pages/package.json index 538f211b4f4..ab62b83db6e 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.11.0-pre.2", + "version": "2.11.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 9e9b18a240e..308c903ee8f 100644 --- a/packages/remix-cloudflare-workers/CHANGELOG.md +++ b/packages/remix-cloudflare-workers/CHANGELOG.md @@ -1,25 +1,11 @@ # `@remix-run/cloudflare-workers` -## 2.11.0-pre.2 +## 2.11.0 ### Patch Changes - Updated dependencies: - - `@remix-run/cloudflare@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.11.0-pre.1` - -## 2.11.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/cloudflare@2.11.0-pre.0` + - `@remix-run/cloudflare@2.11.0` ## 2.10.3 diff --git a/packages/remix-cloudflare-workers/package.json b/packages/remix-cloudflare-workers/package.json index 88d34936af8..8b80e50931e 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.11.0-pre.2", + "version": "2.11.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 9a649b036f2..0ffb761cf47 100644 --- a/packages/remix-cloudflare/CHANGELOG.md +++ b/packages/remix-cloudflare/CHANGELOG.md @@ -1,30 +1,16 @@ # `@remix-run/cloudflare` -## 2.11.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.1` - -## 2.11.0-pre.0 +## 2.11.0 ### Minor Changes -- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Single Fetch: Add a new `unstable_data()` API as a replacement for `json`/`defer` when custom `status`/`headers` are needed ([#9769](https://github.com/remix-run/remix/pull/9769)) - Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) ### Patch Changes - Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.0` + - `@remix-run/server-runtime@2.11.0` ## 2.10.3 diff --git a/packages/remix-cloudflare/package.json b/packages/remix-cloudflare/package.json index 1a8ff76e702..795bc1a1f20 100644 --- a/packages/remix-cloudflare/package.json +++ b/packages/remix-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/cloudflare", - "version": "2.11.0-pre.2", + "version": "2.11.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 00853efa0a4..750b0f6cd21 100644 --- a/packages/remix-css-bundle/CHANGELOG.md +++ b/packages/remix-css-bundle/CHANGELOG.md @@ -1,10 +1,8 @@ # @remix-run/css-bundle -## 2.11.0-pre.2 +## 2.11.0 -## 2.11.0-pre.1 - -## 2.11.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.11.0. ## 2.10.3 diff --git a/packages/remix-css-bundle/package.json b/packages/remix-css-bundle/package.json index c5612470881..2e1e015aeb6 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.11.0-pre.2", + "version": "2.11.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 49bc346a1c4..0f64f871425 100644 --- a/packages/remix-deno/CHANGELOG.md +++ b/packages/remix-deno/CHANGELOG.md @@ -1,30 +1,16 @@ # `@remix-run/deno` -## 2.11.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.1` - -## 2.11.0-pre.0 +## 2.11.0 ### Minor Changes -- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Single Fetch: Add a new `unstable_data()` API as a replacement for `json`/`defer` when custom `status`/`headers` are needed ([#9769](https://github.com/remix-run/remix/pull/9769)) - Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) ### Patch Changes - Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.0` + - `@remix-run/server-runtime@2.11.0` ## 2.10.3 diff --git a/packages/remix-deno/package.json b/packages/remix-deno/package.json index f67d70fa4b0..3deec6e9e28 100644 --- a/packages/remix-deno/package.json +++ b/packages/remix-deno/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/deno", - "version": "2.11.0-pre.2", + "version": "2.11.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 880539cea5b..3cbba82a67b 100644 --- a/packages/remix-dev/CHANGELOG.md +++ b/packages/remix-dev/CHANGELOG.md @@ -1,22 +1,6 @@ # `@remix-run/dev` -## 2.11.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.11.0-pre.2` - - `@remix-run/server-runtime@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.11.0-pre.1` - - `@remix-run/server-runtime@2.11.0-pre.1` - -## 2.11.0-pre.0 +## 2.11.0 ### Minor Changes @@ -26,10 +10,8 @@ - Handle absolute Vite base URLs ([#9700](https://github.com/remix-run/remix/pull/9700)) - Updated dependencies: - - `@remix-run/node@2.11.0-pre.0` - - `@remix-run/react@2.11.0-pre.0` - - `@remix-run/server-runtime@2.11.0-pre.0` - - `@remix-run/serve@2.11.0-pre.0` + - `@remix-run/node@2.11.0` + - `@remix-run/server-runtime@2.11.0` ## 2.10.3 diff --git a/packages/remix-dev/package.json b/packages/remix-dev/package.json index ad6c1369215..6aa137844db 100644 --- a/packages/remix-dev/package.json +++ b/packages/remix-dev/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/dev", - "version": "2.11.0-pre.2", + "version": "2.11.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.11.0-pre.2", - "@remix-run/serve": "^2.11.0-pre.2", + "@remix-run/react": "^2.11.0", + "@remix-run/serve": "^2.11.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 700c6daa18e..101f52287e4 100644 --- a/packages/remix-eslint-config/CHANGELOG.md +++ b/packages/remix-eslint-config/CHANGELOG.md @@ -1,10 +1,8 @@ # `@remix-run/eslint-config` -## 2.11.0-pre.2 +## 2.11.0 -## 2.11.0-pre.1 - -## 2.11.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.11.0. ## 2.10.3 diff --git a/packages/remix-eslint-config/package.json b/packages/remix-eslint-config/package.json index 61a315d206a..4aa08433050 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.11.0-pre.2", + "version": "2.11.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 4e6818d78f3..e50d468c268 100644 --- a/packages/remix-express/CHANGELOG.md +++ b/packages/remix-express/CHANGELOG.md @@ -1,25 +1,11 @@ # `@remix-run/express` -## 2.11.0-pre.2 +## 2.11.0 ### Patch Changes - Updated dependencies: - - `@remix-run/node@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.11.0-pre.1` - -## 2.11.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.11.0-pre.0` + - `@remix-run/node@2.11.0` ## 2.10.3 diff --git a/packages/remix-express/package.json b/packages/remix-express/package.json index a19146b57fe..1e6ab65af16 100644 --- a/packages/remix-express/package.json +++ b/packages/remix-express/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/express", - "version": "2.11.0-pre.2", + "version": "2.11.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 1619298c1b9..4c033a6d58d 100644 --- a/packages/remix-node/CHANGELOG.md +++ b/packages/remix-node/CHANGELOG.md @@ -1,30 +1,16 @@ # `@remix-run/node` -## 2.11.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.1` - -## 2.11.0-pre.0 +## 2.11.0 ### Minor Changes -- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Single Fetch: Add a new `unstable_data()` API as a replacement for `json`/`defer` when custom `status`/`headers` are needed ([#9769](https://github.com/remix-run/remix/pull/9769)) - Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) ### Patch Changes - Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.0` + - `@remix-run/server-runtime@2.11.0` ## 2.10.3 diff --git a/packages/remix-node/package.json b/packages/remix-node/package.json index cd0f0fdded2..974291ce3d5 100644 --- a/packages/remix-node/package.json +++ b/packages/remix-node/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/node", - "version": "2.11.0-pre.2", + "version": "2.11.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 ebee8c88f88..a06c685aa4a 100644 --- a/packages/remix-react/CHANGELOG.md +++ b/packages/remix-react/CHANGELOG.md @@ -1,26 +1,10 @@ # `@remix-run/react` -## 2.11.0-pre.2 - -### Patch Changes - -- Bump to RR stable ([#9815](https://github.com/remix-run/remix/pull/9815)) -- Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- [REMOVE] Fix typings for unstable_data and useLoaderData ([#9811](https://github.com/remix-run/remix/pull/9811)) -- Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.1` - -## 2.11.0-pre.0 +## 2.11.0 ### Minor Changes -- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Single Fetch: Add a new `unstable_data()` API as a replacement for `json`/`defer` when custom `status`/`headers` are needed ([#9769](https://github.com/remix-run/remix/pull/9769)) - Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) - Rename `future.unstable_fogOfWar` to `future.unstable_lazyRouteDiscovery` for clarity ([#9763](https://github.com/remix-run/remix/pull/9763)) - Single Fetch: Remove `responseStub` in favor of `headers` ([#9769](https://github.com/remix-run/remix/pull/9769)) @@ -46,11 +30,11 @@ ### Patch Changes -- Ensure single fetch calls don't include any trailing slash from the pathname (i.e., /path/.data) ([#9792](https://github.com/remix-run/remix/pull/9792)) +- Single Fetch: Ensure calls don't include any trailing slash from the pathname (i.e., `/path/.data`) ([#9792](https://github.com/remix-run/remix/pull/9792)) - Single Fetch: Add `undefined` to the `useRouteLoaderData` type override ([#9796](https://github.com/remix-run/remix/pull/9796)) - Change initial hydration route mismatch from a URL check to a matches check to be resistant to URL inconsistencies ([#9695](https://github.com/remix-run/remix/pull/9695)) - Updated dependencies: - - `@remix-run/server-runtime@2.11.0-pre.0` + - `@remix-run/server-runtime@2.11.0` ## 2.10.3 diff --git a/packages/remix-react/package.json b/packages/remix-react/package.json index d857c3396f1..bb85e8d6c4e 100644 --- a/packages/remix-react/package.json +++ b/packages/remix-react/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/react", - "version": "2.11.0-pre.2", + "version": "2.11.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 a1156ad362c..c2830d6e712 100644 --- a/packages/remix-serve/CHANGELOG.md +++ b/packages/remix-serve/CHANGELOG.md @@ -1,28 +1,12 @@ # `@remix-run/serve` -## 2.11.0-pre.2 +## 2.11.0 ### Patch Changes - Updated dependencies: - - `@remix-run/express@2.11.0-pre.2` - - `@remix-run/node@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/express@2.11.0-pre.1` - - `@remix-run/node@2.11.0-pre.1` - -## 2.11.0-pre.0 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/node@2.11.0-pre.0` - - `@remix-run/express@2.11.0-pre.0` + - `@remix-run/node@2.11.0` + - `@remix-run/express@2.11.0` ## 2.10.3 diff --git a/packages/remix-serve/package.json b/packages/remix-serve/package.json index ffffc306706..b3a97134bed 100644 --- a/packages/remix-serve/package.json +++ b/packages/remix-serve/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/serve", - "version": "2.11.0-pre.2", + "version": "2.11.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 482bd70c0ab..283ecfaf74a 100644 --- a/packages/remix-server-runtime/CHANGELOG.md +++ b/packages/remix-server-runtime/CHANGELOG.md @@ -1,14 +1,10 @@ # `@remix-run/server-runtime` -## 2.11.0-pre.2 - -## 2.11.0-pre.1 - -## 2.11.0-pre.0 +## 2.11.0 ### Minor Changes -- Add a new `unstable_data()` API for usage with Remix Single Fetch ([#9769](https://github.com/remix-run/remix/pull/9769)) +- Single Fetch: Add a new `unstable_data()` API as a replacement for `json`/`defer` when custom `status`/`headers` are needed ([#9769](https://github.com/remix-run/remix/pull/9769)) - Add a new `replace(url, init?)` alternative to `redirect(url, init?)` that performs a `history.replaceState` instead of a `history.pushState` on client-side navigation redirects ([#9764](https://github.com/remix-run/remix/pull/9764)) - Rename `future.unstable_fogOfWar` to `future.unstable_lazyRouteDiscovery` for clarity ([#9763](https://github.com/remix-run/remix/pull/9763)) - Single Fetch: Remove `responseStub` in favor of `headers` ([#9769](https://github.com/remix-run/remix/pull/9769)) diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index 5db1a7f3d2e..858bf8f7cc3 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.11.0-pre.2", + "version": "2.11.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 2031c86c08c..7d957c34c61 100644 --- a/packages/remix-testing/CHANGELOG.md +++ b/packages/remix-testing/CHANGELOG.md @@ -1,22 +1,6 @@ # `@remix-run/testing` -## 2.11.0-pre.2 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/react@2.11.0-pre.2` - - `@remix-run/node@2.11.0-pre.2` - -## 2.11.0-pre.1 - -### Patch Changes - -- Updated dependencies: - - `@remix-run/react@2.11.0-pre.1` - - `@remix-run/node@2.11.0-pre.1` - -## 2.11.0-pre.0 +## 2.11.0 ### Minor Changes @@ -25,8 +9,8 @@ ### Patch Changes - Updated dependencies: - - `@remix-run/node@2.11.0-pre.0` - - `@remix-run/react@2.11.0-pre.0` + - `@remix-run/node@2.11.0` + - `@remix-run/react@2.11.0` ## 2.10.3 diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index 41daecd9fa6..c319c468beb 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/testing", - "version": "2.11.0-pre.2", + "version": "2.11.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 725e21c3f5c..98299b21d80 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "remix", - "version": "2.11.0-pre.2", + "version": "2.11.0", "description": "A framework for building better websites", "homepage": "https://remix.run", "bugs": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c8f43c26211..8a71b8096b4 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.11.0-pre.2 + specifier: 2.11.0 version: link:../../../packages/remix-cloudflare '@remix-run/cloudflare-pages': - specifier: 2.11.0-pre.2 + specifier: 2.11.0 version: link:../../../packages/remix-cloudflare-pages '@remix-run/react': - specifier: 2.11.0-pre.2 + specifier: 2.11.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.11.0-pre.2 + specifier: ^2.11.0 version: link:../remix-react '@remix-run/router': specifier: 1.19.0