diff --git a/CHANGELOG.md b/CHANGELOG.md index 12b04f2e0..3b1fde44f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # node-addon-api Changelog +## 2021-06-15 Version 4.0.0, @NickNaso + +### Notable changes: + +#### API + +- Fixed a crashing issue in `Napi::Error::ThrowAsJavaScriptException` +introducing the preprocessor directive `NODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS`. +- Fixed compilation problem for GCC 11 and C++20. + +#### TEST + +- Added test for function reference call and contructor. + +### Documentation + +- Updated the oldest Node.js version supported from `10.x` to `12.x`. + +### Commits + +* [[`028107f686`](https://github.com/nodejs/node-addon-api/commit/028107f686)] - **src**: fix Error::ThrowAsJavaScriptException crash (rudolftam) [#975](https://github.com/nodejs/node-addon-api/pull/975) +* [[`fed13534c5`](https://github.com/nodejs/node-addon-api/commit/fed13534c5)] - **src**: fix gcc-11 c++20 compilation (Kevin Eady) [#1009](https://github.com/nodejs/node-addon-api/pull/1009) +* [[`b75afc4d29`](https://github.com/nodejs/node-addon-api/commit/b75afc4d29)] - **test**: function reference call & construct (legendecas) [#1005](https://github.com/nodejs/node-addon-api/pull/1005) + ## 2021-05-28 Version 3.2.1, @NickNaso ### Notable changes: diff --git a/README.md b/README.md index 46f0ee5e6..a1fabea39 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ and node-addon-api. - **[Contributors](#contributors)** - **[License](#license)** -## **Current version: 3.2.1** +## **Current version: 4.0.0** (See [CHANGELOG.md](CHANGELOG.md) for complete Changelog) @@ -83,7 +83,7 @@ This allows addons built with it to run with Node.js versions which support the **However** the node-addon-api support model is to support only the active LTS Node.js versions. This means that every year there will be a new major which drops support for the Node.js LTS version which has gone out of service. -The oldest Node.js version supported by the current version of node-addon-api is Node.js 10.x. +The oldest Node.js version supported by the current version of node-addon-api is Node.js 12.x. ## Setup - [Installation and usage](doc/setup.md) diff --git a/package.json b/package.json index 6c8da4f51..ad61cc1dc 100644 --- a/package.json +++ b/package.json @@ -363,6 +363,6 @@ "lint:fix": "node tools/clang-format --fix" }, "pre-commit": "lint", - "version": "3.2.1", + "version": "4.0.0", "support": true }