Skip to content

build(deps): move adm-zip to devDependencies - #642

Merged
pieper merged 1 commit into
dcmjs-org:masterfrom
CodeAvk:build/513-adm-zip-dev-dependency
Nov 17, 2026
Merged

pieper merged 1 commit into
dcmjs-org:masterfrom
CodeAvk:build/513-adm-zip-dev-dependency

Conversation

@CodeAvk

@CodeAvk CodeAvk commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

This is part of #513 (moving adm-zip to devDependencies).

Currently, adm-zip is only used in test/testUtils.js, and since the test/ directory isn't published, there's no reason to include it in production dependencies. However, it was previously listed under dependencies, meaning everyone installing dcmjs also got [email protected], which was triggering 8 security advisories through pnpm audit --prod (5 high and 3 moderate).

I've moved it to devDependencies and updated it to 0.6.1. With this change, pnpm audit --prod now reports no known vulnerabilities.

I've also verified that all 361 tests pass, including a clean run with an empty temp folder to ensure the test data is downloaded and unzipped again using the updated version.

This should also make the Dependabot PR #504 unnecessary.

adm-zip is only imported by test/testUtils.js, and test/ is not in the
published files, but it was listed under dependencies. Every project
that installs dcmjs therefore also installed adm-zip 0.5.17, and
`pnpm audit --prod` reported 8 advisories (5 high, 3 moderate) for it.

Move it to devDependencies and update it to 0.6.1, which clears those
advisories. `pnpm audit --prod` now reports no known vulnerabilities.

Part of dcmjs-org#513.
@netlify

netlify Bot commented Nov 16, 2026

Copy link
Copy Markdown

👷 Deploy request for dcmjs2 pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 66e8175

@pieper pieper left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Do you agree @wayfarer3130 ?

@wayfarer3130

Copy link
Copy Markdown
Contributor

LGTM. Do you agree @wayfarer3130 ?

Yes, LGTM as well

@pieper
pieper merged commit d0c6da2 into dcmjs-org:master Nov 17, 2026
4 of 5 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.53.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

wayfarer3130 added a commit that referenced this pull request Nov 24, 2026
Copy of PR merged to 0.x stream
* build(deps): move adm-zip to devDependencies

1.0 port of #642 (commit d0c6da2).

adm-zip is only imported by test/testUtils.js, and test/ is not in the
published files, but the root package.json listed adm-zip 0.5.17 under
dependencies. The pnpm-workspace.yaml override resolves 0.6.1 inside
this repository only, so a project that installs @dcmjs-org/dcmjs still
got 0.5.17. Move it to devDependencies at 0.6.1.

pnpm install also adds the empty packages/codemods importer that the
lockfile on 1.0-beta did not list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(deps): override undici to patched 6.x and 7.x releases

pnpm audit --audit-level=high fails on 1.0-beta-based branches because of
GHSA-2m5v-pch6-74hx, GHSA-qrxm-fqhp-jwvm, GHSA-4w7w-5xrc-9h26 and
GHSA-xjj6-f33q-929c in undici, a dev-only dependency of semantic-release.
Caret ranges keep each line on its own major version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

3 participants