Skip to content

fix: remove unused crypto-js dependency (APPBLD-4862) - #89

Merged
AnujVishwakarma-src merged 2 commits into
adobe:masterfrom
AnujVishwakarma-src:APPBLD-4862-remove-crypto-js
Sep 9, 2026
Merged

fix: remove unused crypto-js dependency (APPBLD-4862)#89
AnujVishwakarma-src merged 2 commits into
adobe:masterfrom
AnujVishwakarma-src:APPBLD-4862-remove-crypto-js

Conversation

@AnujVishwakarma-src

Copy link
Copy Markdown
Contributor

What

Remove the crypto-js dependency.

Why

crypto-js@4.2.0 is deprecated ("Active development of CryptoJS has been discontinued"), but it is a dead dependency in this package:

  • Not imported anywhere in src/, test/, or e2e/ (verified via git grep).
  • npm ls crypto-js shows it with no other consumer.
  • Present since the initial "Open sourcing Events SDK" commit.
  • The actual signature verification in src/signatureUtils.js already uses Node's built-in crypto (crypto.verify('rsa-sha256', …), crypto.createPublicKey(…)).

So this is a straight removal — no replacement or code change needed.

Evidence

Clean npm install deprecation warnings: 16 → 15, with the only difference being:

- npm warn deprecated crypto-js@4.2.0: Active development of CryptoJS has been discontinued.

Validation

  • ✅ Unit tests: 105/105 pass, 100% coverage (incl. signatureUtils.js)
  • ✅ Lint clean
  • crypto-js no longer present in the dependency tree

🤖 Generated with Claude Code

crypto-js@4.2.0 is deprecated (active development discontinued) but is a dead
dependency here: it is not imported anywhere in src/test/e2e. Signature
verification in src/signatureUtils.js already uses Node built-in crypto
(crypto.verify/createPublicKey), so crypto-js is pure leftover from the initial
open-sourcing commit.

Removing it clears the crypto-js deprecation warning (clean npm install: 16 -> 15
warnings, only crypto-js removed). No code change; unit tests 105/105 pass with
100% coverage, lint clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AnujVishwakarma-src
AnujVishwakarma-src merged commit 7f381d6 into adobe:master Sep 9, 2026
11 checks passed
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