refactor: remove mime-types / mime-db dependency #2152
Labels
api: storage
Issues related to the googleapis/nodejs-storage API.
next major: breaking change
this is a change that we should wait to bundle into the next major version
type: cleanup
An internal cleanup or hygiene concern.
Currently we utilize
mime
to detect content types and set metadata accordingly. Mime uses mime-db which is essentially a lookup table from JSON files. This dependency is accounting for ~13% of our package size. We should remove this dependency in favor of something smaller for example we could write a MIME sniffer based on the spec if one does not already exist for Node.The text was updated successfully, but these errors were encountered: