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-pro, @coreui/react version 2.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" },
      },
      
  • refactor(Draggables): breakpoints and layouts consistency with bootstrap 4
  • fix(Cards): card-header-actions added to CardHeader for rtl support
  • feat(Dashboard): new Suspense example with Widget03 fixing some issues with rtl, ie11, sidebar-minimized behaviour and aside responsiveness
  • fix(DefaultAside): ListGroup with tag="div" works better with rtl
  • fix(DefaultLayout): AppAside remove deprecated hidden prop
  • chore: update @coreui/coreui-pro to 2.1.0
  • chore: update @coreui/react to 2.1.0
  • chore: update react-text-mask-hoc to 0.11.0
  • chore: update react-dates to 18.2.2
  • chore: update react-quill to 1.3.2
  • chore: update codemirror to 5.41.0
  • chore: update formik to 1.3.1
  • chore: update reactstrap to 6.5.0
  • chore: update yup to 0.26.6
  • chore: update react-toastify to 4.4.1
  • chore: update chart.js to 2.7.3
  • chore: update flag-icon-css to 3.2.1
  • chore: remove unused src/scss/vendors/charts.js/ directory
Migration to Create React App 2.0 :
  • chore: update react-scripts to ^2.1.1
  • chore: add node-sass v4.10.0
  • chore: update react to 16.6.1
  • chore: update react-dom to 16.6.1
  • chore: update react-test-renderer to 16.6.1
  • chore: add react-app-polyfill v0.1.3
  • chore: update react-router-config to 4.4.0-beta.6
  • chore: update reactsrtrap to ^6.5.0
  • chore: enzyme to 3.7.0
  • chore: enzyme-adapter-react-16 to 1.7.0
  • chore: add eslintConfig in package.json
  • chore: add browserslist in package.json
  • chore: update manifest.json
  • refactor(index.js): add react-app-polyfill for ie11 support
  • refactor(index.js): migration to serviceWorker.js
  • cleanup package.json scripts
  • remove babel-jest dependency
  • remove node-sass-chokidar dependency
  • remove npm-run-all dependency
  • move App.js import styles to App.scss
  • replace imports from node_modules/ with ~ prefix
Migrating from CRA 1.x to 2.x:

affected files:

  • package.json -> dependencies update
  • src/index.js -> move to serviceWorker, add react-app-polyfill for ie11 support when needed

In most cases bumping the react-scripts version in package.json and running npm install in this folder should be enough, but it’s good to consult the changelog for potential breaking changes.

Subscribe to our newsletter
Get early information about new products, product updates and blog posts.