Commit graph

24 commits

Author SHA1 Message Date
Antoine du Hamel
5044230bf1
meta: upgrade all dev dependencies (#3903) 2022-08-16 22:39:28 +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
Merlijn Vos
9a213b59da
Fix all breaking todo comments for 3.0 (#3907)
- `@uppy/aws/s3-multipart`: remove `client` getter and setter.
  - reason: internal usage only
  - migrate: use exposed options only
- `@uppy/core`: remove `AggregateError` polyfill
  - reason: [should be polyfilled by the user](https://github.com/transloadit/uppy/pull/3532#discussion_r818602636)
  - migrate: install `AggregateError` polyfill or use `core-js`
- `@uppy/core`: remove `reset()` method
  - reason: it's a duplicate of `cancelAll`, but with a less intention revealing name
  - migrate: use `cancelAll`
- `@uppy/core`: remove backwards compatible exports (static properties on `Uppy`)
  - reason: transition to ESM
  - migrate: import the `Uppy` class by default and/or use named exports for everything else.
- `@uppy/react`: don't expose `validProps`
  - reason: internal only
  - migrate: do not depend on this
- `@uppy/store-redux`: remove backwards compatible exports (static properties on `ReduxStore`)
  - reason: transition to ESM
  - migrate: use named imports
- `@uppy/thumbnail-generator`: remove `rotateImage`, `protect`, and `canvasToBlob` from prototype.
  - reason: internal only
  - migrate: don't depend on this
2022-08-03 20:07:24 +02:00
Antoine du Hamel
0db5b83e16
meta: upgrade to Vite v3 (#3882)
Refs: https://vitejs.dev/blog/announcing-vite3.html
2022-07-14 17:10:38 +02:00
Antoine du Hamel
4bdfbe7c48 Merge stable branch 2022-07-06 18:01:19 +02: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
Antoine du Hamel
a6029d0304 Merge stable branch 2022-06-09 21:15:10 +02: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
Antoine du Hamel
c223a1f204
@uppy/transloadit: remove IE 10 hack (#3777) 2022-05-30 18:32:53 +02:00
Renée Kooi
1856401153
dev: fix return type of generateSignatureIfSecret (#3793) 2022-05-30 14:44:06 +02:00
Antoine du Hamel
b01a52e368
meta: remove vite-plugin-jsx-commonjs plugin on dev env (#3749)
Now that we removed all JSX and CJS from `.js` files,
there's no need to run Babel on every files, which speeds up greatly the
time it takes for Vite to get ready.
2022-05-23 16:50:45 +02:00
Antoine du Hamel
0b3713c2e6
meta: fix linter warnings (#3753) 2022-05-19 11:57:14 +02:00
Antoine du Hamel
3f5a03f504
@uppy/transloadit: refactor to ESM (#3725) 2022-05-17 15:17:50 +02:00
Antoine du Hamel
bc341351b3
meta: fix dev env Vite's config 2022-05-14 13:51:07 +02:00
Antoine du Hamel
a77b039efc
dev: sign requests sent to Transloadit (#3517)
* dev: sign requests sent to Transloadit

* Address review comments
2022-04-21 16:08:28 +02:00
Artur Paikin
953ae5c929
@uppy/compressor: ignore remote files, calculate savings correctly (#3578) 2022-03-16 20:17:16 +00: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
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
Antoine du Hamel
a6e36217ad
meta: add support for ESM sources in build script (#3468) 2022-02-15 17:46:14 +01:00
Renée Kooi
db47700321
Finishing touches on Companion dynamic Oauth (#2802)
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-02-14 11:07:52 +01:00
Merlijn Vos
6da874ed3a
meta: Make E2E Great Again (#3444)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-02-08 17:37:27 +01:00
Artur Paikin
18bd009771
Add PostCSS handling to Vite (#3467)
* Add postcss handling to Vite

* Update yarn.lock
2022-02-07 23:36:38 +00:00
Antoine du Hamel
2f15f61536
dev: move configuration to a .env file (#3430)
Putting the dev config in a git-ignored files improves DX and lower the
risk of a private dev key being committed by mistake.
2022-01-11 19:38:41 +01:00
Antoine du Hamel
b0bf1a3eb4
meta: move dev workspace to private/ (#3368)
* meta: move dev workspace to `private/`

* `DragDrop.html` -> `dragdrop.html`
2021-12-14 12:53:34 +01:00