AustinGil / vuetensils

🍴 A tasty toolset for Vue.js 🛠 - Lightweight, functional components to boost your next project.
https://vuetensils.austingil.com/
MIT License
658 stars 38 forks source link

Vue 3 support #105

Closed TheJaredWilcurt closed 2 years ago

TheJaredWilcurt commented 4 years ago

There should be a Vue 3 compatible version of Vuetensils. Not sure how it should be handled (new major version bump, or just two different branches).

AustinGil commented 4 years ago

Yeah, I was already prepping a major version bump anyway, so I think I'll add support there anyway. Im curious what doesnt work or where the gaps are though. V3 should be somewhat backwards compatible.

patrickcate commented 4 years ago

I believe Vue 3 no longer has filters.

gwenf commented 4 years ago

I'll be working on this this week. I'll update here as I find things and hopefully make a PR soon.

AustinGil commented 4 years ago

That would be awesome @gwenf. Thank you!

gwenf commented 4 years ago

Just want to post an update on this issue. I've been trying out updating this library and I think we should wait for 2 things:

  1. Migration build which should be out soon: https://v3.vuejs.org/guide/migration/introduction.html#breaking-changes
  2. Vuepress to support Vue 3, which they are working on: https://github.com/vuepress/vuepress-next
AustinGil commented 4 years ago

Thanks for the update @gwenf. I was thinking about this recently as well. Been too busy with other stuff, but I've been doing more work with Vuetensils on a work project which is the best way for me to make some decisions about things. Whats missing, what could be better, etc.

gwenf commented 3 years ago

Update: Vuepress Next is in alpha 15 already. We can start migrating this soon.

2011sandeepraj commented 3 years ago

Hello, Our inexperienced development team is about to decide between using Vue2 and Vue3 for a project in the next week. While most prefer Vue3, we are keeping a close eye on all of the Material design libraries out there including vuetensils. Is there an date when you think this Vuetensils support for Vue3 will be ready to use?

AustinGil commented 3 years ago

Hey, @2011sandeepraj, I dont have a date for support planned yet. I appreciate your support, but I want to also make sure you are aware this is not a Material design library. Are you sure you aren't thinking of something like Vuetify?

2011sandeepraj commented 3 years ago

Thanks @AustinGil Right! We are just looking at this library instead of vuetify as vuetify's support for vue 3 is out in Q3/Q4 We did look at PrimeVue as it is already supporting vue 3 but it does lack community support. Others like Quasar are also still under development. Do you have any other suggestions?

lbineau commented 3 years ago

Hello @AustinGil, I'm starting a new project on Vue 3. Any plans for a Vuetensils beta version? :-) Thank you.

AustinGil commented 3 years ago

Great question @lbineau. Im beginning my own migration to Vue 3 recently as well. I've added some features to Vuetensils for composition API support, but I'm still not sure how to migrate existing components without introducing breaking changes or having to maintain two codebases (if you know a way please let me know).

With my last round of changes in place, supporting Vue 3 is my next goal, so I'm hoping to get it squared away soon. Sorry I can't give an exact date.

lbineau commented 3 years ago

I'm still using Vue 3 as I was using Vue 2 without composition API, so it is very transparent for me to switch. That's obviously not the case for libraries, I totally get that.

In the latest 3.1 release core team introduced a Migration build https://v3.vuejs.org/guide/migration/migration-build.html to help people migrating libraries:

Not sure how helpful it will be but I really think there is a strong need for that tool. Very few libraries (especially small ones like yours) are available in Vue 3 and the adoption rate really depend on the ecosystem.

AustinGil commented 3 years ago

Thanks @lbineau. I saw that migration tool, but didn't know it worked for libraries as well. I've also come across Vue Demi which may do the trick https://github.com/vueuse/vue-demi. I definitely want to get V3 support in the next release cycle.

AustinGil commented 2 years ago

Vue 3 support should be ready to go

lbineau commented 2 years ago

I will give it a try for the only component I'm using on a Vue 3 project (Toggle). Thanks for the hard work @AustinGil!