Skip to content

Releases: remix-run/react-router

v6.2.2

28 Feb 23:35
Compare
Choose a tag to compare

What's Changed

πŸ› Bug Fixes

  • Fixed nested splat routes that begin with special URL-safe characters (#8563)
  • Fixed a bug where index routes were missing route context in some cases (#8497)

New Contributors

Full Changelog: v6.2.1...v6.2.2

v6.2.2-pre.0

28 Feb 23:24
Compare
Choose a tag to compare
v6.2.2-pre.0 Pre-release
Pre-release
Version 6.2.2-pre.0

v6.2.1

17 Dec 20:25
Compare
Choose a tag to compare

This release updates the internal history dependency to 5.2.0.

Full Changelog: v6.2.0...v6.2.1

v6.2.0

17 Dec 18:38
Compare
Choose a tag to compare

πŸ› Bug fixes

  • Fixed the RouteProps element type, which should be a ReactNode (#8473)
  • Fixed a bug with useOutlet for top-level routes (#8483)

✨ Features

  • We now use statically analyzable CJS exports. This enables named imports in Node ESM scripts (See the commit).

New Contributors

Full Changelog: v6.1.1...v6.2.0

v6.1.1

11 Dec 17:26
Compare
Choose a tag to compare

In v6.1.0 we inadvertently shipped a new, undocumented API that will likely introduce bugs (#7586). We have flagged HistoryRouter as unstable_HistoryRouter, as this API will likely need to change before a new major release.

Full Changelog: v6.1.0...v6.1.1

v6.1.0

10 Dec 18:19
Compare
Choose a tag to compare

πŸ› Bug fixes

  • Fixed a bug that broke support for base64 encoded IDs on nested routes (#8291)

✨ Features

  • <Outlet> can now receive a context prop. This value is passed to child routes and is accessible via the new useOutletContext hook. See the API docs for details. (#8461)
  • <NavLink> can now receive a child function for access to its props. (#8164)

πŸ’… Enhancements

  • Improved TypeScript signature for useMatch and matchPath. For example, when you call useMatch("foo/:bar/:baz"), the path is parsed and the return type will be PathMatch<"bar" | "baz">. (#8030)
  • A few error message improvements (#8202)

New Contributors

Full Changelog: v6.0.1...v6.1.0

v6.0.2

09 Nov 22:25
Compare
Choose a tag to compare

✨ Features

  • Added the reloadDocument prop to <Link>. This allows <Link> to function like a normal anchor tag by reloading the document after navigation while maintaining the relative to resolution.

πŸ—’οΈ Docs

  • Fixed several issues in docblocks and the docs themselves. See the full changelog for the deets!

🀝 New Contributors

Full Changelog

v6.0.1...v6.0.2

v6.0.1

05 Nov 23:05
Compare
Choose a tag to compare

πŸ› Bug Fixes

  • Add a default <StaticRouter location> value (#8243)
  • Add invariant for using <Route> inside <Routes> to help people make the change (#8238)

v6.0.0

03 Nov 20:15
Compare
Choose a tag to compare

v6.0.0-beta.8

22 Oct 20:49
Compare
Choose a tag to compare
v6.0.0-beta.8 Pre-release
Pre-release

Remember last week when we said

We anticipate this will be the last beta release before v6 stable next week.

Yeah, about that … πŸ˜…

We found and squashed a few high-priority bugs that needed to be addressed first. But it's coming very soon, we promise! In the mean time, here's what you'll get from our eight-est and greatest beta release:

πŸ› Bug Fixes

  • We fixed a few bugs in useHref that resulted in the incorrect resolved value in cases where a basename is used on the <Router /> component (See #8133 and #8142 for details).
  • We also fixed a bug in our path ranking algorithm so that splat routes (routes with a * path value) are now correctly ranked ahead of layout routes.

πŸ—’οΈ Docs

We've added lots of goodies to our docs and examples, and there's a lot more yet to come. Take a look and see if you find something that makes your work a little easier! We think the lazy loading and custom query parsing examples are particularly cool! πŸ€“