meta: upgrade Vite and Vitest (#4881)

This commit is contained in:
Antoine du Hamel 2024-01-22 15:56:40 +01:00 committed by GitHub
parent a47090c2c6
commit 975038cf4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 1198 additions and 1323 deletions

View file

@ -0,0 +1,16 @@
diff --git a/dist/error.d.ts b/dist/error.d.ts
index bd657d5311ff3d255dc57a2f7224301d532a3177..8924e0982c64c566f4d9808cde62292d7ed334ac 100644
--- a/dist/error.d.ts
+++ b/dist/error.d.ts
@@ -1,9 +1,9 @@
import { D as DiffOptions } from './types-widbdqe5.js';
import 'pretty-format';
-declare function serializeError(val: any, seen?: WeakMap<WeakKey, any>): any;
+declare function serializeError(val: any, seen?: WeakMap<object, any>): any;
declare function processError(err: any, diffOptions?: DiffOptions): any;
-declare function replaceAsymmetricMatcher(actual: any, expected: any, actualReplaced?: WeakSet<WeakKey>, expectedReplaced?: WeakSet<WeakKey>): {
+declare function replaceAsymmetricMatcher(actual: any, expected: any, actualReplaced?: WeakSet<object>, expectedReplaced?: WeakSet<object>): {
replacedActual: any;
replacedExpected: any;
};

View file

@ -18,7 +18,7 @@
"express": "^4.18.1",
"express-session": "^1.17.3",
"npm-run-all": "^4.1.5",
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"engines": {

View file

@ -21,7 +21,7 @@
"express": "^4.16.2",
"express-session": "^1.15.6",
"npm-run-all": "^4.1.2",
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"scripts": {

View file

@ -12,7 +12,7 @@
"devDependencies": {
"dotenv": "^16.0.1",
"express": "^4.16.2",
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"scripts": {

View file

@ -8,7 +8,7 @@
"@uppy/golden-retriever": "workspace:*"
},
"devDependencies": {
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"scripts": {

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"npm-run-all": "^4.1.3",
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"scripts": {

View file

@ -10,7 +10,7 @@
},
"devDependencies": {
"npm-run-all": "^4.1.3",
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"scripts": {

View file

@ -10,7 +10,7 @@
},
"devDependencies": {
"npm-run-all": "^4.1.3",
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"scripts": {

View file

@ -21,7 +21,7 @@
"preview": "vite preview --port 5050"
},
"devDependencies": {
"@vitejs/plugin-react": "^2.0.0",
"vite": "^4.0.0"
"@vitejs/plugin-react": "^4.0.0",
"vite": "^5.0.0"
}
}

View file

@ -12,7 +12,7 @@
"redux-logger": "^3.0.6"
},
"devDependencies": {
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"scripts": {

View file

@ -13,7 +13,7 @@
"marked": "^4.0.18"
},
"devDependencies": {
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"scripts": {

View file

@ -4,7 +4,7 @@
"type": "module",
"devDependencies": {
"npm-run-all": "^4.1.5",
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"dependencies": {
"@uppy/core": "workspace:*",

View file

@ -17,7 +17,7 @@
"vue": "^2.6.14"
},
"devDependencies": {
"vite": "^4.0.0",
"vite": "^5.0.0",
"vite-plugin-vue2": "^2.0.1",
"vue-template-compiler": "^2.6.14"
}

View file

@ -17,7 +17,7 @@
"vue": "^3.2.33"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.0.0",
"vite": "^4.0.0"
"@vitejs/plugin-vue": "^5.0.0",
"vite": "^5.0.0"
}
}

View file

@ -11,7 +11,7 @@
},
"devDependencies": {
"npm-run-all": "^4.1.5",
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"scripts": {

View file

@ -109,7 +109,7 @@
"tar": "^6.1.0",
"tsd": "^0.28.0",
"typescript": "~5.1",
"vitest": "^0.34.5",
"vitest": "^1.2.1",
"vue-template-compiler": "workspace:*"
},
"scripts": {
@ -169,6 +169,7 @@
"@types/eslint@^7.2.13": "^8.2.0",
"@types/react": "^17",
"@types/webpack-dev-server": "^4",
"@vitest/utils": "patch:@vitest/utils@npm%3A1.2.1#./.yarn/patches/@vitest-utils-npm-1.2.1-3028846845.patch",
"p-queue": "patch:p-queue@npm%3A7.4.1#./.yarn/patches/p-queue-npm-7.4.1-e0cf0a6f17.patch",
"pre-commit": "patch:pre-commit@npm:1.2.2#.yarn/patches/pre-commit-npm-1.2.2-f30af83877.patch",
"preact": "patch:preact@npm:10.10.0#.yarn/patches/preact-npm-10.10.0-dd04de05e8.patch",

View file

@ -30,7 +30,7 @@
"preact": "^10.5.13"
},
"devDependencies": {
"vitest": "^0.34.5"
"vitest": "^1.2.1"
},
"peerDependencies": {
"@uppy/core": "workspace:^"

View file

@ -31,7 +31,7 @@
"@aws-sdk/client-s3": "^3.362.0",
"@aws-sdk/s3-request-presigner": "^3.362.0",
"nock": "^13.1.0",
"vitest": "^0.34.5",
"vitest": "^1.2.1",
"whatwg-fetch": "3.6.2"
},
"peerDependencies": {

View file

@ -30,7 +30,7 @@
"nanoid": "^4.0.0"
},
"devDependencies": {
"vitest": "^0.34.5",
"vitest": "^1.2.1",
"whatwg-fetch": "3.6.2"
},
"peerDependencies": {

View file

@ -27,6 +27,6 @@
"p-retry": "^6.1.0"
},
"devDependencies": {
"vitest": "^0.34.5"
"vitest": "^1.2.1"
}
}

View file

@ -36,6 +36,6 @@
"access": "public"
},
"devDependencies": {
"vitest": "^0.34.5"
"vitest": "^1.2.1"
}
}

View file

@ -34,6 +34,6 @@
"preact": "^10.5.13"
},
"devDependencies": {
"vitest": "^0.34.5"
"vitest": "^1.2.1"
}
}

View file

@ -1,14 +1,14 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`src/Core > plugins > should not be able to add a plugin that has no id 1`] = `"Your plugin must have an id"`;
exports[`src/Core > plugins > should not be able to add a plugin that has no id 1`] = `[Error: Your plugin must have an id]`;
exports[`src/Core > plugins > should not be able to add a plugin that has no type 1`] = `"Your plugin must have a type"`;
exports[`src/Core > plugins > should not be able to add a plugin that has no type 1`] = `[Error: Your plugin must have a type]`;
exports[`src/Core > plugins > should not be able to add an invalid plugin 1`] = `"Expected a plugin class, but got object. Please verify that the plugin was imported and spelled correctly."`;
exports[`src/Core > plugins > should not be able to add an invalid plugin 1`] = `[TypeError: Expected a plugin class, but got object. Please verify that the plugin was imported and spelled correctly.]`;
exports[`src/Core > plugins > should prevent the same plugin from being added more than once 1`] = `
"Already found a plugin named 'TestSelector1'. Tried to use: 'TestSelector1'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id."
[Error: Already found a plugin named 'TestSelector1'. Tried to use: 'TestSelector1'.
Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.]
`;
exports[`src/Core > uploading a file > should only upload files that are not already assigned to another upload id 1`] = `

View file

@ -42,7 +42,7 @@
"@uppy/url": "workspace:^",
"@uppy/webcam": "workspace:^",
"resize-observer-polyfill": "^1.5.0",
"vitest": "^0.34.5"
"vitest": "^1.2.1"
},
"peerDependencies": {
"@uppy/core": "workspace:^"

View file

@ -46,6 +46,6 @@
},
"devDependencies": {
"resize-observer-polyfill": "^1.5.1",
"vitest": "^0.34.5"
"vitest": "^1.2.1"
}
}

View file

@ -16,7 +16,7 @@
"url": "https://github.com/transloadit/uppy/issues"
},
"devDependencies": {
"vitest": "^0.34.5"
"vitest": "^1.2.1"
},
"repository": {
"type": "git",

View file

@ -25,6 +25,6 @@
},
"devDependencies": {
"redux": "^4.0.0",
"vitest": "^0.34.5"
"vitest": "^1.2.1"
}
}

View file

@ -28,7 +28,7 @@
},
"devDependencies": {
"namespace-emitter": "2.0.1",
"vitest": "^0.34.5"
"vitest": "^1.2.1"
},
"peerDependencies": {
"@uppy/core": "workspace:^"

View file

@ -38,7 +38,7 @@
"@uppy/core": "workspace:^"
},
"devDependencies": {
"vitest": "^0.34.5",
"vitest": "^1.2.1",
"whatwg-fetch": "^3.6.2"
}
}

View file

@ -28,7 +28,7 @@
"tus-js-client": "^3.1.3"
},
"devDependencies": {
"vitest": "^0.34.5"
"vitest": "^1.2.1"
},
"peerDependencies": {
"@uppy/core": "workspace:^"

View file

@ -76,6 +76,6 @@
},
"devDependencies": {
"@types/lodash": "^4.14.199",
"vitest": "^0.34.5"
"vitest": "^1.2.1"
}
}

View file

@ -32,7 +32,7 @@
"preact": "^10.5.13"
},
"devDependencies": {
"vitest": "^0.34.5"
"vitest": "^1.2.1"
},
"peerDependencies": {
"@uppy/core": "workspace:^"

View file

@ -31,7 +31,7 @@
},
"devDependencies": {
"nock": "^13.1.0",
"vitest": "^0.34.5"
"vitest": "^1.2.1"
},
"peerDependencies": {
"@uppy/core": "workspace:^"

View file

@ -13,7 +13,7 @@
"autoprefixer": "^10.2.6",
"postcss-dir-pseudo-class": "^6.0.0",
"postcss-logical": "^5.0.0",
"vite": "^4.0.0"
"vite": "^5.0.0"
},
"private": true,
"type": "module",

2426
yarn.lock

File diff suppressed because it is too large Load diff