Skip to content

Remove unused npm dependencies - #101

Merged
ofalvai merged 1 commit into
masterfrom
push-lkysyqlqkprr
Nov 3, 2026
Merged

ofalvai merged 1 commit into
masterfrom
push-lkysyqlqkprr

Conversation

@ofalvai

@ofalvai ofalvai commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Drops npm dependencies that nothing in the repo imports or runs. It cuts the lockfile by 91 packages and removes a few deprecated or vulnerable ones from the install tree.

What goes

Root package.json (dev dependencies):

  • run-sequence: there is no gulpfile.
  • @types/mkdirp: mkdirp ships its own types.
  • @types/assert: @types/node already covers assert.

code-push-plugin-testing-framework:

  • superagent, superagent-proxy, uuid, @types/uuid, base-64, mocha-junit-reporter, and a second copy of mocha. No test code or npm script loads them, and the root mocha is the one that runs.
  • superagent-proxy alone pulled in vm2, ip, pac-resolver and socks. superagent pulled in form-data and formidable, and npm flags the pinned superagent@6 as deprecated over a formidable vulnerability.

q and replace stay in the testing framework because the E2E tests still use them. replace is pinned to latest, which I left alone to keep this PR to removals.

The root run-sequence, @types/mkdirp and @types/assert packages are not
used: there is no gulpfile, mkdirp ships its own types, and @types/node
covers assert. The testing framework declared superagent,
superagent-proxy, uuid, base-64, mocha-junit-reporter and a second mocha
that its scripts never load. superagent-proxy alone pulled in vm2, ip,
pac-resolver and socks, and superagent pulled in form-data and
formidable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 10:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues for the development and testing dependency cleanup.

No open issues 🎉

What changed in this PR

This PR trims unused dependencies from React Native CodePush’s development tooling and testing framework without changing runtime code.

Changes:

  • Removes unused root tooling and redundant type packages.
  • Removes unused testing-framework packages, including HTTP clients, proxy support, and reporting utilities.
  • Updates the lockfile to remove the packages and their unused transitive dependencies.
File Description
package.json Removes run-sequence, @types/mkdirp, and @types/assert.
package-lock.json Synchronizes dependency removals and prunes unused transitive packages.
code-push-plugin-testing-framework/​package.json Removes unused dependencies, retaining q and replace.

Review effort: Balanced

@ofalvai
ofalvai added this pull request to stack #103 November 3, 2026 10:56
@ofalvai
ofalvai marked this pull request as ready for review November 3, 2026 11:03
@ofalvai
ofalvai merged commit fe7f89c into master Nov 3, 2026
7 checks passed
@ofalvai
ofalvai deleted the push-lkysyqlqkprr branch November 3, 2026 11:46
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.

3 participants