chore: Update version for release (pre) - #8770
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-next, this PR will be updated.
release-nextis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonrelease-next.Releases
@remix-run/cloudflare-pages@2.7.0-pre.0
Minor Changes
Make
getLoadContextoptional for Cloudflare Pages (#8701)Defaults to
(context) => ({ env: context }), which is what we used to have in all the templates.This gives parity with the Cloudflare preset for the Remix Vite plugin and keeps our templates leaner.
Vite: Cloudflare Proxy as a Vite plugin (#8749)
This is a breaking change for projects relying on Cloudflare support from the unstable Vite plugin
The Cloudflare preset (
unstable_cloudflarePreset) as been removed and replaced with a new Vite plugin:import { unstable_vitePlugin as remix, - unstable_cloudflarePreset as cloudflare, + cloudflareDevProxyVitePlugin as remixCloudflareDevProxy, } from "@remix-run/dev"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [ + remixCloudflareDevProxy(), + remix(), - remix({ - presets: [cloudflare()], - }), ], - ssr: { - resolve: { - externalConditions: ["workerd", "worker"], - }, - }, });remixCloudflareDevProxymust come before theremixplugin so that it can override Vite's dev server middleware to be compatible with Cloudflare's proxied environment.Because it is a Vite plugin,
remixCloudflareDevProxycan setssr.resolve.externalConditionsto beworkerd-compatible for you.remixCloudflareDevProxyaccepts agetLoadContextfunction that replaces the oldgetRemixDevLoadContext.If you were using a
nightlyversion that requiredgetBindingsProxyorgetPlatformProxy, that is no longer required.Any options you were passing to
getBindingsProxyorgetPlatformProxyshould now be passed toremixCloudflareDevProxyinstead.This API also better aligns with future plans to support Cloudflare with a framework-agnostic Vite plugin that makes use of Vite's (experimental) Runtime API.
Patch Changes
@remix-run/cloudflare@2.7.0-pre.0@remix-run/dev@2.7.0-pre.0
Minor Changes
Allow an optional
Layoutexport from the root route (#8709)Vite: Cloudflare Proxy as a Vite plugin (#8749)
This is a breaking change for projects relying on Cloudflare support from the unstable Vite plugin
The Cloudflare preset (
unstable_cloudflarePreset) as been removed and replaced with a new Vite plugin:import { unstable_vitePlugin as remix, - unstable_cloudflarePreset as cloudflare, + cloudflareDevProxyVitePlugin as remixCloudflareDevProxy, } from "@remix-run/dev"; import { defineConfig } from "vite"; export default defineConfig({ plugins: [ + remixCloudflareDevProxy(), + remix(), - remix({ - presets: [cloudflare()], - }), ], - ssr: { - resolve: { - externalConditions: ["workerd", "worker"], - }, - }, });remixCloudflareDevProxymust come before theremixplugin so that it can override Vite's dev server middleware to be compatible with Cloudflare's proxied environment.Because it is a Vite plugin,
remixCloudflareDevProxycan setssr.resolve.externalConditionsto beworkerd-compatible for you.remixCloudflareDevProxyaccepts agetLoadContextfunction that replaces the oldgetRemixDevLoadContext.If you were using a
nightlyversion that requiredgetBindingsProxyorgetPlatformProxy, that is no longer required.Any options you were passing to
getBindingsProxyorgetPlatformProxyshould now be passed toremixCloudflareDevProxyinstead.This API also better aligns with future plans to support Cloudflare with a framework-agnostic Vite plugin that makes use of Vite's (experimental) Runtime API.
Vite: Stabilize the Remix Vite plugin, Cloudflare preset, and all related types by removing all
unstable_/Unstable_prefixes. (#8713)While this is a breaking change for existing Remix Vite plugin consumers, now that the plugin has stabilized, there will no longer be any breaking changes outside of a major release. Thank you to all of our early adopters and community contributors for helping us get here! 🙏
Vite: Stabilize "SPA Mode" by renaming the Remix vite plugin config from
unstable_ssr -> ssr(#8692)Vite: Add a new
basenameoption to the Vite plugin, allowing users to set the internal React Routerbasenamein order to to serve their applications underneath a subpath (#8145)Vite: Fix issue where client route file requests fail if search params have been parsed and serialized before reaching the Remix Vite plugin (#8740)
Patch Changes
Always prepend DOCTYPE in SPA mode entry.server.tsx, can opt out via remix reveal (#8725)
Fix build issue in SPA mode when using a
basename(#8720)Vite: Validate that the MDX Rollup plugin, if present, is placed before Remix in Vite config (#8690)
Vite: Require
getBindingsProxyfrom Wrangler for Cloudflare preset (#8688)This is a breaking change for projects using the Cloudflare preset for the unstable Vite plugin.
You must now pass in
getBindingsProxyfrom Wrangler:// vite.config.ts import { unstable_vitePlugin as remix, unstable_cloudflarePreset as cloudflare, } from "@remix-run/dev"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; + import { getBindingsProxy } from "wrangler"; export default defineConfig({ plugins: [ remix({ presets: [ - cloudflare() + cloudflare(getBindingsProxy) ], }), tsconfigPaths(), ], ssr: { resolve: { externalConditions: ["workerd", "worker"], }, }, });Additionally, the
getRemixDevLoadContextfunction now provides the request as part of the context:When using
getRemixDevLoadContext, it's recommended that you create aload-context.tsfile to define a sharedgetLoadContextfunction that you can use for bothgetRemixDevLoadContextinvite.config.tsas well as withinfunctions/[[path]].ts.For more, see the Future > Vite > Cloudflare docs.
Vite: Fix issue resolving critical CSS during development when the current working directory differs from the project root (#8752)
Vite: Require version 5.1.0 to support
.css?urlimports (#8723)Fix type error in Remix config for synchronous
routesfunction (#8745)Vite: Support Vite v5.1.0's
.css?urlimports (#8684)Vite: Enable use of
vite previewto preview Remix SPA applications (#8624)npm run starthas been renamed tonpm run previewwhich usesvite previewinstead of a standalone HTTP server such ashttp-serverorserv-cliVite: Remove the ability to pass
publicPathas an option to the Remix vite plugin (#8145)publicPathbaseconfig so we now set the RemixpublicPathfrom the VitebaseconfigVite: Enable HMR for .md and .mdx files (#8711)
Updated dependencies:
@remix-run/server-runtime@2.7.0-pre.0@remix-run/node@2.7.0-pre.0@remix-run/serve@2.7.0-pre.0@remix-run/express@2.7.0-pre.0
Minor Changes
basenameoption to the Vite plugin, allowing users to set the internal React Routerbasenamein order to to serve their applications underneath a subpath (#8145)Patch Changes
Use
req.originalUrlinstead ofreq.urlso that Remix sees the full URL (#8145)Updated dependencies:
@remix-run/node@2.7.0-pre.0@remix-run/react@2.7.0-pre.0
Minor Changes
Layoutexport from the root route (#8709)basenameoption to the Vite plugin, allowing users to set the internal React Routerbasenamein order to to serve their applications underneath a subpath (#8145)Patch Changes
@remix-run/server-runtime@2.7.0-pre.0@remix-run/server-runtime@2.7.0-pre.0
Minor Changes
Layoutexport from the root route (#8709)basenameoption to the Vite plugin, allowing users to set the internal React Routerbasenamein order to to serve their applications underneath a subpath (#8145)Patch Changes
deferresponse from a resource route (#8726)@remix-run/architect@2.7.0-pre.0
Patch Changes
@remix-run/node@2.7.0-pre.0@remix-run/cloudflare@2.7.0-pre.0
Patch Changes
@remix-run/server-runtime@2.7.0-pre.0@remix-run/cloudflare-workers@2.7.0-pre.0
Patch Changes
@remix-run/cloudflare@2.7.0-pre.0@remix-run/deno@2.7.0-pre.0
Patch Changes
@remix-run/server-runtime@2.7.0-pre.0@remix-run/node@2.7.0-pre.0
Patch Changes
@remix-run/server-runtime@2.7.0-pre.0@remix-run/serve@2.7.0-pre.0
Patch Changes
@remix-run/express@2.7.0-pre.0@remix-run/node@2.7.0-pre.0@remix-run/testing@2.7.0-pre.0
Patch Changes
@remix-run/react@2.7.0-pre.0@remix-run/node@2.7.0-pre.0create-remix@2.7.0-pre.0
remix@2.7.0-pre.0
remixSee the
CHANGELOG.mdin individual Remix packages for all changes.@remix-run/css-bundle@2.7.0-pre.0
@remix-run/eslint-config@2.7.0-pre.0