mattinsler/longjohn

util.isFunction not available in older versions of Node

Opened this issue · 0 comments

Noticed that the latest release (0.2.10) is using util.isFunction in the code. Problem is that if you are running Node 0.10.x, this function is not available in the util package.

Seems like this latest version is not a backwards-compatible patch and should be a major version. Also, the node engine attribute in package.json should be bumped up to note that Longjohn will only work when running Node > 4.x. (I don't think util.isFunction was added until 4.x).