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

use buffer 3.0.0 #1040

Closed
wants to merge 1 commit into from
Closed

use buffer 3.0.0 #1040

wants to merge 1 commit into from

Conversation

feross
Copy link
Member

@feross feross commented Dec 24, 2014

New Buffer major version: 3.0.0

It has some breaking changes, but they improve compatibility with node!
The whole node buffer test suite passes now, thanks to @jessetane!

  • toString('ascii') and slice('ascii') work correctly (strip off high order bits)
  • correct exception types thrown (RangeError instead of TypeError in many places)
  • do not encode partial code units to utf16
  • do not encode partial or invalid code points to utf8
  • copy() correctly returns length

New Buffer major version: 3.0.0

It has some breaking changes, but they improve compatibility with node!
The whole node buffer test suite passes now, thanks to @jessetane!

- toString('ascii') and slice('ascii') work correctly (strip off high
order bits)
- correct exception types thrown (RangeError instead of TypeError in
many places)
- do not encode partial code units to utf16
- do not encode partial or invalid code points to utf8
- copy() correctly returns length
@ghost
Copy link

ghost commented Dec 24, 2014

Thanks for the patch! All upgraded in 7.1.0.

@ghost ghost closed this Dec 24, 2014
@feross
Copy link
Member Author

feross commented Dec 24, 2014

Relevant PR here, for those interested: feross/buffer#51

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant