Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update return type in fromHexStringToBytes for Next.js compatibility #25

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

abc123931
Copy link
Contributor

issue #24

Overview

This PR addresses an issue in the fromHexStringToBytes function that was causing errors in Next.js applications. To resolve this, the return type of the function has been changed from ArrayBufferLike to Uint8Array.

Changes

  • Changed the return type of fromHexStringToBytes from ArrayBufferLike to Uint8Array to ensure compatibility with Next.js.

Testing

The function has been tested locally in a Next.js setup and is working as expected. However, tests in environments such as Cloudflare Workers are pending.

Please review the changes and let me know if there are any concerns or additional adjustments needed. Further testing in other environments will be conducted as needed.

@seratch
Copy link
Owner

seratch commented Apr 18, 2024

Thanks! I don’t remember why the buffer method call is necessary, but we need to do thorough tests before merging this change.

@seratch seratch added this to the 0.10 milestone Apr 18, 2024
@seratch seratch added the bug Something isn't working label Apr 18, 2024
Copy link
Owner

@seratch seratch left a comment

Choose a reason for hiding this comment

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

Thanks for sending this PR; The change looks good to me and I didn't detect any errors on my end so far

@seratch seratch merged commit d5c6104 into seratch:main Apr 18, 2024
2 checks passed
@abc123931 abc123931 deleted the fix-fromHexStringToBytes branch April 18, 2024 04:41
seratch added a commit that referenced this pull request Apr 18, 2024
@seratch
Copy link
Owner

seratch commented Apr 18, 2024

Thanks again for your contribution! Your change was included in v0.10.10, which I just shipped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants