Closed kylekatarnls closed 7 years ago
Buffer.alloc
was backported to v4.
Our project is locked in 4.4.5 right now and so I get Buffer.alloc is undefined
Hi, for quick fix, this can be done before requiring to-ico:
Buffer.alloc || (Buffer.alloc = function (size, fill, encoding) {
return new Buffer(size, fill, encoding);
})
But even if you don't plan to fix 4.0 to 4.4 compatibility, maybe you should update package.json to match requirements. And so if backward compability break, it should not be a patch number version increment, it should be new major version according to http://semver.org/ or at least minor.
Hi, did you reconsider the question?
Hi,
I just downloaded to-ico but the last version included Buffer.alloc that is not compatible with the node version 4 you're supposed to support according to your package.json.
Please consider revert this modification to keep backward compatibility (pull request #14).
Thanks,