浏览代码

meta: update more dependencies (#5171)

Antoine du Hamel 11 月之前
父节点
当前提交
0697f75b7c

+ 0 - 36
.yarn/patches/tus-js-client-npm-3.1.3-dc57874d23.patch

@@ -1,36 +0,0 @@
-diff --git a/lib/index.d.ts b/lib/index.d.ts
-index 7a4efead6df94263db77b12c72ddaeafaeaa406c..e47e63f1159f19dd780986f7e33ffdd70bfdc371 100644
---- a/lib/index.d.ts
-+++ b/lib/index.d.ts
-@@ -2,7 +2,12 @@
- 
- export const isSupported: boolean
- export const canStoreURLs: boolean
--export const defaultOptions: UploadOptions
-+export const defaultOptions: UploadOptions & Required<Pick<UploadOptions, 
-+| 'httpStack'
-+| 'fileReader'
-+| 'urlStorage'
-+| 'fingerprint'
-+>>
- 
- // TODO: Consider using { read: () => Promise<{ done: boolean; value?: any; }>; } as type
- export class Upload {
-@@ -12,7 +17,7 @@ export class Upload {
-   options: UploadOptions
-   url: string | null
- 
--  static terminate(url: string, options?: UploadOptions): Promise<void>
-+  static terminate(url: string, options: UploadOptions): Promise<void>
-   start(): void
-   abort(shouldTerminate?: boolean): Promise<void>
-   findPreviousUploads(): Promise<PreviousUpload[]>
-@@ -25,7 +30,7 @@ interface UploadOptions {
- 
-   uploadUrl?: string | null
-   metadata?: { [key: string]: string }
--  fingerprint?: (file: File, options?: UploadOptions) => Promise<string>
-+  fingerprint?: (file: File, options: UploadOptions) => Promise<string>
-   uploadSize?: number | null
- 
-   onProgress?: ((bytesSent: number, bytesTotal: number) => void) | null

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

@@ -8,7 +8,7 @@
     "uppy": "workspace:*"
     "uppy": "workspace:*"
   },
   },
   "devDependencies": {
   "devDependencies": {
-    "esbuild": "^0.20.1"
+    "esbuild": "^0.21.2"
   },
   },
   "private": true,
   "private": true,
   "type": "module",
   "type": "module",

+ 1 - 1
examples/transloadit-markdown-bin/main.js

@@ -146,7 +146,7 @@ function renderSnippet (title, text) {
   const contentEl = newSnippet.querySelector('.snippet-content')
   const contentEl = newSnippet.querySelector('.snippet-content')
 
 
   titleEl.appendChild(document.createTextNode(title))
   titleEl.appendChild(document.createTextNode(title))
-  contentEl.innerHTML = marked(text)
+  contentEl.innerHTML = marked.parse(text)
 
 
   const list = document.querySelector('#snippets')
   const list = document.querySelector('#snippets')
   list.insertBefore(newSnippet, list.firstChild)
   list.insertBefore(newSnippet, list.firstChild)

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

@@ -10,7 +10,7 @@
     "@uppy/remote-sources": "workspace:*",
     "@uppy/remote-sources": "workspace:*",
     "@uppy/transloadit": "workspace:*",
     "@uppy/transloadit": "workspace:*",
     "@uppy/webcam": "workspace:*",
     "@uppy/webcam": "workspace:*",
-    "marked": "^4.0.18"
+    "marked": "^12.0.0"
   },
   },
   "devDependencies": {
   "devDependencies": {
     "vite": "^5.0.0"
     "vite": "^5.0.0"

+ 7 - 8
package.json

@@ -29,7 +29,7 @@
     "node": "^16.15.0 || >=18.0.0",
     "node": "^16.15.0 || >=18.0.0",
     "yarn": "3.6.1"
     "yarn": "3.6.1"
   },
   },
-  "packageManager": "yarn@4.1.1+sha256.f3cc0eda8e5560e529c7147565b30faa43b4e472d90e8634d7134a37c7f59781",
+  "packageManager": "yarn@4.2.2+sha224.1e50daf19e5e249a025569752c60b88005fddf57d10fcde5fc68b88f",
   "workspaces": [
   "workspaces": [
     "examples/*",
     "examples/*",
     "packages/@uppy/*",
     "packages/@uppy/*",
@@ -63,9 +63,9 @@
     "babel-plugin-inline-package-json": "^2.0.0",
     "babel-plugin-inline-package-json": "^2.0.0",
     "chalk": "^5.0.0",
     "chalk": "^5.0.0",
     "concat-stream": "^2.0.0",
     "concat-stream": "^2.0.0",
-    "cssnano": "^6.0.6",
+    "cssnano": "^7.0.0",
     "dotenv": "^16.0.0",
     "dotenv": "^16.0.0",
-    "esbuild": "^0.20.1",
+    "esbuild": "^0.21.2",
     "esbuild-plugin-babel": "^0.2.3",
     "esbuild-plugin-babel": "^0.2.3",
     "eslint": "^8.0.0",
     "eslint": "^8.0.0",
     "eslint-config-prettier": "^9.0.0",
     "eslint-config-prettier": "^9.0.0",
@@ -76,18 +76,18 @@
     "eslint-plugin-jest": "^28.0.0",
     "eslint-plugin-jest": "^28.0.0",
     "eslint-plugin-jsdoc": "^48.0.0",
     "eslint-plugin-jsdoc": "^48.0.0",
     "eslint-plugin-jsx-a11y": "^6.4.1",
     "eslint-plugin-jsx-a11y": "^6.4.1",
-    "eslint-plugin-markdown": "^4.0.0",
+    "eslint-plugin-markdown": "^5.0.0",
     "eslint-plugin-no-only-tests": "^3.1.0",
     "eslint-plugin-no-only-tests": "^3.1.0",
     "eslint-plugin-node": "^11.1.0",
     "eslint-plugin-node": "^11.1.0",
     "eslint-plugin-prefer-import": "^0.0.1",
     "eslint-plugin-prefer-import": "^0.0.1",
     "eslint-plugin-promise": "^6.0.0",
     "eslint-plugin-promise": "^6.0.0",
     "eslint-plugin-react": "^7.22.0",
     "eslint-plugin-react": "^7.22.0",
     "eslint-plugin-react-hooks": "^4.2.0",
     "eslint-plugin-react-hooks": "^4.2.0",
-    "eslint-plugin-unicorn": "^52.0.0",
+    "eslint-plugin-unicorn": "^53.0.0",
     "github-contributors-list": "^1.2.4",
     "github-contributors-list": "^1.2.4",
     "glob": "^8.0.0",
     "glob": "^8.0.0",
-    "jsdom": "^22.1.0",
-    "lint-staged": "^13.0.0",
+    "jsdom": "^24.0.0",
+    "lint-staged": "^15.0.0",
     "mime-types": "^2.1.26",
     "mime-types": "^2.1.26",
     "nodemon": "^2.0.8",
     "nodemon": "^2.0.8",
     "npm-packlist": "^5.0.0",
     "npm-packlist": "^5.0.0",
@@ -180,7 +180,6 @@
     "stylelint@^9.10.1": "^16.0.0",
     "stylelint@^9.10.1": "^16.0.0",
     "stylelint-order": "^6.0.0",
     "stylelint-order": "^6.0.0",
     "uuid@^8.3.2": "patch:uuid@npm:8.3.2#.yarn/patches/uuid-npm-8.3.2-eca0baba53.patch",
     "uuid@^8.3.2": "patch:uuid@npm:8.3.2#.yarn/patches/uuid-npm-8.3.2-eca0baba53.patch",
-    "tus-js-client": "patch:tus-js-client@npm%3A3.1.3#./.yarn/patches/tus-js-client-npm-3.1.3-dc57874d23.patch",
     "resize-observer-polyfill": "patch:resize-observer-polyfill@npm%3A1.5.1#./.yarn/patches/resize-observer-polyfill-npm-1.5.1-603120e8a0.patch"
     "resize-observer-polyfill": "patch:resize-observer-polyfill@npm%3A1.5.1#./.yarn/patches/resize-observer-polyfill-npm-1.5.1-603120e8a0.patch"
   }
   }
 }
 }

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

@@ -63,7 +63,7 @@
     "prom-client": "14.0.1",
     "prom-client": "14.0.1",
     "serialize-error": "^11.0.0",
     "serialize-error": "^11.0.0",
     "serialize-javascript": "^6.0.0",
     "serialize-javascript": "^6.0.0",
-    "tus-js-client": "^3.1.3",
+    "tus-js-client": "^4.1.0",
     "validator": "^13.0.0",
     "validator": "^13.0.0",
     "ws": "8.17.0"
     "ws": "8.17.0"
   },
   },

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

@@ -29,11 +29,11 @@
     "@uppy/thumbnail-generator": "workspace:^",
     "@uppy/thumbnail-generator": "workspace:^",
     "@uppy/utils": "workspace:^",
     "@uppy/utils": "workspace:^",
     "classnames": "^2.2.6",
     "classnames": "^2.2.6",
-    "is-shallow-equal": "^1.0.1",
     "lodash": "^4.17.21",
     "lodash": "^4.17.21",
     "memoize-one": "^6.0.0",
     "memoize-one": "^6.0.0",
     "nanoid": "^5.0.0",
     "nanoid": "^5.0.0",
-    "preact": "^10.5.13"
+    "preact": "^10.5.13",
+    "shallow-equal": "^3.0.0"
   },
   },
   "devDependencies": {
   "devDependencies": {
     "@uppy/google-drive": "workspace:^",
     "@uppy/google-drive": "workspace:^",

+ 2 - 2
packages/@uppy/dashboard/src/components/FileItem/index.tsx

@@ -4,7 +4,7 @@
 /* eslint-disable react/destructuring-assignment */
 /* eslint-disable react/destructuring-assignment */
 import { h, Component, type ComponentChild } from 'preact'
 import { h, Component, type ComponentChild } from 'preact'
 import classNames from 'classnames'
 import classNames from 'classnames'
-import shallowEqual from 'is-shallow-equal'
+import { shallowEqualObjects } from 'shallow-equal'
 import FilePreviewAndLink from './FilePreviewAndLink/index.tsx'
 import FilePreviewAndLink from './FilePreviewAndLink/index.tsx'
 import FileProgress from './FileProgress/index.tsx'
 import FileProgress from './FileProgress/index.tsx'
 import FileInfo from './FileInfo/index.tsx'
 import FileInfo from './FileInfo/index.tsx'
@@ -21,7 +21,7 @@ export default class FileItem extends Component {
   }
   }
 
 
   shouldComponentUpdate(nextProps: $TSFixMe): boolean {
   shouldComponentUpdate(nextProps: $TSFixMe): boolean {
-    return !shallowEqual(this.props, nextProps)
+    return !shallowEqualObjects(this.props, nextProps)
   }
   }
 
 
   // VirtualList mounts FileItems again and they emit `thumbnail:request`
   // VirtualList mounts FileItems again and they emit `thumbnail:request`

+ 2 - 2
packages/@uppy/provider-views/package.json

@@ -21,8 +21,8 @@
   "dependencies": {
   "dependencies": {
     "@uppy/utils": "workspace:^",
     "@uppy/utils": "workspace:^",
     "classnames": "^2.2.6",
     "classnames": "^2.2.6",
-    "nanoid": "^4.0.0",
-    "p-queue": "^7.3.4",
+    "nanoid": "^5.0.0",
+    "p-queue": "^8.0.0",
     "preact": "^10.5.13"
     "preact": "^10.5.13"
   },
   },
   "peerDependencies": {
   "peerDependencies": {

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

@@ -24,7 +24,7 @@
   "dependencies": {
   "dependencies": {
     "@uppy/companion-client": "workspace:^",
     "@uppy/companion-client": "workspace:^",
     "@uppy/utils": "workspace:^",
     "@uppy/utils": "workspace:^",
-    "tus-js-client": "^3.1.3"
+    "tus-js-client": "^4.1.0"
   },
   },
   "devDependencies": {
   "devDependencies": {
     "vitest": "^1.2.1"
     "vitest": "^1.2.1"

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

@@ -5,7 +5,7 @@
   "type": "module",
   "type": "module",
   "main": "lib/index.js",
   "main": "lib/index.js",
   "dependencies": {
   "dependencies": {
-    "shallow-equal": "^1.2.1"
+    "shallow-equal": "^3.0.0"
   },
   },
   "devDependencies": {
   "devDependencies": {
     "vue": "^3.4.21"
     "vue": "^3.4.21"

+ 0 - 2
packages/@uppy/vue/src/useUppy.ts

@@ -1,6 +1,4 @@
 import { onBeforeUnmount, onMounted, watch, type Ref } from 'vue'
 import { onBeforeUnmount, onMounted, watch, type Ref } from 'vue'
-// eslint-disable-next-line @typescript-eslint/ban-ts-comment
-// @ts-ignore untyped
 import { shallowEqualObjects } from 'shallow-equal'
 import { shallowEqualObjects } from 'shallow-equal'
 import type { UnknownPlugin, Uppy } from '@uppy/core'
 import type { UnknownPlugin, Uppy } from '@uppy/core'
 
 

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

@@ -27,7 +27,7 @@
   },
   },
   "dependencies": {
   "dependencies": {
     "@uppy/utils": "workspace:^",
     "@uppy/utils": "workspace:^",
-    "is-mobile": "^3.1.1",
+    "is-mobile": "^4.0.0",
     "preact": "^10.5.13"
     "preact": "^10.5.13"
   },
   },
   "devDependencies": {
   "devDependencies": {

文件差异内容过多而无法显示
+ 398 - 144
yarn.lock


部分文件因为文件数量过多而无法显示