Skip to content

Commit

Permalink
2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Touffy committed May 8, 2023
1 parent 8625ddc commit 3ba9f98
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.4.2:

* new: filenames can be flagged as UTF-8 using the EFS bit in the file header flags
- this is configurable with the new `buffersAreUTF8` option
* and it should help the Windows Zip utility read non-ASCII filenames correctly

## 2.4.1:

* bugfix: cancelling the output stream will now cause an error in the source iterator
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

`client-zip` concatenates multiple files (e.g. from multiple HTTP requests) into a single ZIP, **in the browser**, so you can let your users download all the files in one click. It does *not* compress the files or unzip existing archives.

`client-zip` is lightweight (5.7 kB minified, 2.2 kB gzipped), dependency-free, and 40 times faster than the old JSZip.
`client-zip` is lightweight (6.1 kB minified, 2.5 kB gzipped), dependency-free, and 40 times faster than the old JSZip.

* [Quick Start](#Quick-Start)
* [Compatibility](#Compatibility)
Expand Down Expand Up @@ -152,8 +152,8 @@ Now, comparing bundle size is clearly unfair because the others do a bunch of th

| | `client-zip`@2.4.2 | fflate@0.7.4 | zip.js@2.7.6 | conflux@4.0.3 | JSZip@3.10.1 |
|--------------------|-------------------:|-------------:|--------------:|--------------:|--------------:|
| minified | 5.7kB | 29.8kB | 162.3kB | 198.8kB | 94.9kB |
| minified + gzipped | 2.2kB | 11kB | 57.8kB | 56.6kB | 27.6kB |
| minified | 6.1kB | 29.8kB | 162.3kB | 198.8kB | 94.9kB |
| minified + gzipped | 2.5kB | 11kB | 57.8kB | 56.6kB | 27.6kB |

The datasets I used in the new tests are not public domain, but nothing sensitive either ; I can send them if you ask.

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "client-zip",
"version": "2.4.1",
"version": "2.4.2",
"description": "A tiny and fast client-side streaming ZIP generator",
"browser": "index.js",
"module": "index.js",
Expand Down

0 comments on commit 3ba9f98

Please sign in to comment.