Skip to content
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

feat!: use vue 2.7 composition api #645

Merged
merged 9 commits into from
Jul 8, 2022
Merged

feat!: use vue 2.7 composition api #645

merged 9 commits into from
Jul 8, 2022

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Jul 5, 2022

This PR updates @nuxtjs/composition-api to use Vue 2.7 to provide the Composition API rather than using @vue/composition-api. It also drops usage of unplugin-vue2-script-setup in favour of native <script setup> (but note that this drops support for the experimental reactivity transform).

Key points in favour of the change are increased stability and not having to add workarounds to ensure we are using the same Vue instance.

BREAKING CHANGES

Some of the API and behaviour differ between Vue 2.7 and @vue/composition-api. In addition, there are some composition utilites that are no longer exported from @nuxtjs/composition-api, such as defineAsyncComponent, warn, etc.

Please read https://blog.vuejs.org/posts/vue-2-7-naruto.html for the announcement and more information.

resolves #644, resolves #643, resolves #593, resolves #19

@danielroe danielroe self-assigned this Jul 5, 2022
@danielroe danielroe marked this pull request as ready for review July 8, 2022 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment