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

fix(lib): replace deprecated buf.slice() to buf. subarray() #781

Merged
merged 1 commit into from Jan 23, 2024

Conversation

ckng0221
Copy link
Contributor

@ckng0221 ckng0221 commented Nov 7, 2023

fix(lib): replace deprecated buf.slice() to buf. subarray()

The buf.slice() method in Buffer class is deprecated
in Node.js since v16.15.0.
Replace the deprecated buf.slice() method to buf.subarray()
in the decrypt function.

Refs: https://nodejs.org/api/buffer.html#bufslicestart-end

The buf.slice() method in Buffer class is deprecated
in Node.js since `v16.15.0.`.

Refs:  https://nodejs.org/api/buffer.html#bufslicestart-end
@ckng0221 ckng0221 changed the title Replace deprecated buf.slice() to buf.subarray() fix(lib): replace deprecated buf.slice() to buf. subarray() Nov 11, 2023
@motdotla motdotla merged commit b9e729a into motdotla:master Jan 23, 2024
5 checks passed
@ckng0221 ckng0221 deleted the deprecation-fix branch January 23, 2024 07:33
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.

None yet

2 participants