Experience-Monks / Experience-Monks/babel-plugin-static-fs
Fix Buffer Deprecation Warnings
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 35
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Node version: 12.11
Deprecation message:
DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
I think the issue is self-explanatory, we can probably use Buffer.from instead and it should address this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Search the repository for deprecated Buffer() calls and inspect each usage to determine whether Buffer.from, Buffer.alloc, or Buffer.allocUnsafe is appropriate. Run the existing test suite under Node 12.11 and confirm that the deprecation warning no longer appears without changing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100