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() is Deprecated #40

Open
kevjames3 opened this issue Jan 13, 2021 · 3 comments
Open

Buffer() is Deprecated #40

kevjames3 opened this issue Jan 13, 2021 · 3 comments

Comments

@kevjames3
Copy link

On version: 0.5.0, node version 12.13.0.

Warning that shows up:

DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Replicated from calling wkx.Geometry.parseGeoJSON(data).toWkb().toString('base64')

No stack trace, but this usually because the code is using new Buffer(), simply swapping it over to Buffer.from() is more than enough

@kevjames3 kevjames3 changed the title Buffer is Deprecated Buffer() is Deprecated Jan 13, 2021
@dehmer
Copy link

dehmer commented Mar 25, 2021

PR: #42

@braco
Copy link

braco commented Oct 6, 2022

Buffer also isn't polyfilled by webpack anymore, and the build seems broken in browser.

@cschwarz is this repo abandoned?

@convers39
Copy link

@braco
same issue, you need to import you own polyfill

https://github.com/feross/buffer

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

No branches or pull requests

4 participants