Commit graph

2196 commits

Author SHA1 Message Date
Antoine du Hamel
5fd4b0ee10
@uppy/svelte: update peer dependencies (#4065) 2022-08-30 17:19:14 +02:00
Matt Jesuele
8a3665d28b
@uppy/react: useUppy: fix unmount on NextJS dev mode (#4062) 2022-08-30 15:44:23 +02:00
Antoine du Hamel
0e35dfd3e7
@uppy/angular: fix compiler warning (#4064) 2022-08-30 15:06:47 +02:00
Antoine du Hamel
f7d0d5b3cd
meta: upgrade to TypeScript 4.8 (#4048) 2022-08-30 11:46:45 +02:00
Antoine du Hamel
da835ee489
update definition type files for TS 4.8 compatibility (#4055)
Fixes: https://github.com/transloadit/uppy/issues/4053
2022-08-30 10:17:35 +02:00
Antoine du Hamel
4e26eb0212
@uppy/transloadit: improve deprecation notice (#4056) 2022-08-30 10:10:19 +02:00
Antoine du Hamel
ea1c0760ff
@uppy/thumbnail-generator: fix exifr import (#4054)
Fixes: https://github.com/transloadit/uppy/issues/4052
2022-08-29 16:54:26 +02:00
Antoine du Hamel
c658883cbf
@uppy/utils: fix relativePath when drag&dropping a folder (#4043)
Fixes: https://github.com/transloadit/uppy/issues/4041
2022-08-24 16:28:22 +02:00
Merlijn Vos
a873544a1c
Fix Companion license (#4044) 2022-08-24 16:15:35 +02:00
Antoine du Hamel
e0f17e3753
meta: fix linter warnings (#4039) 2022-08-23 16:08:08 +02:00
Merlijn Vos
ff32dde1fd
Post-release website fixes (#4038) 2022-08-23 13:48:49 +02:00
Antoine du Hamel
2ce803610f
@uppy/angular: fix peer dependencies (#4035)
Our library is being published using Angular version 14.x,
which requires Angular version 14.0.0 or newer to work correctly.

Refs: https://github.com/transloadit/uppy/pull/3997#issuecomment-1223783854
2022-08-23 12:19:33 +02:00
github-actions[bot]
be05bf97df
Release: uppy@3.0.0 (#4031)
**Migration guides:**
https://uppy.io/docs/migration-guides.html

| Package                   | Version | Package                   | Version |
| ------------------------- | ------- | ------------------------- | ------- |
| @uppy/angular             |   0.4.0 | @uppy/progress-bar        |   3.0.0 |
| @uppy/audio               |   1.0.0 | @uppy/provider-views      |   3.0.0 |
| @uppy/aws-s3              |   3.0.0 | @uppy/react               |   3.0.0 |
| @uppy/aws-s3-multipart    |   3.0.0 | @uppy/react-native        |   0.4.0 |
| @uppy/box                 |   2.0.0 | @uppy/redux-dev-tools     |   3.0.0 |
| @uppy/companion           |   4.0.0 | @uppy/remote-sources      |   1.0.0 |
| @uppy/companion-client    |   3.0.0 | @uppy/screen-capture      |   3.0.0 |
| @uppy/compressor          |   1.0.0 | @uppy/status-bar          |   3.0.0 |
| @uppy/core                |   3.0.0 | @uppy/store-default       |   3.0.0 |
| @uppy/dashboard           |   3.0.0 | @uppy/store-redux         |   3.0.0 |
| @uppy/drag-drop           |   3.0.0 | @uppy/svelte              |   2.0.0 |
| @uppy/drop-target         |   2.0.0 | @uppy/thumbnail-generator |   3.0.0 |
| @uppy/dropbox             |   3.0.0 | @uppy/transloadit         |   3.0.0 |
| @uppy/facebook            |   3.0.0 | @uppy/tus                 |   3.0.0 |
| @uppy/file-input          |   3.0.0 | @uppy/unsplash            |   3.0.0 |
| @uppy/form                |   3.0.0 | @uppy/url                 |   3.0.0 |
| @uppy/golden-retriever    |   3.0.0 | @uppy/utils               |   5.0.0 |
| @uppy/google-drive        |   3.0.0 | @uppy/vue                 |   1.0.0 |
| @uppy/image-editor        |   2.0.0 | @uppy/webcam              |   3.0.0 |
| @uppy/informer            |   3.0.0 | @uppy/xhr-upload          |   3.0.0 |
| @uppy/instagram           |   3.0.0 | @uppy/zoom                |   2.0.0 |
| @uppy/locales             |   3.0.0 | uppy                      |   3.0.0 |
| @uppy/onedrive            |   3.0.0 |                           |         |

- docs: Use RemoteSources in readme example (Artur Paikin / #4030)
- docs: Add migration guide for Uppy 3.x, Companion 4.x, and Robodog (Merlijn Vos / #3913)
- example: upgrade React example to use React 18 (Antoine du Hamel / #4002)
- meta: fix linter failures (Antoine du Hamel / #4029)
- @uppy/vue: move `@uppy/` packages to peer dependencies (Antoine du Hamel / #4024)
- @uppy/robodog: remove package (Antoine du Hamel / #3946)
- example: migrate `digitalocean-spaces` to ESM (Antoine du Hamel / #4015)
- example: replace Robodog example with Transloadit + RemoteSources + Form (Antoine du Hamel / #4027)
- website: replace Robodog example with Uppy plugins (Artur Paikin / #4026)
- @uppy/aws-s3,@uppy/tus,@uppy/xhr-upload: @uppy/tus, @uppy/xhr-upload, @uppy/aws-s3: `metaFields` -> `allowedMetaFields` (Merlijn Vos / #4023)
- example: showcase migration out of Robodog (Antoine du Hamel / #4021)
- example: fix Svelte dev mode (Antoine du Hamel / #4025)
- example: fix docs and env for Vite examples (Antoine du Hamel / #4018)
- @uppy/tus: avoid crashing when Tus client reports an error (Antoine du Hamel / #4019)
- @uppy/react: move `@uppy/` packages to peer dependencies (Antoine du Hamel / #4004)
- @uppy/core: core: uppy.addFile should accept browser File objects (Artur Paikin / #4020)
- example: fix svelte example (Antoine du Hamel / #4017)
- example: migrate `python-xhr` to ESM (Antoine du Hamel / #4010)
- example: migrate `php-xhr` to ESM (Antoine du Hamel / #4009)
- example: migrate `node-xhr` to ESM (Antoine du Hamel / #4008)
- example: migrate `xhr-bundle` to ESM (Antoine du Hamel / #4012)
- example: migrate `multiple-instances` to ESM (Antoine du Hamel / #4007)
- example: replace `transloadit-textarea` with `transloadit-markdown-bin` (Antoine du Hamel / #4013)
- example: add README to Svelte example (Antoine du Hamel / #4011)
- build: Remove size-limit for now (Artur Paikin / #4003)
- @uppy/core,@uppy/dashboard,@uppy/status-bar: Style tweaks: use all: initial + other resets (Artur Paikin / #3983)
- @uppy/aws-s3: aws-s3: fix incorrect comparison for `file-removed` (Merlijn Vos / #3962)
- example: update to new CDN export names (Antoine du Hamel / #4006)
- example: fix dependencies of `bundled` example (Antoine du Hamel / #4005)
- @uppy/tus: fix dependencies (Antoine du Hamel / #3923)
- @uppy/tus: add file argument to `onBeforeRequest` (Merlijn Vos / #3984)
- @uppy/utils: fix drop of multiple files on Chromium browsers (Antoine du Hamel / #3998)
- @uppy/angular: upgrade to Angular 14 (Antoine du Hamel / #3997)
- example: update Angular example to v14 (Antoine du Hamel / #3996)
- @uppy/utils: Fix @uppy/utils microtip.scss export (Merlijn Vos / #3995)
- docs: Companion: make streaming upload recommended & other docs tweaks (Mikael Finstad / #3994)

### 3.0.0-beta.5
### 3.0.0-beta.4
### 3.0.0-beta.3
### 3.0.0-beta.2
### 3.0.0-beta.1
### 3.0.0-beta
2022-08-22 19:48:49 +00:00
Antoine du Hamel
524b783ac5
@uppy/vue: move @uppy/ packages to peer dependencies (#4024) 2022-08-22 18:38:45 +02:00
Antoine du Hamel
4bb99880b3
@uppy/robodog: remove package (#3946)
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2022-08-22 17:19:15 +02:00
Merlijn Vos
d7180dbb3c
@uppy/tus, @uppy/xhr-upload, @uppy/aws-s3: metaFields -> allowedMetaFields (#4023) 2022-08-22 16:48:39 +02:00
Antoine du Hamel
97c6507bf0
@uppy/tus: avoid crashing when Tus client reports an error (#4019)
Avoid crashing when Tus client reports an error before any request is queued.
2022-08-22 15:23:09 +02:00
Antoine du Hamel
ef7cbea10f
@uppy/react: move @uppy/ packages to peer dependencies (#4004) 2022-08-22 15:02:18 +02:00
Artur Paikin
7c460f3a66
core: uppy.addFile should accept browser File objects (#4020)
* If non-remote file has no .data, it’s a File object from the browser, convert it to Uppy format

* Add test

* Update packages/@uppy/core/src/Uppy.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* Check for instanceof File

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-08-22 13:42:18 +01:00
Artur Paikin
4ed75ca61c
Style tweaks: use all: initial + other resets (#3983)
* Refactor uppy-u-reset: all: initial is now well-supported

* Utilize system-ui font-family, it should be provided by browsers now for multi-platform consistency

* Make Dashboard UI a little smaller by default

* Add uppy-c-btn to uppy-Dashboard-browse

* hide uploadNewlyAdded button when preprecessing

* Make “drop files here” tagline more even
2022-08-18 16:01:12 +01:00
Merlijn Vos
222c00bb26
aws-s3: fix incorrect comparison for file-removed (#3962)
Add check for file object vs file id
2022-08-18 16:25:59 +02:00
Antoine du Hamel
45bebfe6eb
@uppy/tus: fix dependencies (#3923)
`@jest/globals` should be in the `devDependencies` list, not in the
`peerDependencies`.

Refs: https://community.transloadit.com/t/why-is-jest-globals-a-peer-dependency-of-every-uppy-package/16182/1
(cherry picked from commit f5d5e8bb09)
2022-08-18 12:04:04 +02:00
Merlijn Vos
8195b22de3
@uppy/tus: add file argument to onBeforeRequest (#3984)
Add file argument to `onBeforeRequest`.
2022-08-17 19:24:01 +02:00
Antoine du Hamel
8ed98725c5
@uppy/utils: fix drop of multiple files on Chromium browsers (#3998)
Fixes: https://github.com/transloadit/uppy/issues/3988
2022-08-17 17:08:28 +02:00
Antoine du Hamel
03d0590864
@uppy/angular: upgrade to Angular 14 (#3997) 2022-08-17 15:21:02 +02:00
Merlijn Vos
edcbe02995
Fix @uppy/utils microtip.scss export (#3995) 2022-08-17 12:13:16 +02:00
github-actions[bot]
9d03b6f600
Release: uppy@3.0.0-beta.5 (#3991)
| Package                   |      Version | Package                   |      Version |
| ------------------------- | ------------ | ------------------------- | ------------ |
| @uppy/audio               | 1.0.0-beta.2 | @uppy/progress-bar        | 3.0.0-beta.2 |
| @uppy/aws-s3              | 3.0.0-beta.3 | @uppy/provider-views      | 3.0.0-beta.3 |
| @uppy/aws-s3-multipart    | 3.0.0-beta.4 | @uppy/react               | 3.0.0-beta.4 |
| @uppy/box                 | 2.0.0-beta.2 | @uppy/redux-dev-tools     | 3.0.0-beta.2 |
| @uppy/companion           | 4.0.0-beta.4 | @uppy/remote-sources      | 1.0.0-beta.4 |
| @uppy/companion-client    | 3.0.0-beta.2 | @uppy/screen-capture      | 3.0.0-beta.3 |
| @uppy/compressor          | 1.0.0-beta.3 | @uppy/status-bar          | 3.0.0-beta.3 |
| @uppy/core                | 3.0.0-beta.4 | @uppy/store-default       | 3.0.0-beta.3 |
| @uppy/dashboard           | 3.0.0-beta.4 | @uppy/store-redux         | 3.0.0-beta.3 |
| @uppy/drag-drop           | 3.0.0-beta.2 | @uppy/svelte              | 2.0.0-beta.2 |
| @uppy/drop-target         | 2.0.0-beta.3 | @uppy/thumbnail-generator | 3.0.0-beta.2 |
| @uppy/dropbox             | 3.0.0-beta.2 | @uppy/transloadit         | 3.0.0-beta.5 |
| @uppy/facebook            | 3.0.0-beta.2 | @uppy/tus                 | 3.0.0-beta.3 |
| @uppy/file-input          | 3.0.0-beta.2 | @uppy/unsplash            | 3.0.0-beta.2 |
| @uppy/form                | 3.0.0-beta.2 | @uppy/url                 | 3.0.0-beta.3 |
| @uppy/golden-retriever    | 3.0.0-beta.2 | @uppy/utils               | 5.0.0-beta.1 |
| @uppy/google-drive        | 3.0.0-beta.2 | @uppy/vue                 | 1.0.0-beta.2 |
| @uppy/image-editor        | 2.0.0-beta.3 | @uppy/webcam              | 3.0.0-beta.3 |
| @uppy/informer            | 3.0.0-beta.3 | @uppy/xhr-upload          | 3.0.0-beta.3 |
| @uppy/instagram           | 3.0.0-beta.2 | @uppy/zoom                | 2.0.0-beta.2 |
| @uppy/locales             | 3.0.0-beta.4 | uppy                      | 3.0.0-beta.5 |
| @uppy/onedrive            | 3.0.0-beta.2 |                           |              |

- meta: prepare release workflow for beta versions (Antoine du Hamel)
- @uppy/provider-views: Reset filter input correctly in provider views (Merlijn Vos / #3978)
- @uppy/aws-s3-multipart: Fix when using Companion (Merlijn Vos / #3969)
- @uppy/companion: Companion: bring back default upload protocol (Mikael Finstad / #3967)
- meta: Update CONTRIBUTING.md (Mikael Finstad / #3966)
- meta: fix contributing link (Mikael Finstad / #3968)
- @uppy/companion: enforce usage of uploadUrls (Mikael Finstad / #3965)
- @uppy/utils: Fix webp mimetype (Merlijn Vos / #3961)
- @uppy/locales: Add compressor string translation to Japanese locale (kenken / #3963)
- meta: Fix statement about cropping images in README.md (Mikael Finstad / #3964)
- @uppy/aws-s3-multipart: Fix race condition in `#uploadParts` (Morgan Zolob / #3955)
- @uppy/provider-views: core validateRestrictions: return error directly vs the result/reason obj (Artur Paikin / #3951)
- @uppy/aws-s3: Export AwsS3UploadParameters & AwsS3Options interfaces (Antonina Vertsinskaya / #3956)
- website: convert all website examples to ESM (Antoine du Hamel / #3957)
- @uppy/companion: fix crash if redis disconnects (Mikael Finstad / #3954)
- @uppy/companion: upgrade `ws` version (Antoine du Hamel / #3949)
- @uppy/companion: sort Dropbox response & refactor to async/await (Mikael Finstad / #3897)
- @uppy/utils: modernize `getDroppedFiles` (Antoine du Hamel / #3534)
- @uppy/companion: fix default getKey for non-standalone too (Mikael Finstad / #3945)
- @uppy/aws-s3-multipart: ignore exception inside `abortMultipartUpload` (Antoine du Hamel / #3950)
- @uppy/companion: remove `isobject` from dependencies (Antoine du Hamel / #3948)
- @uppy/compressor: Fix Compressor being broken when no name is in the compressed blob (Artur Paikin / #3947)
- @uppy/core,@uppy/react: Fix all breaking todo comments for 3.0 (Merlijn Vos / #3907)
- @uppy/companion: show deprecation message when using legacy s3 options (Antoine du Hamel / #3944)
- example: fix aws-companion example (Antoine du Hamel / #3850)
2022-08-16 21:40:57 +00:00
Antoine du Hamel
059c711ff5
@uppy/angular: fix TypeScript version (#3992) 2022-08-16 23:22:11 +02:00
Antoine du Hamel
5044230bf1
meta: upgrade all dev dependencies (#3903) 2022-08-16 22:39:28 +02:00
Antoine du Hamel
9724392cd4
fixup! @uppy/utils: add missing exports (#3989) 2022-08-16 21:30:57 +02:00
Antoine du Hamel
64f91a70b1
@uppy/utils: add missing exports (#3989) 2022-08-16 20:26:24 +02:00
Antoine du Hamel
1efa053e45
@uppy/transloadit: deprecate static properties, export new names (#3987) 2022-08-16 18:01:17 +02:00
Antoine du Hamel
8fa1ff1b56
fixup! @uppy/utils: use exports map (#3985) 2022-08-16 17:52:15 +02:00
Mikael Finstad
2db5165bd8
fix broken onedrive and broken tests 2022-08-16 15:44:33 +02:00
Antoine du Hamel
e65db58b29
@uppy/utils: use exports map (#3985) 2022-08-16 15:40:35 +02:00
Mikael Finstad
35812ca378
Companion: rewrite request and purest to got (#3953)
* rewrite to async

* rewrite box and dropbox to got

(not yet working due to jest esm issues)

* downgrade got

* update developer notes

* rewrite

- rewrite remaining providers to got
- rewrite to async/await
- pull out adapt code into adapters
- provider/companion tests still todo

* add zoom to dev dashboard

* rewrites

- rewrite remaining providers to got and reuse code
- port tests
- remove request
- remove purest
- rewrite periodic ping job to got
- rewrite uploader to got
- rewrite "url" to got
- rewrite getRedirectEvaluator/request to got
- rewrite http/https agent/request to got
- rewrite credentials.js to got
- fix "todo: handle failures differently to return 400 for this case instead"
- add test for http/https agent
- improve test for credentials (remote/local)
- make /zoom/logout return 424 instead of 500 on credentials error
- remove useless http-agent tests
- fix various eslint warnings

* work around ts error

* remove forgotten change
2022-08-16 18:44:04 +07:00
Artur Paikin
c042f0220b
core: Remove deprecated get state and allowMultipleUploads option in Core (#3982)
* Remove deprecated get state and allowMultipleUploads option in Core

* Fix tests?

* core.getState()
2022-08-16 11:26:41 +01:00
Merlijn Vos
4b666a6367
Reset filter input correctly in provider views (#3978) 2022-08-15 12:30:13 +02:00
Merlijn Vos
17db1f6160
Fix @uppy/aws-s3-multipart when using Companion (#3969) 2022-08-15 11:24:25 +02:00
Mikael Finstad
31a9e0c2fd
Companion: bring back default upload protocol (#3967)
* add (failing) e2e test for remote xhr (multipart)

regression caused by #3834

* Revert "do not use a default upload protocol"

This reverts commit c7e61ddfea.

* add note on todo

* dry code a bit

* explicitly add protocol: 'multipart' in the client

* fix review comment
2022-08-11 17:09:10 +07:00
Mikael Finstad
a477148499
enforce usage of uploadUrls (#3965)
See #3180
2022-08-11 04:43:48 +07:00
Merlijn Vos
90b62c7f21
Fix webp mimetype (#3961) 2022-08-10 12:03:32 +02:00
kenken
727fbc6398
Add compressor string translation to Japanese locale (#3963) 2022-08-10 10:53:06 +02:00
Morgan Zolob
24b584ff74
@uppy/aws-s3-multipart: Fix race condition in #uploadParts (#3955)
The `#uploadParts` function calls itself after any part is uploaded. It also
determines which new chunks to upload based on their `state.busy` value. This
introduced a race condition, as `state.busy` was being set to false in the XHR
event handlers. So if one part were to complete while another part had finished
the XHR request, but not yet completed, then an upload for that second part
would be started again, despite the fact that the previous upload was still in
progress. Multiple uploads for the same part at the same time cause numerous
issues, and should never happen.

This is especially noticeable when an XHR request fails. `#uploadPart` is
wrapped in `#retryable`, so the part will be retried, however, for the entire
`retryDelay`, the chunk's `state.busy` value would be false, meaning that if
any other part completed, this part would be uploaded again, despite the fact
that the upload is already ongoing.

To fix this, this commit moves setting `state.busy` to the `before` and `after`
functions of the `#retryable` call, so a part will remain `busy` for the entire
time it is being uploaded/retried.
2022-08-08 12:15:02 +02:00
Artur Paikin
346c2fcd43
core validateRestrictions: return error directly vs the result/reason obj (#3951)
* core validateRestrictions: return error directly vs the result/reason obj

* Refacrtor to actually use restrictionError instead of {reason, message}

* Return error instead of throwing
2022-08-08 10:58:43 +01:00
Antonina Vertsinskaya
a5c73c3210
Export AwsS3UploadParameters & AwsS3Options interfaces (#3956) 2022-08-08 10:54:35 +02:00
Mikael Finstad
88b08e3843
fix crash if redis disconnects (#3954)
https://github.com/redis/node-redis/issues/2032
2022-08-05 02:10:19 +07:00
Antoine du Hamel
5b491f7fe4
@uppy/companion: upgrade ws version (#3949) 2022-08-04 18:26:11 +02:00
Mikael Finstad
3c08f745b1
@uppy/companion: sort Dropbox response & refactor to async/await (#3897)
Fixes https://github.com/transloadit/uppy/issues/3580
2022-08-04 18:17:29 +02:00
Antoine du Hamel
7089cb6530
fixup! Merge branch 3.x 2022-08-04 18:03:05 +02:00