uppy/private
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
..
@types/jasmine ci: update Webdriverio packages (#3027) 2021-07-19 23:20:35 +02:00
dev @uppy/core: improve performance of validating & uploading files (#4402) 2023-04-15 23:50:19 +08:00
locale-pack Remove the website (#4369) 2023-03-24 00:33:46 +08:00
release @uppy/robodog: remove package (#3946) 2022-08-22 17:19:15 +02:00
remark-lint-uppy Add blog post 3.1-3.3 🎄 (#4255) 2022-12-22 23:51:12 +00:00
vue-template-compiler example: update Vue2 example (#3802) 2022-06-02 20:11:32 +02:00
README.md Add retext to markdown linter (#3024) 2021-10-14 16:10:45 +02:00

Private packages

Node.js packages for internal use by Uppy, like build tooling. These are not published to npm.