Commit graph

90 commits

Author SHA1 Message Date
Antoine du Hamel
3cc8df8c4f
meta: improve changelog generator (#5190)
We are regularly using `e2e`, `examples`, or `docs` as subsystems. We
are no longer using `website`.
2024-05-22 11:28:22 +02:00
Antoine du Hamel
93d1c71b8c
meta: fix bullet setting for ReMark 2024-05-02 20:30:01 +02:00
Merlijn Vos
7d6937300a
meta: enable prettier for markdown (#5133)
* meta: enable prettier for markdown

* Ignore changelogs

* revert CHANGELOG changes

* More formatting

---------

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-05-02 11:35:55 +02:00
Evgenia Karunus
3c0140aa13
Image editor: make compressor work after the image editor, too (#4918)
* Editor.tsx - clean up post typescriptofication

* dev - finally add favicons to avoid errors in the console

* ImageEditor.tsx - reinsert filename after image editor
2024-02-14 15:59:59 +04:00
Antoine du Hamel
d85caf6c51
meta: exclude tsconfig files from npm bundles (#4916) 2024-02-13 23:21:08 +01:00
Antoine du Hamel
2454d85a44
meta: fix missing line return in JS2TS script 2024-01-25 10:25:00 +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
Antoine du Hamel
cecd68f9c8
meta: generate locale pack from output file (#4867) 2024-01-17 10:45:10 +01:00
Antoine du Hamel
2c05594511
meta: fix js2ts script (#4846) 2024-01-03 14:52:26 +01:00
Antoine du Hamel
df6043da0c
meta: fix js2ts script (#4844) 2023-12-30 12:42:59 +01:00
Antoine du Hamel
c7bb57b7f8
dev: remove extensions from Vite aliases
This started causing issues as we are transitioning to TS. By removing the file extension, Vite is able to pick up the correct file.
2023-12-18 15:18:33 +01:00
Merlijn Vos
0bea173c2a
meta: fix js2ts script on Node.js 20+ (#4802)
Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2023-12-05 12:51:57 +01:00
Antoine du Hamel
73fdcaf4a6
meta: improve js2ts script (#4786)
* meta: improve js2ts script

- add `@ts-ignore` comment on `package.json` imports.
- better detect imports of local `.js` files.
- do not remove non-JS files from the source.

* fixup! meta: improve js2ts script

* fixup! fixup! meta: improve js2ts script

* fixup! meta: improve js2ts script

* Update index.mjs
2023-11-21 13:47:40 +01:00
Antoine du Hamel
1431d52e0f
meta: fix JS2TS script (#4778) 2023-11-09 11:41:01 +01:00
Antoine du Hamel
222b427ec3
meta: fix TS integration (#4741) 2023-10-20 14:15:46 +02:00
Antoine du Hamel
ab0c656536
meta: fix js2ts check 2023-10-17 16:11:35 +02:00
Antoine du Hamel
773c8cb9a1
meta: add support for TypeScript plugins (#4640) 2023-10-17 15:38:15 +02:00
Antoine du Hamel
34c78e9093
meta: run Prettier on existing files (#4713) 2023-09-29 11:11:28 +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
b910f84fe2
add test endpoint for dynamic oauth creds (#4667)
* add test endpoint for dynamic oauth creds

this allows us to test it on uppy.io (we can enable it for one provider like google drive for example)

* add to env.example
2023-09-20 18:09:47 +08:00
Mikael Finstad
a16e22eb6b
fix VITE_COMPANION_ALLOWED_HOSTS (#4690)
it was broken
2023-09-20 17:53:22 +08:00
Merlijn Vos
ef613e6a9f
Move remote file upload logic into companion-client (#4573) 2023-08-24 14:27:28 +02:00
Artur Paikin
1ab4db5e7c
Readme improvements (#4622)
* Make logo fit on the right of the table on laptop screens+

* Move table

* Update README.md

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

* No need to make logo smaller on all packages after all

* Accidental change

---------

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2023-08-15 14:39:04 +01:00
Dominik Schmidt
79ff451a4d
@uppy/companion-client,@uppy/provider-views: make authentication optional (#4556)
* @uppy/companion-client,@uppy/provider-views: make authentication optional in ProviderView

* try different approach

* Move authAborted translation to companion-client

* @uppy/companion-client: do not reject login promise on events from incorrect source, but always return after rejections

While these events should be ignored they might be unrelated and should not reject the whole login

* Revert "Move authAborted translation to companion-client"

This reverts commit ce7f90e455.

* Check unused core locale strings in companion-client

---------

Co-authored-by: Murderlon <merlijn@soverin.net>
2023-08-06 23:05:39 +02:00
Mikael Finstad
90f7fb9197
@uppy/core: improve performance of validating & uploading files (#4402)
* show how many files are added when loading

remake of https://github.com/transloadit/uppy/pull/4388

* add french (cherry pick)

* implement concurrent file listing

* refactor / fix lint

* refactor/reduce duplication

* pull out totals validation

don't do it for every file added, as it's very slow
instead do the check at the end when all files are added.
this allows us to easily work with 10k+ files
fixes #4389

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

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

* make restricter.validate validate everything

instead make more specific methods for sub-validation
also rename validateTotals to validateAggregateRestrictions

* improve errors and user feedback

- handle errors centrally so that we can limit the amount of toasts (informers) sent to the users (prevent flooding hundreds/thousands of them)
- introduce FileRestrictionError which is a restriction error for a specific file
- introduce isUserFacing field for RestrictionError

* fix performance issue reintroduced

* improvements

- show "%{count} additional restrictions were not fulfilled" for any restriction errors more than 4
- refactor/rename methods
- improve ghost logic/comments

* improve performance when uploading

- introduce new event "upload-start"  that can contain multiple files
- make a new patchFilesState method to allow updating more files
- unify "upload-start" logic in all plugins (send it before files start uploading)
- defer slicing buffer until we need the data
- refactor to reuse code

* fix e2e build issue

* try to upgrade cypress

maybe it fixes the error

* Revert "fix e2e build issue"

This reverts commit ff3e580c0f.

* upgrade parcel

* move mutation logic to end

* remove FileRestrictionError

merge it with RestrictionError

* fix silly bug

looks like the e2e tests are doing its job 👏

---------

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-04-15 23:50:19 +08:00
Mikael Finstad
3dd1e5e68c
@uppy/provider-views: fix race condition when adding folders (#4384)
* fix race condtion when adding files

don't call addFolder from listAllFiles
because that would call addFile before all folders were loaded

also remove unused selectedFolders state

* fix also the case of adding multiple folders

* fix todo: remove SharedHandler

* remove loaderWrapper

* fix logic

* fix the last race condition

* fix broken duplicate file check

* fix logic

* prettiyfy loop

* add user feedback

so they know that something is happening

* run corepack yarn run build:locale-pack

* Revert "run corepack yarn run build:locale-pack"

This reverts commit 85548ce2fc.

* Revert "add user feedback"

This reverts commit 4060019c35.

* use async generator instead of p-map

* re-fix race-condition

* remove providerFileToId

as suggested by @arturi

* use addFiles instead of addFile

* rename function

* use provider-supplied file ID

instead of generating an ID, for providers that we whitelsit
this allows adding the same time many times (with a different path)

* call core directly

* improve dev dashboard

* disable experimental getAsFileSystemHandle

it seems to be causing problems when dropping folders with subfolders in newest chrome
e.g a folder with 50 files and a subfolder which in turn has another 50 files

also refactor and document the code more

* Update packages/@uppy/provider-views/src/ProviderView/ProviderView.jsx

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

* mov eto utils

---------

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-04-04 12:13:39 +09:00
Merlijn Vos
6430a00aa9
Remove the website (#4369) 2023-03-24 00:33:46 +08:00
Mikael Finstad
ef1a945f79
@uppy/companion: add connection keep-alive to dropbox (#4365)
* add connection: keep-alive to dropbox

fixes #4357

* update a todo

* dont clear screen by vite

i want to also see companion's output
2023-03-20 20:59:03 +08:00
Antoine du Hamel
2ef662140b
@uppy/transloadit: fix assemblyOptions option (#4316) 2023-02-13 18:33:42 +01:00
Artur Paikin
73c9775c78
Add blog post 3.1-3.3 🎄 (#4255)
* Add 3.1-3.3 blog post draft

* Allow of course

* Update 2022-12-3.3.md

* Update website/src/_posts/2022-12-3.3.md

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

* Update website/src/_posts/2022-12-3.3.md

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

* Apply suggestions, fix typos, add gif

* Ignore However

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-12-22 23:51:12 +00:00
Antoine du Hamel
141eb248be
meta: upgrade to Vite 4 and ESBuild 0.16 (#4243) 2022-12-13 15:07:19 +01:00
Antoine du Hamel
bf1ff229fa
meta: fix transloadit-xhr dev example (#4149) 2022-10-18 21:46:13 +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
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
Antoine du Hamel
4996f44cf9
Merge branch 3.x 2022-08-04 17:40:50 +02: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
1b1b69dccf
meta: fix release script 2022-08-03 11:43:14 +02:00
Antoine du Hamel
0e555880e7
meta: improve beta release script 2022-07-27 20:17:57 +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
becf4d6fea meta: fix release script for major beta versions 2022-07-06 18:41:18 +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
Antoine du Hamel
3974905881 meta: fix release process (again) 2022-06-09 20:42:03 +02:00
Antoine du Hamel
2be8cec2af
meta: improve release process for beta branch (#3809) 2022-06-09 19:14:15 +02:00
Antoine du Hamel
5a09823f6d meta: fix hard-coded branch name in release script 2022-06-09 18:42:28 +02:00
Antoine du Hamel
9acac67882 meta: fix URL generation in the release script 2022-06-07 21:01:45 +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