-
Notifications
You must be signed in to change notification settings - Fork 416
Remove composition-api plugin & upgrade to vue 2.7 #1981
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
Changes from 1 commit
e9b0084
b5f912a
d909956
7aca0eb
bb3956b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| /** | ||
| * Switch between Vue 3 and Vue 2 '@vue/composition-api'. | ||
| */ | ||
| 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. | ||
|
||
| */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,7 @@ | ||
| import Vue, { VNode } from 'vue'; | ||
| import Vue, { VNode, CreateElement } from 'vue'; | ||
| import App from './components/App.vue'; | ||
| import VueCompositionAPI from '@vue/composition-api' | ||
|
|
||
| Vue.use(VueCompositionAPI) | ||
|
|
||
| Vue.config.productionTip = false; | ||
|
|
||
| new Vue({ | ||
| render: (h): VNode => h(App), | ||
| render: (h: CreateElement): VNode => h(App), | ||
| }).$mount('#app'); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,11 +59,10 @@ | |
| "@jsonforms/vue2": "^3.0.0-beta.5", | ||
| "@rollup/plugin-alias": "^3.1.8", | ||
| "@types/jest": "^24.0.23", | ||
| "@vue/cli-plugin-babel": "~4.5.0", | ||
| "@vue/cli-plugin-typescript": "~4.5.0", | ||
| "@vue/cli-plugin-unit-jest": "~4.5.0", | ||
| "@vue/cli-service": "~4.5.0", | ||
| "@vue/composition-api": "^1.4.2", | ||
| "@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", | ||
|
Comment on lines
+62
to
+65
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes it should be at least |
||
| "@vue/test-utils": "^1.0.3", | ||
| "cp-cli": "^2.0.0", | ||
| "cross-env": "^7.0.2", | ||
|
|
@@ -78,11 +77,11 @@ | |
| "symlink-dir": "^5.0.0", | ||
| "typedoc": "^0.19.2", | ||
| "typescript": "4.2.3", | ||
| "vue-template-compiler": "^2.6.14" | ||
| "vue-loader": "^15.10.0" | ||
marcianos marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }, | ||
| "peerDependencies": { | ||
| "@jsonforms/core": "3.0.0-beta.5", | ||
| "@jsonforms/vue2": "3.0.0-beta.5", | ||
| "vue": "^2.6.14" | ||
| "vue": "^2.7.0" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,8 @@ | ||
| import Vue, { VNode } from 'vue'; | ||
| import Vue, { VNode, CreateElement } from 'vue'; | ||
| import App from './components/App.vue'; | ||
| import VueCompositionAPI from '@vue/composition-api' | ||
|
|
||
| Vue.use(VueCompositionAPI) | ||
|
|
||
| Vue.config.productionTip = false; | ||
|
|
||
| new Vue({ | ||
| render: (h): VNode => h(App), | ||
| render: (h: CreateElement): VNode => h(App), | ||
| }).$mount('#app'); |
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.
Should we just adjust the comment? Because now it could be one config file for vue 2 and 3 and not two separte files like right now (vue2 vue3)