Antoine du Hamel 1 год назад
Родитель
Сommit
975038cf4c
35 измененных файлов с 395 добавлено и 553 удалено
  1. 16 0
      .yarn/patches/@vitest-utils-npm-1.2.1-3028846845.patch
  2. 1 1
      examples/aws-companion/package.json
  3. 1 1
      examples/custom-provider/package.json
  4. 1 1
      examples/digitalocean-spaces/package.json
  5. 1 1
      examples/multiple-instances/package.json
  6. 1 1
      examples/node-xhr/package.json
  7. 1 1
      examples/php-xhr/package.json
  8. 1 1
      examples/python-xhr/package.json
  9. 2 2
      examples/react-example/package.json
  10. 1 1
      examples/redux/package.json
  11. 1 1
      examples/transloadit-markdown-bin/package.json
  12. 1 1
      examples/transloadit/package.json
  13. 1 1
      examples/vue/package.json
  14. 2 2
      examples/vue3/package.json
  15. 1 1
      examples/xhr-bundle/package.json
  16. 2 1
      package.json
  17. 1 1
      packages/@uppy/audio/package.json
  18. 1 1
      packages/@uppy/aws-s3-multipart/package.json
  19. 1 1
      packages/@uppy/aws-s3/package.json
  20. 1 1
      packages/@uppy/companion-client/package.json
  21. 1 1
      packages/@uppy/compressor/package.json
  22. 1 1
      packages/@uppy/core/package.json
  23. 5 5
      packages/@uppy/core/src/__snapshots__/Uppy.test.ts.snap
  24. 1 1
      packages/@uppy/dashboard/package.json
  25. 1 1
      packages/@uppy/remote-sources/package.json
  26. 1 1
      packages/@uppy/store-default/package.json
  27. 1 1
      packages/@uppy/store-redux/package.json
  28. 1 1
      packages/@uppy/thumbnail-generator/package.json
  29. 1 1
      packages/@uppy/transloadit/package.json
  30. 1 1
      packages/@uppy/tus/package.json
  31. 1 1
      packages/@uppy/utils/package.json
  32. 1 1
      packages/@uppy/webcam/package.json
  33. 1 1
      packages/@uppy/xhr-upload/package.json
  34. 1 1
      private/dev/package.json
  35. 339 514
      yarn.lock

+ 16 - 0
.yarn/patches/@vitest-utils-npm-1.2.1-3028846845.patch

@@ -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;
+ };

+ 1 - 1
examples/aws-companion/package.json

@@ -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": {

+ 1 - 1
examples/custom-provider/package.json

@@ -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": {

+ 1 - 1
examples/digitalocean-spaces/package.json

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

+ 1 - 1
examples/multiple-instances/package.json

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

+ 1 - 1
examples/node-xhr/package.json

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

+ 1 - 1
examples/php-xhr/package.json

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

+ 1 - 1
examples/python-xhr/package.json

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

+ 2 - 2
examples/react-example/package.json

@@ -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"
   }
 }

+ 1 - 1
examples/redux/package.json

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

+ 1 - 1
examples/transloadit-markdown-bin/package.json

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

+ 1 - 1
examples/transloadit/package.json

@@ -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:*",

+ 1 - 1
examples/vue/package.json

@@ -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"
   }

+ 2 - 2
examples/vue3/package.json

@@ -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"
   }
 }

+ 1 - 1
examples/xhr-bundle/package.json

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

+ 2 - 1
package.json

@@ -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",

+ 1 - 1
packages/@uppy/audio/package.json

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

+ 1 - 1
packages/@uppy/aws-s3-multipart/package.json

@@ -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": {

+ 1 - 1
packages/@uppy/aws-s3/package.json

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

+ 1 - 1
packages/@uppy/companion-client/package.json

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

+ 1 - 1
packages/@uppy/compressor/package.json

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

+ 1 - 1
packages/@uppy/core/package.json

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

+ 5 - 5
packages/@uppy/core/src/__snapshots__/Uppy.test.ts.snap

@@ -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`] = `

+ 1 - 1
packages/@uppy/dashboard/package.json

@@ -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:^"

+ 1 - 1
packages/@uppy/remote-sources/package.json

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

+ 1 - 1
packages/@uppy/store-default/package.json

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

+ 1 - 1
packages/@uppy/store-redux/package.json

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

+ 1 - 1
packages/@uppy/thumbnail-generator/package.json

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

+ 1 - 1
packages/@uppy/transloadit/package.json

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

+ 1 - 1
packages/@uppy/tus/package.json

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

+ 1 - 1
packages/@uppy/utils/package.json

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

+ 1 - 1
packages/@uppy/webcam/package.json

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

+ 1 - 1
packages/@uppy/xhr-upload/package.json

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

+ 1 - 1
private/dev/package.json

@@ -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",

Разница между файлами не показана из-за своего большого размера
+ 339 - 514
yarn.lock


Некоторые файлы не были показаны из-за большого количества измененных файлов