mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
AI Disclaimer : **AI Used**
This PR upgrades
### `@transloadit/prettier-bytes` `^0.3.4` → `^1.x`
v1 switched from a **default export** to a **named export**. Updated the
imports in 6 source files:
```diff
- import prettierBytes from '@transloadit/prettier-bytes'
+ import { prettierBytes } from '@transloadit/prettier-bytes'
```
Files: `@uppy/core/src/{Restricter.ts, Uppy.test.ts}`,
`@uppy/compressor/src/index.ts`,
`@uppy/dashboard/src/components/{FileItem/FileInfo,
StatusBar/Components}.tsx`, `@uppy/status-bar/src/Components.tsx`.
### Companion: `@types/jsonwebtoken` `8.3.7` → `9.0.10`
Aligns the types with the existing runtime `jsonwebtoken: 9.0.3`. The
`verify()` return type narrowed in v9 (now `string |
JwtPayload`), so one type-only adjustment in
`packages/@uppy/companion/src/server/helpers/jwt.ts`:
```diff
- return decoded.data
+ return decoded['data']
```
(The existing `'data' in decoded` guard above this line is what actually
narrows the type; the dot→bracket swap silences the strict
check.)
### Companion: `@types/node` `^20.19.0` → `20.19.41`
New `@types/node` makes `http.Agent.createConnection` more accurately
typed as returning `Duplex | null | undefined`. Adjusted the
return-type annotation on the two overrides in
`packages/@uppy/companion/src/server/helpers/request.ts`.
### Notes
- This PR is built on top of `uppy-upgrade-deps-v2` (the no-code-changes
dep bumps PR) and inherits those. If merging out of order,
rebase onto `main` after `uppy-upgrade-deps-v2` lands.
78 lines
2 KiB
JSON
78 lines
2 KiB
JSON
{
|
|
"name": "@uppy/dashboard",
|
|
"description": "Universal UI plugin for Uppy.",
|
|
"version": "5.1.1",
|
|
"license": "MIT",
|
|
"style": "dist/style.min.css",
|
|
"type": "module",
|
|
"sideEffects": [
|
|
"*.css"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc --build tsconfig.build.json",
|
|
"build:css": "sass --load-path=../../ src/style.scss dist/style.css && postcss dist/style.css -u cssnano -o dist/style.min.css",
|
|
"typecheck": "tsc --build",
|
|
"test": "vitest run --silent='passed-only'",
|
|
"test:e2e": "vitest run --project browser"
|
|
},
|
|
"keywords": [
|
|
"file uploader",
|
|
"uppy",
|
|
"uppy-plugin",
|
|
"dashboard",
|
|
"ui"
|
|
],
|
|
"homepage": "https://uppy.io",
|
|
"bugs": {
|
|
"url": "https://github.com/transloadit/uppy/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/transloadit/uppy.git"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"lib",
|
|
"dist",
|
|
"CHANGELOG.md"
|
|
],
|
|
"exports": {
|
|
".": "./lib/index.js",
|
|
"./css/style.css": "./dist/style.css",
|
|
"./css/style.min.css": "./dist/style.min.css",
|
|
"./css/style.scss": "./src/style.scss",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"dependencies": {
|
|
"@transloadit/prettier-bytes": "^1.1.0",
|
|
"@uppy/provider-views": "workspace:^",
|
|
"@uppy/thumbnail-generator": "workspace:^",
|
|
"@uppy/utils": "workspace:^",
|
|
"classnames": "^2.5.1",
|
|
"lodash": "^4.18.1",
|
|
"nanoid": "^5.1.11",
|
|
"preact": "^10.29.2",
|
|
"shallow-equal": "^3.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@uppy/core": "workspace:^",
|
|
"@uppy/dropbox": "workspace:^",
|
|
"@uppy/google-drive": "workspace:^",
|
|
"@uppy/url": "workspace:^",
|
|
"@uppy/webcam": "workspace:^",
|
|
"@vitest/browser": "^4.1.6",
|
|
"@vitest/browser-playwright": "^4.1.6",
|
|
"cssnano": "^7.0.7",
|
|
"jsdom": "^26.1.0",
|
|
"playwright": "1.57.0",
|
|
"postcss": "^8.5.6",
|
|
"postcss-cli": "^11.0.1",
|
|
"resize-observer-polyfill": "^1.5.0",
|
|
"sass": "^1.89.2",
|
|
"typescript": "^5.8.3",
|
|
"vitest": "^4.1.6"
|
|
},
|
|
"peerDependencies": {
|
|
"@uppy/core": "workspace:^"
|
|
}
|
|
}
|