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
pluginsAPI https://github.com/atlassian-labs/react-resource-router/blob/master/docs/api/plugins.md
Breaking changes
- All
resourcesexports are moved toreact-resource-router/resources. Here is a codemod to simplify migration <Router plugins={...} />pluginsprop is now required- Resources plugin now has to be enabled on the
Routerin order to useresourcesAPI. Here is an example of how to useresourcesplugin 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
StaticRouterhas been removed in favour ofRouterisStaticprop has been removed as node environments are now automatically detectedhistoryprop is required inRouterresourceDataprop has been removed fromMemoryRouter
New features
- Introduce plugins and extract resources as a plugin