From 686e20d047c929528421e4938e2c90dc6ee9a4a7 Mon Sep 17 00:00:00 2001 From: Logan McAnsh Date: Wed, 25 Jan 2023 11:57:01 -0500 Subject: [PATCH] chore: Update version for release (pre) (#5243) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 15 ++- packages/create-remix/CHANGELOG.md | 7 ++ packages/create-remix/package.json | 4 +- packages/remix-architect/CHANGELOG.md | 7 ++ packages/remix-architect/package.json | 4 +- packages/remix-cloudflare-pages/CHANGELOG.md | 7 ++ packages/remix-cloudflare-pages/package.json | 4 +- .../remix-cloudflare-workers/CHANGELOG.md | 8 ++ .../remix-cloudflare-workers/package.json | 4 +- packages/remix-cloudflare/CHANGELOG.md | 13 +++ packages/remix-cloudflare/package.json | 4 +- packages/remix-css-bundle/CHANGELOG.md | 7 ++ packages/remix-css-bundle/package.json | 4 +- packages/remix-deno/CHANGELOG.md | 8 ++ packages/remix-deno/package.json | 4 +- packages/remix-dev/CHANGELOG.md | 95 +++++++++++++++++++ packages/remix-dev/package.json | 8 +- 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 | 4 +- packages/remix-netlify/CHANGELOG.md | 7 ++ packages/remix-netlify/package.json | 4 +- packages/remix-node/CHANGELOG.md | 12 +++ packages/remix-node/package.json | 4 +- packages/remix-react/CHANGELOG.md | 88 +++++++++++++++++ packages/remix-react/package.json | 4 +- packages/remix-serve/CHANGELOG.md | 87 +++++++++++++++++ packages/remix-serve/package.json | 4 +- packages/remix-server-runtime/CHANGELOG.md | 88 +++++++++++++++++ packages/remix-server-runtime/package.json | 2 +- packages/remix-testing/CHANGELOG.md | 10 ++ packages/remix-testing/package.json | 6 +- packages/remix-vercel/CHANGELOG.md | 7 ++ packages/remix-vercel/package.json | 4 +- packages/remix/package.json | 2 +- 36 files changed, 510 insertions(+), 37 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 62275613e2d..e8065959f4e 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -21,5 +21,18 @@ "@remix-run/testing": "1.11.1", "@remix-run/vercel": "1.11.1" }, - "changesets": [] + "changesets": [ + "afraid-hounds-join", + "breezy-dancers-lie", + "flat-cobras-beam", + "mean-clocks-bow", + "mighty-beans-judge", + "old-rice-drive", + "short-bobcats-switch", + "silent-cups-double", + "silver-rockets-remember", + "tender-turtles-wash", + "wild-foxes-wait", + "yellow-ligers-clean" + ] } diff --git a/packages/create-remix/CHANGELOG.md b/packages/create-remix/CHANGELOG.md index d831bd7cf25..7b2cb34102a 100644 --- a/packages/create-remix/CHANGELOG.md +++ b/packages/create-remix/CHANGELOG.md @@ -1,5 +1,12 @@ # `create-remix` +## 1.12.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/dev@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/create-remix/package.json b/packages/create-remix/package.json index e4400a836e0..f5f2d661627 100644 --- a/packages/create-remix/package.json +++ b/packages/create-remix/package.json @@ -1,6 +1,6 @@ { "name": "create-remix", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Create a new Remix app", "homepage": "https://remix.run", "bugs": { @@ -17,7 +17,7 @@ "create-remix": "dist/cli.js" }, "dependencies": { - "@remix-run/dev": "1.11.1" + "@remix-run/dev": "1.12.0-pre.0" }, "engines": { "node": ">=14" diff --git a/packages/remix-architect/CHANGELOG.md b/packages/remix-architect/CHANGELOG.md index 26d68939402..9b8fa93037d 100644 --- a/packages/remix-architect/CHANGELOG.md +++ b/packages/remix-architect/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/architect` +## 1.12.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-architect/package.json b/packages/remix-architect/package.json index 6385aaa0300..2cfb831bf6b 100644 --- a/packages/remix-architect/package.json +++ b/packages/remix-architect/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/architect", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Architect server request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -15,7 +15,7 @@ "typings": "dist/index.d.ts", "dependencies": { "@architect/functions": "^5.2.0", - "@remix-run/node": "1.11.1", + "@remix-run/node": "1.12.0-pre.0", "@types/aws-lambda": "^8.10.82" }, "devDependencies": { diff --git a/packages/remix-cloudflare-pages/CHANGELOG.md b/packages/remix-cloudflare-pages/CHANGELOG.md index f82486303e5..97121e4bf6d 100644 --- a/packages/remix-cloudflare-pages/CHANGELOG.md +++ b/packages/remix-cloudflare-pages/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/cloudflare-pages` +## 1.12.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/cloudflare@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-cloudflare-pages/package.json b/packages/remix-cloudflare-pages/package.json index 32ca82ddc84..ecd1047c7c8 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": "1.11.1", + "version": "1.12.0-pre.0", "description": "Cloudflare Pages request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -15,7 +15,7 @@ "typings": "dist/index.d.ts", "module": "dist/esm/index.js", "dependencies": { - "@remix-run/cloudflare": "1.11.1" + "@remix-run/cloudflare": "1.12.0-pre.0" }, "devDependencies": { "@cloudflare/workers-types": "^3.4.0", diff --git a/packages/remix-cloudflare-workers/CHANGELOG.md b/packages/remix-cloudflare-workers/CHANGELOG.md index c81ceba2dac..d9d9307cbd4 100644 --- a/packages/remix-cloudflare-workers/CHANGELOG.md +++ b/packages/remix-cloudflare-workers/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/cloudflare-workers` +## 1.12.0-pre.0 + +### Patch Changes + +- Update Cloudflare Workers adapter's `RequestHandler` type to be in line with other adapters ([#4884](https://github.com/remix-run/remix/pull/4884)) +- Updated dependencies: + - `@remix-run/cloudflare@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-cloudflare-workers/package.json b/packages/remix-cloudflare-workers/package.json index 489b1e2f5d3..fed5934966f 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": "1.11.1", + "version": "1.12.0-pre.0", "description": "Cloudflare worker request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -16,7 +16,7 @@ "module": "dist/esm/index.js", "dependencies": { "@cloudflare/kv-asset-handler": "^0.1.3", - "@remix-run/cloudflare": "1.11.1" + "@remix-run/cloudflare": "1.12.0-pre.0" }, "devDependencies": { "@cloudflare/workers-types": "^3.4.0" diff --git a/packages/remix-cloudflare/CHANGELOG.md b/packages/remix-cloudflare/CHANGELOG.md index d77bf9b6920..41221fd17a3 100644 --- a/packages/remix-cloudflare/CHANGELOG.md +++ b/packages/remix-cloudflare/CHANGELOG.md @@ -1,5 +1,18 @@ # `@remix-run/cloudflare` +## 1.12.0-pre.0 + +### Minor Changes + +- Rename `createCloudflareKVSessionStorage` to `createWorkersKVSessionStorage` ([#2542](https://github.com/remix-run/remix/pull/2542)) + +### Patch Changes + +- Update Cloudflare Workers adapter's `RequestHandler` type to be in line with other adapters ([#4884](https://github.com/remix-run/remix/pull/4884)) +- Export `JsonFunction` type in `@remix-run/cloudflare` and `@remix-run/deno` ([#5206](https://github.com/remix-run/remix/pull/5206)) +- Updated dependencies: + - `@remix-run/server-runtime@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-cloudflare/package.json b/packages/remix-cloudflare/package.json index 5d37d44ad99..b38cac0447b 100644 --- a/packages/remix-cloudflare/package.json +++ b/packages/remix-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/cloudflare", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Cloudflare platform abstractions for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -15,7 +15,7 @@ "typings": "dist/index.d.ts", "dependencies": { "@cloudflare/kv-asset-handler": "^0.1.3", - "@remix-run/server-runtime": "1.11.1" + "@remix-run/server-runtime": "1.12.0-pre.0" }, "devDependencies": { "@cloudflare/workers-types": "^3.4.0" diff --git a/packages/remix-css-bundle/CHANGELOG.md b/packages/remix-css-bundle/CHANGELOG.md index 031a4606390..9c3b8ddbaac 100644 --- a/packages/remix-css-bundle/CHANGELOG.md +++ b/packages/remix-css-bundle/CHANGELOG.md @@ -1,5 +1,12 @@ # @remix-run/css-bundle +## 1.12.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/dev@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-css-bundle/package.json b/packages/remix-css-bundle/package.json index 06575e69dbb..6ab5c4a9cf8 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": "1.11.1", + "version": "1.12.0-pre.0", "description": "CSS bundle href when using CSS bundling features in Remix", "homepage": "https://remix.run", "bugs": { @@ -20,6 +20,6 @@ "./dist/esm/server.js": "./dist/esm/browser.js" }, "dependencies": { - "@remix-run/dev": "1.11.1" + "@remix-run/dev": "1.12.0-pre.0" } } diff --git a/packages/remix-deno/CHANGELOG.md b/packages/remix-deno/CHANGELOG.md index 4fa51369cc1..d9af5bbb7f4 100644 --- a/packages/remix-deno/CHANGELOG.md +++ b/packages/remix-deno/CHANGELOG.md @@ -1,5 +1,13 @@ # `@remix-run/deno` +## 1.12.0-pre.0 + +### Patch Changes + +- Export `JsonFunction` type in `@remix-run/cloudflare` and `@remix-run/deno` ([#5206](https://github.com/remix-run/remix/pull/5206)) +- Updated dependencies: + - `@remix-run/server-runtime@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-deno/package.json b/packages/remix-deno/package.json index 3d6c4350e89..ea22b2bc782 100644 --- a/packages/remix-deno/package.json +++ b/packages/remix-deno/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/deno", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Deno platform abstractions for Remix", "homepage": "https://remix.run", "main": "./index.ts", @@ -15,7 +15,7 @@ "license": "MIT", "sideEffects": false, "dependencies": { - "@remix-run/server-runtime": "1.11.1", + "@remix-run/server-runtime": "1.12.0-pre.0", "mime": "^3.0.0" }, "engines": { diff --git a/packages/remix-dev/CHANGELOG.md b/packages/remix-dev/CHANGELOG.md index 6c80f58e280..1e9b7ff0504 100644 --- a/packages/remix-dev/CHANGELOG.md +++ b/packages/remix-dev/CHANGELOG.md @@ -1,5 +1,100 @@ # `@remix-run/dev` +## 1.12.0-pre.0 + +### Minor Changes + +- # The new dev server ([#5133](https://github.com/remix-run/remix/pull/5133)) + + The new dev flow is to spin up the dev server _alongside_ your normal Remix app server: + + ```sh + # spin up the new dev server + remix dev + + # spin up your app server in a separate tab or via `concurrently` + nodemon ./server.js + ``` + + The dev server will build your app in dev mode and then rebuild whenever any app files change. + It will also wait for your app server to be "ready" (more on this later) before triggering a live reload in your browser. + + ## Benefits + + - Navigations no longer wipe in-memory references (e.g. database connections, in-memory caches, etc...). That means no need to use `global` trick anymore. + - Supports _any_ app server, not just the Remix App Server. + - Automatically wires up the live reload port for you (no need for you to mess with env vars for that anymore) + + ## App server picks up changes + + Use `nodemon` (or similar) so that your app server restarts and picks up changes after a rebuild finishes. + + For example, you can use `wrangler --watch` for Cloudflare. + + Alternatively, you can roll your own with `chokidar` (or similar) if you want to still use the `global` trick to persist in-memory stuff across rebuilds. + + ## Configure + + To enable the new dev server with all defaults, set the `unstable_dev` future flag to `true`: + + ```js + // remix.config.js + + module.exports = { + future: { + unstable_dev: true, + }, + }; + ``` + + You can also set specific options: + + ```js + // remix.config.js + + module.exports = { + future: { + unstable_dev: { + // Port to use for the dev server (i.e. the live reload websocket) + // Can be overridden by a CLI flag: `remix dev --port 3011` + // default: finds an empty port and uses that + port: 3010, + + // Port for your running Remix app server + // Can be overridden by a CLI flag: `remix dev --app-server-port 3021` + // default: `3000` + appServerPort: 3020, + + // Path to the Remix request handler in your app server + // Most app server will route all requests to the Remix request handler and will not need to set this option. + // If your app server _does_ route only certain request paths to the Remix request handler, then you'll need to set this. + // default: `""` + remixRequestHandlerPath: "/products", + + // Milliseconds between "readiness" pings to your app server + // When a Remix rebuild finishes, the dev server will ping a special endpoint (`__REMIX_ASSETS_MANIFEST`) + // to check if your app server is serving up-to-date routes and assets. + // You can set this option to tune how frequently the dev server polls your app server. + // default: `50` + rebuildPollIntervalMs: 25, + }, + }, + }; + ``` + +### Patch Changes + +- When running the dev server (current or `unstable_dev`), each rebuild wrote new files to `build/` and `public/build/`. ([#5223](https://github.com/remix-run/remix/pull/5223)) + Since these files are not removed (unless the dev server crashes or is gracefully terminated), + thousands of files could accumulate as the dev server ran. + This causes performance issues and could be confusing. + + Now, the dev server also cleans up the build directories whenever a rebuild starts. + +- Updated dependencies: + - `@remix-run/serve@1.12.0-pre.0` + - `@remix-run/server-runtime@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-dev/package.json b/packages/remix-dev/package.json index 1c7c7efe4d0..503f611b1db 100644 --- a/packages/remix-dev/package.json +++ b/packages/remix-dev/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/dev", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Dev tools and CLI for Remix", "homepage": "https://remix.run", "bugs": { @@ -29,7 +29,7 @@ "@babel/types": "^7.20.2", "@esbuild-plugins/node-modules-polyfill": "^0.1.4", "@npmcli/package-json": "^2.0.0", - "@remix-run/server-runtime": "1.11.1", + "@remix-run/server-runtime": "1.12.0-pre.0", "@vanilla-extract/integration": "^6.0.2", "arg": "^5.0.1", "cacache": "^15.0.5", @@ -70,7 +70,7 @@ "xdm": "^2.0.0" }, "devDependencies": { - "@remix-run/serve": "1.11.1", + "@remix-run/serve": "1.12.0-pre.0", "@types/cacache": "^15.0.0", "@types/gunzip-maybe": "^1.4.0", "@types/inquirer": "^8.2.0", @@ -89,7 +89,7 @@ "type-fest": "^2.16.0" }, "peerDependencies": { - "@remix-run/serve": "^1.11.1" + "@remix-run/serve": "^1.12.0-pre.0" }, "peerDependenciesMeta": { "@remix-run/serve": { diff --git a/packages/remix-eslint-config/CHANGELOG.md b/packages/remix-eslint-config/CHANGELOG.md index 900aeca83e8..06b23c94ea8 100644 --- a/packages/remix-eslint-config/CHANGELOG.md +++ b/packages/remix-eslint-config/CHANGELOG.md @@ -1,5 +1,7 @@ # `@remix-run/eslint-config` +## 1.12.0-pre.0 + ## 1.11.1 ## 1.11.0 diff --git a/packages/remix-eslint-config/package.json b/packages/remix-eslint-config/package.json index b17f224e2b8..06d1eb8f8a2 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": "1.11.1", + "version": "1.12.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 166d80a2c53..2433d994034 100644 --- a/packages/remix-express/CHANGELOG.md +++ b/packages/remix-express/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/express` +## 1.12.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-express/package.json b/packages/remix-express/package.json index da8d03b537e..ad7106eefa0 100644 --- a/packages/remix-express/package.json +++ b/packages/remix-express/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/express", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Express server request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -14,7 +14,7 @@ "main": "dist/index.js", "typings": "dist/index.d.ts", "dependencies": { - "@remix-run/node": "1.11.1" + "@remix-run/node": "1.12.0-pre.0" }, "devDependencies": { "@types/express": "^4.17.9", diff --git a/packages/remix-netlify/CHANGELOG.md b/packages/remix-netlify/CHANGELOG.md index cf51475ebf0..7932894f7da 100644 --- a/packages/remix-netlify/CHANGELOG.md +++ b/packages/remix-netlify/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/netlify` +## 1.12.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-netlify/package.json b/packages/remix-netlify/package.json index 528c00c08c7..1a92ef84481 100644 --- a/packages/remix-netlify/package.json +++ b/packages/remix-netlify/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/netlify", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Netlify server request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -14,7 +14,7 @@ "main": "dist/index.js", "typings": "dist/index.d.ts", "dependencies": { - "@remix-run/node": "1.11.1" + "@remix-run/node": "1.12.0-pre.0" }, "devDependencies": { "@netlify/functions": "^1.0.0" diff --git a/packages/remix-node/CHANGELOG.md b/packages/remix-node/CHANGELOG.md index c90eec73a02..1a1a5f8ad57 100644 --- a/packages/remix-node/CHANGELOG.md +++ b/packages/remix-node/CHANGELOG.md @@ -1,5 +1,17 @@ # `@remix-run/node` +## 1.12.0-pre.0 + +### Minor Changes + +- Add `remove` and `getFilePath` methods to `NodeOnDiskFile` ([#4408](https://github.com/remix-run/remix/pull/4408)) + +### Patch Changes + +- Export `JsonFunction` as a type in `@remix-run/node` ([#5204](https://github.com/remix-run/remix/pull/5204)) +- Updated dependencies: + - `@remix-run/server-runtime@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-node/package.json b/packages/remix-node/package.json index 1801c93d55e..e619a3e6f6b 100644 --- a/packages/remix-node/package.json +++ b/packages/remix-node/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/node", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Node.js platform abstractions for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -15,7 +15,7 @@ "typings": "dist/index.d.ts", "sideEffects": false, "dependencies": { - "@remix-run/server-runtime": "1.11.1", + "@remix-run/server-runtime": "1.12.0-pre.0", "@remix-run/web-fetch": "^4.3.2", "@remix-run/web-file": "^3.0.2", "@remix-run/web-stream": "^1.0.3", diff --git a/packages/remix-react/CHANGELOG.md b/packages/remix-react/CHANGELOG.md index a6fc535ed5b..b004d06aa3d 100644 --- a/packages/remix-react/CHANGELOG.md +++ b/packages/remix-react/CHANGELOG.md @@ -1,5 +1,93 @@ # `@remix-run/react` +## 1.12.0-pre.0 + +### Minor Changes + +- # The new dev server ([#5133](https://github.com/remix-run/remix/pull/5133)) + + The new dev flow is to spin up the dev server _alongside_ your normal Remix app server: + + ```sh + # spin up the new dev server + remix dev + + # spin up your app server in a separate tab or via `concurrently` + nodemon ./server.js + ``` + + The dev server will build your app in dev mode and then rebuild whenever any app files change. + It will also wait for your app server to be "ready" (more on this later) before triggering a live reload in your browser. + + ## Benefits + + - Navigations no longer wipe in-memory references (e.g. database connections, in-memory caches, etc...). That means no need to use `global` trick anymore. + - Supports _any_ app server, not just the Remix App Server. + - Automatically wires up the live reload port for you (no need for you to mess with env vars for that anymore) + + ## App server picks up changes + + Use `nodemon` (or similar) so that your app server restarts and picks up changes after a rebuild finishes. + + For example, you can use `wrangler --watch` for Cloudflare. + + Alternatively, you can roll your own with `chokidar` (or similar) if you want to still use the `global` trick to persist in-memory stuff across rebuilds. + + ## Configure + + To enable the new dev server with all defaults, set the `unstable_dev` future flag to `true`: + + ```js + // remix.config.js + + module.exports = { + future: { + unstable_dev: true, + }, + }; + ``` + + You can also set specific options: + + ```js + // remix.config.js + + module.exports = { + future: { + unstable_dev: { + // Port to use for the dev server (i.e. the live reload websocket) + // Can be overridden by a CLI flag: `remix dev --port 3011` + // default: finds an empty port and uses that + port: 3010, + + // Port for your running Remix app server + // Can be overridden by a CLI flag: `remix dev --app-server-port 3021` + // default: `3000` + appServerPort: 3020, + + // Path to the Remix request handler in your app server + // Most app server will route all requests to the Remix request handler and will not need to set this option. + // If your app server _does_ route only certain request paths to the Remix request handler, then you'll need to set this. + // default: `""` + remixRequestHandlerPath: "/products", + + // Milliseconds between "readiness" pings to your app server + // When a Remix rebuild finishes, the dev server will ping a special endpoint (`__REMIX_ASSETS_MANIFEST`) + // to check if your app server is serving up-to-date routes and assets. + // You can set this option to tune how frequently the dev server polls your app server. + // default: `50` + rebuildPollIntervalMs: 25, + }, + }, + }; + ``` + +### Patch Changes + +- Bump react router versions ([#5242](https://github.com/remix-run/remix/pull/5242)) +- Configure the browser-side live reload socket timeout via the new `timeoutMs` prop on `` ([#4036](https://github.com/remix-run/remix/pull/4036)) +- Added support for `unstable_useBlocker` and `unstable_usePrompt` from React Router ([#5151](https://github.com/remix-run/remix/pull/5151)) + ## 1.11.1 ## 1.11.0 diff --git a/packages/remix-react/package.json b/packages/remix-react/package.json index 9bfc3ca9014..e067595f7e9 100644 --- a/packages/remix-react/package.json +++ b/packages/remix-react/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/react", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "React DOM bindings for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -21,7 +21,7 @@ "use-sync-external-store": "1.2.0" }, "devDependencies": { - "@remix-run/server-runtime": "1.11.1", + "@remix-run/server-runtime": "1.12.0-pre.0", "@testing-library/jest-dom": "^5.16.2", "@testing-library/react": "^13.3.0", "abort-controller": "^3.0.0", diff --git a/packages/remix-serve/CHANGELOG.md b/packages/remix-serve/CHANGELOG.md index 7241dd662a3..c9882d325dd 100644 --- a/packages/remix-serve/CHANGELOG.md +++ b/packages/remix-serve/CHANGELOG.md @@ -1,5 +1,92 @@ # `@remix-run/serve` +## 1.12.0-pre.0 + +### Minor Changes + +- # The new dev server ([#5133](https://github.com/remix-run/remix/pull/5133)) + + The new dev flow is to spin up the dev server _alongside_ your normal Remix app server: + + ```sh + # spin up the new dev server + remix dev + + # spin up your app server in a separate tab or via `concurrently` + nodemon ./server.js + ``` + + The dev server will build your app in dev mode and then rebuild whenever any app files change. + It will also wait for your app server to be "ready" (more on this later) before triggering a live reload in your browser. + + ## Benefits + + - Navigations no longer wipe in-memory references (e.g. database connections, in-memory caches, etc...). That means no need to use `global` trick anymore. + - Supports _any_ app server, not just the Remix App Server. + - Automatically wires up the live reload port for you (no need for you to mess with env vars for that anymore) + + ## App server picks up changes + + Use `nodemon` (or similar) so that your app server restarts and picks up changes after a rebuild finishes. + + For example, you can use `wrangler --watch` for Cloudflare. + + Alternatively, you can roll your own with `chokidar` (or similar) if you want to still use the `global` trick to persist in-memory stuff across rebuilds. + + ## Configure + + To enable the new dev server with all defaults, set the `unstable_dev` future flag to `true`: + + ```js + // remix.config.js + + module.exports = { + future: { + unstable_dev: true, + }, + }; + ``` + + You can also set specific options: + + ```js + // remix.config.js + + module.exports = { + future: { + unstable_dev: { + // Port to use for the dev server (i.e. the live reload websocket) + // Can be overridden by a CLI flag: `remix dev --port 3011` + // default: finds an empty port and uses that + port: 3010, + + // Port for your running Remix app server + // Can be overridden by a CLI flag: `remix dev --app-server-port 3021` + // default: `3000` + appServerPort: 3020, + + // Path to the Remix request handler in your app server + // Most app server will route all requests to the Remix request handler and will not need to set this option. + // If your app server _does_ route only certain request paths to the Remix request handler, then you'll need to set this. + // default: `""` + remixRequestHandlerPath: "/products", + + // Milliseconds between "readiness" pings to your app server + // When a Remix rebuild finishes, the dev server will ping a special endpoint (`__REMIX_ASSETS_MANIFEST`) + // to check if your app server is serving up-to-date routes and assets. + // You can set this option to tune how frequently the dev server polls your app server. + // default: `50` + rebuildPollIntervalMs: 25, + }, + }, + }; + ``` + +### Patch Changes + +- Updated dependencies: + - `@remix-run/express@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-serve/package.json b/packages/remix-serve/package.json index 29a0cec6141..2c916744f4e 100644 --- a/packages/remix-serve/package.json +++ b/packages/remix-serve/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/serve", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Production application server for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -17,7 +17,7 @@ "remix-serve": "dist/cli.js" }, "dependencies": { - "@remix-run/express": "1.11.1", + "@remix-run/express": "1.12.0-pre.0", "compression": "^1.7.4", "express": "^4.17.1", "morgan": "^1.10.0" diff --git a/packages/remix-server-runtime/CHANGELOG.md b/packages/remix-server-runtime/CHANGELOG.md index c1cb57f0fb0..1d74360a6f2 100644 --- a/packages/remix-server-runtime/CHANGELOG.md +++ b/packages/remix-server-runtime/CHANGELOG.md @@ -1,5 +1,93 @@ # `@remix-run/server-runtime` +## 1.12.0-pre.0 + +### Minor Changes + +- # The new dev server ([#5133](https://github.com/remix-run/remix/pull/5133)) + + The new dev flow is to spin up the dev server _alongside_ your normal Remix app server: + + ```sh + # spin up the new dev server + remix dev + + # spin up your app server in a separate tab or via `concurrently` + nodemon ./server.js + ``` + + The dev server will build your app in dev mode and then rebuild whenever any app files change. + It will also wait for your app server to be "ready" (more on this later) before triggering a live reload in your browser. + + ## Benefits + + - Navigations no longer wipe in-memory references (e.g. database connections, in-memory caches, etc...). That means no need to use `global` trick anymore. + - Supports _any_ app server, not just the Remix App Server. + - Automatically wires up the live reload port for you (no need for you to mess with env vars for that anymore) + + ## App server picks up changes + + Use `nodemon` (or similar) so that your app server restarts and picks up changes after a rebuild finishes. + + For example, you can use `wrangler --watch` for Cloudflare. + + Alternatively, you can roll your own with `chokidar` (or similar) if you want to still use the `global` trick to persist in-memory stuff across rebuilds. + + ## Configure + + To enable the new dev server with all defaults, set the `unstable_dev` future flag to `true`: + + ```js + // remix.config.js + + module.exports = { + future: { + unstable_dev: true, + }, + }; + ``` + + You can also set specific options: + + ```js + // remix.config.js + + module.exports = { + future: { + unstable_dev: { + // Port to use for the dev server (i.e. the live reload websocket) + // Can be overridden by a CLI flag: `remix dev --port 3011` + // default: finds an empty port and uses that + port: 3010, + + // Port for your running Remix app server + // Can be overridden by a CLI flag: `remix dev --app-server-port 3021` + // default: `3000` + appServerPort: 3020, + + // Path to the Remix request handler in your app server + // Most app server will route all requests to the Remix request handler and will not need to set this option. + // If your app server _does_ route only certain request paths to the Remix request handler, then you'll need to set this. + // default: `""` + remixRequestHandlerPath: "/products", + + // Milliseconds between "readiness" pings to your app server + // When a Remix rebuild finishes, the dev server will ping a special endpoint (`__REMIX_ASSETS_MANIFEST`) + // to check if your app server is serving up-to-date routes and assets. + // You can set this option to tune how frequently the dev server polls your app server. + // default: `50` + rebuildPollIntervalMs: 25, + }, + }, + }; + ``` + +- remove `react` & `react-dom` from `peerDependencies` ([#4801](https://github.com/remix-run/remix/pull/4801)) + +### Patch Changes + +- Bump react router versions ([#5242](https://github.com/remix-run/remix/pull/5242)) + ## 1.11.1 ## 1.11.0 diff --git a/packages/remix-server-runtime/package.json b/packages/remix-server-runtime/package.json index 459bc4df885..1da2d66fd58 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": "1.11.1", + "version": "1.12.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 a724c22c310..c1e3e257157 100644 --- a/packages/remix-testing/CHANGELOG.md +++ b/packages/remix-testing/CHANGELOG.md @@ -1,5 +1,15 @@ # `@remix-run/testing` +## 1.12.0-pre.0 + +### Patch Changes + +- Ensure all routes have IDs when using the `createRemixStub` testing helper ([#5128](https://github.com/remix-run/remix/pull/5128)) +- Bump react router versions ([#5242](https://github.com/remix-run/remix/pull/5242)) +- Updated dependencies: + - `@remix-run/node@1.12.0-pre.0` + - `@remix-run/react@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-testing/package.json b/packages/remix-testing/package.json index b5ca49ea088..ad2c6d86c91 100644 --- a/packages/remix-testing/package.json +++ b/packages/remix-testing/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/testing", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Testing utilities for Remix apps", "homepage": "https://remix.run", "bugs": { @@ -16,8 +16,8 @@ "typings": "./dist/index.d.ts", "module": "./dist/esm/index.js", "dependencies": { - "@remix-run/node": "1.11.1", - "@remix-run/react": "1.11.1", + "@remix-run/node": "1.12.0-pre.0", + "@remix-run/react": "1.12.0-pre.0", "@remix-run/router": "1.3.1-pre.0", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/packages/remix-vercel/CHANGELOG.md b/packages/remix-vercel/CHANGELOG.md index 80e33f1b07d..279002c839d 100644 --- a/packages/remix-vercel/CHANGELOG.md +++ b/packages/remix-vercel/CHANGELOG.md @@ -1,5 +1,12 @@ # `@remix-run/vercel` +## 1.12.0-pre.0 + +### Patch Changes + +- Updated dependencies: + - `@remix-run/node@1.12.0-pre.0` + ## 1.11.1 ### Patch Changes diff --git a/packages/remix-vercel/package.json b/packages/remix-vercel/package.json index 37fb871d0c0..8e2474eabc8 100644 --- a/packages/remix-vercel/package.json +++ b/packages/remix-vercel/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/vercel", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "Vercel server request handler for Remix", "bugs": { "url": "https://github.com/remix-run/remix/issues" @@ -14,7 +14,7 @@ "main": "dist/index.js", "typings": "dist/index.d.ts", "dependencies": { - "@remix-run/node": "1.11.1" + "@remix-run/node": "1.12.0-pre.0" }, "devDependencies": { "@types/supertest": "^2.0.10", diff --git a/packages/remix/package.json b/packages/remix/package.json index 34947f8118e..b356c9673fc 100644 --- a/packages/remix/package.json +++ b/packages/remix/package.json @@ -1,6 +1,6 @@ { "name": "remix", - "version": "1.11.1", + "version": "1.12.0-pre.0", "description": "A framework for building better websites", "homepage": "https://remix.run", "bugs": {