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: v2.22.1...v2.23.0
Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com