Skip to content

Releases: renatodeleao/v-base

[email protected]

03 Aug 16:15
Compare
Choose a tag to compare
[email protected] 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/[email protected]@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

Full Changelog: https://github.com/renatodeleao/v-base/commits/[email protected]