diff --git a/packages/create-vant-cli-app/package.json b/packages/create-vant-cli-app/package.json index 8be50f9b2..d95d133bc 100644 --- a/packages/create-vant-cli-app/package.json +++ b/packages/create-vant-cli-app/package.json @@ -33,7 +33,7 @@ "devDependencies": { "@types/fs-extra": "^11.0.4", "rimraf": "^6.0.1", - "typescript": "^5.4.5" + "typescript": "^5.5.4" }, "dependencies": { "rslog": "^1.2.3", diff --git a/packages/vant-area-data/package.json b/packages/vant-area-data/package.json index 18d00b090..9582e616b 100644 --- a/packages/vant-area-data/package.json +++ b/packages/vant-area-data/package.json @@ -41,6 +41,6 @@ "devDependencies": { "esbuild": "^0.23.1", "rimraf": "^6.0.1", - "typescript": "^5.4.5" + "typescript": "^5.5.4" } } diff --git a/packages/vant-auto-import-resolver/package.json b/packages/vant-auto-import-resolver/package.json index 61c0bdebc..5fef42e23 100644 --- a/packages/vant-auto-import-resolver/package.json +++ b/packages/vant-auto-import-resolver/package.json @@ -40,6 +40,6 @@ "license": "MIT", "devDependencies": { "rimraf": "^6.0.1", - "typescript": "^5.4.5" + "typescript": "^5.5.4" } } diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json index f61658a59..470138edd 100644 --- a/packages/vant-cli/package.json +++ b/packages/vant-cli/package.json @@ -82,7 +82,7 @@ "rspack-plugin-virtual-module": "^0.1.13", "terser": "^5.31.6", "transliteration": "^2.3.5", - "typescript": "^5.4.5", + "typescript": "^5.5.4", "vite": "^5.4.3", "vue-router": "^4.4.3" } diff --git a/packages/vant-cli/src/compiler/web-types/formatter.ts b/packages/vant-cli/src/compiler/web-types/formatter.ts index 5169af8b0..61a5cc63d 100644 --- a/packages/vant-cli/src/compiler/web-types/formatter.ts +++ b/packages/vant-cli/src/compiler/web-types/formatter.ts @@ -19,7 +19,7 @@ function formatArguments(input: string): VueEventArgument[] { input = formatType(input); while (input.length > 0) { if (/(?!_)\w/.test(input[0])) { - const val = input.match(/(\w|\s|\p{P}|\||\[|\]|>|<)+/)![0] || ''; + const val = input.match(/(\w|\s|\||\[|\]|>|<)+/)![0] || ''; input = input.substring(val.length); items.push(val); } else if (input[0] === '{') { diff --git a/packages/vant-compat/package.json b/packages/vant-compat/package.json index 3bfe728f9..35cd14c0a 100644 --- a/packages/vant-compat/package.json +++ b/packages/vant-compat/package.json @@ -41,6 +41,6 @@ "vue": "^3.5.0", "esbuild": "^0.23.1", "rimraf": "^6.0.1", - "typescript": "^5.4.5" + "typescript": "^5.5.4" } } diff --git a/packages/vant-eslint-config/package.json b/packages/vant-eslint-config/package.json index 191ffcb2a..3a4c5b532 100644 --- a/packages/vant-eslint-config/package.json +++ b/packages/vant-eslint-config/package.json @@ -27,7 +27,7 @@ }, "devDependencies": { "eslint": "^8.57.0", - "typescript": "^5.4.5" + "typescript": "^5.5.4" }, "peerDependencies": { "eslint": "^7.32.0 || ^8.2.0" diff --git a/packages/vant-popperjs/package.json b/packages/vant-popperjs/package.json index 8da677db1..262c72c62 100644 --- a/packages/vant-popperjs/package.json +++ b/packages/vant-popperjs/package.json @@ -40,6 +40,6 @@ "@popperjs/core": "^2.11.8", "esbuild": "^0.23.1", "rimraf": "^6.0.1", - "typescript": "^5.4.5" + "typescript": "^5.5.4" } } diff --git a/packages/vant-use/package.json b/packages/vant-use/package.json index 641ff21c5..00c573a18 100644 --- a/packages/vant-use/package.json +++ b/packages/vant-use/package.json @@ -40,7 +40,7 @@ "devDependencies": { "esbuild": "^0.23.1", "rimraf": "^6.0.1", - "typescript": "^5.4.5", + "typescript": "^5.5.4", "vue": "^3.5.0" }, "peerDependencies": { diff --git a/packages/vant/package.json b/packages/vant/package.json index d55ed61e8..51157c6d8 100644 --- a/packages/vant/package.json +++ b/packages/vant/package.json @@ -67,7 +67,7 @@ "csstype": "^3.1.3", "diffable-html": "^5.0.0", "jsdom": "^24.1.3", - "typescript": "^5.4.5", + "typescript": "^5.5.4", "vite": "^5.4.3", "vitest": "^1.6.0", "vitest-canvas-mock": "^0.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2cd1b6990..360f9dfd2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,8 +52,8 @@ importers: specifier: ^6.0.1 version: 6.0.1 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 packages/vant: dependencies: @@ -84,10 +84,10 @@ importers: version: link:../vant-icons '@vitejs/plugin-vue': specifier: ^5.1.3 - version: 5.1.3(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.4.5)) + version: 5.1.3(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.5.4)) '@vitejs/plugin-vue-jsx': specifier: ^4.0.1 - version: 4.0.1(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.4.5)) + version: 4.0.1(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.5.4)) '@vitest/coverage-istanbul': specifier: ^1.6.0 version: 1.6.0(vitest@1.6.0(@types/node@20.14.15)(jsdom@24.1.3)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6)) @@ -107,8 +107,8 @@ importers: specifier: ^24.1.3 version: 24.1.3 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 vite: specifier: ^5.4.3 version: 5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6) @@ -120,10 +120,10 @@ importers: version: 0.3.3(vitest@1.6.0(@types/node@20.14.15)(jsdom@24.1.3)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6)) vue: specifier: ^3.5.0 - version: 3.5.3(typescript@5.4.5) + version: 3.5.3(typescript@5.5.4) vue-router: specifier: ^4.4.3 - version: 4.4.3(vue@3.5.3(typescript@5.4.5)) + version: 4.4.3(vue@3.5.3(typescript@5.5.4)) packages/vant-area-data: devDependencies: @@ -134,8 +134,8 @@ importers: specifier: ^6.0.1 version: 6.0.1 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 packages/vant-auto-import-resolver: devDependencies: @@ -143,8 +143,8 @@ importers: specifier: ^6.0.1 version: 6.0.1 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 packages/vant-cli: dependencies: @@ -168,7 +168,7 @@ importers: version: 1.0.1-rc.5(@rsbuild/core@1.0.1-rc.5) '@rsbuild/plugin-vue': specifier: 1.0.1-rc.5 - version: 1.0.1-rc.5(@rsbuild/core@1.0.1-rc.5)(esbuild@0.23.1)(vue@3.5.3(typescript@5.4.5)) + version: 1.0.1-rc.5(@rsbuild/core@1.0.1-rc.5)(esbuild@0.23.1)(vue@3.5.3(typescript@5.5.4)) '@rsbuild/plugin-vue-jsx': specifier: 1.0.1 version: 1.0.1(@babel/core@7.25.2)(@rsbuild/core@1.0.1-rc.5) @@ -180,10 +180,10 @@ importers: version: link:../vant-touch-emulator '@vitejs/plugin-vue': specifier: ^5.1.3 - version: 5.1.3(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.4.5)) + version: 5.1.3(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.5.4)) '@vitejs/plugin-vue-jsx': specifier: ^4.0.1 - version: 4.0.1(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.4.5)) + version: 4.0.1(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.5.4)) '@vue/babel-plugin-jsx': specifier: ^1.2.4 version: 1.2.4(@babel/core@7.25.2) @@ -257,14 +257,14 @@ importers: specifier: ^2.3.5 version: 2.3.5 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 vite: specifier: ^5.4.3 version: 5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6) vue-router: specifier: ^4.4.3 - version: 4.4.3(vue@3.5.3(typescript@5.4.5)) + version: 4.4.3(vue@3.5.3(typescript@5.5.4)) devDependencies: '@types/fs-extra': specifier: ^11.0.4 @@ -283,7 +283,7 @@ importers: version: 6.0.1 vue: specifier: ^3.5.0 - version: 3.5.3(typescript@5.4.5) + version: 3.5.3(typescript@5.5.4) packages/vant-compat: devDependencies: @@ -297,23 +297,23 @@ importers: specifier: ^6.0.1 version: 6.0.1 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 vant: specifier: workspace:* version: link:../vant vue: specifier: ^3.5.0 - version: 3.5.3(typescript@5.4.5) + version: 3.5.3(typescript@5.5.4) packages/vant-eslint-config: dependencies: '@typescript-eslint/eslint-plugin': specifier: ^6.21.0 - version: 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5) + version: 6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/parser': specifier: ^6.21.0 - version: 6.21.0(eslint@8.57.0)(typescript@5.4.5) + version: 6.21.0(eslint@8.57.0)(typescript@5.5.4) eslint-config-prettier: specifier: ^9.1.0 version: 9.1.0(eslint@8.57.0) @@ -325,8 +325,8 @@ importers: specifier: ^8.57.0 version: 8.57.0 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 packages/vant-icons: {} @@ -342,8 +342,8 @@ importers: specifier: ^6.0.1 version: 6.0.1 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 packages/vant-touch-emulator: {} @@ -356,11 +356,11 @@ importers: specifier: ^6.0.1 version: 6.0.1 typescript: - specifier: ^5.4.5 - version: 5.4.5 + specifier: ^5.5.4 + version: 5.5.4 vue: specifier: ^3.5.0 - version: 3.5.3(typescript@5.4.5) + version: 3.5.3(typescript@5.5.4) packages: @@ -2887,8 +2887,8 @@ packages: resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} engines: {node: '>=10'} - typescript@5.4.5: - resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} + typescript@5.5.4: + resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} engines: {node: '>=14.17'} hasBin: true @@ -3818,10 +3818,10 @@ snapshots: - '@babel/core' - supports-color - '@rsbuild/plugin-vue@1.0.1-rc.5(@rsbuild/core@1.0.1-rc.5)(esbuild@0.23.1)(vue@3.5.3(typescript@5.4.5))': + '@rsbuild/plugin-vue@1.0.1-rc.5(@rsbuild/core@1.0.1-rc.5)(esbuild@0.23.1)(vue@3.5.3(typescript@5.5.4))': dependencies: '@rsbuild/core': 1.0.1-rc.5 - vue-loader: 17.4.2(vue@3.5.3(typescript@5.4.5))(webpack@5.94.0(esbuild@0.23.1)) + vue-loader: 17.4.2(vue@3.5.3(typescript@5.5.4))(webpack@5.94.0(esbuild@0.23.1)) webpack: 5.94.0(esbuild@0.23.1) transitivePeerDependencies: - '@swc/core' @@ -3944,13 +3944,13 @@ snapshots: '@types/semver@7.5.8': {} - '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5))(eslint@8.57.0)(typescript@5.4.5)': + '@typescript-eslint/eslint-plugin@6.21.0(@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)': dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/parser': 6.21.0(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/scope-manager': 6.21.0 - '@typescript-eslint/type-utils': 6.21.0(eslint@8.57.0)(typescript@5.4.5) - '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/type-utils': 6.21.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.5.4) '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4 eslint: 8.57.0 @@ -3958,22 +3958,22 @@ snapshots: ignore: 5.3.1 natural-compare: 1.4.0 semver: 7.6.0 - ts-api-utils: 1.3.0(typescript@5.4.5) + ts-api-utils: 1.3.0(typescript@5.5.4) optionalDependencies: - typescript: 5.4.5 + typescript: 5.5.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.4.5)': + '@typescript-eslint/parser@6.21.0(eslint@8.57.0)(typescript@5.5.4)': dependencies: '@typescript-eslint/scope-manager': 6.21.0 '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.4.5) + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.5.4) '@typescript-eslint/visitor-keys': 6.21.0 debug: 4.3.4 eslint: 8.57.0 optionalDependencies: - typescript: 5.4.5 + typescript: 5.5.4 transitivePeerDependencies: - supports-color @@ -3982,21 +3982,21 @@ snapshots: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 - '@typescript-eslint/type-utils@6.21.0(eslint@8.57.0)(typescript@5.4.5)': + '@typescript-eslint/type-utils@6.21.0(eslint@8.57.0)(typescript@5.5.4)': dependencies: - '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.4.5) - '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.4.5) + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.5.4) + '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.5.4) debug: 4.3.4 eslint: 8.57.0 - ts-api-utils: 1.3.0(typescript@5.4.5) + ts-api-utils: 1.3.0(typescript@5.5.4) optionalDependencies: - typescript: 5.4.5 + typescript: 5.5.4 transitivePeerDependencies: - supports-color '@typescript-eslint/types@6.21.0': {} - '@typescript-eslint/typescript-estree@6.21.0(typescript@5.4.5)': + '@typescript-eslint/typescript-estree@6.21.0(typescript@5.5.4)': dependencies: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 @@ -4005,20 +4005,20 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.3 semver: 7.6.0 - ts-api-utils: 1.3.0(typescript@5.4.5) + ts-api-utils: 1.3.0(typescript@5.5.4) optionalDependencies: - typescript: 5.4.5 + typescript: 5.5.4 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@6.21.0(eslint@8.57.0)(typescript@5.4.5)': + '@typescript-eslint/utils@6.21.0(eslint@8.57.0)(typescript@5.5.4)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.8 '@typescript-eslint/scope-manager': 6.21.0 '@typescript-eslint/types': 6.21.0 - '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.4.5) + '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.5.4) eslint: 8.57.0 semver: 7.6.0 transitivePeerDependencies: @@ -4032,20 +4032,20 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@vitejs/plugin-vue-jsx@4.0.1(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.4.5))': + '@vitejs/plugin-vue-jsx@4.0.1(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.5.4))': dependencies: '@babel/core': 7.25.2 '@babel/plugin-transform-typescript': 7.24.7(@babel/core@7.25.2) '@vue/babel-plugin-jsx': 1.2.4(@babel/core@7.25.2) vite: 5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6) - vue: 3.5.3(typescript@5.4.5) + vue: 3.5.3(typescript@5.5.4) transitivePeerDependencies: - supports-color - '@vitejs/plugin-vue@5.1.3(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.4.5))': + '@vitejs/plugin-vue@5.1.3(vite@5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))(vue@3.5.3(typescript@5.5.4))': dependencies: vite: 5.4.3(@types/node@20.14.15)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6) - vue: 3.5.3(typescript@5.4.5) + vue: 3.5.3(typescript@5.5.4) '@vitest/coverage-istanbul@1.6.0(vitest@1.6.0(@types/node@20.14.15)(jsdom@24.1.3)(less@4.2.0)(sass-embedded@1.78.0)(terser@5.31.6))': dependencies: @@ -4169,11 +4169,11 @@ snapshots: '@vue/shared': 3.5.3 csstype: 3.1.3 - '@vue/server-renderer@3.5.3(vue@3.5.3(typescript@5.4.5))': + '@vue/server-renderer@3.5.3(vue@3.5.3(typescript@5.5.4))': dependencies: '@vue/compiler-ssr': 3.5.3 '@vue/shared': 3.5.3 - vue: 3.5.3(typescript@5.4.5) + vue: 3.5.3(typescript@5.5.4) '@vue/shared@3.5.3': {} @@ -5718,9 +5718,9 @@ snapshots: dependencies: yargs: 17.7.2 - ts-api-utils@1.3.0(typescript@5.4.5): + ts-api-utils@1.3.0(typescript@5.5.4): dependencies: - typescript: 5.4.5 + typescript: 5.5.4 tslib@2.6.2: {} @@ -5732,7 +5732,7 @@ snapshots: type-fest@0.20.2: {} - typescript@5.4.5: {} + typescript@5.5.4: {} uc.micro@2.1.0: {} @@ -5856,29 +5856,29 @@ snapshots: transitivePeerDependencies: - supports-color - vue-loader@17.4.2(vue@3.5.3(typescript@5.4.5))(webpack@5.94.0(esbuild@0.23.1)): + vue-loader@17.4.2(vue@3.5.3(typescript@5.5.4))(webpack@5.94.0(esbuild@0.23.1)): dependencies: chalk: 4.1.2 hash-sum: 2.0.0 watchpack: 2.4.1 webpack: 5.94.0(esbuild@0.23.1) optionalDependencies: - vue: 3.5.3(typescript@5.4.5) + vue: 3.5.3(typescript@5.5.4) - vue-router@4.4.3(vue@3.5.3(typescript@5.4.5)): + vue-router@4.4.3(vue@3.5.3(typescript@5.5.4)): dependencies: '@vue/devtools-api': 6.6.3 - vue: 3.5.3(typescript@5.4.5) + vue: 3.5.3(typescript@5.5.4) - vue@3.5.3(typescript@5.4.5): + vue@3.5.3(typescript@5.5.4): dependencies: '@vue/compiler-dom': 3.5.3 '@vue/compiler-sfc': 3.5.3 '@vue/runtime-dom': 3.5.3 - '@vue/server-renderer': 3.5.3(vue@3.5.3(typescript@5.4.5)) + '@vue/server-renderer': 3.5.3(vue@3.5.3(typescript@5.5.4)) '@vue/shared': 3.5.3 optionalDependencies: - typescript: 5.4.5 + typescript: 5.5.4 w3c-xmlserializer@5.0.0: dependencies: