diff --git a/.changeset/pre.json b/.changeset/pre.json index 0a5e6ce609e..97df5f29023 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -20,5 +20,87 @@ "@remix-run/server-runtime": "1.19.3", "@remix-run/testing": "1.19.3" }, - "changesets": [] + "changesets": [ + "add-error-to-meta", + "beige-pugs-drive", + "brown-seals-look", + "cool-penguins-film", + "cool-wombats-chew", + "create-remix-overwrite", + "create-remix", + "cuddly-rings-mate", + "curly-moons-cover", + "decouple-css-bundle-from-dev", + "deduplicate-prefetch-link-tags", + "destory-session-maxage", + "dirty-bags-wink", + "disabled-link-preload", + "empty-cameras-walk", + "enable-css-features-by-default", + "error-response-type", + "fair-falcons-wink", + "fix-commit-session-expires", + "fix-stub-route-object-type", + "fluffy-bananas-love", + "fluffy-fishes-lay", + "friendly-fireants-report", + "fuzzy-mugs-swim", + "giant-crews-care", + "global-fetch-instanceof", + "grumpy-trees-flow", + "handle-error-response", + "heavy-crabs-kick", + "improve-minified-css-compatibility", + "khaki-roses-matter", + "kind-grapes-clap", + "large-goats-double", + "light-rivers-tell", + "loud-pandas-do", + "lovely-drinks-bow", + "memory-session-id", + "moody-pants-laugh", + "neat-impalas-divide", + "olive-lemons-marry", + "orange-suits-nail", + "polyfill-package-imports-in-deps", + "popular-trains-do", + "purple-tables-switch", + "purple-zoos-refuse", + "quiet-lemons-fold", + "remix-testing-meta-links", + "remove-default-server-node-polyfills", + "remove-fetch-polyfill-references-in-adapters", + "remove-magic-import-eslint-warnings", + "remove-stream-recursion", + "remove-unstable-should-reload", + "remove-v1-meta", + "resource-route-boundary-only", + "rich-months-search", + "rotten-penguins-eat", + "selfish-months-behave", + "seven-queens-try", + "shiny-teachers-cheer", + "silver-readers-think", + "sour-parrots-dream", + "strong-rice-applaud", + "stupid-emus-repair", + "tame-moons-buy", + "tasty-apricots-doubt", + "use-fetch-duplex", + "useloaderdata-types-yarn-pnp", + "v2-default-to-esm", + "v2-remove-auto-globals-install", + "v2-remove-catch-boundary", + "v2-remove-fetcher-compat", + "v2-remove-magic-exports", + "v2-remove-normalize-form-method", + "v2-remove-unstable-warnings", + "v2-remove-use-transition", + "v2-route-convention", + "v2-serve-dynamic-import", + "v2-use-deepest-headers-function", + "wicked-points-unite", + "wild-garlics-draw", + "xdm-to-mdx" + ] } diff --git a/packages/create-remix/CHANGELOG.md b/packages/create-remix/CHANGELOG.md index 556bb5cd7f0..fe05cf4bb0f 100644 --- a/packages/create-remix/CHANGELOG.md +++ b/packages/create-remix/CHANGELOG.md @@ -1,5 +1,24 @@ # `create-remix` +## 2.0.0-pre.0 + +### Major Changes + +- The `create-remix` CLI has been rewritten to feature a cleaner interface, Git repo initialization and optional `remix.init` script execution. The interactive template prompt and official Remix stack/template shorthands have also been removed so that community/third-party templates are now on a more equal footing. ([#6887](https://github.com/remix-run/remix/pull/6887)) + + The code for `create-remix` has been moved out of the Remix CLI since it's not intended for use within an existing Remix application. This means that the `remix create` command is no longer available. + +- Stop passing `isTypeScript` to `remix.init` script ([#7099](https://github.com/remix-run/remix/pull/7099)) +- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) + +### Minor Changes + +- Remove empty directory checking in favor of `overwrite` prompt/flag. ([#7062](https://github.com/remix-run/remix/pull/7062)) + + `create-remix` now allows you to write into an existing non-empty directory. It will perform a file-level comparison and if the template will overwrite any existing files in the destination directory, it will prompt you if it's OK to overwrite those files. If you answer no (the default) then it will exit without copying any files. You may skip this prompt with the `--overwrite` CLI flag. + +- Support bun package manager ([#7074](https://github.com/remix-run/remix/pull/7074)) + ## 1.19.3 ### Patch Changes diff --git a/packages/create-remix/package.json b/packages/create-remix/package.json index df6fa12ecdc..dd99c725419 100644 --- a/packages/create-remix/package.json +++ b/packages/create-remix/package.json @@ -1,6 +1,6 @@ { "name": "create-remix", - "version": "1.19.3", + "version": "2.0.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 9a6b212e2d6..b17085e00fd 100644 --- a/packages/remix-architect/CHANGELOG.md +++ b/packages/remix-architect/CHANGELOG.md @@ -1,5 +1,37 @@ # `@remix-run/architect` +## 2.0.0-pre.0 + +### Major Changes + +- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) +- For preparation of using Node's built in fetch implementation, installing the fetch globals is now a responsibility of the app server. If you are using `remix-serve`, nothing is required. If you are using your own app server, you will need to install the globals yourself. ([#7009](https://github.com/remix-run/remix/pull/7009)) + + ```js filename=server.js + import { installGlobals } from "@remix-run/node"; + + installGlobals(); + ``` + + source-map-support is now a responsibility of the app server. If you are using `remix-serve`, nothing is required. If you are using your own app server, you will need to install [`source-map-support`](https://www.npmjs.com/package/source-map-support) yourself. + + ```sh + npm i source-map-support + ``` + + ```js filename=server.js + import sourceMapSupport from "source-map-support"; + sourceMapSupport.install(); + ``` + +### Patch Changes + +- - Switch to `headers.entries()` instead of non-spec-compliant `headers.raw()` in `sendRemixResponse` ([#7150](https://github.com/remix-run/remix/pull/7150)) + - Update to `@remix-run/web-fetch@4.3.7` +- remove references to fetch polyfills in node and arc adapters ([#7230](https://github.com/remix-run/remix/pull/7230)) +- Updated dependencies: + - `@remix-run/node@2.0.0-pre.0` + ## 1.19.3 ### Patch Changes diff --git a/packages/remix-architect/package.json b/packages/remix-architect/package.json index 482e6b48c06..887cf68ac70 100644 --- a/packages/remix-architect/package.json +++ b/packages/remix-architect/package.json @@ -1,6 +1,6 @@ { "name": "@remix-run/architect", - "version": "1.19.3", + "version": "2.0.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.19.3", + "@remix-run/node": "2.0.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 0cbd68574e4..6dab35bf14f 100644 --- a/packages/remix-cloudflare-pages/CHANGELOG.md +++ b/packages/remix-cloudflare-pages/CHANGELOG.md @@ -1,5 +1,17 @@ # `@remix-run/cloudflare-pages` +## 2.0.0-pre.0 + +### Major Changes + +- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) +- Drop `@cloudflare/workers-types` v2 & v3 support ([#6925](https://github.com/remix-run/remix/pull/6925)) + +### Patch Changes + +- Updated dependencies: + - `@remix-run/cloudflare@2.0.0-pre.0` + ## 1.19.3 ### Patch Changes diff --git a/packages/remix-cloudflare-pages/package.json b/packages/remix-cloudflare-pages/package.json index 86c8ee09e28..f4eef063617 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.19.3", + "version": "2.0.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.19.3" + "@remix-run/cloudflare": "2.0.0-pre.0" }, "devDependencies": { "@cloudflare/workers-types": "^4.20230518.0", diff --git a/packages/remix-cloudflare-workers/CHANGELOG.md b/packages/remix-cloudflare-workers/CHANGELOG.md index 977920a0c77..fccdd8ab09a 100644 --- a/packages/remix-cloudflare-workers/CHANGELOG.md +++ b/packages/remix-cloudflare-workers/CHANGELOG.md @@ -1,5 +1,17 @@ # `@remix-run/cloudflare-workers` +## 2.0.0-pre.0 + +### Major Changes + +- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) +- Drop `@cloudflare/workers-types` v2 & v3 support ([#6925](https://github.com/remix-run/remix/pull/6925)) + +### Patch Changes + +- Updated dependencies: + - `@remix-run/cloudflare@2.0.0-pre.0` + ## 1.19.3 ### Patch Changes diff --git a/packages/remix-cloudflare-workers/package.json b/packages/remix-cloudflare-workers/package.json index 383b207a5ed..7e70dc6f2a8 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.19.3", + "version": "2.0.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.19.3" + "@remix-run/cloudflare": "2.0.0-pre.0" }, "devDependencies": { "@cloudflare/workers-types": "^4.20230518.0", diff --git a/packages/remix-cloudflare/CHANGELOG.md b/packages/remix-cloudflare/CHANGELOG.md index 95870793d82..50f696a4f74 100644 --- a/packages/remix-cloudflare/CHANGELOG.md +++ b/packages/remix-cloudflare/CHANGELOG.md @@ -1,5 +1,72 @@ # `@remix-run/cloudflare` +## 2.0.0-pre.0 + +### Major Changes + +- Remove `createCloudflareKVSessionStorage` ([#6898](https://github.com/remix-run/remix/pull/6898)) +- Require Node >=18.0.0 ([#6939](https://github.com/remix-run/remix/pull/6939)) +- We have made a few important changes to the route `meta` API as reflected in the v1 implementation when using the `future.v2_meta` config option. ([#6958](https://github.com/remix-run/remix/pull/6958)) + + - The `meta` function should no longer return an object, but an array of objects that map to the HTML tag's respective attributes. This provides more flexibility and control over how certain tags are rendered, and the order in which they appear. + - In most cases, `meta` descriptor objects render a `` tag. There are a few notable exceptions: + - `{ title: "My app" }` will render `