Skip to content

v5.0.0

Compare
Choose a tag to compare
@fkhadra fkhadra released this 11 Apr 15:48

Changelog

🔥Features

  • toast are now animated on position change #303
  • The ToastContainer is now optional, if user opt-in. It will be mounted if none is present 😲 #319
  • Add a new api to configure the ToastContainer if it's lazy mounted
  • Display the default CloseButton when closeButton option is set to true #313 (credit @alanlima)
  • Add an option to delay toast rendering #304

🕷Bugfixes

  • toast.dismiss work when the id is 0 #316 (credit @alanlima)
  • The timer pause when hovering the close icon #237

🛠Misc

  • Update dependencies
  • Fix Readme typos (credit @naclcaleb)
  • @babel/runtime is a new dependency. This help reduce bundle size (credit @NeoLegends)
  • Single file build just like react and react-router.
  • Add a pre-optimized production builds.
  • Add esm modules. The lib is now "tree-shakable"
  • Reduced size of the production build from 8Kb to 5Kb