Skip to content

Releases: renatodeleao/v-base

v-eye@0.4.1-alpha.1

03 Aug 16:15
Compare
Choose a tag to compare
v-eye@0.4.1-alpha.1 Pre-release
Pre-release
  • fixes retrieval of dom refs on vue3: this.$el no longer points to the first element passed to the slot on renderless components. It now points to a placeholder component (comment). We use this to get the element via .nextElementSibling https://stackoverflow.com/a/71903249/2801012
  • adds support for template refs: if you want v-eye to be bound to a specific element on the slot, use setElementRef function
     <v-eye v-slot="{ setElementRef }">
        <div>Something i don't want</div>
        <button :ref="setElementRef>the element i want</button>
    
  • drops usage of deprecated $set and $delete apis

Full Changelog: https://github.com/renatodeleao/v-base/compare/v-eye@0.4.0-alpha.0...v-eye@0.4.1-alpha.1

💚 with `@vue/compat`

30 Jul 09:08
Compare
Choose a tag to compare
Pre-release

Pushed the wrong version it should have been 0.4.0-alpha.1 but wtv :shipit:

This patch makes the library work with vue@3 + @vue/compat. Default compat mode is 2 for backwards compatibility, but our isVue3 flag still evals to true, so our utils were wrongly forward to instance properties that "no" exist in this mode: $slots in this mode are not yet covered to functions, as vue3, so it broke.

universal 🪐

26 Jul 15:58
Compare
Choose a tag to compare
universal 🪐 Pre-release
Pre-release

What's Changed

  • The library now works in vue@2.7.x and vue@3.x. BREAKING: no longer works in 2.6.x check #3 for why.
  • added 2.7 and 3.x playgrounds to play around powered by vite

Full Changelog: https://github.com/renatodeleao/v-base/commits/v-eye@0.4.0-alpha.0