github remix-run/remix remix@1.6.8

latest releases: v0.0.0-nightly-417ecc42b-20241109, remix@2.14.0, @remix-run/testing@2.14.0...
2 years ago

What's Changed

💅 Enhancements

  • You can now use .mjs or .cjs file extensions for remix.config (#3675)
  • We added support for importing .sql files 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 AppLoadContext type is now an an interface mapping string to unknown (#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 action was omitted from <Form> or useFormAction, 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


Full Changelog: https://github.com/remix-run/remix/compare/remix@1.6.7...remix@1.6.8

Don't miss a new remix release

NewReleases is sending notifications on new releases.