question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

new Buffer(size) got deprecated

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
derhuerstcommented, Oct 17, 2018

You could also just raise to 6, which is LTS and still being maintained. Some well-known npm lib authors have done this recently.

0reactions
jaller94commented, Oct 18, 2018

@derhuerst Thank you so much for your input. I believe that the current decision is better than my previous judgment thanks to your posts.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Buffer() is deprecated due to security and usability issues ...
According to the deprecation warning new Buffer() should be replaced with one of: Buffer.alloc(); Buffer.allocUnsafe() or; Buffer.from().
Read more >
Porting to the Buffer.from() / Buffer.alloc() API
This guide explains how to migrate to safe Buffer constructor methods. The migration fixes the following deprecation warning: The Buffer() and new Buffer() ......
Read more >
Avoid using Buffer deprecated APIs | CAST Appmarq
The Buffer() function and new Buffer() constructor are deprecated due to API usability ... allocUnsafe(size) - Create a Buffer with uninitialized memory.
Read more >
Understanding the Buffer Deprecation in Node.js 10
Deprecating the Buffer constructor came back into the conversation recently because improper usage of the Buffer constructor is still a path to ...
Read more >
ScriptProcessorNode.bufferSize - Web APIs - MDN Web Docs
The bufferSize property of the ScriptProcessorNode interface returns an integer ... Deprecated: This feature is no longer recommended.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found