Commit graph

8676 commits

Author SHA1 Message Date
Mikael Finstad
fc6f8f3fe5
always log errors with stack trace (#3573)
but don't do it for common error types that we ourselves produce

fixes #3495
2022-03-16 12:47:03 +07:00
Mikael Finstad
ca15897cac
remove incorrect s3 documentation (#3571)
closes #3565
2022-03-15 19:47:22 +07:00
Mikael Finstad
6e8d30bac1
Companion refactor (#3542)
* modernise code

* fix lint

* pull out config related functions and middleware

* fix lint in uploader
2022-03-15 11:45:04 +07:00
Artur Paikin
d6a5695e39 website: partial ooops 2022-03-14 13:27:37 +00:00
Antoine du Hamel
99909559b9
meta: run e2e workflow on the head branch instead of the base one (#3561)
Refs: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
2022-03-14 13:59:34 +01:00
Artur Paikin
ebeb314a29
website: Use plausible instead of google analytics (#3567)
* Use plausible instead of google analytics

* remove Saucelabs badge, correct copy about browser support
2022-03-14 13:55:23 +01:00
Artur Paikin
2b2df8c109 Update CHANGELOG.md 2022-03-14 12:31:06 +00:00
Antoine du Hamel
5e38c83564
@uppy/vue: enforce use of file extension within the import path (#3560) 2022-03-14 13:05:34 +01:00
Penar Musaraj
aab74a99f4
@uppy/drop-target: ignore if dropped elements aren't files (#3563)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-03-14 19:42:39 +08:00
Merlijn Vos
6573b38cc7
Abstract restriction logic in a new Restricter class (#3532)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-03-14 17:47:57 +08:00
Robert DiMartino
974be7ce9d
@uppy/companion - Fetch all Google Drive shared drives (#3553)
* @uppy/companion - Fetch all Google Drive shared drives0

* simplify and improve

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-03-13 15:42:28 +07:00
Artur Paikin
37cf71c1ba
website: add blog post 2.4-2.7 (#3557)
* Add 2.4-2.7 post draft

* ignore just and simply

* Update website/src/_posts/2022-03-2.4-2.7.md

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

* Update website/src/_posts/2022-03-2.4-2.7.md

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

* Update website/src/_posts/2022-03-2.4-2.7.md

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

* Update private/remark-lint-uppy/retext-preset.js

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

* Add Box and Compressor to /examples/dashboard

* set cover image

* Update 2022-03-2.4-2.7.md

* Update website/src/_posts/2022-03-2.4-2.7.md

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

* Update website/src/_posts/2022-03-2.4-2.7.md

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

* Update index.ejs

* Update 2022-03-2.4-2.7.md

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-03-11 19:28:59 +00:00
Antoine du Hamel
2a4e2bf823
meta: fix e2e (#3562) 2022-03-11 19:24:38 +01:00
YukeshShr
cd6d2b2ff2
fix broken link (#3559)
Refs: https://app.intercom.com/a/apps/qiqpfgjg/inbox/inbox/5079389/conversations/26852700007188
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-03-11 14:35:49 +01:00
Antoine du Hamel
6012220d17
meta: fix support of export declaration in source files (#3558)
Rewrite all `export … from …` to `module.exports = require(…)`, and
`export default …` to `module.exports = …`  when transpiling ESM to CJS.

It also transform `.jsx` imports into `.js` as we are not shipping JSX to npm.
2022-03-11 12:37:55 +01:00
Robert DiMartino
7da07c29fe
Order Google Drive results by folder to show all folders first (#3546) 2022-03-11 13:00:22 +08:00
Mikael Finstad
ae1c512b32
add corsOrigins to docs (#3554)
fixes #3548
2022-03-10 13:40:41 +07:00
Antoine du Hamel
50f5f910b1
@uppy/audio: refactor to ESM (#3470)
npm package is still CommonJS, the plan is to switch that in the
next semver-major.
2022-03-09 11:29:39 +01:00
Antoine du Hamel
f0ba3fbc87
@uppy/locales: compressor cleanup (#3531)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-03-09 16:16:41 +08:00
Antoine du Hamel
994acffca2
meta: fix CJS interop in Vite config (#3543)
* meta: fix CJS interop in Vite config

* fixup! meta: fix CJS interop in Vite config
2022-03-08 18:37:53 +01:00
Mikael Finstad
7b7414884b
upgrade node-redis-pubsub (#3541)
fixes #3384
2022-03-08 14:20:04 +07:00
Artur Paikin
1bcb63a655
provider-view: fix breadcrumbs (#3535) 2022-03-05 23:28:25 +00:00
Artur Paikin
033bf93967 Update BACKLOG.md 2022-03-04 15:15:00 +00:00
Sobakin Sviatoslav
55ee922f2a
Update ru_RU.js (#3529) 2022-03-03 16:10:29 +00:00
Antoine du Hamel
003d1a0a43
@uppy/companion: reorder reqToOptions (#3530)
Giving a clear separation between client-provided info and server
provided ones.

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-03-03 14:31:44 +01:00
Mikael Finstad
32ea099a93
meta: Fix yarn caching in github actions (#3526)
* Fix yarn caching in github actions

* improve cache take 2

from https://github.com/actions/cache/blob/main/examples.md#node---yarn-2

* fix yarn -> corepack yarn

* fix order of corepack install

* add --immutable to all
2022-03-03 13:26:39 +07:00
github-actions[bot]
6559bea96f
Release: uppy@2.7.0 (#3525)
| Package                | Version | Package                | Version |
| ---------------------- | ------- | ---------------------- | ------- |
| @uppy/angular          |   0.3.0 | @uppy/locales          |   2.0.7 |
| @uppy/aws-s3-multipart |   2.2.1 | uppy                   |   2.7.0 |
| @uppy/companion        |   3.3.1 |                        |         |

- @uppy/companion: fix unstable test (Mikael Finstad)
- @uppy/companion: replace debug (Mikael Finstad)
- @uppy/companion: Fix COMPANION_PATH (Mikael Finstad / #3515)
- @uppy/angular: update ng version (Antoine du Hamel / #3503)
- @uppy/companion: Upload protocol "s3-multipart" does not use the chunkSize option (Gabi Ganam / #3511)
- @uppy/aws-s3-multipart: Add chunks back to prepareUploadParts, indexed by partNumber (Kevin West / #3520)
- website: Add “Stop the war” banner (Artur Paikin / #3518)
- @uppy/locales: Update zh_CN.js (linxunzyf / #3513)
- meta: update remark dependencies (Antoine du Hamel / #3502)
2022-03-02 15:26:05 +00:00
Mikael Finstad
facc2bd50c
fix unstable test
it('periodically pings') would log after jest finish
2022-03-02 20:45:15 +08:00
Mikael Finstad
267c34045a
replace debug
remove debug flag
instead add allowLocalUrls (COMPANION_ALLOW_LOCAL_URLS)
which defaults to false
this fixes https://huntr.dev/bounties/8b060cc3-2420-468e-8293-b9216620175b/

also don't allow localhost for any providers getURLMeta
2022-03-02 19:02:56 +08:00
Mikael Finstad
146d8f302d
Fix COMPANION_PATH (#3515)
* Fix COMPANION_PATH

make sure it serves everything served behind that path
fixes #3514

* add tests for subpath

* chmod +x companion.sh

* remove process.exit

as it's considered harmful in this case
an error thrown will also be printed to stderr

* add backward compatible redirect

* Apply suggestions from code review

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

* fix oops

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-03-02 17:52:59 +07:00
Antoine du Hamel
666f6acd88
@uppy/angular: update ng version (#3503)
* @uppy/angular: update ng version

* hack to allow the publish of the Angular package

* fix @types/webpack-dev-server resolution (the package is deprecated anyway)

* Add Storybook back

* Fix default value of Input

* Update README

* Apply suggestions from code review

* fix @types/react version conflict

* Update packages/@uppy/angular/.storybook/tsconfig.json
2022-03-02 11:20:38 +01:00
Gabi Ganam
db634c12a7
Upload protocol "s3-multipart" does not use the chunkSize option (#3511)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-03-02 17:12:53 +07:00
Kevin West
d6ebe70f6a
Add chunks back to prepareUploadParts, indexed by partNumber (#3520) 2022-03-02 16:57:58 +07:00
Artur Paikin
00d59332f2
website: Add “Stop the war” banner (#3518)
* Add “Stop the war” banner

* Update website/themes/uppy/layout/layout.ejs

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

* Update website/src/images/ua-flag.svg

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

* Update website/themes/uppy/layout/layout.ejs

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

* Update website/themes/uppy/layout/layout.ejs

* Update website/themes/uppy/layout/layout.ejs

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
Co-authored-by: Kevin van Zonneveld <kevin@vanzonneveld.net>
2022-03-01 13:12:36 +01:00
linxunzyf
8beec9926e
Update zh_CN.js (#3513) 2022-02-28 12:22:50 +07:00
Antoine du Hamel
4a6e635963
meta: update remark dependencies (#3502) 2022-02-17 21:16:39 +01:00
github-actions[bot]
b9ecd94ecd
Release: uppy@2.6.0 (#3501)
| Package         | Version | Package         | Version |
| --------------- | ------- | --------------- | ------- |
| @uppy/companion |   3.3.0 | uppy            |   2.6.0 |
| @uppy/robodog   |   2.3.2 |                 |         |

- meta: warn about not merging PR manually (Artur Paikin / #3492)
- @uppy/companion: fix unpslash author meta, sanitize metadata to strings and improve companion tests (Mikael Finstad / #3478)
- meta: ensure README is correctly formatted when doing releases (Antoine du Hamel / #3499)
- meta: fix CDN bundle (Antoine du Hamel / #3494)
- meta: fix missing EOL and end of e2e test templates (Antoine du Hamel / #3484)
- meta: use a single `.env` file for config (Antoine du Hamel / #3498)
2022-02-17 19:55:12 +00:00
Antoine du Hamel
58e9fc31b2 fixup! meta: ensure README is correctly formatted when doing releases (#3499) 2022-02-17 20:11:25 +01:00
Artur Paikin
f1952bf0e2
meta: warn about not merging PR manually (#3492)
* warn about not merging PR manually

* Update commit-and-open-pr.js
2022-02-17 19:05:27 +00:00
Mikael Finstad
5cfb9fe7a5
fix unpslash author meta, sanitize metadata to strings and improve companion tests (#3478)
* fix broken npm run test

* improve jest / companion

add `npm run test:companion:watch`

move env variables into code to make testing easier
this allows for watching (source is causing problems with npm scripts)
also now we can run `corepack yarn test:companion -t 'single test'`

* fix root project jest

make sure we don't run companion tests on npm run test:unit (as they don't work in a browser/jsdom environment)

* improve validation logic

previously incorrect options gives an Uploader object in an incorrect state

* rewrite uploader to make it more testable

* add test for xhr

* check that metadata values are strings

* fix nested meta

causing error #3477

* convert meta to strings instead

like the official FormData spec does

* fix broken companion dev #3473

* fix botched merge

* fix botched merge and remove --fix

* fix botchedf merge

* quick fix

* .

* remove eslint fix
2022-02-17 17:43:44 +00:00
Antoine du Hamel
cdf619df98
meta: ensure README is correctly formatted when doing releases (#3499) 2022-02-17 16:41:14 +01:00
Antoine du Hamel
38174972d9
meta: fix CDN bundle (#3494) 2022-02-17 16:22:03 +01:00
Antoine du Hamel
c2692e4d3a
meta: fix missing EOL and end of e2e test templates (#3484) 2022-02-17 16:04:08 +01:00
Antoine du Hamel
f4f1b810b7
meta: use a single .env file for config (#3498)
Fixes: https://github.com/transloadit/uppy/issues/3473
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-02-17 15:47:15 +01:00
github-actions[bot]
7e9f34ed30
Release: uppy@2.5.1 (#3493)
| Package                   | Version | Package                   | Version |
| ------------------------- | ------- | ------------------------- | ------- |
| @uppy/companion           |   3.2.1 | @uppy/thumbnail-generator |   2.1.1 |
| @uppy/compressor          |   0.2.2 | @uppy/robodog             |   2.3.1 |
| @uppy/onedrive            |   2.0.6 | uppy                      |   2.5.1 |

- meta: Missing comma and wrong attribute name on cors example config (Edgar Santiago / #3465)
- @uppy/onedrive: Update README.md (Márton László Attila / #3489)
- @uppy/compressor: Add image compressor plugin (Artur Paikin / #3471)
- @uppy/companion: fix periodicPingUrls oops (Mikael Finstad / #3490)
- meta: add support for ESM sources in build script (Antoine du Hamel / #3468)
2022-02-16 13:44:01 +00:00
Edgar Santiago
795afa29e8
Missing comma and wrong attribute name on cors example config (#3465)
Missing comma and wrong attribute name on cors example config
2022-02-16 11:41:53 +00:00
Márton László Attila
25945b1544
Update README.md (#3489)
Change Facebook to Onderive
2022-02-16 11:41:16 +00:00
Artur Paikin
7223af2c9d
@uppy/compressor: Add image compressor plugin (#3471)
* Add Compressor plugin

* Set type in blob if it’s missing

* clear thumbnail-generator queue when cancel-all is called

* Add e2e test for @uppy/compressor

* Docs, types, readme, bundle, add event

* Update yarn.lock

* fix test

* Update e2e/cypress/integration/dashboard-compressor.spec.ts

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

* Update dashboard-compressor.spec.ts

* convert compressor to ESM

* Update e2e/clients/dashboard-compressor/index.html

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

* remove console.log

* uglierBytes

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-02-16 11:40:08 +00:00
Mikael Finstad
8b8e6dfc7c
fix periodicPingUrls oops (#3490)
* fix periodicPingUrls oops

closes #3488

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

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

* fix syntax

* Document periodic ping

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-02-16 11:12:55 +00:00
Antoine du Hamel
a6e36217ad
meta: add support for ESM sources in build script (#3468) 2022-02-15 17:46:14 +01:00