build: remove vue-router auto import type & upgrade deps (#11)

* build: degrade `vueuse` to v5 & remove `vue-router` auto import type

* build: bump `@vueuse/core` & `@vue/composition-api` dep version

* build: refresh `auto-import.d.ts`
This commit is contained in:
YuLe 2022-05-22 16:06:07 +08:00 committed by GitHub
parent 67919200eb
commit d4047e7473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 27 deletions

View File

@ -8,8 +8,8 @@
"lint:fix": "eslint \"**/*.{vue,ts,js}\" --fix"
},
"dependencies": {
"@vue/composition-api": "^1.4.9",
"@vueuse/core": "^8.0.0",
"@vue/composition-api": "^1.6.1",
"@vueuse/core": "^8.5.0",
"core-js": "^3.21.1",
"vue": "^2.6.14",
"vue-router": "^3.5.3"

View File

@ -13,6 +13,7 @@ declare global {
const createApp: typeof import('@vue/composition-api')['createApp']
const createEventHook: typeof import('@vueuse/core')['createEventHook']
const createGlobalState: typeof import('@vueuse/core')['createGlobalState']
const createInjectionState: typeof import('@vueuse/core')['createInjectionState']
const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn']
const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable']
const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn']
@ -39,7 +40,6 @@ declare global {
const makeDestructurable: typeof import('@vueuse/core')['makeDestructurable']
const markRaw: typeof import('@vue/composition-api')['markRaw']
const nextTick: typeof import('@vue/composition-api')['nextTick']
const note: typeof import('@vueuse/core')['note']
const onActivated: typeof import('@vue/composition-api')['onActivated']
const onBeforeMount: typeof import('@vue/composition-api')['onBeforeMount']
const onBeforeUnmount: typeof import('@vue/composition-api')['onBeforeUnmount']
@ -83,6 +83,7 @@ declare global {
const toRef: typeof import('@vue/composition-api')['toRef']
const toRefs: typeof import('@vue/composition-api')['toRefs']
const triggerRef: typeof import('@vue/composition-api')['triggerRef']
const tryOnBeforeMount: typeof import('@vueuse/core')['tryOnBeforeMount']
const tryOnBeforeUnmount: typeof import('@vueuse/core')['tryOnBeforeUnmount']
const tryOnMounted: typeof import('@vueuse/core')['tryOnMounted']
const tryOnScopeDispose: typeof import('@vueuse/core')['tryOnScopeDispose']
@ -107,6 +108,7 @@ declare global {
const useCounter: typeof import('@vueuse/core')['useCounter']
const useCssModule: typeof import('@vue/composition-api')['useCssModule']
const useCssVar: typeof import('@vueuse/core')['useCssVar']
const useCurrentElement: typeof import('@vueuse/core')['useCurrentElement']
const useCycleList: typeof import('@vueuse/core')['useCycleList']
const useDark: typeof import('@vueuse/core')['useDark']
const useDateFormat: typeof import('@vueuse/core')['useDateFormat']
@ -173,8 +175,7 @@ declare global {
const useRafFn: typeof import('@vueuse/core')['useRafFn']
const useRefHistory: typeof import('@vueuse/core')['useRefHistory']
const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver']
const useRoute: typeof import('vue-router')['useRoute']
const useRouter: typeof import('vue-router')['useRouter']
const useScreenOrientation: typeof import('@vueuse/core')['useScreenOrientation']
const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea']
const useScriptTag: typeof import('@vueuse/core')['useScriptTag']
const useScroll: typeof import('@vueuse/core')['useScroll']

View File

@ -36,7 +36,6 @@ const config = defineConfig({
AutoImport({
imports: [
'@vue/composition-api',
'vue-router',
'@vueuse/core',
],
dts: 'src/auto-imports.d.ts',

View File

@ -777,10 +777,10 @@
optionalDependencies:
prettier "^1.18.2 || ^2.0.0"
"@vue/composition-api@^1.4.9":
version "1.4.9"
resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.4.9.tgz#6fa65284f545887b52d421f23b4fa1c41bc0ad4b"
integrity sha512-l6YOeg5LEXmfPqyxAnBaCv1FMRw0OGKJ4m6nOWRm6ngt5TuHcj5ZoBRN+LXh3J0u6Ur3C4VA+RiKT+M0eItr/g==
"@vue/composition-api@^1.6.1":
version "1.6.1"
resolved "https://registry.yarnpkg.com/@vue/composition-api/-/composition-api-1.6.1.tgz#3b809802979af9ec06678437bead7617f0f85be5"
integrity sha512-QNeduwRllSRzo9ZOzZjtzCeGUx0sEfrEDHmQlf+goLw4calBPBbpYWf8ueh6VSBrWJGQRJPsRPmTVEeTKRKBMg==
"@vue/reactivity-transform@^3.2.31":
version "3.2.31"
@ -822,24 +822,24 @@
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.31.tgz#c90de7126d833dcd3a4c7534d534be2fb41faa4e"
integrity sha512-ymN2pj6zEjiKJZbrf98UM2pfDd6F2H7ksKw7NDt/ZZ1fh5Ei39X5tABugtT03ZRlWd9imccoK0hE8hpjpU7irQ==
"@vueuse/core@^8.0.0":
version "8.0.0"
resolved "https://registry.yarnpkg.com/@vueuse/core/-/core-8.0.0.tgz#71c13c1e0c0d6a196f6c049fd431ba314f782f89"
integrity sha512-CU8oQhTaAQ4+9IlEHnaGk88qQ2fSvALHixWZhfyA2j18G42XeyJz3V0FmnBMWZUwd7VRSHJZFbGziZ6o5npNow==
"@vueuse/core@^8.5.0":
version "8.5.0"
resolved "https://registry.yarnpkg.com/@vueuse/core/-/core-8.5.0.tgz#2b7548e52165c88e1463756c36188e105d806543"
integrity sha512-VEJ6sGNsPlUp0o9BGda2YISvDZbhWJSOJu5zlp2TufRGVrLcYUKr31jyFEOj6RXzG3k/H4aCYeZyjpItfU8glw==
dependencies:
"@vueuse/metadata" "8.0.0"
"@vueuse/shared" "8.0.0"
"@vueuse/metadata" "8.5.0"
"@vueuse/shared" "8.5.0"
vue-demi "*"
"@vueuse/metadata@8.0.0":
version "8.0.0"
resolved "https://registry.yarnpkg.com/@vueuse/metadata/-/metadata-8.0.0.tgz#8f8676e9a3d6872c9a41583d9a3e67f3604114d7"
integrity sha512-23R9pqgfJnfmUnGCOtaDkwaNYEAO7N6whvaAFAs5D5xHXgqAj+z/tLhwQzSJw/ZzJGUb8W5L+VgP9S7SL35riw==
"@vueuse/metadata@8.5.0":
version "8.5.0"
resolved "https://registry.yarnpkg.com/@vueuse/metadata/-/metadata-8.5.0.tgz#1aaa3787922cfda0f38243aaa7779366a669b4db"
integrity sha512-WxsD+Cd+bn+HcjpY6Dl9FJ8ywTRTT9pTwk3bCQpzEhXVYAyNczKDSahk50fCfIJKeWHhyI4B2+/ZEOxQAkUr0g==
"@vueuse/shared@8.0.0":
version "8.0.0"
resolved "https://registry.yarnpkg.com/@vueuse/shared/-/shared-8.0.0.tgz#2b452362c797dadb8d85ed169e386262a390e28c"
integrity sha512-HUIFZ5Vc3aGvIzDQJJhg2+Ok5xvNuwxoz5HrOr/M765wlj357WiMYzhU2XGljL6IcmK29SP/1Jb4Fra7A4PBCw==
"@vueuse/shared@8.5.0":
version "8.5.0"
resolved "https://registry.yarnpkg.com/@vueuse/shared/-/shared-8.5.0.tgz#fa01ecd3161933f521dd6428b9ef8015ded1bbd3"
integrity sha512-qKG+SZb44VvGD4dU5cQ63z4JE2Yk39hQUecR0a9sEdJA01cx+XrxAvFKJfPooxwoiqalAVw/ktWK6xbyc/jS3g==
dependencies:
vue-demi "*"
@ -3387,9 +3387,9 @@ vite@^2.8.6:
fsevents "~2.3.2"
vue-demi@*:
version "0.12.1"
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.12.1.tgz#f7e18efbecffd11ab069d1472d7a06e319b4174c"
integrity sha512-QL3ny+wX8c6Xm1/EZylbgzdoDolye+VpCXRhI2hug9dJTP3OUJ3lmiKN3CsVV3mOJKwFi0nsstbgob0vG7aoIw==
version "0.12.5"
resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.12.5.tgz#8eeed566a7d86eb090209a11723f887d28aeb2d1"
integrity sha512-BREuTgTYlUr0zw0EZn3hnhC3I6gPWv+Kwh4MCih6QcAeaTlaIX0DwOVN0wHej7hSvDPecz4jygy/idsgKfW58Q==
vue-eslint-parser@^8.0.1:
version "8.2.0"