Commit graph

12 commits

Author SHA1 Message Date
Merlijn Vos
3393b537d3
Upgrade Yarn to 4.x (#4849)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-04-29 18:49:02 +02:00
Antoine du Hamel
00405fb24c
fix type imports (#5038)
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.
2024-03-27 14:32:45 +01:00
Mikael Finstad
6b4f5b68f7
@uppy/compressor: migrate to TS (#4907)
* refactor compressor to ts

* rename Options

* export opts
2024-02-12 23:10:49 +08:00
Antoine du Hamel
2c432b12cd
test: migrate to Vitest for Uppy core and Uppy plugins (#4700) 2023-09-26 17:23:17 +02:00
Artur Paikin
8b86db1ce5
@uppy/compressor: update file.meta.name after compression, becase format/extension might have changed (#4645)
* 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>
2023-09-11 14:01:35 +02:00
Artur Paikin
0d482ccc0f
Fix Compressor being broken when no name is in the compressed blob (#3947)
* 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>
2022-08-04 13:23:29 +01:00
Justin
2b435bdc51
@uppy/compressor: fix upload causing meta name to reset (#3890)
Fix @uppy/compressor resetting meta name
2022-07-27 18:19:36 +02:00
Artur Paikin
b0e01ff082
Fix Compressor docs, pass files array to compressor:complete event (#3682)
* 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>
2022-05-18 19:29:08 +01:00
Camilo Forero
c69fa01c92
Set meta on file compression (#3644)
The meta field was not updated when a new file was generated
2022-04-20 03:20:30 +08:00
Camilo Forero
011856ccf4
Merge new name and type into compressed file (#3606)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2022-04-05 14:34:18 +08:00
Artur Paikin
953ae5c929
@uppy/compressor: ignore remote files, calculate savings correctly (#3578) 2022-03-16 20:17: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