Skip to content

fix: bump archiver ^5->^7 and unzipper ^0.10->^0.12 to drop deprecated transitive deps (APPBLD-4609) - #932

Open
AnujVishwakarma-src wants to merge 1 commit into
adobe:masterfrom
AnujVishwakarma-src:APPBLD-4609-archiver-unzipper
Open

fix: bump archiver ^5->^7 and unzipper ^0.10->^0.12 to drop deprecated transitive deps (APPBLD-4609)#932
AnujVishwakarma-src wants to merge 1 commit into
adobe:masterfrom
AnujVishwakarma-src:APPBLD-4609-archiver-unzipper

Conversation

@AnujVishwakarma-src

Copy link
Copy Markdown

What

  • archiver ^5.3.1 → ^7.0.1
  • unzipper ^0.10.11 → ^0.12.5

Both are the highest CommonJS-compatible targets (archiver@8 is ESM-only), keeping this a drop-in dependency cleanup with no source changes.

Why

These two direct deps pull deprecated transitive packages:

  • archiver@5archiver-utils@2/3glob@7inflight@1.0.6 (deprecated, "leaks memory"). archiver@7 drops this chain.
  • unzipper@0.10fstream@1.0.12 (unsupported) → rimraf@2.7.1 (deprecated). unzipper@0.12 removes both.

Evidence — clean npm install deprecation warnings: 18 → 16

Eliminated by this PR:

- npm warn deprecated fstream@1.0.12: This package is no longer supported.
- npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported

The remaining glob@7/glob@8/inflight warnings are co-driven by other dependency chains and are intentionally out of scope here:

So the archiver bump's benefit is partly masked until those land — but it is required so the eventual full cleanup resolves.

Validation

  • ✅ Unit tests: introduces no new failures vs. baseline (the 6 currently-failing oclif command suites fail identically on master — a pre-existing Node 26 + @oclif/core dynamic-import/Jest issue, unrelated to these deps).
  • ✅ Lint clean.
  • ✅ Un-mocked round-trip smoke of the real code paths: pack.js zipHelper (archiver directory/file/finalize) → install.js validateZipDirectoryStructure (unzipper.Parse({forceStream})) → unzipFile (unzipper.Open.file().extract()), with content verified after extraction.

Notes

Supersedes #915 (dependabot unzipper 0.10→0.12.3) — this PR takes unzipper to 0.12.5 and additionally bumps archiver.

🤖 Generated with Claude Code

…d transitive deps (APPBLD-4609)

archiver@5 pulls archiver-utils@2/3 -> glob@7 -> inflight@1.0.6 (deprecated,
leaks memory); archiver@7 drops that chain (archiver@8 is ESM-only, so 7 is the
CJS ceiling). unzipper@0.10 pulls fstream@1.0.12 (unsupported) -> rimraf@2.7.1
(deprecated); unzipper@0.12 removes both.

Clean npm install deprecation warnings: 18 -> 16 (fstream@1.0.12 and rimraf@2.7.1
eliminated). Residual glob/inflight warnings are co-driven by other chains
(transitive archiver@6 from @adobe/aio-lib-runtime, yeoman-generator@5, jest)
and are addressed by their own tickets.

Validation: unit tests introduce no new failures; lint clean; un-mocked
round-trip smoke of the real pack.js (archiver) and install.js (unzipper Parse +
Open.file/extract) code paths passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant