Commit graph

209 commits

Author SHA1 Message Date
Merlijn Vos
1a7c71db38
Upgrade @transloadit/prettier-bytes (#5150) 2024-05-07 15:34:09 +02:00
dependabot[bot]
812ce70f37
Bump ejs from 3.1.9 to 3.1.10 (#5135)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-03 14:32:19 +02:00
Merlijn Vos
daae9aa085
@uppy/xhr-upload: refactor to use fetcher (#5074)
* @uppy/utils: add fetcher

* Improve callbacks

* Refactor local file uploads

* Refactor bundle upload

* Pass timeout to timeout handler

* Remove unused nanoid

* Apply feedback

* Prettier unrelated files

---------

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2024-04-29 15:39:44 +02:00
Murderlon
9c728261ee
Update yarn.lock 2024-04-29 13:11:00 +02:00
Antoine du Hamel
1ffe386377
meta: bump Prettier version (#5114) 2024-04-23 16:49:48 +02:00
dependabot[bot]
5004e84495
meta: bump vite from 5.0.12 to 5.0.13 (#5060)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.0.12 to 5.0.13.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.0.13/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.0.13/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 15:27:43 +02:00
dependabot[bot]
a515b1a6e3
meta: bump tar from 6.1.11 to 6.2.1 (#5068)
* Bump tar from 6.1.11 to 6.2.1

Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.11 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.11...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-10 15:21:08 +02:00
Mikael Finstad
1df1b082fb
upgrade redis (#5065)
see https://community.transloadit.com/t/issue-with-companion-redis-options/17058
2024-04-10 13:17:30 +02:00
dependabot[bot]
61997f087c
Bump express from 4.18.1 to 4.19.2 (#5037)
Bumps [express](https://github.com/expressjs/express) from 4.18.1 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.1...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 10:10:47 +01:00
Antoine du Hamel
3977985e68
e2e: bump Cypress version (#5034) 2024-03-27 13:42:29 +01:00
dependabot[bot]
2a618c935e
Bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#5013)
Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-22 14:05:54 +01:00
dependabot[bot]
1f4f52feb4
Bump follow-redirects from 1.15.4 to 1.15.6 (#5002) 2024-03-18 10:44:58 +01:00
Antoine du Hamel
7f73a5cf1a
meta: fix resize-observer-polyfill types (#4994)
The upstream package is defining its own types which are incompatible
with TS built-in DOM types.
2024-03-14 18:13:32 +01:00
Antoine du Hamel
3bdf312f90
uppy: fix bundle builder (#4950) 2024-02-22 16:31:15 +01:00
Antoine du Hamel
9fb5162bd2
meta: disable @typescript-eslint/no-non-null-assertion lint rule (#4945) 2024-02-21 13:24:55 +01:00
dependabot[bot]
b7f2143528
meta: bump ip from 1.1.8 to 1.1.9 (#4941) 2024-02-21 10:05:45 +01:00
Antoine du Hamel
5313c0aae7
bump @transloadit/prettier-bytes (#4933) 2024-02-20 10:19:08 +01:00
Merlijn Vos
84233be18f
@uppy/compressor: upgrade compressorjs (#4924) 2024-02-19 15:49:08 +01:00
Antoine du Hamel
d127be6bc0
meta: bump Yarn version (#4906) 2024-02-01 23:15:57 +01:00
Merlijn Vos
a0050bd79f
@uppy/companion-client: migrate to TS (#4864) 2024-01-24 14:19:38 +01:00
Antoine du Hamel
588bfb515e
meta: prettier 3.0.3 -> 3.2.4 (#4889)
Notable change: https://prettier.io/blog/2023/11/13/curious-ternaries
2024-01-24 11:37:01 +01:00
Antoine du Hamel
975038cf4c
meta: upgrade Vite and Vitest (#4881) 2024-01-22 15:56:40 +01:00
dependabot[bot]
93053e320f
build(deps): bump follow-redirects from 1.15.1 to 1.15.4 (#4862) 2024-01-17 14:44:45 +01:00
Antoine du Hamel
75b2e2363a
upgrade @transloadit/prettier-bytes (#4850) 2024-01-03 09:43:13 +01:00
Merlijn Vos
b396d6fca4
bump tus-js-client version range (#4848) 2024-01-02 17:05:14 +01:00
Antoine du Hamel
f55b24c378
@uppy/companion-client: avoid unnecessary preflight requests (#4462)
According to https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests, we have so many preflight requests because we add `Uppy-Versions` header and `Content-Type: application/json` to each request. It's particularly not useful for for requests with no body / an empty body because the remote Companion doesn't check `Content-Type`.

It was added in b25f243627, and since f0f1105ef0, it is only used for log 
purposes.

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2023-12-05 12:30:41 +01:00
Antoine du Hamel
c60ece4dc7
@uppy/locales: use TypeScript for source files (#4779) 2023-11-20 13:54:08 +01:00
Trivikram Kamat
736a1bc926
meta: migrate AWS SDK v2 to v3 in bin/uploadcdn (#4776) 2023-11-14 10:51:36 +01:00
Artur Paikin
440b8a9f9a
Revert "@uppy/react: add useUppyState (#4711)" (#4789)
This reverts commit 12e08ada02.
2023-11-12 02:03:55 +01:00
Antoine du Hamel
51ecc66e64
@uppy/utils: refactor to TS (#4699)
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Nick Rutten <2504906+nickrttn@users.noreply.github.com>
Co-authored-by: Murderlon <merlijn@soverin.net>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2023-11-06 15:01:50 +01:00
Mikael Finstad
17826da517
Companion+client stability fixes, error handling and retry (#4734)
* respond with 500 if unhandled upload error

400 seems inappropriate

* add todo

* fix companion download error

respond with correct response code when calling /get
and request to the upstream server fail

also add a unit test for this

* forward 429 from provider

allows us to retry it

* rename fn

* add a way to test refresh tokens

* fix race condtiion with refreshing token

* implement retry and fix socket

- Make sure we don't instantiate a new Provider for every file uploaded (reuse the original provider instead) - this caused the refresh token synchronization not to work
- Retry most errors when uploading (`/get`) using companion, but for HTTP, only retry certain HTTP status codes
- Reimplement the websocket code to be more stable and retry as well

* remove unused socket wrapper

* remove useFastRemoteRetry

because it isn't supported in Companion as far as I can tell

* fix error handling

* remove unneeded logic

* apply review suggestion

* retry awaiting for companion socket too

* retry whole operation instead of individually

or else we risk getting stuck retrying just half of the operation, which might never recover

* improvements

- rewrite so we can use p-retry for exponential backoff for socket reconnect too
- improve logging
- simplify/reuse code

* Update packages/@uppy/utils/src/fetchWithNetworkError.js

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>

* Explain requestClient Symbol with comment

Co-authored-by: Mikael Finstad <finstaden@gmail.com>

* Update packages/@uppy/provider-views/src/View.js

* fixes

preventing socket.send when the socket is not in the connected state
catch errors in handlers

* log if trying to refresh with no token

* log whether we got a refresh token

* dont log retrying when in reality not

* always prompt: consent

for google drive

* add signal to post

* refactor away eventmanager

and event handler error catching

* don't fail with upload-error

if a file is canceled

* fix expect

* add capabilities support

* make requestClient non-enumerable

---------

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2023-11-02 21:31:34 +09:00
Merlijn Vos
12e08ada02
@uppy/react: add useUppyState (#4711) 2023-10-24 08:58:58 +02:00
dependabot[bot]
e8f90a3f9a
Bump jsonwebtoken from 8.5.1 to 9.0.0 in /packages/@uppy/companion (#4751)
* Bump jsonwebtoken from 8.5.1 to 9.0.0 in /packages/@uppy/companion

Bumps [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) from 8.5.1 to 9.0.0.
- [Changelog](https://github.com/auth0/node-jsonwebtoken/blob/master/CHANGELOG.md)
- [Commits](https://github.com/auth0/node-jsonwebtoken/compare/v8.5.1...v9.0.0)

---
updated-dependencies:
- dependency-name: jsonwebtoken
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* `yarn.lock`

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 17:34:58 +02:00
dependabot[bot]
8e87224986
Bump react-devtools-core from 4.25.0 to 4.28.4 (#4756)
Bumps [react-devtools-core](https://github.com/facebook/react/tree/HEAD/packages/react-devtools-core) from 4.25.0 to 4.28.4.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/react-devtools-core)

---
updated-dependencies:
- dependency-name: react-devtools-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 17:23:12 +02:00
dependabot[bot]
3ab85652c6
Bump webpack from 5.74.0 to 5.88.2 (#4740)
Bumps [webpack](https://github.com/webpack/webpack) from 5.74.0 to 5.88.2.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.74.0...v5.88.2)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 17:22:44 +02:00
dependabot[bot]
5bd26f4181
Bump @babel/traverse from 7.22.5 to 7.23.2 (#4739)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.5 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 17:22:27 +02:00
dependabot[bot]
0e2d8f63d5
Bump tough-cookie from 4.1.2 to 4.1.3 (#4750)
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 14:36:28 +02:00
Antoine du Hamel
773c8cb9a1
meta: add support for TypeScript plugins (#4640) 2023-10-17 15:38:15 +02:00
Artur Paikin
8b252086f5
@uppy/dashboard: auto discover and install plugins without target (#4343)
* Dashboard: auto discover plugins no matter when they were installed

* Remove target from RemoteSoruces, making it compatible with @uppy/react

* Update packages/@uppy/dashboard/src/Dashboard.jsx

Co-authored-by: Mikael Finstad <finstaden@gmail.com>

* Removed comments, added comments

* better comment

* Change type — otherwise gets listed on Dashboard sources

* Add RemoteSources to React test

* Add RemoteSources to React example

* Add tests

* Refactor for less iteration for each plugin, rename functions

* Prevent error when opts are undefined

* remove console.logs

* prettier

---------

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2023-10-12 23:19:40 +01:00
Antoine du Hamel
933d9dfe74
e2e: upgrade Cypress (#4731) 2023-10-11 12:08:57 +02:00
dependabot[bot]
a458e9bf57
Bump postcss from 8.4.16 to 8.4.31 (#4723)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.16 to 8.4.31.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.4.16...8.4.31)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-11 07:00:10 +01:00
Antoine du Hamel
f4ea454919
e2e: update Parcel (#4726) 2023-10-05 19:01:25 +02:00
Antoine du Hamel
c0f7d762e5
@uppy/svelte: fix TS build command (#4720) 2023-10-02 17:38:00 +02:00
dependabot[bot]
61450042ad
meta: bump get-func-name from 2.0.0 to 2.0.2 (#4709)
Bumps [get-func-name](https://github.com/chaijs/get-func-name) from 2.0.0 to 2.0.2.
- [Release notes](https://github.com/chaijs/get-func-name/releases)
- [Commits](https://github.com/chaijs/get-func-name/commits/v2.0.2)

---
updated-dependencies:
- dependency-name: get-func-name
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-29 11:13:24 +02:00
Antoine du Hamel
2f691acd3f
meta: add Prettier (#4707)
JS files are ignored for now because we want to migrate them to TS
anyway.
MD files are also ignored to minimize the diff.

ESLint is run twice twice on TS files in case it conflicts with Prettier.
2023-09-28 16:47:52 +02:00
Antoine du Hamel
2c432b12cd
test: migrate to Vitest for Uppy core and Uppy plugins (#4700) 2023-09-26 17:23:17 +02:00
Mikael Finstad
4ab1299696
run corepack yarn
seems like it's gone out of sync:

Run corepack yarn install --immutable
➤ YN0000: ┌ Resolution step
Resolution step
➤ YN0000: └ Completed in 0s 979ms

➤ YN0000: ┌ Post-resolution validation
Post-resolution validation
➤ YN0028: -    svelte: ^4.0.0
➤ YN0028: +    svelte: ^3.0.0 || ^4.0.0
➤ YN0028: The lockfile would have been modified by this install, which is explicitly forbidden.
2023-09-26 22:18:33 +08:00
Artur Paikin
536596c8b1 Update yarn.lock 2023-09-21 20:55:47 +01:00
Artur Paikin
8b86db1ce5
@uppy/compressor: update file.meta.name after compression, becase format/extension might have changed (#4645)
* When Compressor changed file format, update file.meta.name

* only use the setFileState, update comment

* Use Compressor ESM, check for name and extension

* Add test with mocked compress()

* Test user changing the file.meta.name

* Update packages/@uppy/compressor/package.json

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>

* Cleaner variables, remove excessive checks

* Fix package.json

---------

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2023-09-11 14:01:35 +02:00
Antoine du Hamel
8a32e8e2e7
@uppy/transloadit: remove Socket.io (#4281)
* @uppy/transloadit: implement Server-sent event API

* pass events from event stream to JS

* @uppy/transloadit: remove Socket.io

Now that SSE is available, WebSockets do not bring much to the table.

---------

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2023-09-04 18:59:22 +01:00