Skip to content

chore(deps): drop placeholder crypto npm package - #210

Merged
niallroche merged 1 commit into
accordproject:mainfrom
JayDS22:jay/chore/remove-crypto-stub-dep
Jul 21, 2026
Merged

chore(deps): drop placeholder crypto npm package#210
niallroche merged 1 commit into
accordproject:mainfrom
JayDS22:jay/chore/remove-crypto-stub-dep

Conversation

@JayDS22

@JayDS22 JayDS22 commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

server/package.json listed crypto@1.0.1 as a runtime dependency. That is not the Node builtin crypto; it is a registry stub that npm itself marks as deprecated: "This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.".

What this PR does

  • Removes the crypto: 1.0.1 line from server/package.json
  • Regenerates server/package-lock.json (only the node_modules/crypto entry drops, no other deps bump)

Why the stub is a no-op

Bare specifiers like import * as crypto from 'crypto' resolve to Node's builtin regardless of what is under node_modules/. Node builtins take precedence over installed packages, so the stub was doing nothing at runtime except wasting install-time bandwidth and confusing anyone reading the manifest.

Validation

  • The one existing import * as crypto from 'crypto' call site is server/handlers/mcp.ts:7, still resolves to the Node builtin after removal
  • npm test in server/: 8/8 test suites pass (98 tests including the recently landed handlers/mcp-session-cleanup.test.ts, handlers/crud.test.ts, and handlers/mcp.test.ts)
  • Lock-file diff is 9 lines removed, scoped to the crypto stub entry only. crypto-js (a legitimate different package) is untouched.

Author Checklist

  • DCO sign-off provided
  • Tests passing
  • No other deps bumped in lock file

`server/package.json` listed `crypto@1.0.1` as a runtime dependency.
That is not the Node builtin `crypto`; it is a registry stub that npm
itself marks as `deprecated: "This package is no longer supported. It's
now a built-in Node module. If you've depended on crypto, you should
switch to the one that's built-in."`. Bare specifiers for builtin
modules resolve to the builtin regardless of what is under
`node_modules/`, so the stub was doing nothing at install time except
wasting a network round-trip and confusing anyone reading the manifest.

Confirmed the one existing `import * as crypto from 'crypto'` call site
(`handlers/mcp.ts:7`) still resolves to the Node builtin. All 91 server
tests pass after removal. Lock-file diff is scoped to the removed entry;
no other deps bumped.

Signed-off-by: Jay Guwalani <guwalanijj@gmail.com>
@niallroche
niallroche self-requested a review July 21, 2026 08:15
@niallroche
niallroche merged commit 85907d4 into accordproject:main Jul 21, 2026
15 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Thank you for your contribution! 🎉

Dear @JayDS22,

Your pull request has been successfully merged into the project! We greatly appreciate your efforts and the time you've dedicated to improving our repository.

What happens next?

  • Your changes will be included in the next release
  • Your name will be added to our contributors list
  • Feel free to take on another issue or suggest new features

Once again, thank you for being part of our community!

Best regards,
The APAP Team

JayDS22 added a commit to JayDS22/apap that referenced this pull request Jul 22, 2026
…ygiene wins (Jul 21)

Updates the rolling roadmap for the Jul 21 milestone: the full
service-layer chain (accordproject#211 templateService, accordproject#213 agreementService CRUD,
accordproject#214 convertAgreement, accordproject#216 triggerAgreement) shipped upstream, plus the
CI hygiene set (accordproject#210 crypto stub, accordproject#212 test-swallow, accordproject#215 server install)
landed Jul 20-21.

- Status header: bump to W8 day 1 / Jul 21, restate the merge count from
  eight to fifteen, headline the service-layer completion.
- Workstream 1 (Proposal Core): reframe as "service-layer port complete
  upstream" with slice 3 REST unification as the remaining piece.
- W7 row: flip Active -> Done, add the seven Jul 20-21 merges to the
  activity list.
- Contributions table: add rows for accordproject#210, accordproject#211, accordproject#212, accordproject#213, accordproject#214, accordproject#215,
  accordproject#216, plus issue accordproject#217 (MCP paged reads follow-up), plus a combined row
  for the peer-review APPROVEs on Satvik's accordproject#192 + accordproject#203.

Signed-off-by: Jay Guwalani <guwalanijj@gmail.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.

2 participants