- Hot Module Replacement and Hot Data Revalidation (#5259)
- Requires
unstable_dev
future flag to be enabled - HMR provided through React Refresh
- Features:
- HMR for component and style changes
- HDR when loaders for current route change
- Known limitations for MVP:
- Only implemented for React via React Refresh
- No
import.meta.hot
API exposed yet - Revalidates all loaders on route when loader changes are detected
- Loader changes do not account for imported dependencies changing
- Requires
- Make
entry.client
andentry.server
files optional (#4600)- we'll use a bundled version of each unless you provide your own
-
Fixes flat route inconsistencies where
route.{ext}
wasn't always being treated likeindex.{ext}
when used in a folder (#5459)-
Route conflict no longer throw errors and instead display a helpful warning that we're using the first one we found.
⚠️ Route Path Collision: "/dashboard" The following routes all define the same URL, only the first one will be used 🟢️️ routes/dashboard/route.tsx ⭕️️ routes/dashboard.tsx
⚠️ Route Path Collision: "/" The following routes all define the same URL, only the first one will be used 🟢️️ routes/_landing._index.tsx ⭕️️ routes/_dashboard._index.tsx ⭕️ routes/_index.tsx
-
-
Log errors thrown during initial build in development. (#5441)
-
Sync
FutureConfig
interface between packages (#5398) -
Add file loader for importing
.csv
files (#3920) -
Updated dependencies:
@remix-run/[email protected]
- We are deprecating
serverBuildTarget
inremix.config
. See the release notes for v1.13.0 for more information. (#5354) - Add built-in support for PostCSS via the
future.unstable_postcss
feature flag (#5229) - Add built-in support for Tailwind via the
future.unstable_tailwind
feature flag (#5229)
- Mark Vanilla Extract files as side effects to ensure that files only containing global styles aren't tree-shaken (#5246)
- Support decorators in files using CSS side-effect imports (#5305)
- We made several Flat route fixes and enhancements. See the release notes for v1.13.0 for more information. (#5228)
- Updated dependencies:
@remix-run/[email protected]
- Added a new development server available in the Remix config under the
unstable_dev
flag. See the release notes for a full description. (#5133)
- Fixed issues with
v2_routeConvention
on Windows so that new and renamed files are properly included (#5266) - Server build should not be removed in
remix watch
andremix dev
(#5228) - The dev server will now clean up build directories whenever a rebuild starts (#5223)
- Updated dependencies:
@remix-run/[email protected]
- Fixed a bug with
v2_routeConvention
that preventedindex
modules from being recognized for route paths (195291a3d
) - Updated dependencies:
@remix-run/[email protected]
- Specify file loader for
.fbx
,.glb
,.gltf
,.hdr
, and.mov
files (#5030) - Added support for Vanilla Extract via the
unstable_vanillaExtract
future flag. IMPORTANT: Features marked withunstable
are … unstable. While we're confident in the use cases they solve, the API and implementation may change without a major version bump. (#5040) - Add support for CSS side-effect imports via the
unstable_cssSideEffectImports
future flag. IMPORTANT: Features marked withunstable
are … unstable. While we're confident in the use cases they solve, the API and implementation may change without a major version bump. (#4919) - Add support for CSS Modules via the
unstable_cssModules
future flag. IMPORTANT: Features marked withunstable
are … unstable. While we're confident in the use cases they solve, the API and implementation may change without a major version bump. (#4852)
- Add new "flat" routing conventions. This convention will be the default in v2 but is available now under the
v2_routeConvention
future flag. (#4880) - Added support for
handle
in MDX frontmatter (#4865) - Updated dependencies:
@remix-run/[email protected]
- Update babel config to transpile down to node 14 (#5047)
- Updated dependencies:
@remix-run/[email protected]
- Fixed several issues with TypeScript to JavaScript conversion when running
create-remix
(#4891) - Resolve asset entry full path to support monorepo import of styles (#4855)
- Updated dependencies:
@remix-run/[email protected]
- Allow defining multiple routes for the same route module file (#3970)
- Added support and conventions for optional route segments (#4706)
- The Remix compiler now supports new Typescript 4.9 syntax (like the
satisfies
keyword) (#4754) - Optimize
parentRouteId
lookup indefineConventionalRoutes
. (#4800) - Fixed a bug in
.ts
->.js
conversion on Windows by using a relative unix-style path (#4718) - Updated dependencies:
@remix-run/[email protected]
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Added a missing type definition for the Remix config
future
option to the@remix-run/dev/server-build
virtual module (#4771) - Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Added support for a new route
meta
API to handle arrays of tags instead of an object. For details, check out the RFC. (#4610)
- Importing functions and types from the
remix
package is deprecated, and all exported modules will be removed in the next major release. For more details,see the release notes for 1.4.0 where these changes were first announced. (#4661) - Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Update
create-remix
to use the new examples repository when using--template example/<name>
(#4208) - Add support for setting
moduleResolution
tonode
,node16
ornodenext
intsconfig.json
. (#4034) - Add resources imported only by resource routes to
assetsBuildDirectory
(#3841) - Ensure that any assets referenced in CSS files are hashed and copied to the
assetsBuildDirectory
. (#4130) - Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Added support for importing
.gql
and.graphql
files as plain text (#3923) - Added support for importing
.zip
and.avif
files as resource URLs (#3985)
- Removed our compiler's React shim in favor of esbuild's new automatic JSX transform (#3860)
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Added support for
.mjs
and.cjs
file extensions forremix.config
(#3675) - Added support for importing
.sql
files as text content (#3190) - Updated the compiler to make MDX builds deterministic (and a little faster!) (#3966)
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Remove logical nullish assignment, which is incompatible with Node v14. (#3880)
- Don't show ESM warnings when consumed via dynamic import. (#3872)
- Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]
- Write server build output files so that only assets imported from resource routes are written to disk (#3817)
- Add support for exporting links in
.mdx
files (#3801) - Ensure that build hashing is deterministic (#2027)
- Fix types for
@remix-run/dev/server-build
virtual module (#3743) - Updated dependencies:
@remix-run/[email protected]
@remix-run/[email protected]