testing-library/vue-testing-library

Vue 3.2 Extra peerDependencies vue-sfc-compiler required

hikariNTU opened this issue · 4 comments

Describe the bug:
Starting from vue@3.2.13, @vue/compiler-sfc is built-in dependency in Vue.
But removing it from dependencies list will cause package manager to warn about unmet dependency.

To Reproduce:
Install vue@next, then install testing library vue, sfc-complier is inside the dependency list if using npm 7+

Expected behavior
@vue/compiler-sfc might be marked as optional if and only if vue >= 3.2.13, but I am afraid none of the existing package meta can handle this situation.

hi @afontcu, @vue/test-utils has a release 2.0.0 on latest tag now, can we update this repo to use it instead of rc version?

Hi @ahnpnl! Just released VTL for Vue 3 on latest: https://www.npmjs.com/package/@testing-library/vue/v/6.6.0

Hi @ahnpnl! Just released VTL for Vue 3 on latest: https://www.npmjs.com/package/@testing-library/vue/v/6.6.0

Thanks @afontcu , but I think there is still a mistake with this https://github.com/testing-library/vue-testing-library/blob/main/package.json#L48 it should be ^2.0.0

I think there is still a mistake with this https://github.com/testing-library/vue-testing-library/blob/main/package.json#L48 it should be ^2.0.0

"^2.0.0-rc.18" should also accept installing 2.0.0:
image

that being said, I'll happily take a PR updating the specified version to 2.0.0 😃