Releases: atlassian-labs/react-resource-router
Releases · atlassian-labs/react-resource-router
v0.26.0
v0.25.0
0.24.2
v0.24.1
v0.24.0
New features
- Router
plugins
API https://github.com/atlassian-labs/react-resource-router/blob/master/docs/api/plugins.md
Breaking changes
- All
resources
exports are moved toreact-resource-router/resources
. Here is a codemod to simplify migration <Router plugins={...} />
plugins
prop is now required- Resources plugin now has to be enabled on the
Router
in order to useresources
API. Here is an example of how to useresources
plugin https://github.com/atlassian-labs/react-resource-router/blob/master/examples/hooks/index.tsx#L63
const resourcesPlugin = createResourcesPlugin({});
...
<Router plugins={[resourcesPlugin]}>
v0.23.1
v0.23.0
v0.22.2
v0.22.1
v0.22.0
Breaking changes
StaticRouter
has been removed in favour ofRouter
isStatic
prop has been removed as node environments are now automatically detectedhistory
prop is required inRouter
resourceData
prop has been removed fromMemoryRouter
New features
- Introduce plugins and extract resources as a plugin