Skip to content

chore(deps): remove unused direct dependencies (safe-buffer, events, stream-browserify)#154

Merged
andrerfneves merged 1 commit into
mainfrom
maintenance/remove-unused-deps-20260607
Jun 12, 2026
Merged

chore(deps): remove unused direct dependencies (safe-buffer, events, stream-browserify)#154
andrerfneves merged 1 commit into
mainfrom
maintenance/remove-unused-deps-20260607

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Removes three packages from dependencies in package.json that are not imported anywhere in the source code. They remain available as transitive dependencies via other packages, so behavior is unchanged.

Packages Removed

Package Reason
safe-buffer Legacy Buffer polyfill. Not directly imported — still installed transitively by crypto-browserify, browserify-sign, hash-base, etc.
events Node.js events polyfill. Not directly imported — still installed transitively by node-stdlib-browser.
stream-browserify Node.js stream polyfill. Not directly imported — still installed transitively by node-stdlib-browser.

Verification

  • All 52 tests pass
  • npm run build completes successfully
  • npm install succeeds without warnings
  • Grepped src/ tree — no imports of any of the three packages

…stream-browserify)

These three packages were listed as direct dependencies but are not
imported anywhere in the source code. They remain available as transitive
dependencies through other packages (e.g., crypto-browserify depends on
safe-buffer, node-stdlib-browser depends on events and stream-browserify).

- safe-buffer: legacy Buffer polyfill, no direct imports in src/
- events: Node.js events polyfill, no direct imports in src/
- stream-browserify: Node.js stream polyfill, no direct imports in src/

Verification:
- All 52 tests pass
- npm run build completes successfully
- npm install succeeds without warnings
@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 7, 2026 4:04pm

@andrerfneves andrerfneves merged commit e3a085d into main Jun 12, 2026
4 checks passed
@andrerfneves andrerfneves deleted the maintenance/remove-unused-deps-20260607 branch June 12, 2026 19:34
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.

1 participant