| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-10-03 | 1.1 kB | |
| v2.23.0 source code.tar.gz | 2026-10-03 | 4.2 MB | |
| v2.23.0 source code.zip | 2026-10-03 | 4.7 MB | |
| Totals: 3 Items | 9.0 MB | 6 | |
What's Changed in v2.23.0
New features
- Add the
filteroption to theimport*()methods ofZipFSandZipDirectoryEntry: the function receives each entry read from the zip file and returnstrue(or a promise resolving totrue) to import it. It can read the data of the entry to decide, and the entries left out never reach theduplicatespolicy - Add the
filteroption to theexport*()methods and togetExportedSize(): the function receives eachZipEntryof the tree and returnstrueto export it. Leaving out a directory leaves out its subtree, the entries left out are not read and are not counted byonprogressandonentryprogress - Add the
filteroption toexportFileSystemHandle(), with the same semantics as the zip exports - Add the
filteroption toaddFileSystemHandle()andaddFileSystemEntry(): the function receives each handle found and its path, so a directory likenode_modulesor hidden files can be left out without walking them
Full Changelog: https://github.com/gildas-lormeau/zip.js/compare/v2.22.1...v2.23.0
Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com