Skip to content

v6.0.0

Latest
Compare
Choose a tag to compare
@Grsmto Grsmto released this 15 Jan 21:17
· 62 commits to master since this release

⚠️ Breaking changes!

Major

SimpleBar has been (almost )entirely rewritten in TypeScript!

core

  • ⚠️ SimpleBar v6 does not use any polyfill anymore by default!
    If you see any error in a browser you want support for, you might need a polyfill!
    You can use Babel @babel/preset-env to polyfill for you, see our examples package or check out polyfill.io.
  • timeout option is now deprecated. It is now only made with a CSS transition that you can override with CSS as you want.
  • mutation-observer polyfill is not shipped by default anymore.
  • core-js is not included anymore. We now use TypeScript instead of Babel so polyfilling is up to you!
  • Bundle is much smaller!
  • New useful classes on host element:
    .simplebar-hover,
    .simplebar-mouse-entered,
    .simplebar-scrolling,
    .simplebar-scrollable.
  • Scrollbar recalculations are now throttled with RAQ instead of Lodash's throttle function, which prevents stuttering on animations (#507)

simplebar-react

  • CSS import is now import 'simplebar-react/dist/simplebar.min.css'. There was a typo in the doc for simplebar-react that was importing from simplebar and this is now fixed. Sorry about that!

simplebar-vue

  • Remove support for Vue < 2.7. Thanks again @renatodeleao for all the work on that.