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

feat: replace buffer with uint8array #189

Merged
merged 3 commits into from Oct 24, 2023
Merged

feat: replace buffer with uint8array #189

merged 3 commits into from Oct 24, 2023

Conversation

dreamorosi
Copy link
Contributor

@dreamorosi dreamorosi commented Oct 24, 2023

Fixes #188

This PR replaces usage of Buffer in favor of Uint8Array. This is done by taking a dependency on the uint8array-extras package.

I verified that the tests are passing locally and I have update the documentation in the docstrings & README file.

source/index.ts Outdated Show resolved Hide resolved
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
@dreamorosi
Copy link
Contributor Author

I see that the checks for Node.js 14 are failing. Looking at the error it seems that the non compatible code comes from the uint8array-extras package at this line.

@sindresorhus sindresorhus merged commit ddcfa1d into sindresorhus:main Oct 24, 2023
4 of 6 checks passed
@sindresorhus
Copy link
Owner

Thanks :)

@sindresorhus
Copy link
Owner

I see that the checks for Node.js 14 are failing. Looking at the error it seems that the non compatible code comes from the uint8array-extras package at this line.

I'm going to require Node.js 18.

Eneris pushed a commit to Eneris/conf that referenced this pull request Dec 6, 2023
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
(cherry picked from commit ddcfa1d)
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.

Switch from Buffer to Uint8Array
2 participants