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": {
"@vant/cli": "workspace:*",
"@vant/eslint-config": "workspace:*",
"eslint": "^8.2.0",
"eslint": "^8.23.0",
"husky": "^8.0.1",
"nano-staged": "^0.8.0",
"prettier": "^2.5.0",
"prettier": "^2.7.1",
"rimraf": "^3.0.2"
},
"pnpm": {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -149,7 +149,7 @@ test('set min-minute dynamically', async () => {
triggerDrag(wrapper.find('.van-picker-column'), 0, -100);
wrapper.find('.van-picker__confirm').trigger('click');
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 () => {

View File

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

View File

@ -29,7 +29,10 @@ function genBem(name: string, mods?: Mods): string {
}
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(

View File

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

1518
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff