Skip to content

chore(deps): bump @zip.js/zip.js from 2.24.0 to 2.25.0 - #240

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/zip.js/zip.js-2.25.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/zip.js/zip.js-2.25.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @zip.js/zip.js from 2.24.0 to 2.25.0.

Release notes

Sourced from @​zip.js/zip.js's releases.

v2.25.0

What's Changed in v2.25.0

Bug fixes

  • Concurrent ZipWriter#close() calls now share the same finalization and all resolve to the zip file. Previously the second call rejected with a locked-stream TypeError from getWriter() while the first one succeeded. A call that threw, e.g. on an invalid comment, can still be retried
  • ZipDirectoryEntry#exportFileSystemHandle() now aborts and unlocks the destination file stream when reading an entry fails before its data is written, e.g. on a wrong password or a corrupted entry. Previously the stream opened for that entry was left open and locked
  • ZipDirectoryEntry#addFileSystemEntry() now rejects when reading a nested directory fails, e.g. on a permission error. Previously the error surfaced as an unhandled rejection and the returned promise never settled
  • ZipFileEntry#getData() now accepts a bare WritableStream, as declared, instead of throwing "Cannot read properties of undefined (reading 'getWriter')"; an object exposing a writable property keeps working

Type declarations

  • Reader#readUint8Array(), Writer#writeUint8Array(), Writer#getData() and the init() methods now declare that they may return synchronously, which is what Uint8ArrayReader, Uint8ArrayWriter and Data64URIWriter do. A custom reader or writer implemented synchronously now type-checks, and calling .then() on these methods is no longer accepted by TypeScript since it fails at runtime on the synchronous classes: use await instead. The classes implemented asynchronously, e.g. TextWriter and BlobWriter, keep their promise-only declarations
  • ZipWriterStream#transform() and ZipWriterStream#writable() are now typed on Uint8Array chunks on both sides and no longer take a type parameter: the readable side of transform() is the zipped stream, never the type of the input chunks

Documentation

  • New README section "Reading untrusted zip files", with remarks on FileEntry#getData() and Uint8ArrayWriter: the declared sizes are not verified before an entry is read, so check entry.uncompressedSize against your limit before extracting an entry from an untrusted source. Uint8ArrayWriter allocates its buffer from the declared size, capped at 1032 times compressedSize
  • msDosCompatible: Info-ZIP unzip builds without Unicode support, e.g. the one shipped with macOS, fail to extract entries with non-ASCII names when the MS-DOS platform is declared, whatever the language encoding flag says
  • The ZipWriterStream examples now encode their strings with a TextEncoderStream: the streams piped into the instance must carry Uint8Array chunks
  • A lazily-read Blob from fs.openAsBlob() or Bun.file() must be wrapped in a BlobReader; the two passages saying it could be passed directly to ZipReader were wrong
  • passThrough: "compressed": two encrypted entries holding the same content read identical only when the content was compressed identically; different compressed data does not prove different content
  • useUnicodeFileNames: false: ZipReader decodes the resulting UTF-8 names correctly since it detects valid UTF-8 when the flag is clear; the readers that trust the flag, e.g. Python zipfile and Info-ZIP unzip, do not
  • ZipDirectoryEntry#exportWritable() resolves to the WritableStream instance, not to a Uint8Array as its description said
  • The default appended data size of the "balanced" strictness is 65535 bytes, the opening examples of the API documentation import the npm package @zip.js/zip.js rather than the JSR name, and smaller wording fixes

Build and CI

  • The Chrome 76, Chrome 87 and Firefox 102 test jobs run on windows-2022, because those browsers no longer start on the current windows-latest (Windows Server 2025) image

Full Changelog: gildas-lormeau/zip.js@v2.24.0...v2.25.0

Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com

Commits
  • 9f42e46 bump up version
  • 6aa35bd fix the cleanup, propagation and close issues found by the review
  • c74de5b fix the inaccuracies found by the documentation review
  • 816bf7f Merge pull request #688 from gildas-lormeau/dependabot/npm_and_yarn/qs-6.17.1
  • 27a3fd0 Merge pull request #689 from gildas-lormeau/dependabot/npm_and_yarn/serialize...
  • f0e3b44 Merge pull request #690 from gildas-lormeau/dependabot/npm_and_yarn/follow-re...
  • c76f262 document the unzip builds that mangle non-ascii ms-dos names
  • 889a616 run the legacy windows browsers on windows-2022
  • 41566e3 document the size check before reading untrusted entries
  • ddea8bd Bump follow-redirects from 1.16.1 to 1.16.3
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by cubic

Updates @zip.js/zip.js from 2.24.0 to 2.25.0 across all packages and the lockfile.

The new version fixes several stream-locking and error-propagation bugs in zip writing and reading, and updates type declarations so synchronous reader/writer methods no longer accept .then() calls — code that calls those methods should use await instead.

Written for commit 27c113f. Summary will update on new commits.

View guided diff Turn on auto-fix

Bumps [@zip.js/zip.js](https://github.com/gildas-lormeau/zip.js) from 2.24.0 to 2.25.0.
- [Release notes](https://github.com/gildas-lormeau/zip.js/releases)
- [Commits](gildas-lormeau/zip.js@v2.24.0...v2.25.0)

---
updated-dependencies:
- dependency-name: "@zip.js/zip.js"
  dependency-version: 2.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 18, 2026
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​zip.js/​zip.js@​2.24.0 ⏵ 2.25.067 +1100100 +197 +1100

View full report

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants