The current version fails to build when using node 22. Updating the nan dependency to the latest version fixes this.