diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e29c71f..81c3dce7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog -## Unreleased +## [6.0.0] - 2023-09-27 + +- Fix segfault exposed due to node api implementation changes [#259](https://github.com/infinyon/node-bindgen/pull/259) ## [5.1.0] - 2023-01-24 ### Improvements diff --git a/README.md b/README.md index 00f4159e..c3c1db30 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ # Compatibility with Node.js version -This project uses the v7 of Node N-API. Please see following [compatibility](https://nodejs.org/api/n-api.html#n_api_n_api_version_matrix) matrix. +This project uses the v8 of Node N-API. Please see following [compatibility](https://nodejs.org/api/n-api.html#n_api_n_api_version_matrix) matrix. Following OS are supported: * Linux @@ -81,13 +81,13 @@ Add two dependencies to your projects' ```Cargo.toml```. Add ```node-bindgen``` as a regular dependency (as below): ``` [dependencies] -node-bindgen = { version = "5.1" } +node-bindgen = { version = "6.0" } ``` Then add ```node-bindgen```'s procedure macro to your build-dependencies as below: ``` [build-dependencies] -node-bindgen = { version = "5.1", features = ["build"] } +node-bindgen = { version = "6.0", features = ["build"] } ``` Then update crate type to ```cdylib``` to generate node.js compatible native module: @@ -155,7 +155,7 @@ Then in the Node.js, rust function can be invoked as normal node.js function: ```js $ node -Welcome to Node.js v14.0.0. +Welcome to Node.js v18.18.0. Type ".help" for more information. > let addon = require('./dist'); undefined