Skip to content

Conversation

@marcianos
Copy link
Contributor

See #1978

@CLAassistant
Copy link

CLAassistant commented Jul 18, 2022

CLA assistant check
All committers have signed the CLA.

@marcianos marcianos marked this pull request as ready for review July 18, 2022 11:28
Copy link
Member

@sdirix sdirix left a 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! ❤️

Comment on lines 1 to 3
/**
* Switch between Vue 3 and Vue 2 '@vue/composition-api'.
*/
Copy link
Member

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

Copy link
Contributor Author

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)

Comment on lines +62 to +65
"@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",
Copy link
Member

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.

Copy link
Contributor Author

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";
export type { Ref } from "vue";
/**
* Compatibility type as defineComponent of '@vue/composition-api' can't properly handle PropTypes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also the docs here.

@marcianos marcianos requested a review from sdirix July 21, 2022 09:59
sdirix added 2 commits July 24, 2022 21:52
- Adapt package-locks
- Remove vue & @vue/composition-api switch
- Align versions
@coveralls
Copy link

coveralls commented Jul 24, 2022

Coverage Status

Coverage remained the same at 84.356% when pulling bb3956b on marcianos:upgrade-dependency-to-vue-2-7 into 7d0bf34 on eclipsesource:master.

@sdirix sdirix merged commit f4b51e6 into eclipsesource:master Jul 24, 2022
@sdirix sdirix linked an issue Jul 24, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade peer dependencies JSON Forms Package for vue2 to vue 2.7

4 participants