Experience-Monks / Experience-Monks/babel-plugin-static-fs

Fix Buffer Deprecation Warnings

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.