Skip to content

v1.0.0

Compare
Choose a tag to compare
@jvhoven jvhoven released this 26 Sep 13:24
· 37 commits to master since this release

Breaking changes 🚨🚨🚨

The 1.0.0 version has the following breaking changes:

PrivateRoute and AuthorizedRoute no longer accept a component as property.
You should now upgrade as follows:

From:

<AuthorizedRoute component={AdminPage} path="/admin" authorizer={someFunction} />
<PrivateRoute component={AdminPage} path="/" />

To:

<AuthorizedRoute path="/admin" authorizer={someFunction}>
	<AdminPage />
</AuthorizedRoute>

<PrivateRoute path="/">
	<AdminPage />
</PrivateRoute>