We sometimes where importing source files, which may not be available in
production. Instead we should target extension-less paths in `lib/`
folders so the generated `.d.ts` files are used.
* When Compressor changed file format, update file.meta.name
* only use the setFileState, update comment
* Use Compressor ESM, check for name and extension
* Add test with mocked compress()
* Test user changing the file.meta.name
* Update packages/@uppy/compressor/package.json
Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
* Cleaner variables, remove excessive checks
* Fix package.json
---------
Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
* Fix Compressor being broken when no name is in the compressed blob
* Update packages/@uppy/compressor/src/index.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* 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>
* 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>