ryanbreen/node-pingdom

Library does not follow node idiomatic error first callback

Closed this issue · 5 comments

All libraries in node return the error first in the callback, then the response. This module returns an array with the error or the response which is not friendly with other modules like async or syncho that expects an error first in the callback.

Yep, this is poorly done. I'll fix it soon.

I can submit a PR if you want but I don't see how this fix could be backward compatible.

It definitely won't be, but it's the right thing to do. If you want to submit a PR, I'll be happy to take a look

I published this to NPM with a new major number to signify that it's a breaking change.

Awesome. Thanks for the fast follow-up!

On Mon, Nov 10, 2014 at 3:09 PM, Ryan Breen notifications@github.com
wrote:

I published this to NPM with a new major number to signify that it's a
breaking change.


Reply to this email directly or view it on GitHub
#4 (comment)
.