Skip to content

Commit 2030ee1

Browse files
authored
⚡ chore: upgrade vue & deps (#464)
1 parent 5a62f22 commit 2030ee1

File tree

3 files changed

+1470
-1508
lines changed

3 files changed

+1470
-1508
lines changed

auto-imports.d.ts

Lines changed: 14 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -100,91 +100,19 @@ declare global {
100100
}
101101

102102
// for vue template auto import
103-
import { UnwrapRef } from 'vue'
103+
type UnwrapRefs<T> = {
104+
[K in keyof T]: import('vue').UnwrapRef<T[K]>
105+
}
106+
namespace _ComponentCustomProperties {
107+
const _: typeof import('lodash-es')
108+
const { EffectScope, computed, createApp, createVNode, customRef, defineAsyncComponent, defineComponent, effectScope, getCurrentInstance, getCurrentScope, getCurrentWatcher, h, inject, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, provide, reactive, readonly, ref, render, resolveComponent, shallowReactive, shallowReadonly, shallowRef, toRaw, toRef, toRefs, toValue, triggerRef, unref, useAttrs, useCssModule, useCssVars, useId, useModel, useSlots, useTemplateRef, watch, watchEffect, watchPostEffect, watchSyncEffect }: typeof import('vue')
109+
const { createLogger, createNamespacedHelpers, createStore, mapActions, mapGetters, mapMutations, mapState, useStore }: typeof import('vuex')
110+
const { createRouter, createWebHashHistory, createWebHistory, onBeforeRouteLeave, onBeforeRouteUpdate, useLink, useRoute, useRouter }: typeof import('vue-router')
111+
const { default: useBaseStore, key }: typeof import('./src/hooks/useBaseStore')
112+
const { default: useCurrentInstance }: typeof import('./src/hooks/useCurrentInstance')
113+
const { useLanguage }: typeof import('./src/hooks/useLanguage')
114+
const { v4: uuidv4 }: typeof import('uuid')
115+
}
104116
declare module 'vue' {
105-
interface GlobalComponents {}
106-
interface ComponentCustomProperties {
107-
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
108-
readonly _: UnwrapRef<typeof import('lodash-es')>
109-
readonly computed: UnwrapRef<typeof import('vue')['computed']>
110-
readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
111-
readonly createLogger: UnwrapRef<typeof import('vuex')['createLogger']>
112-
readonly createNamespacedHelpers: UnwrapRef<typeof import('vuex')['createNamespacedHelpers']>
113-
readonly createRouter: UnwrapRef<typeof import('vue-router')['createRouter']>
114-
readonly createStore: UnwrapRef<typeof import('vuex')['createStore']>
115-
readonly createVNode: UnwrapRef<typeof import('vue')['createVNode']>
116-
readonly createWebHashHistory: UnwrapRef<typeof import('vue-router')['createWebHashHistory']>
117-
readonly createWebHistory: UnwrapRef<typeof import('vue-router')['createWebHistory']>
118-
readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
119-
readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
120-
readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
121-
readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
122-
readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
123-
readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
124-
readonly getCurrentWatcher: UnwrapRef<typeof import('vue')['getCurrentWatcher']>
125-
readonly h: UnwrapRef<typeof import('vue')['h']>
126-
readonly inject: UnwrapRef<typeof import('vue')['inject']>
127-
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
128-
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
129-
readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
130-
readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
131-
readonly isShallow: UnwrapRef<typeof import('vue')['isShallow']>
132-
readonly key: UnwrapRef<typeof import('./src/hooks/useBaseStore')['key']>
133-
readonly mapActions: UnwrapRef<typeof import('vuex')['mapActions']>
134-
readonly mapGetters: UnwrapRef<typeof import('vuex')['mapGetters']>
135-
readonly mapMutations: UnwrapRef<typeof import('vuex')['mapMutations']>
136-
readonly mapState: UnwrapRef<typeof import('vuex')['mapState']>
137-
readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
138-
readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
139-
readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
140-
readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
141-
readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
142-
readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
143-
readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
144-
readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
145-
readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
146-
readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
147-
readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
148-
readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
149-
readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
150-
readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
151-
readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
152-
readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
153-
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
154-
readonly onWatcherCleanup: UnwrapRef<typeof import('vue')['onWatcherCleanup']>
155-
readonly provide: UnwrapRef<typeof import('vue')['provide']>
156-
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
157-
readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
158-
readonly ref: UnwrapRef<typeof import('vue')['ref']>
159-
readonly render: UnwrapRef<typeof import('vue')['render']>
160-
readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
161-
readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
162-
readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
163-
readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
164-
readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
165-
readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
166-
readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
167-
readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
168-
readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
169-
readonly unref: UnwrapRef<typeof import('vue')['unref']>
170-
readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
171-
readonly useBaseStore: UnwrapRef<typeof import('./src/hooks/useBaseStore')['default']>
172-
readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
173-
readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
174-
readonly useCurrentInstance: UnwrapRef<typeof import('./src/hooks/useCurrentInstance')['default']>
175-
readonly useId: UnwrapRef<typeof import('vue')['useId']>
176-
readonly useLanguage: UnwrapRef<typeof import('./src/hooks/useLanguage')['useLanguage']>
177-
readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']>
178-
readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
179-
readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
180-
readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
181-
readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
182-
readonly useStore: UnwrapRef<typeof import('vuex')['useStore']>
183-
readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']>
184-
readonly uuidv4: UnwrapRef<typeof import('uuid')['v4']>
185-
readonly watch: UnwrapRef<typeof import('vue')['watch']>
186-
readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
187-
readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
188-
readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
189-
}
117+
interface ComponentCustomProperties extends UnwrapRefs<typeof _ComponentCustomProperties> {}
190118
}

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -49,60 +49,60 @@
4949
},
5050
"dependencies": {
5151
"@element-plus/icons-vue": "2.3.2",
52-
"axios": "1.11.0",
52+
"axios": "1.12.2",
5353
"echarts": "^6.0.0",
54-
"element-plus": "2.11.1",
54+
"element-plus": "2.11.3",
5555
"js-cookie": "^3.0.5",
5656
"lodash-es": "^4.17.21",
5757
"nprogress": "^0.2.0",
58-
"vue": "^3.5.19",
58+
"vue": "^3.5.21",
5959
"vue-router": "^4.5.1",
6060
"vuex": "^4.1.0"
6161
},
6262
"devDependencies": {
63-
"@babel/core": "^7.28.3",
63+
"@babel/core": "^7.28.4",
6464
"@babel/preset-env": "^7.28.3",
65-
"@eslint/js": "^9.34.0",
66-
"@iconify/json": "^2.2.377",
65+
"@eslint/js": "^9.36.0",
66+
"@iconify/json": "^2.2.387",
6767
"@iconify/vue": "^5.0.0",
68-
"@stylistic/eslint-plugin": "^5.2.3",
68+
"@stylistic/eslint-plugin": "^5.4.0",
6969
"@stylistic/stylelint-plugin": "^4.0.0",
7070
"@types/js-cookie": "^3.0.6",
7171
"@types/lodash-es": "^4.17.12",
72-
"@types/node": "^24.3.0",
72+
"@types/node": "^24.5.2",
7373
"@types/nprogress": "^0.2.3",
74-
"@typescript-eslint/eslint-plugin": "^8.40.0",
75-
"@typescript-eslint/parser": "^8.40.0",
74+
"@typescript-eslint/eslint-plugin": "^8.44.1",
75+
"@typescript-eslint/parser": "^8.44.1",
7676
"@vitejs/plugin-vue": "^6.0.1",
7777
"@vitest/coverage-v8": "^3.2.4",
78-
"@vue/compiler-sfc": "^3.5.19",
78+
"@vue/compiler-sfc": "^3.5.21",
7979
"@vue/test-utils": "2.4.6",
8080
"babel-plugin-transform-vite-meta-env": "^1.0.3",
8181
"cross-env": "^10.0.0",
82-
"eslint": "^9.34.0",
82+
"eslint": "^9.36.0",
8383
"eslint-plugin-html": "8.1.3",
8484
"eslint-plugin-import": "^2.32.0",
85-
"eslint-plugin-vue": "10.4.0",
86-
"globals": "^16.3.0",
85+
"eslint-plugin-vue": "10.5.0",
86+
"globals": "^16.4.0",
8787
"husky": "^9.1.7",
88-
"jsdom": "^26.1.0",
89-
"lint-staged": "^16.1.5",
88+
"jsdom": "^27.0.0",
89+
"lint-staged": "^16.2.0",
9090
"postcss": "^8.5.6",
9191
"postcss-html": "^1.8.0",
9292
"postcss-scss": "^4.0.9",
93-
"rollup": "4.48.0",
94-
"sass": "1.90.0",
95-
"stylelint": "^16.23.1",
96-
"stylelint-config-recommended-scss": "^16.0.0",
93+
"rollup": "4.52.1",
94+
"sass": "1.93.1",
95+
"stylelint": "^16.24.0",
96+
"stylelint-config-recommended-scss": "^16.0.1",
9797
"stylelint-config-recommended-vue": "^1.6.1",
9898
"stylelint-config-standard": "^39.0.0",
99-
"stylelint-config-standard-scss": "15.0.1",
99+
"stylelint-config-standard-scss": "16.0.0",
100100
"typescript": "^5.9.2",
101-
"unocss": "66.4.2",
102-
"unplugin-auto-import": "^20.0.0",
103-
"unplugin-icons": "^22.2.0",
104-
"unplugin-vue-components": "^29.0.0",
105-
"vite": "^7.1.3",
101+
"unocss": "66.5.2",
102+
"unplugin-auto-import": "^20.1.0",
103+
"unplugin-icons": "^22.3.0",
104+
"unplugin-vue-components": "^29.1.0",
105+
"vite": "^7.1.7",
106106
"vitest": "^3.2.4",
107107
"vue-eslint-parser": "^10.2.0"
108108
}

0 commit comments

Comments
 (0)