Skip to content

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

Merged
susnux merged 1 commit into
masterfrom
dependabot/npm_and_yarn/zip.js/zip.js-2.25.0
Nov 18, 2026
Merged

susnux merged 1 commit into
masterfrom
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
dependabot Bot requested review from a team as code owners November 18, 2026 09:27
@dependabot
dependabot Bot requested review from kristian-zendato and pringelmann and removed request for a team November 18, 2026 09:27
@susnux

susnux commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

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:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/zip.js/zip.js-2.25.0 branch from 72b4406 to b1c95d1 Compare November 18, 2026 20:09
@susnux
susnux disabled auto-merge November 18, 2026 20:10
@github-actions

Copy link
Copy Markdown
Contributor

Possible performance regression detected

Show Output
8 queries added

= /remote.php/dav/files/test
= /remote.php/dav/files/test/test.txt
= /remote.php/dav/files/test/many_files
= /remote.php/dav/files/test/new_file.txt
≠ /remote.php/dav/files/test/new_file.txt with 8 queries added
  - UPDATE "oc_filecache" SET "size" = :dcValue4 WHERE ("fileid" = :dcValue1) AND ("storage" = :dcValue2) AND (("size" <> :dcValue3) OR ("size" IS NULL))
  - UPDATE "oc_filecache" SET "size" = :dcValue4 WHERE ("fileid" = :dcValue1) AND ("storage" = :dcValue2) AND (("size" <> :dcValue3) OR ("size" IS NULL))
  - SELECT "path" FROM "oc_filecache" WHERE ("storage" = :dcValue1) AND ("fileid" = :dcValue2)
  - SELECT "path" FROM "oc_filecache" WHERE ("storage" = :dcValue1) AND ("fileid" = :dcValue2)
  + SELECT "storage", "path", "mimetype" FROM "oc_filecache" WHERE "fileid" = :dcValue1
  + SELECT "storage_id", "root_id", "user_id", "mount_point", "mount_id", "f"."path", "mount_provider_class" FROM "oc_mounts" "m" INNER JOIN "oc_filecache" "f" ON "m"."root_id" = "f"."fileid" WHERE ("m"."storage_id" = :dcValue1) AND ("f"."storage" = :dcValue2) AND (("f"."fileid" = :dcValue3) OR ("f"."path" = '') OR (("f"."path" || :dcValue4) = SUBSTR(:dcValue5, :dcValue6, LENGTH("f"."path") + :dcValue7))) AND ("user_id" = :dcValue8)
  + SELECT "filecache"."fileid", "storage", "path", "path_hash", "filecache"."parent", "filecache"."name", "mimetype", "mimepart", "size", "mtime", "storage_mtime", "encrypted", "filecache"."etag", "filecache"."permissions", "checksum", "unencrypted_size", "metadata_etag", "creation_time", "upload_time", "meta"."json" AS "meta_json", "meta"."sync_token" AS "meta_sync_token" FROM "oc_filecache" "filecache" LEFT JOIN "oc_filecache_extended" "fe" ON "filecache"."fileid" = "fe"."fileid" LEFT JOIN "oc_files_metadata" "meta" ON "filecache"."fileid" = "meta"."file_id" WHERE ("filecache"."fileid" = :dcValue1) AND ("storage" = :dcValue2)
  + DELETE FROM "oc_filecache" WHERE ("storage" = :dcValue1) AND ("fileid" = :dcValue2)
  + DELETE FROM "oc_filecache_extended" WHERE "fileid" = :dcValue1
  + SELECT "file_id", "json", "sync_token" FROM "oc_files_metadata" WHERE "file_id" IN (:dcValue1)
  + SELECT "file_id", "json", "sync_token" FROM "oc_files_metadata" WHERE "file_id" IN (:dcValue1)
  + DELETE FROM "oc_files_metadata" WHERE "file_id" IN (:dcValue1)
  + DELETE FROM "oc_files_metadata_index" WHERE "file_id" IN (:dcValue1)
  + SELECT "fileid" FROM "oc_filecache" WHERE ("storage" = :dcValue1) AND ("path_hash" = :dcValue2)
  + UPDATE "oc_file_locks" SET "lock" = :dcValue1, "ttl" = :dcValue2 WHERE ("key" = :dcValue3) AND ("lock" = :dcValue4)
  + SELECT "filecache"."fileid", "storage", "path", "path_hash", "filecache"."parent", "filecache"."name", "mimetype", "mimepart", "size", "mtime", "storage_mtime", "encrypted", "filecache"."etag", "filecache"."permissions", "checksum", "unencrypted_size", "metadata_etag", "creation_time", "upload_time", "meta"."json" AS "meta_json", "meta"."sync_token" AS "meta_sync_token" FROM "oc_filecache" "filecache" LEFT JOIN "oc_filecache_extended" "fe" ON "filecache"."fileid" = "fe"."fileid" LEFT JOIN "oc_files_metadata" "meta" ON "filecache"."fileid" = "meta"."file_id" WHERE ("path_hash" = :dcValue1) AND ("storage" = :dcValue2)
= ./occ profiler:list

@susnux
susnux merged commit 75bba83 into master Nov 18, 2026
70 of 71 checks passed
@susnux
susnux deleted the dependabot/npm_and_yarn/zip.js/zip.js-2.25.0 branch November 18, 2026 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant