-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove composition-api plugin & upgrade to vue 2.7 #1981
Remove composition-api plugin & upgrade to vue 2.7 #1981
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Did not test it yet, just some questions and remarks.
Thanks for the contribution! ❤️
/** | ||
* Switch between Vue 3 and Vue 2 '@vue/composition-api'. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also adapt the docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"@vue/cli-plugin-babel": "~4.5.18", | ||
"@vue/cli-plugin-typescript": "~4.5.18", | ||
"@vue/cli-plugin-unit-jest": "~4.5.18", | ||
"@vue/cli-service": "~4.5.18", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to raise these dependencies? If yes please align them in the Vue 3 packages. If possible any dependency within the monorepo should be required in the same version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it should be at least ~4.5.18
for v4 or ~5.0.6
for v5 . See here. I align the Vue 3 packages as well to ~4.5.18
export { computed, defineComponent, inject, onBeforeMount, onUnmounted, reactive, ref, watch, watchEffect } from "@vue/composition-api"; | ||
export type { Ref } from "@vue/composition-api"; | ||
export { computed, defineComponent, inject, onBeforeMount, onUnmounted, reactive, ref, watch, watchEffect } from "vue"; | ||
export type { Ref } from "vue"; | ||
/** | ||
* Compatibility type as defineComponent of '@vue/composition-api' can't properly handle PropTypes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also the docs here.
See #1978