v1.6.8
What's Changed
💅 Enhancements
- You can now use
.mjsor.cjsfile extensions forremix.config(#3675) - We added support for importing
.sqlfiles as text content (#3190) - We made some optimizations in our compiler to make MDX builds deterministic (and a little faster!) (#3966)
- Your load context is now type safe! The
AppLoadContexttype is now an an interface mappingstringtounknown(#1876). This allows you to extend it via module augmentation:declare module "@remix-run/server-runtime" { interface AppLoadContext { // add custom properties here! } }
- We added a subscribe method to the transition manager, which allows subscribing and unsubscribing for React 18 strict mode compliance (#3964)
🐛 Bug fixes
- Previously, if an
actionwas omitted from<Form>oruseFormAction, the action value would default to".". This is incorrect, as"."should resolve based on the current path, but an empty action resolves relative to the current URL (including the search and hash values). We've fixed this to differentiate between the two, meaning that the resolved action will preserve the full URL. (#3697) - Fixed a few types to work more seamlessly with changes in
@types/react@18(#3917)
Changes by package
New Contributors
- @DanielFGray made their first contribution in #1876
- @julio-lemos made their first contribution in #3874
- @nrako made their first contribution in #3611
Full Changelog: v1.6.7...v1.6.8