Skip to content

v6.0.0

Compare
Choose a tag to compare
@fkhadra fkhadra released this 10 May 15:21

Release notes

πŸš€ Features

  • possibility to limit the number of toast displayed #298
  • support strict mode πŸ’ͺ
  • can define inline style on toast
  • HTML ids can be set for ToastContainer and Toast components(containerId, toastId are used as id)
  • better close button icon
  • possibility to unsubscribe to onChange event #450
  • dark toast πŸ’…
    darl-theme
  • expose hook to create your own ToastContainer(not documented yet)
  • expose hook to create your own Toast (not documented yet)
  • new documentation powered by docusaurus2 and algolia search πŸ”₯

πŸ•·Bug fixes

  • progress style from toast not being used
  • fix some tests

πŸ’₯ Breaking changes

  • className only support string now.
  • πŸ”₯ require react v16.8 due to the introduction of hook
  • calculate center position using transform instead of using margin-left = toast size /2
  • upgrade to latest react-transition-group to support strictmode. This impact your custom transition

🧐 Internal

  • fully rewritten in typescript
  • switch from enzyme to react-testing-library
  • bundled by tsdx
  • smaller bundle size πŸ‘Œ