Skip to content

fix(utils): eliminate Node.js Buffer dependencies for browser compatibility (#7176)#7196

Open
Sigmabrogz wants to merge 1 commit intoWalletConnect:v2.0from
Sigmabrogz:fix/remove-buffer-7176
Open

fix(utils): eliminate Node.js Buffer dependencies for browser compatibility (#7176)#7196
Sigmabrogz wants to merge 1 commit intoWalletConnect:v2.0from
Sigmabrogz:fix/remove-buffer-7176

Conversation

@Sigmabrogz
Copy link

This PR eliminates the usage of the Node.js Buffer object from packages/utils/src (specifically in cacao.ts, misc.ts, crypto.ts, polkadot.ts, and signatures.ts). This is critical for browser usage, as Buffer causes breaking issues (Buffer is not defined) in environments where it is not polyfilled (such as the Verify API context in issue #7176).

The Buffer conversions have been replaced by the robust uint8arrays library (fromString, toString, concat), ensuring full browser compatibility while keeping encoding/decoding behavior consistent.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 12, 2026

All contributors have signed the CTA ✍️ ✅
Posted by the CLA Assistant Lite bot.

…bility (WalletConnect#7176)

Signed-off-by: Sigmabrogz <bnb1000bnb@gmail.com>
@Sigmabrogz Sigmabrogz force-pushed the fix/remove-buffer-7176 branch from 3f9b227 to 6b938d3 Compare March 12, 2026 12:58
@Sigmabrogz
Copy link
Author

I have read the CTA Document and I hereby sign the CTA

@Sigmabrogz
Copy link
Author

recheck

@Sigmabrogz
Copy link
Author

Hi team, the PR is ready for review. Thanks!

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