Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] enable unit-tests #1030

Closed
wants to merge 57 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
8de895c
doc: warn about SuppressDestruct()
addaleax Mar 9, 2021
97a0eb3
fixup
addaleax Mar 9, 2021
1647b21
fixup
addaleax Mar 9, 2021
09f39de
test: dd tests for Function constructors
JoseExposito Mar 10, 2021
cf1c43b
chore: fixup linter commands (#940)
legendecas Mar 22, 2021
e320666
Fix tab indent (#938)
tniessen Mar 22, 2021
666e9ff
doc: sync Object::Set value arg with Value::From (#933)
tniessen Mar 22, 2021
81d41ee
doc: added some warnings for buffer and array buffer factory method. …
NickNaso Mar 22, 2021
d198de0
build: add CI configuration for Windows
NickNaso Mar 24, 2021
5110815
src: rename N-API with Node-API on comments
NickNaso Mar 25, 2021
22c67da
doc: rename N-API with Node-API
RaisinTen Mar 25, 2021
7df5bb4
doc: unambiguously mark deprecated signatures
tniessen Mar 20, 2021
0b7e872
Finished tests relating to fetch property from Global Object
JckXia Jan 26, 2021
bdf0eef
src: added Freeze and Seal method to Object class.
NickNaso Mar 27, 2021
79e0786
Update CONTRIBUTING.md (#966)
mhdawson Apr 9, 2021
837a820
src: add pull request template (#967)
mhdawson Apr 9, 2021
ac71abb
Added badges for Node-API v7 and v8. (#954)
NickNaso Apr 12, 2021
a5280a8
doc: correct struct definition (#969)
RaisinTen Apr 16, 2021
34502c3
fix: key for wapping drawing's system condition (#970)
kecsou Apr 16, 2021
b74908f
test: fix intermittent TSFN crashes
KevinEady Apr 21, 2021
3aad6da
test: rename misspelled parameters
tniessen Apr 20, 2021
ad4cc6f
test: run test suites with helpers
legendecas Apr 23, 2021
c4f1eb7
build: add Node.js v16.x to CI (#983)
legendecas Apr 28, 2021
61236ef
src: return bool on object set and define property (#977)
legendecas Apr 29, 2021
5920f57
src: return bool on object freeze and seal (#991)
legendecas May 7, 2021
a1c102a
test: fix undoc assumptions about the timing of tsfn calls
legendecas May 10, 2021
55af990
doc: fix typo in code example (#997)
tniessen May 14, 2021
9f0605d
docs: add napi-rs iin Other Bindings section (#999)
Brooooooklyn May 14, 2021
8558e96
Prepare release 3.2.0.
NickNaso May 17, 2021
370f55a
Fixed readme for new release.
NickNaso May 28, 2021
02f9ea1
Prepare release 3.2.1.
NickNaso May 28, 2021
c2ec24b
Update version on package.json.
NickNaso May 28, 2021
83e18ae
test: function reference call & construct
legendecas May 24, 2021
c1734a9
src: fix gcc-11 c++20 compilation
KevinEady Jun 11, 2021
4479eac
src: fix Error::ThrowAsJavaScriptException crash
Feb 6, 2021
5d4d358
Prepare release 4.0.0.
NickNaso Jun 15, 2021
cc11d72
src: set default return value of Reference Ref/Unref to 0
legendecas May 23, 2021
92d1af5
doc: update examples for context sensitivity
KevinEady Jun 21, 2021
4f9b270
test: dd check for nullptr inside String init
JckXia Jun 27, 2021
e937efb
test: add first set of symbol tests
JckXia Apr 18, 2021
fe950f6
src,test: fix up null char * exception thrown
gabrielschulhof Jul 9, 2021
6ff72ac
doc: update tests to avoid running in parallel
mhdawson Jul 20, 2021
daf910e
src: add AddCleanupHook
KevinEady Jun 24, 2021
6f79043
src: return Maybe on pending exception when cpp exception disabled
legendecas Aug 3, 2021
ecd9eef
Prepare release 4.1.0.
NickNaso Aug 25, 2021
e9cd96a
test: fixed the way to enable C++ exceptions. (#1061)
NickNaso Sep 3, 2021
7b573b1
doc: fix documentation about how to enable C++ exception (#1059)
NickNaso Sep 3, 2021
309ff88
test: fix errors reported by newer compiler
mhdawson Sep 3, 2021
88ef504
test: standardize unit test file names
Aug 27, 2021
1708851
test: run tests with opts to prefix bld root path
Aug 27, 2021
55edda6
docs: fix typo and formatting (#1062)
strager Sep 10, 2021
0aa256e
docs: fix typos (#1068)
todoroff Sep 14, 2021
c82782f
src: fix casts to not be undefined behavior
addaleax Sep 15, 2021
0ae9de5
src,test: allow creating Function with move-only functor
strager Sep 7, 2021
3de1e38
Prepare release v4.2.0.
NickNaso Sep 17, 2021
764dc00
lint: add eslint based on config-semistandard (#1067)
rubiagatra Sep 17, 2021
23f5625
enable unit tests
Jul 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prepare release 3.2.0.
  • Loading branch information
NickNaso authored and Deepak Rajamohan committed Sep 23, 2021
commit 8558e96b05108cdad4bd5078ce9d6c5d877ba227
84 changes: 84 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,89 @@
# node-addon-api Changelog

## 2021-05-17 Version 3.2.0, @NickNaso

### Notable changes:

#### API

- Remove unnecessary symbol exposure.
- Fixed leak in `Napi::ObjectWrap` instance for getter and setter method.
- Added `Napi::Object::Freeze` and `Napi::object::Seal` methods.
- `Napi::Reference` is now copyable.

#### Documentation

- Added docuemtnation for `Napi::Object::PropertyLValue`.
- Changed all N-API references to Node-API.
- Some minor corrections all over the documentation.

#### TEST

- Added tests relating to fetch property from Global Object.
- Added addtiona tests for `Napi::Object`.
- Added test for `Napi::Function` contructors.
- Fixed intermittent failure for `Napi::ThreadSafeFunction` test.
- Some minor corrections all over the test suite.

### TOOL

- Added Node.js v16.x to CI.
- Added CI configuration for Windows.
- Some fixex on linter command.

### Commits

* [[`52721312f6`](https://github.com/nodejs/node-addon-api/commit/52721312f6)] - **docs**: add napi-rs iin Other Bindings section (#999) (LongYinan)
* [[`78a6570a42`](https://github.com/nodejs/node-addon-api/commit/78a6570a42)] - **doc**: fix typo in code example (#997) (Tobias Nießen)
* [[`da3bd5778f`](https://github.com/nodejs/node-addon-api/commit/da3bd5778f)] - **test**: fix undoc assumptions about the timing of tsfn calls (legendecas) [#995](https://github.com/nodejs/node-addon-api/pull/995)
* [[`410cf6a81e`](https://github.com/nodejs/node-addon-api/commit/410cf6a81e)] - **src**: return bool on object freeze and seal (#991) (legendecas)
* [[`93f1898312`](https://github.com/nodejs/node-addon-api/commit/93f1898312)] - **src**: return bool on object set and define property (#977) (legendecas)
* [[`331c2ee274`](https://github.com/nodejs/node-addon-api/commit/331c2ee274)] - **build**: add Node.js v16.x to CI (#983) (legendecas)
* [[`b6f5eb15e6`](https://github.com/nodejs/node-addon-api/commit/b6f5eb15e6)] - **test**: run test suites with helpers (legendecas) [#976](https://github.com/nodejs/node-addon-api/pull/976)
* [[`fbcdf00ea0`](https://github.com/nodejs/node-addon-api/commit/fbcdf00ea0)] - **test**: rename misspelled parameters (Tobias Nießen) [#973](https://github.com/nodejs/node-addon-api/pull/973)
* [[`63a6c32e80`](https://github.com/nodejs/node-addon-api/commit/63a6c32e80)] - **test**: fix intermittent TSFN crashes (Kevin Eady) [#974](https://github.com/nodejs/node-addon-api/pull/974)
* [[`8f120b033f`](https://github.com/nodejs/node-addon-api/commit/8f120b033f)] - **fix**: key for wapping drawing's system condition (#970) (Kévin VOYER)
* [[`1c9d528d66`](https://github.com/nodejs/node-addon-api/commit/1c9d528d66)] - **doc**: correct struct definition (#969) (Darshan Sen)
* [[`5e64d1fa61`](https://github.com/nodejs/node-addon-api/commit/5e64d1fa61)] - Added badges for Node-API v7 and v8. (#954) (Nicola Del Gobbo)
* [[`6ce629b3fa`](https://github.com/nodejs/node-addon-api/commit/6ce629b3fa)] - **src**: add pull request template (#967) (Michael Dawson)
* [[`98126661af`](https://github.com/nodejs/node-addon-api/commit/98126661af)] - Update CONTRIBUTING.md (#966) (Michael Dawson)
* [[`77350eee98`](https://github.com/nodejs/node-addon-api/commit/77350eee98)] - **src**: added Freeze and Seal method to Object class. (NickNaso) [#955](https://github.com/nodejs/node-addon-api/pull/955)
* [[`bc5147cc4a`](https://github.com/nodejs/node-addon-api/commit/bc5147cc4a)] - Finished tests relating to fetch property from Global Object (JckXia)
* [[`0127813111`](https://github.com/nodejs/node-addon-api/commit/0127813111)] - **doc**: unambiguously mark deprecated signatures (Tobias Nießen) [#942](https://github.com/nodejs/node-addon-api/pull/942)
* [[`787e216105`](https://github.com/nodejs/node-addon-api/commit/787e216105)] - **doc**: rename N-API with Node-API (Darshan Sen) [#951](https://github.com/nodejs/node-addon-api/pull/951)
* [[`628023689a`](https://github.com/nodejs/node-addon-api/commit/628023689a)] - **src**: rename N-API with Node-API on comments (NickNaso) [#953](https://github.com/nodejs/node-addon-api/pull/953)
* [[`5c6391578f`](https://github.com/nodejs/node-addon-api/commit/5c6391578f)] - **build**: add CI configuration for Windows (NickNaso) [#948](https://github.com/nodejs/node-addon-api/pull/948)
* [[`8ef07251ec`](https://github.com/nodejs/node-addon-api/commit/8ef07251ec)] - **doc**: added some warnings for buffer and array buffer factory method. (#929) (Nicola Del Gobbo)
* [[`6490b1f730`](https://github.com/nodejs/node-addon-api/commit/6490b1f730)] - **doc**: sync Object::Set value arg with Value::From (#933) (Tobias Nießen)
* [[`7319a0d7a2`](https://github.com/nodejs/node-addon-api/commit/7319a0d7a2)] - Fix tab indent (#938) (Tobias Nießen)
* [[`1916cb937e`](https://github.com/nodejs/node-addon-api/commit/1916cb937e)] - **chore**: fixup linter commands (#940) (legendecas)
* [[`fc4585fa23`](https://github.com/nodejs/node-addon-api/commit/fc4585fa23)] - **test**: dd tests for Function constructors (JoseExposito) [#937](https://github.com/nodejs/node-addon-api/pull/937)
* [[`87b7aae469`](https://github.com/nodejs/node-addon-api/commit/87b7aae469)] - **doc**: warn about SuppressDestruct() (#926) (Anna Henningsen)
* [[`71494a49a3`](https://github.com/nodejs/node-addon-api/commit/71494a49a3)] - **src,doc**: refactor to replace typedefs with usings (Darshan Sen) [#910](https://github.com/nodejs/node-addon-api/pull/910)
* [[`298ff8d9d2`](https://github.com/nodejs/node-addon-api/commit/298ff8d9d2)] - **test**: add additional tests for Object (JoseExposito) [#923](https://github.com/nodejs/node-addon-api/pull/923)
* [[`8a1147b430`](https://github.com/nodejs/node-addon-api/commit/8a1147b430)] - **revert**: src: add additional tests for Function (Michael Dawson)
* [[`bb56ffaa6f`](https://github.com/nodejs/node-addon-api/commit/bb56ffaa6f)] - **doc**: fix documentation for object api (Nicola Del Gobbo) [#931](https://github.com/nodejs/node-addon-api/pull/931)
* [[`3b8bddab49`](https://github.com/nodejs/node-addon-api/commit/3b8bddab49)] - **src**: add additional tests for Function (José Expósito) [#928](https://github.com/nodejs/node-addon-api/pull/928)
* [[`74ab50c775`](https://github.com/nodejs/node-addon-api/commit/74ab50c775)] - **src**: allow references to be copyable in APIs (legendecas) [#915](https://github.com/nodejs/node-addon-api/pull/915)
* [[`929709d0fe`](https://github.com/nodejs/node-addon-api/commit/929709d0fe)] - **doc**: add propertylvalue.md (#925) (Gabriel Schulhof)
* [[`69d0d98be4`](https://github.com/nodejs/node-addon-api/commit/69d0d98be4)] - fixup (Anna Henningsen)
* [[`46e41d961b`](https://github.com/nodejs/node-addon-api/commit/46e41d961b)] - fixup (Anna Henningsen)
* [[`1af1642fb7`](https://github.com/nodejs/node-addon-api/commit/1af1642fb7)] - **doc**: warn about SuppressDestruct() (Anna Henningsen)
* [[`12c548b2ff`](https://github.com/nodejs/node-addon-api/commit/12c548b2ff)] - **tools**: fix error detection (#914) (Darshan Sen)
* [[`458d895d5b`](https://github.com/nodejs/node-addon-api/commit/458d895d5b)] - **packaging**: list files to be published to npm (Lovell Fuller) [#889](https://github.com/nodejs/node-addon-api/pull/889)
* [[`f7ed2490d4`](https://github.com/nodejs/node-addon-api/commit/f7ed2490d4)] - **test**: remove outdated V8 flag (Darshan Sen) [#895](https://github.com/nodejs/node-addon-api/pull/895)
* [[`a575a6ec60`](https://github.com/nodejs/node-addon-api/commit/a575a6ec60)] - **src**: fix leak in ObjectWrap instance set/getters (Kevin Eady) [#899](https://github.com/nodejs/node-addon-api/pull/899)
* [[`b6e844e0b0`](https://github.com/nodejs/node-addon-api/commit/b6e844e0b0)] - **doc**: fix spelling of "targeted" and "targeting" (#904) (Tobias Nießen)
* [[`4d856f6e91`](https://github.com/nodejs/node-addon-api/commit/4d856f6e91)] - **src**: remove unnecessary symbol exposure (Gabriel Schulhof) [#896](https://github.com/nodejs/node-addon-api/pull/896)
* [[`f35bb7d0d7`](https://github.com/nodejs/node-addon-api/commit/f35bb7d0d7)] - **doc**: Update GitHub URL references from 'master' to 'HEAD' (#898) (Jim Schlight)
* [[`286ae215d1`](https://github.com/nodejs/node-addon-api/commit/286ae215d1)] - Add warning about branch rename (Michael Dawson)
* [[`a4a7b28288`](https://github.com/nodejs/node-addon-api/commit/a4a7b28288)] - Update branch references from master to main (#886) (Jim Schlight)
* [[`a2ad0a107a`](https://github.com/nodejs/node-addon-api/commit/a2ad0a107a)] - **docs**: add NAN to N-API resource link (#880) (kidneysolo)
* [[`1c040eeb63`](https://github.com/nodejs/node-addon-api/commit/1c040eeb63)] - **test**: load testModules automatically (raisinten) [#876](https://github.com/nodejs/node-addon-api/pull/876)
* [[`bf478e4496`](https://github.com/nodejs/node-addon-api/commit/bf478e4496)] - **src**: use NAPI\_NOEXCEPT macro instead of noexcept (NickNaso) [#864](https://github.com/nodejs/node-addon-api/pull/864)
* [[`744705f2eb`](https://github.com/nodejs/node-addon-api/commit/744705f2eb)] - **test**: refactor remove repeated execution index.js (raisinten) [#839](https://github.com/nodejs/node-addon-api/pull/839)
* [[`db62e3c811`](https://github.com/nodejs/node-addon-api/commit/db62e3c811)] - Update team members (Michael Dawson)

## 2020-12-17 Version 3.1.0, @NickNaso

### Notable changes:
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ and node-addon-api.
- **[Contributors](#contributors)**
- **[License](#license)**

## **Current version: 3.1.0**
## **Current version: 3.2.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)
18 changes: 17 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -115,6 +115,10 @@
"name": "ikokostya",
"url": "https://github.com/ikokostya"
},
{
"name": "Jack Xia",
"url": "https://github.com/JckXia"
},
{
"name": "Jake Barnes",
"url": "https://github.com/DuBistKomisch"
@@ -139,6 +143,10 @@
"name": "Jinho Bang",
"url": "https://github.com/romandev"
},
{
"name": "José Expósito",
"url": "https://github.com/JoseExposito"
},
{
"name": "joshgarde",
"url": "https://github.com/joshgarde"
@@ -155,6 +163,10 @@
"name": "Kevin Eady",
"url": "https://github.com/KevinEady"
},
{
"name": "Kévin VOYER",
"url": "https://github.com/kecsou"
},
{
"name": "kidneysolo",
"url": "https://github.com/kidneysolo"
@@ -175,6 +187,10 @@
"name": "legendecas",
"url": "https://github.com/legendecas"
},
{
"name": "LongYinan",
"url": "https://github.com/Brooooooklyn"
},
{
"name": "Lovell Fuller",
"url": "https://github.com/lovell"
@@ -347,6 +363,6 @@
"lint:fix": "node tools/clang-format --fix"
},
"pre-commit": "lint",
"version": "3.1.0",
"version": "3.2.0",
"support": true
}