Skip to content

Commit 7ec9741

Browse files
committed
Merge remote-tracking branch 'upstream/master' into contexted-tsfn-api-gcc-4
2 parents b54f5eb + f5fad23 commit 7ec9741

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1453
-1586
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/build
33
/benchmark/build
44
/benchmark/src
5+
/test/addon_build/addons

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
11
# node-addon-api Changelog
22

3+
## 2020-09-18 Version 3.0.2, @NickNaso
4+
5+
### Notable changes:
6+
7+
#### API
8+
9+
- Introduced `include_dir` for use with **gyp** in a scalar context.
10+
- Added `Napi::Addon` to help handle the loading of a native add-on into
11+
multiple threads and or multiple times in the same thread.
12+
- Concentrate callbacks provided to core N-API.
13+
- Make sure wrapcallback is used.
14+
15+
#### Documentation
16+
17+
- Added documentation for `Napi::Addon`.
18+
- Added documentation that reports the full class hierarchy.
19+
- Added link to N-API tutorial website.
20+
- Some minor corrections all over the documentation.
21+
22+
#### TEST
23+
24+
- Added tests to check the build process.
25+
- Refactored test for threasfafe function using async/await.
26+
- Converted tests that gc into async functions that await 10 ticks after
27+
each gc.
28+
- Some minor corrections all over the test suite.
29+
30+
### Commits
31+
32+
* [[`51e25f7c39`](https://github.com/nodejs/node-addon-api/commit/51e25f7c39)] - **doc**: remove a file (#815) (Gabriel Schulhof)
33+
* [[`8c9f1809a2`](https://github.com/nodejs/node-addon-api/commit/8c9f1809a2)] - **doc**: add inheritance links and other changes (Gabriel Schulhof) [#798](https://github.com/nodejs/node-addon-api/pull/798)
34+
* [[`6562e6b0ab`](https://github.com/nodejs/node-addon-api/commit/6562e6b0ab)] - **test**: added tests to check the build process (NickNaso) [#808](https://github.com/nodejs/node-addon-api/pull/808)
35+
* [[`a13b36c96e`](https://github.com/nodejs/node-addon-api/commit/a13b36c96e)] - **test**: fix the threasfafe function test (NickNaso) [#807](https://github.com/nodejs/node-addon-api/pull/807)
36+
* [[`f27623ff61`](https://github.com/nodejs/node-addon-api/commit/f27623ff61)] - **build**: introduce include\_dir (Lovell Fuller) [#766](https://github.com/nodejs/node-addon-api/pull/766)
37+
* [[`9aceea71fc`](https://github.com/nodejs/node-addon-api/commit/9aceea71fc)] - **src**: concentrate callbacks provided to core N-API (Gabriel Schulhof) [#786](https://github.com/nodejs/node-addon-api/pull/786)
38+
* [[`2bc45bbffd`](https://github.com/nodejs/node-addon-api/commit/2bc45bbffd)] - **test**: refactor test to use async/await (Velmisov) [#787](https://github.com/nodejs/node-addon-api/pull/787)
39+
* [[`518cfdcdc1`](https://github.com/nodejs/node-addon-api/commit/518cfdcdc1)] - **test**: test ObjectWrap destructor - no HandleScope (David Halls) [#729](https://github.com/nodejs/node-addon-api/pull/729)
40+
* [[`c2cbbd9191`](https://github.com/nodejs/node-addon-api/commit/c2cbbd9191)] - **doc**: add link to n-api tutorial website (#794) (Jim Schlight) [#794](https://github.com/nodejs/node-addon-api/pull/794)
41+
* [[`1c2a8d59b5`](https://github.com/nodejs/node-addon-api/commit/1c2a8d59b5)] - **doc**: Added required return to example (#793) (pacop) [#793](https://github.com/nodejs/node-addon-api/pull/793)
42+
* [[`cec2c76941`](https://github.com/nodejs/node-addon-api/commit/cec2c76941)] - **src**: wrap finalizer callback (Gabriel Schulhof) [#762](https://github.com/nodejs/node-addon-api/pull/762)
43+
* [[`4ce40d22a6`](https://github.com/nodejs/node-addon-api/commit/4ce40d22a6)] - **test**: use assert.strictEqual() (Koki Nishihara) [#777](https://github.com/nodejs/node-addon-api/pull/777)
44+
* [[`461e3640c6`](https://github.com/nodejs/node-addon-api/commit/461e3640c6)] - **test**: string tests together (Gabriel Schulhof) [#773](https://github.com/nodejs/node-addon-api/pull/773)
45+
* [[`5af645f649`](https://github.com/nodejs/node-addon-api/commit/5af645f649)] - **src**: add Addon\<T\> class (Gabriel Schulhof) [#749](https://github.com/nodejs/node-addon-api/pull/749)
46+
* [[`6148fb4bcc`](https://github.com/nodejs/node-addon-api/commit/6148fb4bcc)] - Synchronise Node.js versions in Appveyor Windows CI with Travis (#768) (Lovell Fuller)
47+
348
## 2020-07-13 Version 3.0.1, @NickNaso
449

550
### Notable changes:

README.md

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ APIs exposed by node-addon-api are generally used to create and
3737
manipulate JavaScript values. Concepts and operations generally map
3838
to ideas specified in the **ECMA262 Language Specification**.
3939

40+
The [N-API Resource](http://nodejs.github.io/node-addon-examples/) offers an
41+
excellent orientation and tips for developers just getting started with N-API
42+
and node-addon-api.
43+
4044
- **[Setup](#setup)**
4145
- **[API Documentation](#api)**
4246
- **[Examples](#examples)**
@@ -47,7 +51,7 @@ to ideas specified in the **ECMA262 Language Specification**.
4751
- **[Contributors](#contributors)**
4852
- **[License](#license)**
4953

50-
## **Current version: 3.0.1**
54+
## **Current version: 3.0.2**
5155

5256
(See [CHANGELOG.md](CHANGELOG.md) for complete Changelog)
5357

@@ -77,32 +81,25 @@ The oldest Node.js version supported by the current version of node-addon-api is
7781

7882
The following is the documentation for node-addon-api.
7983

84+
- [Full Class Hierarchy](doc/hierarchy.md)
8085
- [Addon Structure](doc/addon.md)
81-
- [Basic Types](doc/basic_types.md)
82-
- [Array](doc/basic_types.md#array)
83-
- [Symbol](doc/symbol.md)
84-
- [String](doc/string.md)
85-
- [Name](doc/basic_types.md#name)
86-
- [Number](doc/number.md)
87-
- [Date](doc/date.md)
88-
- [BigInt](doc/bigint.md)
89-
- [Boolean](doc/boolean.md)
86+
- Data Types:
9087
- [Env](doc/env.md)
91-
- [Value](doc/value.md)
9288
- [CallbackInfo](doc/callbackinfo.md)
9389
- [Reference](doc/reference.md)
94-
- [External](doc/external.md)
95-
- [Object](doc/object.md)
96-
- [ObjectReference](doc/object_reference.md)
97-
- [PropertyDescriptor](doc/property_descriptor.md)
98-
- [Error Handling](doc/error_handling.md)
99-
- [Error](doc/error.md)
100-
- [TypeError](doc/type_error.md)
101-
- [RangeError](doc/range_error.md)
102-
- [Object Lifetime Management](doc/object_lifetime_management.md)
103-
- [HandleScope](doc/handle_scope.md)
104-
- [EscapableHandleScope](doc/escapable_handle_scope.md)
105-
- [Working with JavaScript Values](doc/working_with_javascript_values.md)
90+
- [Value](doc/value.md)
91+
- [Name](doc/name.md)
92+
- [Symbol](doc/symbol.md)
93+
- [String](doc/string.md)
94+
- [Number](doc/number.md)
95+
- [Date](doc/date.md)
96+
- [BigInt](doc/bigint.md)
97+
- [Boolean](doc/boolean.md)
98+
- [External](doc/external.md)
99+
- [Object](doc/object.md)
100+
- [Array](doc/array.md)
101+
- [ObjectReference](doc/object_reference.md)
102+
- [PropertyDescriptor](doc/property_descriptor.md)
106103
- [Function](doc/function.md)
107104
- [FunctionReference](doc/function_reference.md)
108105
- [ObjectWrap](doc/object_wrap.md)
@@ -112,6 +109,13 @@ The following is the documentation for node-addon-api.
112109
- [TypedArray](doc/typed_array.md)
113110
- [TypedArrayOf](doc/typed_array_of.md)
114111
- [DataView](doc/dataview.md)
112+
- [Error Handling](doc/error_handling.md)
113+
- [Error](doc/error.md)
114+
- [TypeError](doc/type_error.md)
115+
- [RangeError](doc/range_error.md)
116+
- [Object Lifetime Management](doc/object_lifetime_management.md)
117+
- [HandleScope](doc/handle_scope.md)
118+
- [EscapableHandleScope](doc/escapable_handle_scope.md)
115119
- [Memory Management](doc/memory_management.md)
116120
- [Async Operations](doc/async_operations.md)
117121
- [AsyncWorker](doc/async_worker.md)

0 commit comments

Comments
 (0)