V0.3.0 compatibility #15

2 commits merged into from Feb 23, 2011


None yet
1 participant

TooTallNate commented Nov 2, 2010

This is what was needed to support node's v0.3 API (specifically, the rename from sys to util). It remains backwards compatible with the v0.2 branch.

TooTallNate added some commits Nov 2, 2010

@TooTallNate TooTallNate Fix 'stringToBuffer'.
`Buffer#utf8Write(str)`, was private API, and seems to have been removed in Node >v0.3.0.
Using `Buffer#write(str, 'utf8')` is the preferred way, and remains backwards compatible.
@TooTallNate TooTallNate Detect for 'util', and use it if it's there. Otherwise fall back to '…

This is the recommended check by isaacs.

TooTallNate commented Nov 2, 2010

Actually, because of this Node commit made a couple hours ago, 2415405 is no longer necessary. It doesn't hurt, nonetheless...

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment