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

Buffer deprecated warning #3

Open
sandy081 opened this issue Dec 9, 2019 · 5 comments
Open

Buffer deprecated warning #3

sandy081 opened this issue Dec 9, 2019 · 5 comments

Comments

@sandy081
Copy link

sandy081 commented Dec 9, 2019

I am developer from VS Code and we are using the module yauzl v2.9.2 which depends on this module and it throws following warning.

internal/process/warning.js:127
      throw warning;
      ^

DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    at showFlaggedDeprecation (buffer.js:156:11)
    at new Buffer (buffer.js:171:3)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar/fd-slicer/index.js:109:18
    at pendGo (/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar/pend/index.js:54:3)
    at onCb (/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar/pend/index.js:41:7)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar/fd-slicer/index.js:31:7
    at FSReqCallback.wrapper [as oncomplete] (fs.js:477:5) {
  name: 'DeprecationWarning',
  code: 'DEP0005'
}

thejoshwolfe/yauzl#114
microsoft/vscode#82524

@paya-cz
Copy link

paya-cz commented Jul 28, 2021

This is rather annoying, especially given how easy it is to fix.

@Reemh
Copy link

Reemh commented Aug 23, 2022

Hi @andrewrk ,
Is it possible to get this fixed? There's already a PR open with the fix and it's affecting many users.

@AerunDev
Copy link

Any update?

@TonyValenti
Copy link

@andrewrk - Can you please fix this? It causes warnings in VSCode.

@dassaswat
Copy link

@andrewrk - Any update? Its throwing warnings in the terminal.

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 a pull request may close this issue.

6 participants