cmp-cc / vue-cookies

A simple Vue.js plugin for handling browser cookies
MIT License
408 stars 70 forks source link

Vue 3 support #59

Closed anish2690 closed 2 years ago

anish2690 commented 4 years ago

Hey guys, Is there is a plan regarding this plugin and Vue3?

NMFES commented 4 years ago

+1 to the question

polinwei commented 4 years ago

+1 same

anish2690 commented 4 years ago

@polinwei https://github.com/anish2690/vue-cookie-next

ruralcoder commented 3 years ago

We don't need branch offs. So please upgrade to v3!

goshku commented 3 years ago

anything about Vue 3.0?

talelmishali commented 3 years ago

Any update?

LittleWhiteLoti commented 3 years ago

It works in Vue 3.0.11 if you are willing to change a little bit of the code. The loading style of ES 2015 works fine but how it is installed is incorrect. We no longer use the Vue.prototype. It is now Vue.config.globalProperties. Put the following in vue-cookie.js instead of the Vue.prototype.$cookies = this;

Vue.prototype ? Vue.prototype.$cookies = this : Vue.config.globalProperties.$cookies = this;

doonv commented 2 years ago

73 Fixes this. Why hasn't it merged yet?

Edit: It appears the last commit was 2 years ago. I don't think the owner the repo will back anytime soon, so someone needs to make a fork of this. Sadly the fork number is 69. I donno what we could do about that. It can't go any higher.

cmp-cc commented 2 years ago

1.8.0 release

support vue3

doonv commented 2 years ago

Oh, nice.