Skip to content

chore: remove 8 more unused dependencies#668

Open
rickstaa wants to merge 2 commits into
mainfrom
chore/remove-orphan-deps-2
Open

chore: remove 8 more unused dependencies#668
rickstaa wants to merge 2 commits into
mainfrom
chore/remove-orphan-deps-2

Conversation

@rickstaa
Copy link
Copy Markdown
Member

Summary

Follow-up to #663. Drops 8 more direct dependencies with zero references in source or build configs. Cumulative cleanup is now 32 of 104 (~31%).

What's removed and why

Runtime

  • dotenv-cli — distinct from dotenv (kept; pnpm codegen uses -r dotenv/config).

Type generation (no longer used)

  • typechain, @typechain/ethers-v5 — no typechain script, no config, no generated output directory.

Build / tooling leftovers

  • baseline-browser-mapping — zero references; not wired into next.config.js or any browserslist config.
  • ts-node — Jest 30 loads jest.config.ts natively (verified by running pnpm test after removal).

Obsolete @types/* (packages now ship their own declarations)

  • @types/change-casechange-case v4+ ships types
  • @types/react-iconsreact-icons ships types
  • @types/rechartsrecharts v2+ ships types (the DT package only covered v1)

What's intentionally not removed

  • @stitches/react — declared transitively by @livepeer/design-system; safe to drop but verifying separately as a follow-up.
  • @emotion/react, @emotion/styled — MUI v7 peers.

Verification

  • pnpm typecheck passes
  • pnpm lint passes
  • pnpm format:check passes
  • pnpm test — 84/84 tests pass; jest.config.ts loads without ts-node (one suite fails on missing env vars, unrelated)

Depends on

Stacked on #663 (chore/remove-orphan-deps). Target main once #663 lands; rebase if needed.

rickstaa and others added 2 commits May 7, 2026 17:09
Drop 20 direct dependencies in package.json with zero imports anywhere in
source. Verified via scripted sweep across all *.ts/tsx/js/mjs/cjs files
plus manual confirmation that none are peer deps, build-time codegen, or
implicit-via-config (MDX, Apollo Server endpoint, etc.).

Removed by group:

GraphQL Tools — only @graphql-tools/wrap is actually imported (in
apollo/createSchema.ts):
- @graphql-tools/delegate, @graphql-tools/links, @graphql-tools/schema,
  @graphql-tools/stitch, graphql-tools (umbrella)

MDX — no .mdx files in repo, no MDX wiring in next.config.js:
- @mdx-js/loader, @mdx-js/react, @next/mdx

Apollo Server stack — no GraphQL endpoint code references them; AS3 is EOL:
- apollo-server-micro, apollo-link, apollo-link-http, micro-cors

UI/utility leftovers from earlier refactors:
- @reach/dialog, @wagmi/core (transitive via wagmi), gsap,
  lightweight-charts, match-sorter, parse-domain, react-confetti,
  react-number-format

Lockfile shrinks by 2,203 lines, reducing supply-chain attack surface
and CVE alert noise.

Closes #662

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Follow-up to #663. Drop direct deps with zero source imports:

- dotenv-cli (kept dotenv — used by `pnpm codegen`)
- typechain, @typechain/ethers-v5 — no script, no generated output
- baseline-browser-mapping — no references
- ts-node — Jest 30 loads jest.config.ts natively
- @types/change-case, @types/react-icons, @types/recharts —
  packages ship their own types

Lockfile shrinks by 284 lines.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rickstaa rickstaa requested a review from ECWireless as a code owner May 12, 2026 10:12
Copilot AI review requested due to automatic review settings May 12, 2026 10:12
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
explorer-arbitrum-one Ready Ready Preview, Comment May 12, 2026 10:14am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR continues the dependency cleanup work (follow-up to #663) by removing additional direct dependencies from package.json that have no remaining references in source code or build/test configs, reducing maintenance surface and transitive security noise.

Changes:

  • Remove 8 unused direct dependencies from dependencies/devDependencies (including legacy Apollo Server/link packages, TypeChain tooling, dotenv-cli, and obsolete @types/* packages).
  • Regenerate pnpm-lock.yaml to reflect the updated direct dependency set and pruned transitive graph.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Drops unused direct deps from runtime and dev/tooling sections.
pnpm-lock.yaml Updates lockfile to match dependency removals and prunes now-unreachable transitive packages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

No open projects
Status: Triage

Development

Successfully merging this pull request may close these issues.

2 participants