Skip to content

Replace zip dependencies for CompressionStream browser API #2703

Open
@oliviertassinari

Description

@oliviertassinari

🚀 Feature Proposal

Replace zip dependencies for the CompressionStream browser API.

There might be a need for separate browser and server bundles.

Motivation

This project has a dependency on jszip, archiver, and unzipper:

exceljs/package.json

Lines 98 to 108 in 5bed18b

"dependencies": {
"archiver": "^5.0.0",
"dayjs": "^1.8.34",
"fast-csv": "^4.3.1",
"jszip": "^3.10.1",
"readable-stream": "^3.6.0",
"saxes": "^5.0.1",
"tmp": "^0.2.0",
"unzipper": "^0.10.11",
"uuid": "^8.3.0"
},

which are bundlesize heavy https://bundlephobia.com/package/jszip, over 150 kB gzipped combined. Instead, we could use https://developer.mozilla.org/en-US/docs/Web/API/Compression_Streams_API. The browser support starts to be good enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions