Commit graph

2086 commits

Author SHA1 Message Date
Mikael Finstad
710c0253b2
Companion app type (#3899)
* fix companion app type

fixes #3862

* remove unnecessary ts-ignores

* Revert "remove unnecessary ts-ignores"

This reverts commit 76ee67dc94.
2022-07-25 18:52:48 +07:00
github-actions[bot]
236d92898c
Release: uppy@2.13.0 (#3889)
| Package            | Version | Package            | Version |
| ------------------ | ------- | ------------------ | ------- |
| @uppy/dashboard    |   2.4.0 | @uppy/robodog      |   2.9.0 |
| @uppy/image-editor |   1.4.0 | uppy               |  2.13.0 |
| @uppy/transloadit  |   2.3.4 |                    |         |

- @uppy/transloadit: fix outdated file ids and incorrect usage of files (Merlijn Vos / #3886)
- @uppy/image-editor: remove beta notice (Merlijn Vos / #3877)
- meta: Fix broken links in _posts/2019-08-1.3.md (YukeshShr / #3884)
- meta: Fix broken link in _posts/2017-03-0.15.md (YukeshShr / #3883)
- @uppy/image-editor: Add image editor cancel event (James R T / #3875)
2022-07-18 12:59:08 +01:00
Merlijn Vos
43fb673372
@uppy/transloadit: fix outdated file ids and incorrect usage of files (#3886)
* Fix outdated file ids and incorrect usage of files

* add e2e test

* Update packages/@uppy/transloadit/src/index.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2022-07-15 00:25:57 +01:00
James R T
329c1d04c0
@uppy/image-editor: Add image editor cancel event (#3875)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-07-12 12:19:21 +02:00
github-actions[bot]
3c32399132
Release: uppy@2.12.3 (#3876)
| Package           | Version | Package           | Version |
| ----------------- | ------- | ----------------- | ------- |
| @uppy/transloadit |   2.3.3 | uppy              |  2.12.3 |
| @uppy/robodog     |   2.8.3 |                   |         |

- @uppy/transloadit: fix TypeError when file is cancelled asynchronously (Antoine du Hamel / #3872)
- @uppy/robodog,@uppy/transloadit: use modern syntax to simplify code (Antoine du Hamel / #3873)
- meta: fix `release-beta` automation (Antoine du Hamel)
2022-07-11 15:08:45 +01:00
Antoine du Hamel
418b25c39a
@uppy/transloadit: fix TypeError when file is cancelled asynchronously (#3872)
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2022-07-11 15:06:26 +02:00
Antoine du Hamel
f36c732e73
@uppy/robodog,@uppy/transloadit: use modern syntax to simplify code (#3873) 2022-07-11 11:07:30 +02:00
github-actions[bot]
9eff85b76f
Release: uppy@2.12.2 (#3865)
| Package              | Version | Package              | Version |
| -------------------- | ------- | -------------------- | ------- |
| @uppy/companion      |   3.7.0 | @uppy/transloadit    |   2.3.2 |
| @uppy/locales        |   2.1.1 | @uppy/robodog        |   2.8.2 |
| @uppy/provider-views |   2.1.2 | uppy                 |  2.12.2 |

- @uppy/provider-views: improve logging (Mikael Finstad / #3638)
- docs: de-dupe companion dev docs (Mikael Finstad / #3852)
- @uppy/companion: Getkey safe behavior (Mikael Finstad / #3592)
- website: fix broken links (YukeshShr / #3861)
- @uppy/companion: doc: fix Google Drive example (Antoine du Hamel / #3855)
- @uppy/locales,@uppy/transloadit: Fix undefined error in in onTusError (Merlijn Vos / #3848)
- @uppy/companion: build an ARM64 container (Stuart Auld / #3841)
- @uppy/locales: Add missing translations and reorder nl_NL locale (Kasper Meinema / #3839)
- docs: Fix typo in aws-s3-multipart.md (Ikko Ashimine / #3838)
- meta: do not rebase when preparing beta candidates (Antoine du Hamel)
- meta: fix hard-coded branch name in release script (Antoine du Hamel)
2022-07-06 15:42:22 +01:00
Mikael Finstad
3277ac3589
@uppy/provider-views: improve logging (#3638)
* add testing dynamic oauth example

* improve logging levels

Log origin errors with error level

* Update Dashboard.js

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-07-06 16:28:58 +02:00
Mikael Finstad
01aa788aa2
@uppy/companion: Getkey safe behavior (#3592)
* add warning about default getKey

* add env variable to get a safer getKey default

COMPANION_S3_GETKEY_SAFE_BEHAVIOR
2022-07-06 15:16:51 +02:00
Antoine du Hamel
8c67460e25
doc: fix Google Drive example (#3855)
Refs: c1407070fb
2022-07-03 17:32:05 +02:00
Merlijn Vos
2925edb5aa
Fix undefined error in in onTusError (#3848) 2022-06-28 13:18:14 +02:00
Kasper Meinema
345415c706
Add missing translations and reorder nl_NL locale (#3839) 2022-06-20 14:56:47 +02:00
github-actions[bot]
8f8f0e2f6a
Release: uppy@2.12.1 (#3821)
| Package           | Version | Package           | Version |
| ----------------- | ------- | ----------------- | ------- |
| @uppy/transloadit |   2.3.1 | uppy              |  2.12.1 |
| @uppy/robodog     |   2.8.1 |                   |         |

- @uppy/transloadit: fix `COMPANION_PATTERN` export (Antoine du Hamel / #3820)
- meta: fix URL generation in the release script (Antoine du Hamel)
2022-06-09 17:12:43 +01:00
Antoine du Hamel
6355c23166
@uppy/transloadit: fix COMPANION_PATTERN export (#3820)
The export was renamed during during the ESM transition, which was an unintended breaking change. This commit restores the missing export.

Refs: https://github.com/transloadit/uppy/pull/3725
2022-06-09 13:09:36 +02:00
github-actions[bot]
a95e723775
Release: uppy@2.12.0 (#3816)
| Package                | Version | Package                | Version |
| ---------------------- | ------- | ---------------------- | ------- |
| @uppy/aws-s3           |   2.2.1 | @uppy/tus              |   2.4.1 |
| @uppy/aws-s3-multipart |   2.4.1 | @uppy/url              |   2.2.0 |
| @uppy/companion-client |   2.2.1 | @uppy/xhr-upload       |   2.1.2 |
| @uppy/core             |   2.3.1 | @uppy/robodog          |   2.8.0 |
| @uppy/react            |   2.2.2 | uppy                   |  2.12.0 |
| @uppy/remote-sources   |   0.1.0 |                        |         |

- @uppy/remote-sources: Add @uppy/remote-sources preset/plugin (Artur Paikin / #3676)
- @uppy/react: Reset uppy instance when React component is unmounted (Tomasz Pęksa / #3814)
- @uppy/aws-s3-multipart,@uppy/aws-s3,@uppy/tus: queue socket token requests for remote files (Merlijn Vos / #3797)
- @uppy/xhr-upload: replace `ev.target.status` with `xhr.status` (Wes Sankey / #3782)
- @uppy/core: fix `TypeError` when file was deleted (Antoine du Hamel / #3811)
- @uppy/robodog: fix linter warnings (Antoine du Hamel / #3808)
- meta: fix GHA workflow for prereleases (Antoine du Hamel)
- @uppy/aws-s3-multipart: allow `companionHeaders` to be modified with `setOptions` (Paulo Lemos Neto / #3770)
- @uppy/url: enable passing optional meta data to `addFile` (Brad Edelman / #3788)
- @uppy/url: fix `getFileNameFromUrl` (Brad Edelman / #3804)
- @uppy/tus: make onShouldRetry type optional (Merlijn Vos / #3800)
- doc: fix React examples (Antoine du Hamel / #3799)
- meta: add GHA workflow for prereleases (Antoine du Hamel)
2022-06-07 18:11:01 +01:00
Artur Paikin
9a597114fd
Add @uppy/remote-sources preset/plugin (#3676)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-06-07 18:56:02 +02:00
Tomasz Pęksa
2c05d51794
Reset uppy instance when React component is unmounted (#3814) 2022-06-07 18:14:37 +02:00
Merlijn Vos
df15292949
queue socket token requests for remote files (#3797)
Queue socket token request and immediately open socket connection. This commit helps reducing the probability of the remote socket timing out, and ensures the number of requests sent to Companion at once doesn't exceed the `limit` option.
2022-06-07 18:08:50 +02:00
Wes Sankey
aa1ecd4d60
@uppy/xhr-upload: replace ev.target.status with xhr.status (#3782) 2022-06-07 15:21:05 +02:00
Antoine du Hamel
76751f6f4f
@uppy/core: fix TypeError when file was deleted (#3811) 2022-06-07 07:48:35 +02:00
Antoine du Hamel
4527b2ff28
@uppy/robodog: fix linter warnings (#3808) 2022-06-06 18:21:18 +02:00
Paulo Lemos Neto
6514e43e5d
@uppy/aws-s3-multipart: allow companionHeaders to be modified with setOptions (#3770) 2022-06-02 19:44:53 +02:00
Brad Edelman
a8726ba06b
@uppy/url: enable passing optional meta data to addFile (#3788)
This commit aligns `@uppy/url` with `@uppy/core`.

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-06-02 18:50:45 +02:00
Brad Edelman
7386cc9607
@uppy/url: fix getFileNameFromUrl (#3804)
Need to strip query string and fragment from URL when turning into a filename.

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-06-01 16:11:02 +02:00
Merlijn Vos
cea6b733e3
@uppy/tus: make onShouldRetry type optional (#3800) 2022-05-31 14:30:21 +02:00
github-actions[bot]
3f34af100b
Release: uppy@2.11.0 (#3796)
| Package                   | Version | Package                   | Version |
| ------------------------- | ------- | ------------------------- | ------- |
| @uppy/angular             |   0.3.1 | @uppy/progress-bar        |   2.1.1 |
| @uppy/audio               |   0.3.2 | @uppy/provider-views      |   2.1.1 |
| @uppy/aws-s3              |   2.2.0 | @uppy/react               |   2.2.1 |
| @uppy/aws-s3-multipart    |   2.4.0 | @uppy/react-native        |   0.3.1 |
| @uppy/box                 |   1.0.7 | @uppy/redux-dev-tools     |   2.1.0 |
| @uppy/companion           |   3.6.0 | @uppy/screen-capture      |   2.1.1 |
| @uppy/companion-client    |   2.2.0 | @uppy/status-bar          |   2.2.1 |
| @uppy/compressor          |   0.3.0 | @uppy/store-default       |   2.1.0 |
| @uppy/core                |   2.3.0 | @uppy/store-redux         |   2.1.0 |
| @uppy/dashboard           |   2.3.0 | @uppy/thumbnail-generator |   2.2.0 |
| @uppy/drag-drop           |   2.1.1 | @uppy/transloadit         |   2.3.0 |
| @uppy/dropbox             |   2.0.7 | @uppy/tus                 |   2.4.0 |
| @uppy/facebook            |   2.0.7 | @uppy/unsplash            |   2.1.0 |
| @uppy/file-input          |   2.1.1 | @uppy/url                 |   2.1.1 |
| @uppy/form                |   2.0.6 | @uppy/utils               |   4.1.0 |
| @uppy/golden-retriever    |   2.1.0 | @uppy/vue                 |   0.4.8 |
| @uppy/google-drive        |   2.1.1 | @uppy/webcam              |   2.2.1 |
| @uppy/image-editor        |   1.3.0 | @uppy/xhr-upload          |   2.1.1 |
| @uppy/informer            |   2.1.0 | @uppy/zoom                |   1.1.1 |
| @uppy/instagram           |   2.1.1 | @uppy/robodog             |   2.7.0 |
| @uppy/onedrive            |   2.1.1 | uppy                      |  2.11.0 |

- doc: update bundler recommendation (Antoine du Hamel / #3763)
- @uppy/aws-s3-multipart: refactor to ESM (Antoine du Hamel / #3672)
- @uppy/aws-s3: fix JSDoc type error (Antoine du Hamel / #3785)
- @uppy/aws-s3: refactor to ESM (Antoine du Hamel / #3673)
- @uppy/companion-client: Revert "Revert "@uppy/companion-client: refactor to ESM"" (Antoine du Hamel / #3730)
- @uppy/companion: expire redis keys after 1 day (Mikael Finstad / #3771)
- @uppy/companion: fix some linter warnings (Antoine du Hamel / #3752)
- @uppy/compressor: Fix Compressor docs, pass files array to compressor:complete event (Artur Paikin / #3682)
- @uppy/core: refactor to ESM (Antoine du Hamel / #3744)
- @uppy/dashboard: refactor to ESM (Antoine du Hamel / #3701)
- @uppy/dashboard: use webkitRelativePath when querying a file's relative path (Eduard Müller / taktik / #3766)
- @uppy/golden-retriever: refactor to ESM (Antoine du Hamel / #3731)
- @uppy/image-editor: remove CJS-interop hack in the source code (Antoine du Hamel / #3778)
- @uppy/informer: @uppy/Informer: refactor to ESM (Antoine du Hamel / #3732)
- @uppy/informer: remove remaining `require` call (Antoine du Hamel / #3737)
- @uppy/provider-views: Add onKeyPress event handler to capture e.shiftKey, unavailable in onChange (Artur Paikin / #3768)
- @uppy/redux-dev-tools: refactor to ESM (Antoine du Hamel / #3733)
- @uppy/screen-capture: don't install when unsupported (Artur Paikin / #3795)
- @uppy/store-default: refactor to ESM (Antoine du Hamel / #3746)
- @uppy/store-redux: refactor to ESM (Antoine du Hamel / #3745)
- @uppy/thumbnail-generator: refactor to ESM (Antoine du Hamel / #3734)
- @uppy/transloadit: refactor to ESM (Antoine du Hamel / #3725)
- @uppy/transloadit: transloadit: propagate error details when creating Assembly fails (Renée Kooi / #3794)
- @uppy/tus: Add `onShouldRetry` as option to @uppy/tus (Merlijn Vos / #3720)
- @uppy/tus: fix broken import (Antoine du Hamel / #3729)
- @uppy/tus: fixup! @uppy/tus: wait for user promise on beforeRequest (Antoine du Hamel / #3712)
- @uppy/tus: wait for user promise on beforeRequest (Antoine du Hamel / #3712)
- @uppy/unsplash: refactor to ESM (Antoine du Hamel / #3728)
- @uppy/utils: refactor to ESM (Antoine du Hamel / #3721)
- dev: fix dev env Vite's config (Antoine du Hamel)
- dev: fix return type of generateSignatureIfSecret (Renée Kooi / #3793)
- dev: remove `vite-plugin-jsx-commonjs` plugin on dev env (Antoine du Hamel / #3749)
- dev: remove CJS-related hack in `build:locale-pack` script (Antoine du Hamel / #3764)
- meta: e2e: run CI on PRs that modify the workflow file (Antoine du Hamel / #3740)
- meta: fix linter warnings (Antoine du Hamel / #3753)
- meta: fix more linter warnings (Antoine du Hamel / #3757)
- meta: resolve warnings in `.d.ts` files (Antoine du Hamel / #3754)
- meta: uppy: add Zoom plugin to the bundle and fix ESM exports (Antoine du Hamel / #3747)
- test: Apply bin/update-yarn.sh (Merlijn Vos / #3775)
- test: fix e2e dependency conflict (Merlijn Vos / #3779)
- test: fixup! e2e: run CI on PRs that modify the workflow file (Antoine du Hamel / #3740)
- test: prepare internal script files for lint rune hardening (Antoine du Hamel / #3760)
- test: prepare test files for lint rule hardening (Antoine du Hamel / #3761)
- test: Setup Cypress Dashboard (Merlijn Vos / #3691)
- test: split Companion CI between Node.js legacy and supported versions (Antoine du Hamel / #3776)
- website: disable linter warnings (Antoine du Hamel / #3759)
2022-05-30 17:17:28 +01:00
Renée Kooi
3121fae11b
transloadit: propagate error details when creating Assembly fails (#3794)
* transloadit: propagate error details when creating Assembly fails

Clients are expected to use `error.assembly` to inspect details about
failed Assemblies, but then we do need to always give that property
back.

I think we should have a test for this but not sure how to approach it,
since it depends on responses from the Transloadit API. I guess we'd
require a new e2e test for it?

* Apply suggestions from code review

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

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-05-30 16:50:30 +01:00
Artur Paikin
91e6ed2f99
@uppy/screen-capture: don't install when unsupported (#3795)
* Improve screen recording check: mediaDevices supprted on mobile, getDisplayMedia is not

* Update docs, mentioing getDisplayMedia
2022-05-30 16:49:00 +01:00
Antoine du Hamel
bad2fa7ca2
@uppy/aws-s3: fix JSDoc type error (#3785) 2022-05-30 14:12:44 +02:00
Antoine du Hamel
29e8fffac1
@uppy/companion: fix some linter warnings (#3752) 2022-05-26 10:20:18 +02:00
Mikael Finstad
5bd5d38b0e
expire redis keys after 1 day (#3771)
* expire redis keys after 1 day

to prevent buildup in redis
fixes #3748

* reuse redis config logic

* Update packages/@uppy/companion/src/server/Uploader.js

Co-authored-by: Tim Koschuetzki <tim-kos@users.noreply.github.com>

Co-authored-by: Tim Koschuetzki <tim-kos@users.noreply.github.com>
2022-05-26 13:19:46 +07:00
Eduard Müller / taktik
2f0b39b8dc
@uppy/dashboard: use webkitRelativePath when querying a file's relative path (#3766)
- fixes missing "relativePath" meta property when adding files via the "Browse Folder" link in the dashboard with Chrome or Edge
2022-05-25 12:16:49 +02:00
Antoine du Hamel
6f9813d9b2
doc: update bundler recommendation (#3763)
With the switch to ESM, Browserify will no longer work with Uppy.
Instead, let's recommend bundlers that we actually test with.
2022-05-23 19:41:37 +02:00
Antoine du Hamel
2cbd762627
@uppy/image-editor: remove CJS-interop hack in the source code (#3778) 2022-05-23 17:14:52 +02:00
Artur Paikin
ae9745dc9e
Add onKeyPress event handler to capture e.shiftKey, unavailable in onChange (#3768) 2022-05-23 14:39:03 +01:00
Antoine du Hamel
5a8a8d35be
meta: prepare test files for lint rule hardening (#3761) 2022-05-23 12:02:19 +02:00
Antoine du Hamel
b8e1f9c995
@uppy/utils: refactor to ESM (#3721) 2022-05-23 09:40:50 +02:00
Antoine du Hamel
456c2b7422
@uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
Antoine du Hamel
797e171179
meta: fix more linter warnings (#3757) 2022-05-19 17:15:38 +02:00
Antoine du Hamel
dbd271e714
meta: resolve warnings in .d.ts files (#3754) 2022-05-19 11:52:28 +02:00
Artur Paikin
b0e01ff082
Fix Compressor docs, pass files array to compressor:complete event (#3682)
* Fix Compressor docs

* Remove unused test commands

* Add note that all options are passed

* Add event to types

* Update website/src/docs/compressor.md

Co-authored-by: Merlijn Vos <merlijn@soverin.net>

* Update packages/@uppy/compressor/types/index.d.ts

Co-authored-by: Merlijn Vos <merlijn@soverin.net>

* add files array as callback to compressor:complete

Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-05-18 19:29:08 +01:00
Antoine du Hamel
888fc83ee2
Revert "Revert "@uppy/companion-client: refactor to ESM"" (#3730)
This reverts commit 837bf04620.
2022-05-18 10:20:58 +02:00
Antoine du Hamel
327509a7dc
@uppy/dashboard: refactor to ESM (#3701) 2022-05-18 10:17:27 +02:00
Antoine du Hamel
32d58875dd fixup! @uppy/tus: wait for user promise on beforeRequest (#3712) 2022-05-17 18:22:01 +02:00
Antoine du Hamel
440f3ae2ee
@uppy/store-default: refactor to ESM (#3746) 2022-05-17 17:37:44 +02:00
Antoine du Hamel
538c37b639
@uppy/store-redux: refactor to ESM (#3745) 2022-05-17 17:37:07 +02:00
Antoine du Hamel
77aacf198c
@uppy/tus: wait for user promise on beforeRequest (#3712)
Fixes: https://github.com/transloadit/uppy/issues/3710
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-05-17 17:08:59 +02:00
Merlijn Vos
7d7c4dd5ad
Add onShouldRetry as option to @uppy/tus (#3720)
- Add `onShouldRetry` as option to @uppy/tus
  - Docs
  - Types
  - E2E test
- Remove bad flaky test

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-05-17 16:38:50 +02:00
Antoine du Hamel
3f5a03f504
@uppy/transloadit: refactor to ESM (#3725) 2022-05-17 15:17:50 +02:00