Skip to content

Conversation

@Pita
Copy link
Contributor

@Pita Pita commented Nov 12, 2025

Why?

See #2499 bug description. Buffer is only available in node.js enviroments

What?

Changed it to TextEncoder which is widely available in all Javascript enviroments and does the same thing

@Pita Pita requested a review from a team as a code owner November 12, 2025 13:49
@Pita Pita requested review from xavdid-stripe and removed request for a team November 12, 2025 13:49
@cla-assistant
Copy link

cla-assistant bot commented Nov 12, 2025

CLA assistant check
All committers have signed the CLA.

@cla-assistant
Copy link

cla-assistant bot commented Nov 12, 2025

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Member

@xavdid-stripe xavdid-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for fixing! And sorry about the hassle.

Once you sign the CLA, we can merge!

@xavdid-stripe xavdid-stripe enabled auto-merge (squash) November 12, 2025 17:19
@xavdid-stripe xavdid-stripe merged commit 696a955 into stripe:master Nov 12, 2025
8 checks passed
@xavdid-stripe xavdid-stripe changed the title Fixed #2499 by using TextEncoder instead of Buffer Use TextEncoder instead of Buffer to ensure support in other JS environments Nov 12, 2025
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