"With Node.js 4.0.0 Nan took the chance to do some refactoring and also bumped its version from 1.x to 2.x, introducing breaking changes." (source)
Useful info for migration:
nodejs/nan#402
nodejs/nan#371 (comment)
https://nodesource.com/blog/cpp-addons-for-nodejs-v4