Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Use safe-buffer to allow Node 4.0 #15

Merged
merged 1 commit into from
Jun 4, 2017

Conversation

reconbot
Copy link
Contributor

SafeBuffer is a polyfill that provides .from (among other new Buffer methods) when needed. Node 4x is still in pretty wide use and supported until 2018-04-01. I think it's worth attempting to support all of 4 especially if its not too much trouble.

I named the Buffer.from calls SafeBuffer.from to satisfy the linter's no-shadow settings. That's a shadow I might allow to keep the code cleaner.

SafeBuffer is a polyfill that provides `.from` (among other new Buffer methods) when needed. Node 4x is still in pretty wide use and supported until 2018-04-01. I think it's worth attempting to support all of 4 especially if its not too much trouble.

I named the `Buffer.from` calls `SafeBuffer.from` to satisfy the linter's no-shadow settings. That's a shadow I might allow to keep the code cleaner.
@novemberborn novemberborn force-pushed the node-4-support branch 2 times, most recently from 969fa4f to 05e6080 Compare June 4, 2017 16:19
@novemberborn novemberborn merged commit a032929 into novemberborn:master Jun 4, 2017
@novemberborn
Copy link
Owner

Thanks for pushing this @reconbot!

@reconbot reconbot deleted the node-4-support branch June 4, 2017 16:30
@reconbot
Copy link
Contributor Author

reconbot commented Jun 4, 2017

And thank you for landing it =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants