⚠️ Breaking changes
- Support for Vue 2 dropped!: If you are using Vue 2, stick to v1.x.
- Deprecated
transitionDuration
: Some changes to Vue made it very hard to keeptransitionDuration
. If you need to change the duration of a transition, override the transition classes. - Removed native Nuxt support: Since no Vue 3-compatible Nuxt version has been released, there is no native support to it for now.
🚀 New Features
- Vue 3 support: Vue 3 is now supported by default. Vue 2 support was dropped.
- Composition API: This version uses the composition API all the way down with
provideToast
,useToast
, and injection keys. onMounted
callback now receives the App:onMounted
also provides the VueToastification Vue App as the second parameter.- New EventBus: A custom EventBus is used to transfer events instead of a Vue instance.
🔧 Bug fixes
- Fixed non passive
touchstart
event:touchstart
events are now passive.
📖 Documentation
- Updated docs to target Vue 3: Updated the docs to target Vue 3 and the new interfaces.
📦 Bundle
- ES2017 by default: All package versions now target ES2017. Make sure to use Babel on your app if you need to target lower versions.