Releases: coreui/coreui-free-react-admin-template
v2.5.0
v2.5.0
for use with:
- react-router-dom
~5.0.0
- @coreui/react
~2.5.0
dependencies update
- update:
@coreui/react
to~2.5.0
- update:
react-router-config
to^5.0.0
- update:
react-router-dom
to^5.0.0
It turns out that this is not such a breaking change, as it seemed at first.
Just update dependencies and you're good.
migration guide v2.1 -> v2.5 💥
just update dependencies
in package.json
-
@coreui/react
to~2.5.0
-
react-router-dom
to^5.0.0
-
react-router-config
to^5.0.0
React Router v5 uses the new React Context API, which is incompatible with version used in 4.3.
That's a breaking change. With a raw upgrade to v5, you can encounter an error message: You should not render a <Route> outside a <Router>
or You should not use <Link> outside a <Router>
etc... It means that Route, Link etc, can't find the correct context object because Breadcrumb
and SidebarNav
components have their own context object.
It's important to use the same instance of the react-router-dom v5
library with template and coreui components. @coreui/react
version 2.5.0
moves react-router-dom from dependencies to peerDependecies and takes the same library/module from the template/app instead. We have to pass router
module object as a prop to <AppSidebarNav>
and <AppBreadcrumb>
.
migration guide v2.1 -> v2.5 💥
-
update
dependencies
inpackage.json
-
@coreui/react
to~2.5.0
-
react-router-dom
to^5.0.0
-
react-router-config
to^5.0.0
-
-
modify
DefaultLayout.js
-
import react-router-dom module as an object
import * as router from 'react-router-dom';
-
import new versions of components
AppBreadcrumb2
andAppSidebarNav2
(alias is optional, just keep consistency with markup)import { ... AppBreadcrumb2 as AppBreadcrumb, AppSidebarNav2 as AppSidebarNav ... } from '@coreui/react';
-
inject
router
object as a prop to<AppSidebarNav>
and<AppBreadcrumb>
<AppSidebarNav navConfig={navigation} {...this.props} router={router}/>
<AppBreadcrumb appRoutes={routes} router={router}/>
-
v2.1.7
v2.1.7
- maintenance release for use with:
- react-router
v4.3.x
- reactstrap
v7.x
- @coreui/react
~2.1.7
- create-react-app
v3.x
- react-router
- chore: add
package-lock.json
with updatedtar
dependency - chore: fix
test:cov
script - fix(Popovers): add
trigger="legacy" delay={0}
(breaking change in reactstrap)
dependencies update
- update:
@coreui/react
to~2.1.7
- update:
@coreui/coreui-plugin-chartjs-custom-tooltips
to^1.3.0
- update:
enzyme-adapter-react-16
to^1.13.0
- update:
node-sass
to^4.12.0
- update:
react
to^16.8.6
- update:
react-app-polyfill
to^1.0.1
- update:
react-chartjs-2
to^2.7.6
- update:
react-dom
to^16.8.6
- update:
react-test-renderer
to^16.8.6
- update:
react-scripts
to^3.0.1
v2.1.6
v2.1.6
- fix(App): remove redundant react-loadable - thanks @sergeyt #166
- fix(routes) remove circular dependency - thanks @sergeyt #165
- refactor(App): change to render in Route
- fix(routes): add Home to routes - breadcrumb issue
- refactor(DefaultHeader): move to ReactRouter
NavLink
- refactor(Forms): move to
InputGroupButtonDropdown
where applicable - lock:
react-router-dom
to~4.3.1
dependencies update
- update:
@coreui/coreui
to^2.1.9
- update:
@coreui/react
to~2.1.5
- update:
chart.js
to^2.8.0
- update:
enzyme-adapter-react-16
to^1.11.2
- update:
react
to^16.8.5
- update:
react-app-polyfill
to^0.2.2
- update:
react-dom
to^16.8.5
- update:
react-router-config
to^4.4.0-beta.8
- update:
react-test-renderer
to^16.8.5
- update:
react-scripts
to^2.1.8
v2.1.5
v2.1.5
- fix: iOS 9 Safari sidebar toggle force issue
@coreui/react@2.1.5
dependencies update
- update:
@coreui/react
to^2.1.5
- update:
enzyme-adapter-react-16
to^1.10.0
- update:
flag-icon-css
to^3.3.0
- update:
react
to^16.8.4
- update:
react-dom
to^16.8.4
- update:
react-test-renderer
to^16.8.4
v2.1.4
v2.1.4
dependencies update
- update:
@coreui/coreui
to^2.1.7
- update:
@coreui/react
to^2.1.4
- update:
bootstrap
to^4.3.1
- update:
core-js
to^2.6.5
- update:
enzyme
to^3.9.0
- update:
enzyme-adapter-react-16
to^1.9.1
- update:
prop-types
to^15.7.2
- update:
react
to^16.8.2
- update:
react-app-polyfill
to^0.2.1
- update:
react-dom
to^16.8.2
- update:
react-test-renderer
to^16.8.2
- update:
reactstrap
to^7.1.0
- update:
react-scripts
to2.1.5
v2.1.3
v2.1.3
- fix(Collapse): add
mb-0
to accordion cards - fix(ButtonGroups): misplaced dropdownOpen
- chore: update
@coreui/coreui
to^2.1.5
- chore: update
@coreui/react
to^2.1.3
- chore: update
bootstrap
to^4.2.1
- chore: update
core-js
to^2.6.1
- chore: update
enzyme
to^3.8.0
- chore: update
enzyme-adapter-react-16
to^1.7.1
- chore: update
node-sass
to^4.11.0
- chore: update
react
to^16.7.0
- chore: update
react-app-polyfill
to^0.2.0
- chore: update
react-chartjs-2
to^2.7.4
- chore: update
react-dom
to^16.7.0
- chore: update
react-test-renderer
to^16.7.0
- chore: update
reactstrap
to^7.0.2
- chore: update
react-scripts
to2.1.3
v2.1.2
v2.1.1
v2.1.1
- refactor(App.js): code splitting with
react-loadable
(waiting for release ofreact-router-dom
) - refactor(routes.js): code splitting with
React.lazy
, removereact-loadable
- refactor(DefaultLayout): code splitting with
React.lazy
Aside, Footer, Header, routes - refactor(Dashboard): tweak lazy and Suspense for Widget03
- refactor(Login): add router link to
Register
button - refactor(Register): add margins to social-media buttons
- chore: disable eslint warning for href="#" attribute
- chore: update
@coreui/coreui
to^2.1.1
- chore: update
enzyme-adapter-react-16
to1.7.0
- chore: update
react
to16.6.3
- chore: update
react-dom
to16.6.3
- chore: update
react-test-renderer
to16.6.3
v2.1.0
v2.1.0
- feat(SidebarNav): navLink
attributes
- optional JS object with valid JS API naming:- valid attributes:
rel
,target
,hidden
,disabled
, etc... - starting with
@coreui/coreui
,@coreui/react
version2.1.0
and up - closes #106
- item example(
./src/_nav.js
):{ name: 'Disabled', url: '/disabled', icon: 'icon-ban', attributes: { disabled: true }, }, { name: 'Try CoreUI PRO', url: 'https://coreui.io/pro/react/', icon: 'cui-layers icons', variant: 'danger', attributes: { target: '_blank', rel: "noopener" }, },
- valid attributes:
- fix(Cards):
card-header-actions
added toCardHeader
forrtl
support - feat(Dashboard): new
Suspense
example with Widget03
- chore: update
@coreui/coreui
to2.1.0
- chore: update
@coreui/react
to2.1.0
- chore: update
node-sass
to4.10.0
- chore: update
react
to16.6.1
- chore: update
react-dom
to16.6.1
- chore: update
react-test-renderer
to16.6.1
v2.0.14
v2.0.14
- chore: update
@coreui/coreui
to2.0.25
- chore: update
chart.js
to2.7.3
- chore: update
flag-icon-css
to3.2.1
- chore: update
node-sass
to4.9.4
- chore: update
react
to16.6.0
- chore: update
react-dom
to16.6.0
- chore: update
react-router-config
to4.4.0-beta.6
- chore: update
react-test-renderer
to16.6.0
- chore: update
react-scripts
to2.1.1