Skip to content

Vue 3 Release vue-click-outside-element@3.0.0

Compare
Choose a tag to compare
@ColtHands ColtHands released this 16 Oct 14:29
· 16 commits to master since this release

Key changes from Vue 2 to Vue 3

  • New directive hook methods bind -> beforeMount | unbind -> beforeUnmount` (official docs have unbind -> unmounted)
  • New and better types
  • More guards with instanceof
  • Throws Error if you haven't provided a function
  • Better tests:
    • Lifecycle methods tested
    • addEventListener and removeEventListener binds

Also with that there is a clear Roadmap

  • To have v-click-outside.element and v-click-outside.component modificators
  • Considering adding VTL and Vitest tests