mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-17 16:50:22 +00:00
meta: update more dependencies (#5171)
This commit is contained in:
parent
928eff7c58
commit
0697f75b7c
14 changed files with 684 additions and 466 deletions
|
|
@ -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
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
"uppy": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"esbuild": "^0.20.1"
|
||||
"esbuild": "^0.21.2"
|
||||
},
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ function renderSnippet (title, text) {
|
|||
const contentEl = newSnippet.querySelector('.snippet-content')
|
||||
|
||||
titleEl.appendChild(document.createTextNode(title))
|
||||
contentEl.innerHTML = marked(text)
|
||||
contentEl.innerHTML = marked.parse(text)
|
||||
|
||||
const list = document.querySelector('#snippets')
|
||||
list.insertBefore(newSnippet, list.firstChild)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"@uppy/remote-sources": "workspace:*",
|
||||
"@uppy/transloadit": "workspace:*",
|
||||
"@uppy/webcam": "workspace:*",
|
||||
"marked": "^4.0.18"
|
||||
"marked": "^12.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^5.0.0"
|
||||
|
|
|
|||
15
package.json
15
package.json
|
|
@ -29,7 +29,7 @@
|
|||
"node": "^16.15.0 || >=18.0.0",
|
||||
"yarn": "3.6.1"
|
||||
},
|
||||
"packageManager": "yarn@4.1.1+sha256.f3cc0eda8e5560e529c7147565b30faa43b4e472d90e8634d7134a37c7f59781",
|
||||
"packageManager": "yarn@4.2.2+sha224.1e50daf19e5e249a025569752c60b88005fddf57d10fcde5fc68b88f",
|
||||
"workspaces": [
|
||||
"examples/*",
|
||||
"packages/@uppy/*",
|
||||
|
|
@ -63,9 +63,9 @@
|
|||
"babel-plugin-inline-package-json": "^2.0.0",
|
||||
"chalk": "^5.0.0",
|
||||
"concat-stream": "^2.0.0",
|
||||
"cssnano": "^6.0.6",
|
||||
"cssnano": "^7.0.0",
|
||||
"dotenv": "^16.0.0",
|
||||
"esbuild": "^0.20.1",
|
||||
"esbuild": "^0.21.2",
|
||||
"esbuild-plugin-babel": "^0.2.3",
|
||||
"eslint": "^8.0.0",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
|
|
@ -76,18 +76,18 @@
|
|||
"eslint-plugin-jest": "^28.0.0",
|
||||
"eslint-plugin-jsdoc": "^48.0.0",
|
||||
"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-node": "^11.1.0",
|
||||
"eslint-plugin-prefer-import": "^0.0.1",
|
||||
"eslint-plugin-promise": "^6.0.0",
|
||||
"eslint-plugin-react": "^7.22.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",
|
||||
"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",
|
||||
"nodemon": "^2.0.8",
|
||||
"npm-packlist": "^5.0.0",
|
||||
|
|
@ -180,7 +180,6 @@
|
|||
"stylelint@^9.10.1": "^16.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",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@
|
|||
"prom-client": "14.0.1",
|
||||
"serialize-error": "^11.0.0",
|
||||
"serialize-javascript": "^6.0.0",
|
||||
"tus-js-client": "^3.1.3",
|
||||
"tus-js-client": "^4.1.0",
|
||||
"validator": "^13.0.0",
|
||||
"ws": "8.17.0"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -29,11 +29,11 @@
|
|||
"@uppy/thumbnail-generator": "workspace:^",
|
||||
"@uppy/utils": "workspace:^",
|
||||
"classnames": "^2.2.6",
|
||||
"is-shallow-equal": "^1.0.1",
|
||||
"lodash": "^4.17.21",
|
||||
"memoize-one": "^6.0.0",
|
||||
"nanoid": "^5.0.0",
|
||||
"preact": "^10.5.13"
|
||||
"preact": "^10.5.13",
|
||||
"shallow-equal": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@uppy/google-drive": "workspace:^",
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
/* eslint-disable react/destructuring-assignment */
|
||||
import { h, Component, type ComponentChild } from 'preact'
|
||||
import classNames from 'classnames'
|
||||
import shallowEqual from 'is-shallow-equal'
|
||||
import { shallowEqualObjects } from 'shallow-equal'
|
||||
import FilePreviewAndLink from './FilePreviewAndLink/index.tsx'
|
||||
import FileProgress from './FileProgress/index.tsx'
|
||||
import FileInfo from './FileInfo/index.tsx'
|
||||
|
|
@ -21,7 +21,7 @@ export default class FileItem extends Component {
|
|||
}
|
||||
|
||||
shouldComponentUpdate(nextProps: $TSFixMe): boolean {
|
||||
return !shallowEqual(this.props, nextProps)
|
||||
return !shallowEqualObjects(this.props, nextProps)
|
||||
}
|
||||
|
||||
// VirtualList mounts FileItems again and they emit `thumbnail:request`
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@
|
|||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"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"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
"dependencies": {
|
||||
"@uppy/companion-client": "workspace:^",
|
||||
"@uppy/utils": "workspace:^",
|
||||
"tus-js-client": "^3.1.3"
|
||||
"tus-js-client": "^4.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vitest": "^1.2.1"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
"type": "module",
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"shallow-equal": "^1.2.1"
|
||||
"shallow-equal": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vue": "^3.4.21"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
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 type { UnknownPlugin, Uppy } from '@uppy/core'
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@uppy/utils": "workspace:^",
|
||||
"is-mobile": "^3.1.1",
|
||||
"is-mobile": "^4.0.0",
|
||||
"preact": "^10.5.13"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue