chore: bump all deps (#11007)

* chore: bump all deps

* chore: fix type

* chore: fix withInstall type
This commit is contained in:
neverland 2022-09-04 14:24:59 +08:00 committed by GitHub
parent c6bc97f4e4
commit 65fdb2155b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 938 additions and 737 deletions

View File

@ -18,10 +18,10 @@
"devDependencies": { "devDependencies": {
"@vant/cli": "workspace:*", "@vant/cli": "workspace:*",
"@vant/eslint-config": "workspace:*", "@vant/eslint-config": "workspace:*",
"eslint": "^8.2.0", "eslint": "^8.23.0",
"husky": "^8.0.1", "husky": "^8.0.1",
"nano-staged": "^0.8.0", "nano-staged": "^0.8.0",
"prettier": "^2.5.0", "prettier": "^2.7.1",
"rimraf": "^3.0.2" "rimraf": "^3.0.2"
}, },
"pnpm": { "pnpm": {

View File

@ -32,15 +32,15 @@
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/fs-extra": "^9.0.13", "@types/fs-extra": "^9.0.13",
"@types/inquirer": "^8.1.3", "@types/inquirer": "^8.2.3",
"release-it": "^15.1.1", "release-it": "^15.4.1",
"typescript": "^4.7.4" "typescript": "^4.8.2"
}, },
"dependencies": { "dependencies": {
"consola": "^2.11.3", "consola": "^2.11.3",
"fast-glob": "^3.2.4", "fast-glob": "^3.2.11",
"fs-extra": "^10.0.0", "fs-extra": "^10.1.0",
"inquirer": "^8.0.0", "inquirer": "^8.2.4",
"picocolors": "^1.0.0" "picocolors": "^1.0.0"
}, },
"release-it": { "release-it": {

View File

@ -36,9 +36,9 @@
"author": "chenjiahan", "author": "chenjiahan",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"esbuild": "^0.14.29", "esbuild": "^0.14.54",
"release-it": "^15.1.1", "release-it": "^15.4.1",
"typescript": "^4.7.4" "typescript": "^4.8.2"
}, },
"release-it": { "release-it": {
"git": { "git": {

View File

@ -39,56 +39,56 @@
"author": "chenjiahan", "author": "chenjiahan",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@jest/types": "^27.5.1",
"@types/fs-extra": "^9.0.13", "@types/fs-extra": "^9.0.13",
"@types/less": "^3.0.3", "@types/less": "^3.0.3",
"@types/markdown-it": "^12.2.3", "@types/markdown-it": "^12.2.3",
"@jest/types": "^27", "react": "^18.2.0",
"vue": "^3.2.27", "react-dom": "^18.2.0",
"react": "^18", "vue": "^3.2.38"
"react-dom": "^18"
}, },
"dependencies": { "dependencies": {
"@babel/core": "^7.16.0", "@babel/core": "^7.18.13",
"@babel/preset-typescript": "^7.16.0", "@babel/preset-typescript": "^7.18.6",
"@docsearch/css": "^3.0.0", "@docsearch/css": "^3.2.1",
"@docsearch/js": "^3.0.0", "@docsearch/js": "^3.2.1",
"@types/jest": "^27.0.3", "@types/jest": "^27.5.2",
"@vant/eslint-config": "^3.3.2", "@vant/eslint-config": "^3.5.0",
"@vant/touch-emulator": "^1.3.2", "@vant/touch-emulator": "^1.4.0",
"@vitejs/plugin-vue": "^3.0.1", "@vitejs/plugin-vue": "^3.0.3",
"@vitejs/plugin-vue-jsx": "^2.0.0", "@vitejs/plugin-vue-jsx": "^2.0.1",
"@vue/babel-plugin-jsx": "^1.1.1", "@vue/babel-plugin-jsx": "^1.1.1",
"autoprefixer": "^10.4.0", "autoprefixer": "^10.4.8",
"commander": "^9.3.0", "commander": "^9.4.0",
"consola": "^2.15.3", "consola": "^2.15.3",
"conventional-changelog": "^3.1.24", "conventional-changelog": "^3.1.25",
"esbuild": "^0.14.29", "esbuild": "^0.14.54",
"eslint": "^8.1.0", "eslint": "^8.23.0",
"execa": "^5.1.1", "execa": "^5.1.1",
"fast-glob": "^3.2.7", "fast-glob": "^3.2.11",
"fs-extra": "^10.0.0", "fs-extra": "^10.1.0",
"hash-sum": "^2.0.0", "hash-sum": "^2.0.0",
"highlight.js": "^11.3.1", "highlight.js": "^11.6.0",
"husky": "^8.0.1", "husky": "^8.0.1",
"jest": "^27.3.1", "jest": "^27.5.1",
"jest-canvas-mock": "^2.3.1", "jest-canvas-mock": "^2.4.0",
"jest-serializer-html": "^7.1.0", "jest-serializer-html": "^7.1.0",
"less": "^4.1.2", "less": "^4.1.3",
"markdown-it": "^12.2.0", "markdown-it": "^12.3.2",
"markdown-it-anchor": "^8.4.1", "markdown-it-anchor": "^8.6.4",
"nano-staged": "^0.8.0", "nano-staged": "^0.8.0",
"nanospinner": "^1.1.0", "nanospinner": "^1.1.0",
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"postcss": "^8.3.11", "postcss": "^8.4.16",
"postcss-load-config": "^3.1.0", "postcss-load-config": "^3.1.4",
"prettier": "^2.5.0", "prettier": "^2.7.1",
"release-it": "^15.1.1", "release-it": "^15.4.1",
"transliteration": "^2.2.0", "transliteration": "^2.3.5",
"typescript": "^4.7.4", "typescript": "^4.8.2",
"vite": "^3.0.0", "vite": "^3.0.9",
"vite-plugin-html": "^2.1.1", "vite-plugin-html": "^2.1.2",
"vite-plugin-md": "^0.11.4", "vite-plugin-md": "^0.11.9",
"vue-router": "^4.0.12" "vue-router": "^4.1.5"
}, },
"release-it": { "release-it": {
"git": { "git": {

View File

@ -20,17 +20,17 @@
"author": "chenjiahan", "author": "chenjiahan",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@typescript-eslint/eslint-plugin": "^5.30.3", "@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.30.3", "@typescript-eslint/parser": "^5.36.1",
"eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0", "eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
"eslint-plugin-vue": "^9.1.1" "eslint-plugin-vue": "^9.4.0"
}, },
"devDependencies": { "devDependencies": {
"enhanced-resolve": "^5.10.0", "enhanced-resolve": "^5.10.0",
"eslint": "^8.19.0", "eslint": "^8.23.0",
"typescript": "^4.7.4" "typescript": "^4.8.2"
}, },
"peerDependencies": { "peerDependencies": {
"eslint": "^7.32.0 || ^8.2.0" "eslint": "^7.32.0 || ^8.2.0"

View File

@ -23,7 +23,7 @@
"author": "chenjiahan", "author": "chenjiahan",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"release-it": "^15.1.1" "release-it": "^15.4.1"
}, },
"release-it": { "release-it": {
"git": { "git": {

View File

@ -37,12 +37,12 @@
"author": "chenjiahan", "author": "chenjiahan",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@popperjs/core": "^2.9.2" "@popperjs/core": "^2.11.6"
}, },
"devDependencies": { "devDependencies": {
"esbuild": "^0.14.29", "esbuild": "^0.14.54",
"release-it": "^15.1.1", "release-it": "^15.4.1",
"typescript": "^4.7.4" "typescript": "^4.8.2"
}, },
"release-it": { "release-it": {
"git": { "git": {

View File

@ -37,10 +37,10 @@
"author": "chenjiahan", "author": "chenjiahan",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"esbuild": "^0.14.29", "esbuild": "^0.14.54",
"release-it": "^15.1.1", "release-it": "^15.4.1",
"typescript": "^4.7.4", "typescript": "^4.8.2",
"vue": "^3.2.27" "vue": "^3.2.38"
}, },
"release-it": { "release-it": {
"git": { "git": {

View File

@ -52,15 +52,15 @@
"vue": "^3.0.0" "vue": "^3.0.0"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^16", "@types/node": "^16.11.56",
"@vant/area-data": "workspace:*", "@vant/area-data": "workspace:*",
"@vant/cli": "workspace:*", "@vant/cli": "workspace:*",
"@vant/eslint-config": "workspace:*", "@vant/eslint-config": "workspace:*",
"@vue/runtime-core": "^3.2.27", "@vue/runtime-core": "^3.2.38",
"@vue/test-utils": "^2.0.1", "@vue/test-utils": "^2.0.2",
"typescript": "^4.7.4", "typescript": "^4.8.2",
"vue": "^3.2.27", "vue": "^3.2.38",
"vue-router": "^4.0.12" "vue-router": "^4.1.5"
}, },
"sideEffects": [ "sideEffects": [
"es/**/style/*", "es/**/style/*",

View File

@ -149,7 +149,7 @@ test('set min-minute dynamically', async () => {
triggerDrag(wrapper.find('.van-picker-column'), 0, -100); triggerDrag(wrapper.find('.van-picker-column'), 0, -100);
wrapper.find('.van-picker__confirm').trigger('click'); wrapper.find('.van-picker__confirm').trigger('click');
await later(); await later();
expect(wrapper.emitted<[string]>('change')![0][0]).toEqual('13:00'); expect(wrapper.emitted<[string]>('change')![0][0]).toEqual('12:30');
}); });
test('should emit value correctly when dynamic change min-hour', async () => { test('should emit value correctly when dynamic change min-hour', async () => {

View File

@ -34,8 +34,8 @@ test('should trigger onClose option correctly', async () => {
expect(onClose).toHaveBeenCalledTimes(1); expect(onClose).toHaveBeenCalledTimes(1);
expect(onClose).toHaveBeenCalledWith({ expect(onClose).toHaveBeenCalledWith({
index: 0, index: 1,
url: images[0], url: images[1],
}); });
}); });

View File

@ -29,7 +29,10 @@ function genBem(name: string, mods?: Mods): string {
} }
if (Array.isArray(mods)) { if (Array.isArray(mods)) {
return mods.reduce<string>((ret, item) => ret + genBem(name, item), ''); return (mods as Mod[]).reduce<string>(
(ret, item) => ret + genBem(name, item),
''
);
} }
return Object.keys(mods).reduce( return Object.keys(mods).reduce(

View File

@ -1,5 +1,5 @@
import { App } from 'vue';
import { camelize } from './format'; import { camelize } from './format';
import type { App, Component } from 'vue';
// https://github.com/vant-ui/vant/issues/8302 // https://github.com/vant-ui/vant/issues/8302
type EventShim = { type EventShim = {
@ -14,11 +14,13 @@ export type WithInstall<T> = T & {
install(app: App): void; install(app: App): void;
} & EventShim; } & EventShim;
export function withInstall<T>(options: T) { export function withInstall<T extends Component>(options: T) {
(options as Record<string, unknown>).install = (app: App) => { (options as Record<string, unknown>).install = (app: App) => {
const { name } = options as unknown as { name: string }; const { name } = options;
app.component(name, options); if (name) {
app.component(camelize(`-${name}`), options); app.component(name, options);
app.component(camelize(`-${name}`), options);
}
}; };
return options as WithInstall<T>; return options as WithInstall<T>;

1518
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff