developmentseed / developmentseed/scoreboard

Node deprecation warning in `yarn seed`: Buffer() is deprecated due to security and usability issues.

Open
#478 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
27
Forks
8
PR merge metrics
No merged PRs in 30d

Description

This may be coming from `lib/vendor/pdfkit.js` but I am not sure

```
> yarn seed
yarn run v1.21.1
$ knex seed:run --cwd api/src/db
Working directory changed to ~/repos/scoreboard/api/src/db
Using environment: development
(node:10453) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
```

Contributor guide

Open the contributing guide

Research direction

Run `yarn seed` to reproduce the deprecation warning, then inspect `lib/vendor/pdfkit.js` and trace whether it is responsible. Done means identifying the source of the warning and updating the relevant code so the seed command no longer emits it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.