chore: Update version for release (pre) #6193
Merged
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-next
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onrelease-next
.Releases
@remix-run/[email protected]
Minor Changes
Enable support for CSS Modules, Vanilla Extract and CSS side-effect imports (#6046)
These CSS bundling features were previously only available via
future.unstable_cssModules
,future.unstable_vanillaExtract
andfuture.unstable_cssSideEffectImports
options inremix.config.js
, but they have now been stabilized.CSS Bundle Setup
In order to use these features, you first need to set up CSS bundling in your project. First install the
@remix-run/css-bundle
package.Then return the exported
cssBundleHref
as a stylesheet link descriptor from thelinks
function at the root of your app.CSS Modules
To use CSS Modules, you can opt in via the
.module.css
file name convention. For example:Vanilla Extract
To use Vanilla Extract, first install its
css
package as a dev dependency.You can then opt in via the
.css.ts
/.css.js
file name convention. For example:CSS Side-Effect Imports
Any CSS files that are imported as side-effects (e.g.
import "./styles.css"
) will be automatically included in the CSS bundle.Since JavaScript runtimes don't support importing CSS in this way, you'll also need to add any packages using CSS side-effect imports to the
serverDependenciesToBundle
option in yourremix.config.js
file. This ensures that any CSS imports are compiled out of your code before running it on the server. For example, to use React Spectrum:Dev server improvements (#6133)
Guide
Enable
unstable_dev
inremix.config.js
:Remix App Server
Update
package.json
scriptsThat's it!
Other app servers
Update
package.json
scripts, specifying the command to run you app server with the-c
/--command
flag:Then, call
devReady
in your server when its up and running.For example, an Express server would call
devReady
at the end oflisten
:That's it!
Configuration
Most users won't need to configure the dev server, but you might need to if:
You can also configure via flags. For example:
remix dev -c 'nodemon ./server.mjs' --http-port=3001 --websocket-port=3002 --no-restart
See
remix dev --help
for more details.restart
If you want to manage app server updates yourself, you can use the
--no-restart
flag so that the Remix dev server doesn't restart the app server subprocess when a rebuild succeeds.For example, if you rely on require cache purging to keep your app server running while server changes are pulled in, then you'll want to use
--no-restart
.🚨 It is then your responsibility to call
devReady
whenever server changes are incorporated in your app server. 🚨So for require cache purging, you'd want to:
require
your server builddevReady
within aif (process.env.NODE_ENV === 'development')
(Looking at you, Kent 😆)
The ultimate solution for
--no-restart
would be for you to implement server-side HMR for your app server.Note: server-side HMR is not to be confused with the client-side HMR provided by Remix.
Then your app server could continuously update itself with new build with 0 downtime and without losing in-memory data that wasn't affected by the server changes.
This is left as an exercise to the reader.
Stabilize built-in PostCSS support via the new
postcss
option inremix.config.js
. As a result, thefuture.unstable_postcss
option has also been deprecated. (#5960)The
postcss
option isfalse
by default, but when set totrue
will enable processing of all CSS files using PostCSS ifpostcss.config.js
is present.If you followed the original PostCSS setup guide for Remix, you may have a folder structure that looks like this, separating your source files from its processed output:
After you've enabled the new
postcss
option, you can delete the processed files fromapp/styles
folder and move your source files fromstyles
toapp/styles
:You should then remove
app/styles
from your.gitignore
file since it now contains source files rather than processed output.You can then update your
package.json
scripts to remove any usage ofpostcss
since Remix handles this automatically. For example, if you had followed the original setup guide:Stabilize built-in Tailwind support via the new
tailwind
option inremix.config.js
. As a result, thefuture.unstable_tailwind
option has also been deprecated. (#5960)The
tailwind
option isfalse
by default, but when set totrue
will enable built-in support for Tailwind functions and directives in your CSS files iftailwindcss
is installed.If you followed the original Tailwind setup guide for Remix and want to make use of this feature, you should first delete the generated
app/tailwind.css
.Then, if you have a
styles/tailwind.css
file, you should move it toapp/tailwind.css
.Otherwise, if you don't already have an
app/tailwind.css
file, you should create one with the following contents:You should then remove
/app/tailwind.css
from your.gitignore
file since it now contains source code rather than processed output.You can then update your
package.json
scripts to remove any usage oftailwindcss
since Remix handles this automatically. For example, if you had followed the original setup guide:Patch Changes
url()
rules when using CSS Modules, Vanilla Extract and CSS side-effect imports (#5788)$.jsx
) route from matching a root/
path (#6130)@remix-run/[email protected]
@remix-run/[email protected]
@remix-run/[email protected]
Minor Changes
@remix-run/eslint-config/jest
ESLint config (#5697)@remix-run/[email protected]
Minor Changes
Enable support for CSS Modules, Vanilla Extract and CSS side-effect imports (#6046)
These CSS bundling features were previously only available via
future.unstable_cssModules
,future.unstable_vanillaExtract
andfuture.unstable_cssSideEffectImports
options inremix.config.js
, but they have now been stabilized.CSS Bundle Setup
In order to use these features, you first need to set up CSS bundling in your project. First install the
@remix-run/css-bundle
package.Then return the exported
cssBundleHref
as a stylesheet link descriptor from thelinks
function at the root of your app.CSS Modules
To use CSS Modules, you can opt in via the
.module.css
file name convention. For example:Vanilla Extract
To use Vanilla Extract, first install its
css
package as a dev dependency.You can then opt in via the
.css.ts
/.css.js
file name convention. For example:CSS Side-Effect Imports
Any CSS files that are imported as side-effects (e.g.
import "./styles.css"
) will be automatically included in the CSS bundle.Since JavaScript runtimes don't support importing CSS in this way, you'll also need to add any packages using CSS side-effect imports to the
serverDependenciesToBundle
option in yourremix.config.js
file. This ensures that any CSS imports are compiled out of your code before running it on the server. For example, to use React Spectrum:Stabilize built-in PostCSS support via the new
postcss
option inremix.config.js
. As a result, thefuture.unstable_postcss
option has also been deprecated. (#5960)The
postcss
option isfalse
by default, but when set totrue
will enable processing of all CSS files using PostCSS ifpostcss.config.js
is present.If you followed the original PostCSS setup guide for Remix, you may have a folder structure that looks like this, separating your source files from its processed output:
After you've enabled the new
postcss
option, you can delete the processed files fromapp/styles
folder and move your source files fromstyles
toapp/styles
:You should then remove
app/styles
from your.gitignore
file since it now contains source files rather than processed output.You can then update your
package.json
scripts to remove any usage ofpostcss
since Remix handles this automatically. For example, if you had followed the original setup guide:Stabilize built-in Tailwind support via the new
tailwind
option inremix.config.js
. As a result, thefuture.unstable_tailwind
option has also been deprecated. (#5960)The
tailwind
option isfalse
by default, but when set totrue
will enable built-in support for Tailwind functions and directives in your CSS files iftailwindcss
is installed.If you followed the original Tailwind setup guide for Remix and want to make use of this feature, you should first delete the generated
app/tailwind.css
.Then, if you have a
styles/tailwind.css
file, you should move it toapp/tailwind.css
.Otherwise, if you don't already have an
app/tailwind.css
file, you should create one with the following contents:You should then remove
/app/tailwind.css
from your.gitignore
file since it now contains source code rather than processed output.You can then update your
package.json
scripts to remove any usage oftailwindcss
since Remix handles this automatically. For example, if you had followed the original setup guide:Patch Changes
useSyncExternalStore
(#6121)@remix-run/[email protected]
Minor Changes
Enable support for CSS Modules, Vanilla Extract and CSS side-effect imports (#6046)
These CSS bundling features were previously only available via
future.unstable_cssModules
,future.unstable_vanillaExtract
andfuture.unstable_cssSideEffectImports
options inremix.config.js
, but they have now been stabilized.CSS Bundle Setup
In order to use these features, you first need to set up CSS bundling in your project. First install the
@remix-run/css-bundle
package.Then return the exported
cssBundleHref
as a stylesheet link descriptor from thelinks
function at the root of your app.CSS Modules
To use CSS Modules, you can opt in via the
.module.css
file name convention. For example:Vanilla Extract
To use Vanilla Extract, first install its
css
package as a dev dependency.You can then opt in via the
.css.ts
/.css.js
file name convention. For example:CSS Side-Effect Imports
Any CSS files that are imported as side-effects (e.g.
import "./styles.css"
) will be automatically included in the CSS bundle.Since JavaScript runtimes don't support importing CSS in this way, you'll also need to add any packages using CSS side-effect imports to the
serverDependenciesToBundle
option in yourremix.config.js
file. This ensures that any CSS imports are compiled out of your code before running it on the server. For example, to use React Spectrum:Dev server improvements (#6133)
Guide
Enable
unstable_dev
inremix.config.js
:Remix App Server
Update
package.json
scriptsThat's it!
Other app servers
Update
package.json
scripts, specifying the command to run you app server with the-c
/--command
flag:Then, call
devReady
in your server when its up and running.For example, an Express server would call
devReady
at the end oflisten
:That's it!
Configuration
Most users won't need to configure the dev server, but you might need to if:
You can also configure via flags. For example:
remix dev -c 'nodemon ./server.mjs' --http-port=3001 --websocket-port=3002 --no-restart
See
remix dev --help
for more details.restart
If you want to manage app server updates yourself, you can use the
--no-restart
flag so that the Remix dev server doesn't restart the app server subprocess when a rebuild succeeds.For example, if you rely on require cache purging to keep your app server running while server changes are pulled in, then you'll want to use
--no-restart
.🚨 It is then your responsibility to call
devReady
whenever server changes are incorporated in your app server. 🚨So for require cache purging, you'd want to:
require
your server builddevReady
within aif (process.env.NODE_ENV === 'development')
(Looking at you, Kent 😆)
The ultimate solution for
--no-restart
would be for you to implement server-side HMR for your app server.Note: server-side HMR is not to be confused with the client-side HMR provided by Remix.
Then your app server could continuously update itself with new build with 0 downtime and without losing in-memory data that wasn't affected by the server changes.
This is left as an exercise to the reader.
Stabilize built-in PostCSS support via the new
postcss
option inremix.config.js
. As a result, thefuture.unstable_postcss
option has also been deprecated. (#5960)The
postcss
option isfalse
by default, but when set totrue
will enable processing of all CSS files using PostCSS ifpostcss.config.js
is present.If you followed the original PostCSS setup guide for Remix, you may have a folder structure that looks like this, separating your source files from its processed output:
After you've enabled the new
postcss
option, you can delete the processed files fromapp/styles
folder and move your source files fromstyles
toapp/styles
:You should then remove
app/styles
from your.gitignore
file since it now contains source files rather than processed output.You can then update your
package.json
scripts to remove any usage ofpostcss
since Remix handles this automatically. For example, if you had followed the original setup guide:Stabilize built-in Tailwind support via the new
tailwind
option inremix.config.js
. As a result, thefuture.unstable_tailwind
option has also been deprecated. (#5960)The
tailwind
option isfalse
by default, but when set totrue
will enable built-in support for Tailwind functions and directives in your CSS files iftailwindcss
is installed.If you followed the original Tailwind setup guide for Remix and want to make use of this feature, you should first delete the generated
app/tailwind.css
.Then, if you have a
styles/tailwind.css
file, you should move it toapp/tailwind.css
.Otherwise, if you don't already have an
app/tailwind.css
file, you should create one with the following contents:You should then remove
/app/tailwind.css
from your.gitignore
file since it now contains source code rather than processed output.You can then update your
package.json
scripts to remove any usage oftailwindcss
since Remix handles this automatically. For example, if you had followed the original setup guide:Patch Changes
AppLoadContext
tohandleRequest
(#5836)@remix-run/[email protected]
Minor Changes
Enable support for CSS Modules, Vanilla Extract and CSS side-effect imports (#6046)
These CSS bundling features were previously only available via
future.unstable_cssModules
,future.unstable_vanillaExtract
andfuture.unstable_cssSideEffectImports
options inremix.config.js
, but they have now been stabilized.CSS Bundle Setup
In order to use these features, you first need to set up CSS bundling in your project. First install the
@remix-run/css-bundle
package.Then return the exported
cssBundleHref
as a stylesheet link descriptor from thelinks
function at the root of your app.CSS Modules
To use CSS Modules, you can opt in via the
.module.css
file name convention. For example:Vanilla Extract
To use Vanilla Extract, first install its
css
package as a dev dependency.You can then opt in via the
.css.ts
/.css.js
file name convention. For example:CSS Side-Effect Imports
Any CSS files that are imported as side-effects (e.g.
import "./styles.css"
) will be automatically included in the CSS bundle.Since JavaScript runtimes don't support importing CSS in this way, you'll also need to add any packages using CSS side-effect imports to the
serverDependenciesToBundle
option in yourremix.config.js
file. This ensures that any CSS imports are compiled out of your code before running it on the server. For example, to use React Spectrum:Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
getLoadContext
in all adapters (#6170)@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
getLoadContext
in all adapters (#6170)@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
getLoadContext
in all adapters (#6170)@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
getLoadContext
in all adapters (#6170)@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
getLoadContext
in all adapters (#6170)@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
getLoadContext
in all adapters (#6170)@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/node/install
side-effect to allownode --require @remix-run/node/install
(#6132)@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
@remix-run/node/install
side-effect to allownode --require @remix-run/node/install
(#6132)@remix-run/[email protected]
@remix-run/[email protected]
@remix-run/[email protected]
Patch Changes
getLoadContext
in all adapters (#6170)@remix-run/[email protected]
[email protected]
remix
See the
CHANGELOG.md
in individual Remix packages for all changes.