nuxt-community / nuxt-property-decorator

Property decorators for Nuxt (base on vue-property-decorator)
https://github.com/kaorun343/vue-property-decorator
MIT License
400 stars 34 forks source link

Nuxt-Property-Decorator 3 - Nuxt 3, Vue 3 and Vue Class Component v8 readiness #83

Closed husayt closed 2 years ago

husayt commented 3 years ago

We need to start working on Nuxt-Property-Decorator 3 which will work with Vue Class Component v8.

@pi0 @Atinux going forward this library will shape depending on vue 3 related changes in next versions of vue-class-component and nuxt. I want to make sure we can adopt this library and make it ready by the time new nuxt is released. Can I have access to nuxt-3 for vue3 to give it a try as Vue Class Component v8 is already available in beta.

pi0 commented 3 years ago

Hi @husayt. I will let you know as soon as nuxt3 alpha package is published so you can try it. BTW pages/composition api is not finalized for nuxt3 so it might have breaking changes.

husayt commented 3 years ago

Thanks @pi0 , I will be looking forward. Before even starting to change anything, we need to just get some ideas about how it will look in v3. For that we will need to do some experimentation and that will take some time.

furepa commented 3 years ago

Before even starting to change anything, we need to just get some ideas about how it will look in v3. For that we will need to do some experimentation and that will take some time.

Hi @husayt, did you have the possibility to have a look at Nuxt 3 and start your experiments. I wonder if Nuxt-Property-Decorator will be quickly available after the release of Nuxt 3. Thank you for any feedback.

husayt commented 3 years ago

I haven't had access to nuxt 3 yet. To be honest, with composition api available there is not much point in using this library. If someone is keen to maintain the library that will be welcome, but I am not going to be using it so will not be able to allocate time to it.

On Sat, 7 Aug 2021, 14:35 furepa, @.***> wrote:

Before even starting to change anything, we need to just get some ideas about how it will look in v3. For that we will need to do some experimentation and that will take some time.

Hi @husayt https://github.com/husayt, did you have the possibility to have a look at Nuxt 3 and start your experiments. I wonder if Nuxt-Property-Decorator will be quickly available after the release of Nuxt

  1. Thank you for any feedback.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nuxt-community/nuxt-property-decorator/issues/83#issuecomment-894637072, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI5PLHDIB3M5GJD7HDVZXTT3UEAFANCNFSM4WGCO2IQ .

furepa commented 3 years ago

I haven't had access to nuxt 3 yet. To be honest, with composition api available there is not much point in using this library. If someone is keen to maintain the library that will be welcome, but I am not going to be using it so will not be able to allocate time to it. On Sat, 7 Aug 2021, 14:35 furepa, @.***> wrote: Before even starting to change anything, we need to just get some ideas about how it will look in v3. For that we will need to do some experimentation and that will take some time. Hi @husayt https://github.com/husayt, did you have the possibility to have a look at Nuxt 3 and start your experiments. I wonder if Nuxt-Property-Decorator will be quickly available after the release of Nuxt 3. Thank you for any feedback. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI5PLHDIB3M5GJD7HDVZXTT3UEAFANCNFSM4WGCO2IQ .

I'm trying to understand the dependencies between the components in a project built (not by me) with Nuxt/Vue 2 and this library. Your reference to composition api give me the hint for my next steps. Thank you very much for your input.

rklos commented 2 years ago

+1 for nuxt3 support

synopss commented 2 years ago

To be honest, with composition api available there is not much point in using this library.

Hey, @husayt can you elaborate on this part please ? Even if the composition API is better than the option API, I am pretty sure the class component way of doing thing has still a big user base. The composition API has indeed some benefits, but I personnaly think, comming from backend, that it's easier to understand things with class component & decorators.

husayt commented 2 years ago

Hi, I am not using this module anymore. If anyone is willing to make thd required changes, they are more than welcome

TokugawaTakeshi commented 2 years ago

How much dontations your community needs to adapt this library for Nuxt 3?

husayt commented 2 years ago

To not to set any expectations, it is best to close this issue. Recommend everyone to switch to composition api.

I have recently switched number of projects using nuxt property decorator to nuxt3. Have to say it was much easier switching class based components than classic options based ones. Composition api and script setup allows very similar programming style to nuxt-property-decorator.

My team has a spare capacity to help with transition (on a paid base ), if anyone is interested, drop me a line and we will provide you with a quote depending on the project.

TokugawaTakeshi commented 2 years ago

By other words, "Good luck to you with the learning of Composition API and changing of your thinking, methodologies and guidelines to Composition API oriented". Well, it is the Open Source, not business, I suppose we can not complain...

husayt commented 2 years ago

I have myself been looking for a way forward for our apps using this library and composition api is the most pragmatic answer. Switch is very easy and the mindset is very similar. The main problem in switching to nuxt3 is library support, not the composition api. Most libraries/modules are not supported or not nuxt3 ready.

IlyaSemenov commented 1 year ago

I published a drop-in Nuxt 3 replacement for nuxt-property-decorator: https://github.com/IlyaSemenov/nuxt3-class-component.

The existing components code just works without any modification.

TokugawaTakeshi commented 1 year ago

@IlyaSemenov

I and many OOP followers can not thank you enough. I'll star your repository!