Skip to content

chore: remove dead code and reclassify test-only dependencies#242

Open
matt-evervault wants to merge 1 commit into
chore/migrate-to-pnpm-and-update-nodefrom
claude/sdk-cleanup-dead-code
Open

chore: remove dead code and reclassify test-only dependencies#242
matt-evervault wants to merge 1 commit into
chore/migrate-to-pnpm-and-update-nodefrom
claude/sdk-cleanup-dead-code

Conversation

@matt-evervault

Copy link
Copy Markdown
Contributor

Why

First branch in a staged modernization of the Node SDK. It removes unreachable dead code and tidies dependency classification, so the following TypeScript-conversion branch has a smaller, cleaner surface to convert.

How

  • Deleted unused internal modules that were unreachable from the public API: lib/core/labs.js (+ lib/core/labs/index.js, the legacy proxy-cage helper), lib/utils/dataHelper.js (imported big.js, which was never a declared dependency — a latent crash), and lib/utils/environment.js (unused legacy Function env extraction).
  • Moved crc-32 and uuid to devDependencies — both are only used by the test suite, not by lib/.
  • Removed a leftover EV_CAGE_RUN_URL reference from the config test.

Test baseline unchanged: 204 passing (the 5 proxy.test.js failures are pre-existing and environmental).


Part of a stacked series for reviewability — this targets the pnpm/Node-migration base; the TypeScript conversion (claude/sdk-typescript) stacks on top of it.

🤖 Generated with Claude Code

https://claude.ai/code/session_011HwoTRLdV2YMub47j88mv5


Generated by Claude Code

Delete unused internal modules that were unreachable from the public API:
- lib/core/labs.js + lib/core/labs/index.js (legacy `proxy-cage` helper)
- lib/utils/dataHelper.js (imported `big.js`, which was never a declared
  dependency, and was referenced nowhere)
- lib/utils/environment.js (legacy Function env-var extraction, unused)

Move `crc-32` and `uuid` to devDependencies since they are only used by the
test suite, not by lib/. Remove the leftover EV_CAGE_RUN_URL reference from
the config test (the env var no longer exists in config).

Test baseline unchanged: 204 passing (the 5 pre-existing proxy.test.js
failures are environmental and unrelated to this change).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011HwoTRLdV2YMub47j88mv5
@changeset-bot

changeset-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d8e4ceb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@evervault/sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@matt-evervault matt-evervault requested a review from lfarrel6 July 9, 2026 12:48
@matt-evervault matt-evervault marked this pull request as ready for review July 9, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants