From 75dfc2b299a97b12ae8dbce18d0997d8f750e61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Exbrayat?= Date: Mon, 4 Jul 2022 08:04:26 +0200 Subject: [PATCH 1/4] fix: type-checking issue with script setup in v2.0.1 (#1601) * chore: workaround vue-tsc issue johnsoncodehk/volar#1452 * fix mount overload, allow DefineComponent to infer it's own generics * readding missing parameters * add overload for vue-tsc Co-authored-by: Carlos Rodrigues --- package.json | 2 +- src/mount.ts | 23 ++++++ tests/components/AsyncComponent.vue | 1 + tests/components/ComponentWithoutName.vue | 2 + tests/components/Issue1476.vue | 15 ++-- tests/components/Issue425.vue | 6 +- tests/components/ParentComponent.vue | 2 + yarn.lock | 96 +++++++++++------------ 8 files changed, 88 insertions(+), 59 deletions(-) diff --git a/package.json b/package.json index caaf6b774..e1b672948 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "vue-class-component": "^8.0.0-rc.1", "vue-jest": "^5.0.0-alpha.10", "vue-router": "^4.0.16", - "vue-tsc": "0.35.2", + "vue-tsc": "0.37.8", "vuex": "^4.0.2" }, "peerDependencies": { diff --git a/src/mount.ts b/src/mount.ts index 40068fd44..0c83419d1 100644 --- a/src/mount.ts +++ b/src/mount.ts @@ -57,6 +57,24 @@ const MOUNT_OPTIONS: Array> = [ 'shallow' ] +type ComponentMountingOptions = T extends DefineComponent< + infer PropsOrPropOptions, + any, + infer D, + any, + any +> + ? MountingOptions< + Partial> & + Omit< + Readonly> & PublicProps, + keyof ExtractDefaultPropTypes + >, + D + > & + Record + : MountingOptions + function getInstanceOptions( options: MountingOptions & Record ): Record { @@ -172,6 +190,11 @@ export function mount< > > > +// component declared by vue-tsc ScriptSetup +export function mount>( + component: T, + options?: ComponentMountingOptions +): VueWrapper> // Component declared with no props export function mount< diff --git a/tests/components/AsyncComponent.vue b/tests/components/AsyncComponent.vue index e69de29bb..6b4c19a05 100644 --- a/tests/components/AsyncComponent.vue +++ b/tests/components/AsyncComponent.vue @@ -0,0 +1 @@ + diff --git a/tests/components/ComponentWithoutName.vue b/tests/components/ComponentWithoutName.vue index d2bea94f8..deea6107c 100644 --- a/tests/components/ComponentWithoutName.vue +++ b/tests/components/ComponentWithoutName.vue @@ -1,3 +1,5 @@ + + diff --git a/tests/components/Issue1476.vue b/tests/components/Issue1476.vue index ad5a5e0f0..3af30e384 100644 --- a/tests/components/Issue1476.vue +++ b/tests/components/Issue1476.vue @@ -4,10 +4,7 @@ -
+
{{ field.name }}
@@ -15,12 +12,14 @@ diff --git a/tests/components/Issue425.vue b/tests/components/Issue425.vue index 4c642bdf4..e7dc73f10 100644 --- a/tests/components/Issue425.vue +++ b/tests/components/Issue425.vue @@ -7,7 +7,9 @@ diff --git a/tests/components/ParentComponent.vue b/tests/components/ParentComponent.vue index d3c1f2eac..3a973f826 100644 --- a/tests/components/ParentComponent.vue +++ b/tests/components/ParentComponent.vue @@ -5,3 +5,5 @@
child
+ + diff --git a/yarn.lock b/yarn.lock index 0722245ee..1dcaf8fff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1916,39 +1916,39 @@ resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-2.3.3.tgz#fbf80cc039b82ac21a1acb0f0478de8f61fbf600" integrity sha512-SmQLDyhz+6lGJhPELsBdzXGc+AcaT8stgkbiTFGpXPe8Tl1tJaBw1A6pxDqDuRsVkD8uscrkx3hA7QDOoKYtyw== -"@volar/code-gen@0.35.2": - version "0.35.2" - resolved "https://registry.yarnpkg.com/@volar/code-gen/-/code-gen-0.35.2.tgz#eb7a573139d0cbaee3d7f38b3362ed6e8838ecaa" - integrity sha512-MoZHuNnPfUWnCNkQUI5+U+gvLTxrU+XlCTusdNOTFYUUAa+M68MH0RxFIS9Ybj4uAUWTcZx0Ow1q5t/PZozo+Q== - dependencies: - "@volar/source-map" "0.35.2" - -"@volar/source-map@0.35.2": - version "0.35.2" - resolved "https://registry.yarnpkg.com/@volar/source-map/-/source-map-0.35.2.tgz#7097ca5941b8c01a7fa7f8e66d1195d31c240638" - integrity sha512-PFHh9wN/qMkOWYyvmB8ckvIzolrpNOvK5EBdxxdTpiPJhfYjW82rMDBnYf6RxCe7yQxrUrmve6BWVO7flxWNVQ== - -"@volar/vue-code-gen@0.35.2": - version "0.35.2" - resolved "https://registry.yarnpkg.com/@volar/vue-code-gen/-/vue-code-gen-0.35.2.tgz#770d00706eec85e1e261461d0b6fd13ebe888792" - integrity sha512-8H6P8EtN06eSVGjtcJhGqZzFIg6/nWoHVOlnhc5vKqC7tXwpqPbyMQae0tO7pLBd5qSb/dYU5GQcBAHsi2jgyA== - dependencies: - "@volar/code-gen" "0.35.2" - "@volar/source-map" "0.35.2" - "@vue/compiler-core" "^3.2.36" - "@vue/compiler-dom" "^3.2.36" - "@vue/shared" "^3.2.36" - -"@volar/vue-typescript@0.35.2": - version "0.35.2" - resolved "https://registry.yarnpkg.com/@volar/vue-typescript/-/vue-typescript-0.35.2.tgz#e299702c92f2897af7029f8ae685721c0ef13257" - integrity sha512-PZI6Urb+Vr5Dvgf9xysM8X7TP09inWDy1wjDtprBoBhxS7r0Dg3V0qZuJa7sSGz7M0QMa5R/CBaZPhlxFCfJBw== - dependencies: - "@volar/code-gen" "0.35.2" - "@volar/source-map" "0.35.2" - "@volar/vue-code-gen" "0.35.2" - "@vue/compiler-sfc" "^3.2.36" - "@vue/reactivity" "^3.2.36" +"@volar/code-gen@0.37.8": + version "0.37.8" + resolved "https://registry.yarnpkg.com/@volar/code-gen/-/code-gen-0.37.8.tgz#aedd078cdce99e04671b43c381d153ac42c6fa01" + integrity sha512-znGxjKs/8TOqkWyarlLDQcCIpzCMt1bUPImLWdJtF2pAkdgZR0YzzXXoWV3eAwcO2JGCeL3lv2jddaswqDeQHQ== + dependencies: + "@volar/source-map" "0.37.8" + +"@volar/source-map@0.37.8": + version "0.37.8" + resolved "https://registry.yarnpkg.com/@volar/source-map/-/source-map-0.37.8.tgz#0df8b10eb72201e1b3ded4aa7762462727ad2fa0" + integrity sha512-wlmzWIPhb7UAz/ZRGh8db5JoFPERjzRIodrdDn4YD9YejDEmxluRZ3vtYgUiGwJmtT/6UtB9YtPJWjr7XeMMNA== + +"@volar/vue-code-gen@0.37.8": + version "0.37.8" + resolved "https://registry.yarnpkg.com/@volar/vue-code-gen/-/vue-code-gen-0.37.8.tgz#6c18b35d1635f3ddf3a7e8f477824ae3f34578cb" + integrity sha512-q1RaVjgMM2xRZTqIyJuiZaE2LGJIUnLRHScO02T2C26k+1Ah9z61BCOVBvA3BIh+JpPs7AhaAljiVxh7l/7TaA== + dependencies: + "@volar/code-gen" "0.37.8" + "@volar/source-map" "0.37.8" + "@vue/compiler-core" "^3.2.37" + "@vue/compiler-dom" "^3.2.37" + "@vue/shared" "^3.2.37" + +"@volar/vue-typescript@0.37.8": + version "0.37.8" + resolved "https://registry.yarnpkg.com/@volar/vue-typescript/-/vue-typescript-0.37.8.tgz#5ddef614419f33eeef5ec9430693d9ce1f5b96ef" + integrity sha512-Tcq7r7ArHXgJEGuMmhN9e5h+jj5tS3exygPnw82gnePKPCHhzegYQfBljhJ4GuVshVeheMmKYEJOkQ9pN+K35w== + dependencies: + "@volar/code-gen" "0.37.8" + "@volar/source-map" "0.37.8" + "@volar/vue-code-gen" "0.37.8" + "@vue/compiler-sfc" "^3.2.37" + "@vue/reactivity" "^3.2.37" "@vue/babel-helper-vue-transform-on@^1.0.2": version "1.0.2" @@ -1975,7 +1975,7 @@ resolved "https://registry.yarnpkg.com/@vue/compat/-/compat-3.2.37.tgz#bd2062a2be88d06046311d5c058aefb17a1d438a" integrity sha512-MIYkFAz3Fur1mtZBqrNMYTymlohCQ0ol6vtNb58cqExLSCt63xZaXyiZZYPvS6WaMXfbNBDPXMvU9tO922eFCA== -"@vue/compiler-core@3.2.36", "@vue/compiler-core@^3.2.36": +"@vue/compiler-core@3.2.36": version "3.2.36" resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.36.tgz#2fa44595308c95610602df54dcb69063ba2c8383" integrity sha512-bbyZM5hvBicv0PW3KUfVi+x3ylHnfKG7DOn5wM+f2OztTzTjLEyBb/5yrarIYpmnGitVGbjZqDbODyW4iK8hqw== @@ -1985,7 +1985,7 @@ estree-walker "^2.0.2" source-map "^0.6.1" -"@vue/compiler-core@3.2.37": +"@vue/compiler-core@3.2.37", "@vue/compiler-core@^3.2.37": version "3.2.37" resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.2.37.tgz#b3c42e04c0e0f2c496ff1784e543fbefe91e215a" integrity sha512-81KhEjo7YAOh0vQJoSmAD68wLfYqJvoiD4ulyedzF+OEk/bk6/hx3fTNVfuzugIIaTrOx4PGx6pAiBRe5e9Zmg== @@ -1995,7 +1995,7 @@ estree-walker "^2.0.2" source-map "^0.6.1" -"@vue/compiler-dom@3.2.36", "@vue/compiler-dom@^3.2.36": +"@vue/compiler-dom@3.2.36": version "3.2.36" resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.2.36.tgz#16d911ff163ed5fc8087a01645bf14bb7f325401" integrity sha512-tcOTAOiW4s24QLnq+ON6J+GRONXJ+A/mqKCORi0LSlIh8XQlNnlm24y8xIL8la+ZDgkdbjarQ9ZqYSvEja6gVA== @@ -2003,7 +2003,7 @@ "@vue/compiler-core" "3.2.36" "@vue/shared" "3.2.36" -"@vue/compiler-dom@3.2.37": +"@vue/compiler-dom@3.2.37", "@vue/compiler-dom@^3.2.37": version "3.2.37" resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.2.37.tgz#10d2427a789e7c707c872da9d678c82a0c6582b5" integrity sha512-yxJLH167fucHKxaqXpYk7x8z7mMEnXOw3G2q62FTkmsvNxu4FQSu5+3UMb+L7fjKa26DEzhrmCxAgFLLIzVfqQ== @@ -2011,7 +2011,7 @@ "@vue/compiler-core" "3.2.37" "@vue/shared" "3.2.37" -"@vue/compiler-sfc@3.2.36", "@vue/compiler-sfc@^3.2.36": +"@vue/compiler-sfc@3.2.36": version "3.2.36" resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.2.36.tgz#e5065e7c0e5170ffa750e3c3dd93a29db109d0f2" integrity sha512-AvGb4bTj4W8uQ4BqaSxo7UwTEqX5utdRSMyHy58OragWlt8nEACQ9mIeQh3K4di4/SX+41+pJrLIY01lHAOFOA== @@ -2027,7 +2027,7 @@ postcss "^8.1.10" source-map "^0.6.1" -"@vue/compiler-sfc@3.2.37": +"@vue/compiler-sfc@3.2.37", "@vue/compiler-sfc@^3.2.37": version "3.2.37" resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.2.37.tgz#3103af3da2f40286edcd85ea495dcb35bc7f5ff4" integrity sha512-+7i/2+9LYlpqDv+KTtWhOZH+pa8/HnX/905MdVmAcI/mPQOBwkHHIzrsEsucyOIZQYMkXUiTkmZq5am/NyXKkg== @@ -2086,14 +2086,14 @@ estree-walker "^2.0.2" magic-string "^0.25.7" -"@vue/reactivity@3.2.36", "@vue/reactivity@^3.2.36": +"@vue/reactivity@3.2.36": version "3.2.36" resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.2.36.tgz#026b14e716febffe80cd284fd8a2b33378968646" integrity sha512-c2qvopo0crh9A4GXi2/2kfGYMxsJW4tVILrqRPydVGZHhq0fnzy6qmclWOhBFckEhmyxmpHpdJtIRYGeKcuhnA== dependencies: "@vue/shared" "3.2.36" -"@vue/reactivity@3.2.37": +"@vue/reactivity@3.2.37", "@vue/reactivity@^3.2.37": version "3.2.37" resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.2.37.tgz#5bc3847ac58828e2b78526e08219e0a1089f8848" integrity sha512-/7WRafBOshOc6m3F7plwzPeCu/RCVv9uMpOwa/5PiY1Zz+WLVRWiy0MYKwmg19KBdGtFWsmZ4cD+LOdVPcs52A== @@ -2150,12 +2150,12 @@ "@vue/compiler-ssr" "3.2.37" "@vue/shared" "3.2.37" -"@vue/shared@3.2.36", "@vue/shared@^3.2.36": +"@vue/shared@3.2.36": version "3.2.36" resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.36.tgz#35e11200542cf29068ba787dad57da9bdb82f644" integrity sha512-JtB41wXl7Au3+Nl3gD16Cfpj7k/6aCroZ6BbOiCMFCMvrOpkg/qQUXTso2XowaNqBbnkuGHurLAqkLBxNGc1hQ== -"@vue/shared@3.2.37": +"@vue/shared@3.2.37", "@vue/shared@^3.2.37": version "3.2.37" resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.37.tgz#8e6adc3f2759af52f0e85863dfb0b711ecc5c702" integrity sha512-4rSJemR2NQIo9Klm1vabqWjD8rs/ZaJSzMxkMNeJS6lHiUjjUeYFbooN19NgFjztubEKh3WlZUeOLVdbbUWHsw== @@ -5562,12 +5562,12 @@ vue-router@^4.0.16: dependencies: "@vue/devtools-api" "^6.0.0" -vue-tsc@0.35.2: - version "0.35.2" - resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-0.35.2.tgz#85b94027bebc0c6834e0c20b337900468d83b28d" - integrity sha512-aqY16VlODHzqtKGUkqdumNpH+s5ABCkufRyvMKQlL/mua+N2DfSVnHufzSNNUMr7vmOO0YsNg27jsspBMq4iGA== +vue-tsc@0.37.8: + version "0.37.8" + resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-0.37.8.tgz#7b78b2a4b5b2f53fdbb2bc06e0e4935576d7c759" + integrity sha512-geFpG3qxmb7QIDlPeHCvWomsQHfcgFZ280Nbh3Fj/bQ+Bz0pplTE6rjAq/VLelg8KcbchO5PdACexxeS+mCZAA== dependencies: - "@volar/vue-typescript" "0.35.2" + "@volar/vue-typescript" "0.37.8" vue@3.2.37: version "3.2.37" From 4a546dfe10a4b62ccce2ebb91f2c2c31131d4b16 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 Jul 2022 01:24:17 +0000 Subject: [PATCH 2/4] chore(deps-dev): bump @typescript-eslint/parser from 5.30.0 to 5.30.3 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.30.0 to 5.30.3. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.30.3/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 50 ++++++++------------------------------------------ 2 files changed, 9 insertions(+), 43 deletions(-) diff --git a/package.json b/package.json index e1b672948..9d5938a16 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@types/node": "18.0.0", "@types/pretty": "^2.0.1", "@typescript-eslint/eslint-plugin": "^5.30.3", - "@typescript-eslint/parser": "^5.30.0", + "@typescript-eslint/parser": "^5.30.3", "@vue/babel-plugin-jsx": "^1.1.1", "@vue/compat": "3.2.37", "@vue/compiler-dom": "3.2.37", diff --git a/yarn.lock b/yarn.lock index 1dcaf8fff..4cf255a53 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1812,23 +1812,15 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@^5.30.0": - version "5.30.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.30.0.tgz#a2184fb5f8ef2bf1db0ae61a43907e2e32aa1b8f" - integrity sha512-2oYYUws5o2liX6SrFQ5RB88+PuRymaM2EU02/9Ppoyu70vllPnHVO7ioxDdq/ypXHA277R04SVjxvwI8HmZpzA== - dependencies: - "@typescript-eslint/scope-manager" "5.30.0" - "@typescript-eslint/types" "5.30.0" - "@typescript-eslint/typescript-estree" "5.30.0" - debug "^4.3.4" - -"@typescript-eslint/scope-manager@5.30.0": - version "5.30.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.30.0.tgz#bf585ee801ab4ad84db2f840174e171a6bb002c7" - integrity sha512-3TZxvlQcK5fhTBw5solQucWSJvonXf5yua5nx8OqK94hxdrT7/6W3/CS42MLd/f1BmlmmbGEgQcTHHCktUX5bQ== +"@typescript-eslint/parser@^5.30.3": + version "5.30.3" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.30.3.tgz#d288c7dbeadf22403112c773dd53e0700f6dd6d5" + integrity sha512-ddwGEPC3E49DduAUC8UThQafHRE5uc1NE8jdOgl+w8/NrYF50MJQNeD3u4JZrqAXdY9rJz0CdQ9HpNME20CzkA== dependencies: - "@typescript-eslint/types" "5.30.0" - "@typescript-eslint/visitor-keys" "5.30.0" + "@typescript-eslint/scope-manager" "5.30.3" + "@typescript-eslint/types" "5.30.3" + "@typescript-eslint/typescript-estree" "5.30.3" + debug "^4.3.4" "@typescript-eslint/scope-manager@5.30.3": version "5.30.3" @@ -1847,29 +1839,11 @@ debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@5.30.0": - version "5.30.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.30.0.tgz#db7d81d585a3da3801432a9c1d2fafbff125e110" - integrity sha512-vfqcBrsRNWw/LBXyncMF/KrUTYYzzygCSsVqlZ1qGu1QtGs6vMkt3US0VNSQ05grXi5Yadp3qv5XZdYLjpp8ag== - "@typescript-eslint/types@5.30.3": version "5.30.3" resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.30.3.tgz#8ef6313dcec2e297b167dd25ef363e36857c49ff" integrity sha512-vshU3pjSTgBPNgfd55JLYngHkXuwQP68fxYFUAg1Uq+JrR3xG/XjvL9Dmv28CpOERtqwkaR4QQ3mD0NLZcE2Xw== -"@typescript-eslint/typescript-estree@5.30.0": - version "5.30.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.30.0.tgz#4565ee8a6d2ac368996e20b2344ea0eab1a8f0bb" - integrity sha512-hDEawogreZB4n1zoqcrrtg/wPyyiCxmhPLpZ6kmWfKF5M5G0clRLaEexpuWr31fZ42F96SlD/5xCt1bT5Qm4Nw== - dependencies: - "@typescript-eslint/types" "5.30.0" - "@typescript-eslint/visitor-keys" "5.30.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - "@typescript-eslint/typescript-estree@5.30.3": version "5.30.3" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.30.3.tgz#d5ff918499dd56039864c157a898b1322d7bff8c" @@ -1895,14 +1869,6 @@ eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/visitor-keys@5.30.0": - version "5.30.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.30.0.tgz#07721d23daca2ec4c2da7f1e660d41cd78bacac3" - integrity sha512-6WcIeRk2DQ3pHKxU1Ni0qMXJkjO/zLjBymlYBy/53qxe7yjEFSvzKLDToJjURUhSl2Fzhkl4SMXQoETauF74cw== - dependencies: - "@typescript-eslint/types" "5.30.0" - eslint-visitor-keys "^3.3.0" - "@typescript-eslint/visitor-keys@5.30.3": version "5.30.3" resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.30.3.tgz#2c5f7a16c36748d1c51ea5a9c29bfb64780ce466" From 3c5b0c560084461799a18a0904e38b29ae945875 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Jul 2022 06:08:14 +0000 Subject: [PATCH 3/4] chore(deps-dev): bump vue-tsc from 0.35.2 to 0.38.2 Bumps [vue-tsc](https://github.com/johnsoncodehk/volar/tree/HEAD/packages/vue-tsc) from 0.35.2 to 0.38.2. - [Release notes](https://github.com/johnsoncodehk/volar/releases) - [Changelog](https://github.com/johnsoncodehk/volar/blob/master/CHANGELOG.md) - [Commits](https://github.com/johnsoncodehk/volar/commits/v0.38.2/packages/vue-tsc) --- updated-dependencies: - dependency-name: vue-tsc dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 54 ++++++++++++++++++++++++++-------------------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/package.json b/package.json index 9d5938a16..fc9aa6e18 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "vue-class-component": "^8.0.0-rc.1", "vue-jest": "^5.0.0-alpha.10", "vue-router": "^4.0.16", - "vue-tsc": "0.37.8", + "vue-tsc": "0.38.2", "vuex": "^4.0.2" }, "peerDependencies": { diff --git a/yarn.lock b/yarn.lock index 4cf255a53..bb03a5f63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1882,37 +1882,37 @@ resolved "https://registry.yarnpkg.com/@vitejs/plugin-vue/-/plugin-vue-2.3.3.tgz#fbf80cc039b82ac21a1acb0f0478de8f61fbf600" integrity sha512-SmQLDyhz+6lGJhPELsBdzXGc+AcaT8stgkbiTFGpXPe8Tl1tJaBw1A6pxDqDuRsVkD8uscrkx3hA7QDOoKYtyw== -"@volar/code-gen@0.37.8": - version "0.37.8" - resolved "https://registry.yarnpkg.com/@volar/code-gen/-/code-gen-0.37.8.tgz#aedd078cdce99e04671b43c381d153ac42c6fa01" - integrity sha512-znGxjKs/8TOqkWyarlLDQcCIpzCMt1bUPImLWdJtF2pAkdgZR0YzzXXoWV3eAwcO2JGCeL3lv2jddaswqDeQHQ== +"@volar/code-gen@0.38.2": + version "0.38.2" + resolved "https://registry.yarnpkg.com/@volar/code-gen/-/code-gen-0.38.2.tgz#1eedaba3a12b9d1954dd99d6745f3f2ede0aca58" + integrity sha512-H81I6d7rZB7teqL+zhK/Xz1v0/kKkUwkB0Aq6b4+BTCqcJeiZkoWxd0gFhrhWTnUoqiM83lhoTGo2vkvx5YagQ== dependencies: - "@volar/source-map" "0.37.8" + "@volar/source-map" "0.38.2" -"@volar/source-map@0.37.8": - version "0.37.8" - resolved "https://registry.yarnpkg.com/@volar/source-map/-/source-map-0.37.8.tgz#0df8b10eb72201e1b3ded4aa7762462727ad2fa0" - integrity sha512-wlmzWIPhb7UAz/ZRGh8db5JoFPERjzRIodrdDn4YD9YejDEmxluRZ3vtYgUiGwJmtT/6UtB9YtPJWjr7XeMMNA== +"@volar/source-map@0.38.2": + version "0.38.2" + resolved "https://registry.yarnpkg.com/@volar/source-map/-/source-map-0.38.2.tgz#72ccaaa224646da69097abe8360391acd7f042b9" + integrity sha512-DWcYbYt9SPwk0r4VmXk1F0v4X5+hCqH1JRkAWSeJymQyXCQ2OQDEbY2PF12a7y2qn4FUBD2gOba2TynAqI8ZFQ== -"@volar/vue-code-gen@0.37.8": - version "0.37.8" - resolved "https://registry.yarnpkg.com/@volar/vue-code-gen/-/vue-code-gen-0.37.8.tgz#6c18b35d1635f3ddf3a7e8f477824ae3f34578cb" - integrity sha512-q1RaVjgMM2xRZTqIyJuiZaE2LGJIUnLRHScO02T2C26k+1Ah9z61BCOVBvA3BIh+JpPs7AhaAljiVxh7l/7TaA== +"@volar/vue-code-gen@0.38.2": + version "0.38.2" + resolved "https://registry.yarnpkg.com/@volar/vue-code-gen/-/vue-code-gen-0.38.2.tgz#10b467936cb79edb21e6f91ed25ec3fbe055a4cd" + integrity sha512-whLunD6phSGWBUHZKdTxeglrpzQu26ii8CRVapFdjfyMaVhQ7ESNeIAhkTVyg2ovOPc0PiDYPQEPzfWAADIWog== dependencies: - "@volar/code-gen" "0.37.8" - "@volar/source-map" "0.37.8" + "@volar/code-gen" "0.38.2" + "@volar/source-map" "0.38.2" "@vue/compiler-core" "^3.2.37" "@vue/compiler-dom" "^3.2.37" "@vue/shared" "^3.2.37" -"@volar/vue-typescript@0.37.8": - version "0.37.8" - resolved "https://registry.yarnpkg.com/@volar/vue-typescript/-/vue-typescript-0.37.8.tgz#5ddef614419f33eeef5ec9430693d9ce1f5b96ef" - integrity sha512-Tcq7r7ArHXgJEGuMmhN9e5h+jj5tS3exygPnw82gnePKPCHhzegYQfBljhJ4GuVshVeheMmKYEJOkQ9pN+K35w== +"@volar/vue-typescript@0.38.2": + version "0.38.2" + resolved "https://registry.yarnpkg.com/@volar/vue-typescript/-/vue-typescript-0.38.2.tgz#e9bf7d178755fe2619f43dda499ab1e2a6240a5b" + integrity sha512-5IKvSK2m5yUmH6iu/tNScVlvJGuiHawTfSmjxaMs+/tod25WeK37LEdf+pdKtlJ30bYTQmmkAuEfG01QvvBRGQ== dependencies: - "@volar/code-gen" "0.37.8" - "@volar/source-map" "0.37.8" - "@volar/vue-code-gen" "0.37.8" + "@volar/code-gen" "0.38.2" + "@volar/source-map" "0.38.2" + "@volar/vue-code-gen" "0.38.2" "@vue/compiler-sfc" "^3.2.37" "@vue/reactivity" "^3.2.37" @@ -5528,12 +5528,12 @@ vue-router@^4.0.16: dependencies: "@vue/devtools-api" "^6.0.0" -vue-tsc@0.37.8: - version "0.37.8" - resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-0.37.8.tgz#7b78b2a4b5b2f53fdbb2bc06e0e4935576d7c759" - integrity sha512-geFpG3qxmb7QIDlPeHCvWomsQHfcgFZ280Nbh3Fj/bQ+Bz0pplTE6rjAq/VLelg8KcbchO5PdACexxeS+mCZAA== +vue-tsc@0.38.2: + version "0.38.2" + resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-0.38.2.tgz#89175a6bb9a8b5724e84ab5d63dc5113041c5bfa" + integrity sha512-+OMmpw9BZC9khul3I1HGtWchv7BCiaM7NvfdilVAiOFkjnivIoaW6jJm6YPQJaEPouePtpkDUWovyzgNxWdDsw== dependencies: - "@volar/vue-typescript" "0.37.8" + "@volar/vue-typescript" "0.38.2" vue@3.2.37: version "3.2.37" From 6bab48a04940648fd3498a8e3a6bf204a5992b0f Mon Sep 17 00:00:00 2001 From: Lachlan Miller Date: Mon, 4 Jul 2022 19:37:07 +1000 Subject: [PATCH 4/4] publish: 2.0.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fc9aa6e18..5bb2c8d75 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vue/test-utils", - "version": "2.0.1", + "version": "2.0.2", "license": "MIT", "main": "dist/vue-test-utils.cjs.js", "unpkg": "dist/vue-test-utils.browser.js",