node-addon-api 2.0.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.clang-format +111 -0
- package/.github/workflows/ci.yml +55 -0
- package/.github/workflows/linter.yml +24 -0
- package/.github/workflows/stale.yml +18 -0
- package/.travis.yml +1 -5
- package/CHANGELOG.md +237 -23
- package/README.md +101 -31
- package/appveyor.yml +3 -14
- package/benchmark/README.md +47 -0
- package/benchmark/binding.gyp +25 -0
- package/benchmark/function_args.cc +217 -0
- package/benchmark/function_args.js +60 -0
- package/benchmark/index.js +34 -0
- package/benchmark/property_descriptor.cc +91 -0
- package/benchmark/property_descriptor.js +37 -0
- package/common.gypi +21 -0
- package/doc/addon.md +157 -0
- package/doc/array.md +81 -0
- package/doc/array_buffer.md +20 -0
- package/doc/async_context.md +1 -1
- package/doc/async_worker.md +34 -5
- package/doc/{async_progress_worker.md → async_worker_variants.md} +236 -23
- package/doc/bigint.md +7 -2
- package/doc/boolean.md +5 -1
- package/doc/buffer.md +4 -0
- package/doc/checker-tool.md +1 -1
- package/doc/class_property_descriptor.md +3 -3
- package/doc/creating_a_release.md +6 -6
- package/doc/dataview.md +4 -0
- package/doc/date.md +2 -2
- package/doc/env.md +69 -0
- package/doc/error.md +5 -0
- package/doc/escapable_handle_scope.md +1 -1
- package/doc/external.md +4 -0
- package/doc/function.md +111 -3
- package/doc/function_reference.md +1 -1
- package/doc/handle_scope.md +1 -1
- package/doc/hierarchy.md +91 -0
- package/doc/instance_wrap.md +408 -0
- package/doc/name.md +29 -0
- package/doc/number.md +1 -1
- package/doc/object.md +44 -1
- package/doc/object_lifetime_management.md +2 -2
- package/doc/object_reference.md +1 -1
- package/doc/object_wrap.md +220 -216
- package/doc/prebuild_tools.md +2 -2
- package/doc/promises.md +5 -0
- package/doc/property_descriptor.md +67 -12
- package/doc/setup.md +1 -2
- package/doc/string.md +5 -1
- package/doc/symbol.md +5 -1
- package/doc/threadsafe.md +121 -0
- package/doc/threadsafe_function.md +16 -46
- package/doc/typed_array.md +4 -0
- package/doc/typed_array_of.md +4 -0
- package/doc/typed_threadsafe_function.md +307 -0
- package/doc/value.md +166 -104
- package/doc/version_management.md +2 -2
- package/except.gypi +16 -0
- package/index.js +7 -41
- package/napi-inl.h +1685 -464
- package/napi.h +606 -141
- package/node_api.gyp +9 -0
- package/noexcept.gypi +16 -0
- package/{src/nothing.c → nothing.c} +0 -0
- package/package-support.json +21 -0
- package/package.json +106 -2
- package/tools/README.md +12 -6
- package/tools/clang-format.js +47 -0
- package/tools/conversion.js +4 -8
- package/doc/Doxyfile +0 -2450
- package/doc/basic_types.md +0 -423
- package/doc/working_with_javascript_values.md +0 -14
- package/external-napi/node_api.h +0 -7
- package/src/node_api.cc +0 -3655
- package/src/node_api.gyp +0 -21
- package/src/node_api.h +0 -588
- package/src/node_api_types.h +0 -115
- package/src/node_internals.cc +0 -142
- package/src/node_internals.h +0 -157
- package/src/util-inl.h +0 -38
- package/src/util.h +0 -7
package/.clang-format
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
Language: Cpp
|
|
3
|
+
# BasedOnStyle: Google
|
|
4
|
+
AccessModifierOffset: -1
|
|
5
|
+
AlignAfterOpenBracket: Align
|
|
6
|
+
AlignConsecutiveAssignments: false
|
|
7
|
+
AlignConsecutiveDeclarations: false
|
|
8
|
+
AlignEscapedNewlines: Right
|
|
9
|
+
AlignOperands: true
|
|
10
|
+
AlignTrailingComments: true
|
|
11
|
+
AllowAllParametersOfDeclarationOnNextLine: true
|
|
12
|
+
AllowShortBlocksOnASingleLine: false
|
|
13
|
+
AllowShortCaseLabelsOnASingleLine: false
|
|
14
|
+
AllowShortFunctionsOnASingleLine: Inline
|
|
15
|
+
AllowShortIfStatementsOnASingleLine: true
|
|
16
|
+
AllowShortLoopsOnASingleLine: true
|
|
17
|
+
AlwaysBreakAfterDefinitionReturnType: None
|
|
18
|
+
AlwaysBreakAfterReturnType: None
|
|
19
|
+
AlwaysBreakBeforeMultilineStrings: false
|
|
20
|
+
AlwaysBreakTemplateDeclarations: true
|
|
21
|
+
BinPackArguments: false
|
|
22
|
+
BinPackParameters: false
|
|
23
|
+
BraceWrapping:
|
|
24
|
+
AfterClass: false
|
|
25
|
+
AfterControlStatement: false
|
|
26
|
+
AfterEnum: false
|
|
27
|
+
AfterFunction: false
|
|
28
|
+
AfterNamespace: false
|
|
29
|
+
AfterObjCDeclaration: false
|
|
30
|
+
AfterStruct: false
|
|
31
|
+
AfterUnion: false
|
|
32
|
+
AfterExternBlock: false
|
|
33
|
+
BeforeCatch: false
|
|
34
|
+
BeforeElse: false
|
|
35
|
+
IndentBraces: false
|
|
36
|
+
SplitEmptyFunction: true
|
|
37
|
+
SplitEmptyRecord: true
|
|
38
|
+
SplitEmptyNamespace: true
|
|
39
|
+
BreakBeforeBinaryOperators: None
|
|
40
|
+
BreakBeforeBraces: Attach
|
|
41
|
+
BreakBeforeInheritanceComma: false
|
|
42
|
+
BreakBeforeTernaryOperators: true
|
|
43
|
+
BreakConstructorInitializersBeforeComma: false
|
|
44
|
+
BreakConstructorInitializers: BeforeColon
|
|
45
|
+
BreakAfterJavaFieldAnnotations: false
|
|
46
|
+
BreakStringLiterals: true
|
|
47
|
+
ColumnLimit: 80
|
|
48
|
+
CommentPragmas: '^ IWYU pragma:'
|
|
49
|
+
CompactNamespaces: false
|
|
50
|
+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
51
|
+
ConstructorInitializerIndentWidth: 4
|
|
52
|
+
ContinuationIndentWidth: 4
|
|
53
|
+
Cpp11BracedListStyle: true
|
|
54
|
+
DerivePointerAlignment: false
|
|
55
|
+
DisableFormat: false
|
|
56
|
+
ExperimentalAutoDetectBinPacking: false
|
|
57
|
+
FixNamespaceComments: true
|
|
58
|
+
ForEachMacros:
|
|
59
|
+
- foreach
|
|
60
|
+
- Q_FOREACH
|
|
61
|
+
- BOOST_FOREACH
|
|
62
|
+
IncludeBlocks: Preserve
|
|
63
|
+
IncludeCategories:
|
|
64
|
+
- Regex: '^<ext/.*\.h>'
|
|
65
|
+
Priority: 2
|
|
66
|
+
- Regex: '^<.*\.h>'
|
|
67
|
+
Priority: 1
|
|
68
|
+
- Regex: '^<.*'
|
|
69
|
+
Priority: 2
|
|
70
|
+
- Regex: '.*'
|
|
71
|
+
Priority: 3
|
|
72
|
+
IncludeIsMainRegex: '([-_](test|unittest))?$'
|
|
73
|
+
IndentCaseLabels: true
|
|
74
|
+
IndentPPDirectives: None
|
|
75
|
+
IndentWidth: 2
|
|
76
|
+
IndentWrappedFunctionNames: false
|
|
77
|
+
JavaScriptQuotes: Leave
|
|
78
|
+
JavaScriptWrapImports: true
|
|
79
|
+
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
80
|
+
MacroBlockBegin: ''
|
|
81
|
+
MacroBlockEnd: ''
|
|
82
|
+
MaxEmptyLinesToKeep: 1
|
|
83
|
+
NamespaceIndentation: None
|
|
84
|
+
ObjCBlockIndentWidth: 2
|
|
85
|
+
ObjCSpaceAfterProperty: false
|
|
86
|
+
ObjCSpaceBeforeProtocolList: false
|
|
87
|
+
PenaltyBreakAssignment: 2
|
|
88
|
+
PenaltyBreakBeforeFirstCallParameter: 1
|
|
89
|
+
PenaltyBreakComment: 300
|
|
90
|
+
PenaltyBreakFirstLessLess: 120
|
|
91
|
+
PenaltyBreakString: 1000
|
|
92
|
+
PenaltyExcessCharacter: 1000000
|
|
93
|
+
PenaltyReturnTypeOnItsOwnLine: 200
|
|
94
|
+
PointerAlignment: Left
|
|
95
|
+
ReflowComments: true
|
|
96
|
+
SortIncludes: true
|
|
97
|
+
SortUsingDeclarations: true
|
|
98
|
+
SpaceAfterCStyleCast: false
|
|
99
|
+
SpaceAfterTemplateKeyword: true
|
|
100
|
+
SpaceBeforeAssignmentOperators: true
|
|
101
|
+
SpaceBeforeParens: ControlStatements
|
|
102
|
+
SpaceInEmptyParentheses: false
|
|
103
|
+
SpacesBeforeTrailingComments: 2
|
|
104
|
+
SpacesInAngles: false
|
|
105
|
+
SpacesInContainerLiterals: true
|
|
106
|
+
SpacesInCStyleCastParentheses: false
|
|
107
|
+
SpacesInParentheses: false
|
|
108
|
+
SpacesInSquareBrackets: false
|
|
109
|
+
Standard: Auto
|
|
110
|
+
TabWidth: 8
|
|
111
|
+
UseTab: Never
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Node.js CI
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
test:
|
|
7
|
+
timeout-minutes: 30
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
node-version:
|
|
11
|
+
- node/10
|
|
12
|
+
- node/12
|
|
13
|
+
- node/14
|
|
14
|
+
- node/15
|
|
15
|
+
compiler:
|
|
16
|
+
- gcc
|
|
17
|
+
- clang
|
|
18
|
+
os:
|
|
19
|
+
- ubuntu-16.04 # ubuntu-18.04/ubuntu-latest missing package g++-4.9
|
|
20
|
+
- macos-latest
|
|
21
|
+
runs-on: ${{ matrix.os }}
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v2
|
|
24
|
+
- name: Install system dependencies
|
|
25
|
+
run: |
|
|
26
|
+
if [ "${{ matrix.compiler }}" = "gcc" -a "${{ matrix.os }}" = ubuntu-* ]; then
|
|
27
|
+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
|
28
|
+
sudo apt-get update
|
|
29
|
+
sudo apt-get install g++-4.9
|
|
30
|
+
fi
|
|
31
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
32
|
+
run: |
|
|
33
|
+
git clone --branch v1.4.2 --depth 1 https://github.com/jasongin/nvs ~/.nvs
|
|
34
|
+
. ~/.nvs/nvs.sh
|
|
35
|
+
nvs --version
|
|
36
|
+
nvs add ${{ matrix.node-version }}
|
|
37
|
+
nvs use ${{ matrix.node-version }}
|
|
38
|
+
node --version
|
|
39
|
+
npm --version
|
|
40
|
+
npm install
|
|
41
|
+
- name: npm test
|
|
42
|
+
run: |
|
|
43
|
+
if [ "${{ matrix.compiler }}" = "gcc" ]; then
|
|
44
|
+
export CC="gcc" CXX="g++"
|
|
45
|
+
fi
|
|
46
|
+
if [ "${{ matrix.compiler }}" = "gcc" -a "${{ matrix.os }}" = ubuntu-* ]; then
|
|
47
|
+
export CC="gcc-4.9" CXX="g++-4.9" AR="gcc-ar-4.9" RANLIB="gcc-ranlib-4.9" NM="gcc-nm-4.9"
|
|
48
|
+
fi
|
|
49
|
+
if [ "${{ matrix.compiler }}" = "clang" ]; then
|
|
50
|
+
export CC="clang" CXX="clang++"
|
|
51
|
+
fi
|
|
52
|
+
export CFLAGS="$CFLAGS -O3 --coverage" LDFLAGS="$LDFLAGS --coverage"
|
|
53
|
+
echo "CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\""
|
|
54
|
+
npm run pretest -- --verbose
|
|
55
|
+
node test
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: Style Checks
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
lint:
|
|
7
|
+
if: github.repository == 'nodejs/node-addon-api'
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
node-version: [14.x]
|
|
11
|
+
os: [ubuntu-latest]
|
|
12
|
+
|
|
13
|
+
runs-on: ${{ matrix.os }}
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v2
|
|
16
|
+
with:
|
|
17
|
+
fetch-depth: 0
|
|
18
|
+
- run: git branch -a
|
|
19
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
20
|
+
uses: actions/setup-node@v1
|
|
21
|
+
with:
|
|
22
|
+
node-version: ${{ matrix.node-version }}
|
|
23
|
+
- run: npm install
|
|
24
|
+
- run: CLANG_FORMAT_START=refs/remotes/origin/master npm run lint
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: "Close stale issues"
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: "0 0 * * *"
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
stale:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/stale@v1
|
|
11
|
+
with:
|
|
12
|
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
13
|
+
stale-issue-message: 'This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.'
|
|
14
|
+
stale-issue-label: 'stale'
|
|
15
|
+
exempt-issue-label: 'never stale'
|
|
16
|
+
days-before-stale: 90
|
|
17
|
+
days-before-close: 30
|
|
18
|
+
|
package/.travis.yml
CHANGED
|
@@ -12,18 +12,14 @@ env:
|
|
|
12
12
|
# https://github.com/jasongin/nvs/blob/master/doc/CI.md
|
|
13
13
|
- NVS_VERSION=1.4.2
|
|
14
14
|
matrix:
|
|
15
|
-
- NODEJS_VERSION=node/6
|
|
16
|
-
- NODEJS_VERSION=node/8
|
|
17
15
|
- NODEJS_VERSION=node/10
|
|
18
16
|
- NODEJS_VERSION=node/12
|
|
19
|
-
- NODEJS_VERSION=node/
|
|
17
|
+
- NODEJS_VERSION=node/14
|
|
20
18
|
- NODEJS_VERSION=nightly
|
|
21
19
|
matrix:
|
|
22
20
|
fast_finish: true
|
|
23
21
|
allow_failures:
|
|
24
22
|
- env: NODEJS_VERSION=nightly
|
|
25
|
-
- env: NODEJS_VERSION=node/6
|
|
26
|
-
sudo: false
|
|
27
23
|
cache:
|
|
28
24
|
directories:
|
|
29
25
|
- node_modules
|
package/CHANGELOG.md
CHANGED
|
@@ -1,40 +1,254 @@
|
|
|
1
1
|
# node-addon-api Changelog
|
|
2
2
|
|
|
3
|
-
## 2020-
|
|
3
|
+
## 2020-12-17 Version 3.1.0, @NickNaso
|
|
4
4
|
|
|
5
5
|
### Notable changes:
|
|
6
6
|
|
|
7
7
|
#### API
|
|
8
8
|
|
|
9
|
-
- `Napi::
|
|
10
|
-
-
|
|
11
|
-
- `Napi::
|
|
12
|
-
- `Napi::
|
|
9
|
+
- Added `Napi::TypedThreadSafeFunction` class that is a new implementation for
|
|
10
|
+
thread-safe functions.
|
|
11
|
+
- Fixed leak on `Napi::AsyncProgressWorkerBase`.
|
|
12
|
+
- Fixed empty data on `Napi::AsyncProgressWorker::OnProgress` caused by race
|
|
13
|
+
conditions of `Napi::AsyncProgressWorker`.
|
|
14
|
+
- Added `Napi::ArrayBuffer::Detach()` and `Napi::ArrayBuffer::IsDetached()`.
|
|
15
|
+
- Fixed problem on `Napi::FinalizeCallback` it needs to create a
|
|
16
|
+
`Napi::HandleScope` when it calls `Napi::ObjectWrap::~ObjectWrap()`.
|
|
17
|
+
|
|
18
|
+
#### Documentation
|
|
19
|
+
|
|
20
|
+
- Added documentation for `Napi::TypedThreadSafeFunction`.
|
|
21
|
+
- Removed unsued Doxygen file.
|
|
22
|
+
- Clarified when to use N-API.
|
|
23
|
+
- Added support information.
|
|
24
|
+
- Some minor corrections all over the documentation.
|
|
13
25
|
|
|
14
26
|
#### TEST
|
|
15
27
|
|
|
16
|
-
-
|
|
28
|
+
- Added test for `Napi::TypedThreadSafeFunction`.
|
|
29
|
+
- Fixed testing for specific N-API version.
|
|
30
|
+
- Some minor corrections all over the test suite.
|
|
17
31
|
|
|
18
|
-
###
|
|
32
|
+
### TOOL
|
|
33
|
+
|
|
34
|
+
- Setup github actions for tests.
|
|
35
|
+
- Added stale action.
|
|
36
|
+
- Removed `sudo` tag from Travis CI.
|
|
37
|
+
- Added clang-format.
|
|
38
|
+
- Added pre-commit package for linting.
|
|
19
39
|
|
|
20
|
-
|
|
21
|
-
* [[`470f130666`](https://github.com/nodejs/node-addon-api/commit/470f130666)] - **objectwrap**: avoid double-free on old Node.js (Gabriel Schulhof)
|
|
22
|
-
* [[`81e2eac7ba`](https://github.com/nodejs/node-addon-api/commit/81e2eac7ba)] - **test**: update BigInt test for recent change in core (Michael Dawson) [#649](https://github.com/nodejs/node-addon-api/pull/649)
|
|
23
|
-
* [[`204f07252c`](https://github.com/nodejs/node-addon-api/commit/204f07252c)] - **objectwrap**: remove wrap only on failure (Gabriel Schulhof)
|
|
24
|
-
* [[`a552a384dd`](https://github.com/nodejs/node-addon-api/commit/a552a384dd)] - **src**: call `napi\_remove\_wrap()` in `ObjectWrap` dtor (Anna Henningsen) [#475](https://github.com/nodejs/node-addon-api/pull/475)
|
|
25
|
-
* [[`1a51067438`](https://github.com/nodejs/node-addon-api/commit/1a51067438)] - **objectwrap**: gracefully handle constructor exceptions (Gabriel Schulhof)
|
|
40
|
+
### Commits
|
|
26
41
|
|
|
27
|
-
|
|
42
|
+
* [[`ff642c5b85`](https://github.com/nodejs/node-addon-api/commit/ff642c5b85)] - **doc**: fix tsfn docs to reflect true implementation (#860) (Kevin Eady)
|
|
43
|
+
* [[`86feeebf54`](https://github.com/nodejs/node-addon-api/commit/86feeebf54)] - **src**: empty data OnProgress in AsyncProgressWorker (legendecas) [#853](https://github.com/nodejs/node-addon-api/pull/853)
|
|
44
|
+
* [[`a7fb5fb31c`](https://github.com/nodejs/node-addon-api/commit/a7fb5fb31c)] - **action**: add stale action (#856) (Michael Dawson)
|
|
45
|
+
* [[`fd44609885`](https://github.com/nodejs/node-addon-api/commit/fd44609885)] - **chore**: setup github actions for tests (#854) (legendecas) [#854](https://github.com/nodejs/node-addon-api/pull/854)
|
|
46
|
+
* [[`c52ace4813`](https://github.com/nodejs/node-addon-api/commit/c52ace4813)] - **script**: fix complains that js files are not supported on npm run lint:fix (#852) (legendecas)
|
|
47
|
+
* [[`b4a3364ad5`](https://github.com/nodejs/node-addon-api/commit/b4a3364ad5)] - **doc**: remove unused Doxygen file (#851) (Michael Dawson)
|
|
48
|
+
* [[`b810466ae2`](https://github.com/nodejs/node-addon-api/commit/b810466ae2)] - **doc**: clarify when to use N-API (#849) (Michael Dawson)
|
|
49
|
+
* [[`528b9f6832`](https://github.com/nodejs/node-addon-api/commit/528b9f6832)] - **test**: remove sudo from travis (#850) (Michael Dawson)
|
|
50
|
+
* [[`4bb680de4e`](https://github.com/nodejs/node-addon-api/commit/4bb680de4e)] - Remove misleading sentence (#847) (Nikolai Vavilov) [#847](https://github.com/nodejs/node-addon-api/pull/847)
|
|
51
|
+
* [[`48e6b584a3`](https://github.com/nodejs/node-addon-api/commit/48e6b584a3)] - Merge pull request #742 from KevinEady/contexted-tsfn-api-gcc-4 (Gabriel Schulhof)
|
|
52
|
+
* [[`d5e37210cc`](https://github.com/nodejs/node-addon-api/commit/d5e37210cc)] - **tools**: print more instructions on clang-format check failed (#846) (legendecas) [#846](https://github.com/nodejs/node-addon-api/pull/846)
|
|
53
|
+
* [[`d9e11ff2c9`](https://github.com/nodejs/node-addon-api/commit/d9e11ff2c9)] - **doc**: add support info (#843) (Michael Dawson) [#843](https://github.com/nodejs/node-addon-api/pull/843)
|
|
54
|
+
* [[`356e93d69a`](https://github.com/nodejs/node-addon-api/commit/356e93d69a)] - **test**: fixup testing for specific N-API version (#840) (Michael Dawson) [#840](https://github.com/nodejs/node-addon-api/pull/840)
|
|
55
|
+
* [[`5e5b9ce1b7`](https://github.com/nodejs/node-addon-api/commit/5e5b9ce1b7)] - Apply formatting changes (Kevin Eady)
|
|
56
|
+
* [[`559ad8c0c0`](https://github.com/nodejs/node-addon-api/commit/559ad8c0c0)] - Merge remote-tracking branch 'upstream/master' into contexted-tsfn-api-gcc-4 (Kevin Eady)
|
|
57
|
+
* [[`c24c455ced`](https://github.com/nodejs/node-addon-api/commit/c24c455ced)] - Rename to TypedThreadSafeFunction (Kevin Eady)
|
|
58
|
+
* [[`63b43f4125`](https://github.com/nodejs/node-addon-api/commit/63b43f4125)] - **test**: fix buildType bug objectwrap\_worker\_thread (raisinten) [#837](https://github.com/nodejs/node-addon-api/pull/837)
|
|
59
|
+
* [[`6321f2ba1a`](https://github.com/nodejs/node-addon-api/commit/6321f2ba1a)] - **test**: fix typos in addon\_build/index.js (raisinten) [#838](https://github.com/nodejs/node-addon-api/pull/838)
|
|
60
|
+
* [[`59c6a6aeb0`](https://github.com/nodejs/node-addon-api/commit/59c6a6aeb0)] - **fix**: git-clang-format doesn't recognize no changes requested on given files (#835) (legendecas)
|
|
61
|
+
* [[`1427b3ef78`](https://github.com/nodejs/node-addon-api/commit/1427b3ef78)] - **src**: create a HandleScope in FinalizeCallback (blagoev) [#832](https://github.com/nodejs/node-addon-api/pull/832)
|
|
62
|
+
* [[`8fb5820557`](https://github.com/nodejs/node-addon-api/commit/8fb5820557)] - **build**: add incremental clang-format checks (legendecas) [#819](https://github.com/nodejs/node-addon-api/pull/819)
|
|
63
|
+
* [[`2c02d317e5`](https://github.com/nodejs/node-addon-api/commit/2c02d317e5)] - **build**: add pre-commit package for linting (#823) (Kevin Eady)
|
|
64
|
+
* [[`1b52c28eb8`](https://github.com/nodejs/node-addon-api/commit/1b52c28eb8)] - Clean up AsyncProgressWorker documentation (#831) (mastergberry)
|
|
65
|
+
* [[`4abe7cfe30`](https://github.com/nodejs/node-addon-api/commit/4abe7cfe30)] - **test**: rename tsfnex test files (Kevin Eady)
|
|
66
|
+
* [[`c9563caa25`](https://github.com/nodejs/node-addon-api/commit/c9563caa25)] - **src**: add ArrayBuffer::Detach() and ::IsDetached() (Tobias Nießen) [#659](https://github.com/nodejs/node-addon-api/pull/659)
|
|
67
|
+
* [[`c79cabaed2`](https://github.com/nodejs/node-addon-api/commit/c79cabaed2)] - **doc**: avoid directing users to HTTP (#828) (Tobias Nießen)
|
|
68
|
+
* [[`7a13f861ab`](https://github.com/nodejs/node-addon-api/commit/7a13f861ab)] - **doc**: fix additional typo (Kevin Eady)
|
|
69
|
+
* [[`7ec9741dd2`](https://github.com/nodejs/node-addon-api/commit/7ec9741dd2)] - Merge remote-tracking branch 'upstream/master' into contexted-tsfn-api-gcc-4 (Kevin Eady)
|
|
70
|
+
* [[`f5fad239fa`](https://github.com/nodejs/node-addon-api/commit/f5fad239fa)] - Update object\_reference.md (#827) (kidneysolo)
|
|
71
|
+
* [[`35b65712c2`](https://github.com/nodejs/node-addon-api/commit/35b65712c2)] - **Fix**: some typos in documentation (#826) (Helio Frota)
|
|
72
|
+
* [[`8983383000`](https://github.com/nodejs/node-addon-api/commit/8983383000)] - **Fix**: some typos in the document (#825) (Ziqiu Zhao)
|
|
73
|
+
* [[`826e466ef6`](https://github.com/nodejs/node-addon-api/commit/826e466ef6)] - Fixed example in addon.md. (#820) (nempoBu4) [#820](https://github.com/nodejs/node-addon-api/pull/820)
|
|
74
|
+
* [[`b54f5eb788`](https://github.com/nodejs/node-addon-api/commit/b54f5eb788)] - Additional changes from review (Kevin Eady)
|
|
75
|
+
* [[`59f27dac9a`](https://github.com/nodejs/node-addon-api/commit/59f27dac9a)] - Fix common.gypi (Kevin Eady)
|
|
76
|
+
* [[`151a914c99`](https://github.com/nodejs/node-addon-api/commit/151a914c99)] - Apply documentation suggestions from code review (Kevin Eady)
|
|
77
|
+
* [[`ceb27d4949`](https://github.com/nodejs/node-addon-api/commit/ceb27d4949)] - **src**: fix leak in AsyncProgressWorkerBase\<DataType\> (Ferdinand Holzer) [#795](https://github.com/nodejs/node-addon-api/pull/795)
|
|
78
|
+
|
|
79
|
+
## 2020-09-18 Version 3.0.2, @NickNaso
|
|
28
80
|
|
|
29
81
|
### Notable changes:
|
|
30
82
|
|
|
31
83
|
#### API
|
|
32
84
|
|
|
33
|
-
-
|
|
85
|
+
- Introduced `include_dir` for use with **gyp** in a scalar context.
|
|
86
|
+
- Added `Napi::Addon` to help handle the loading of a native add-on into
|
|
87
|
+
multiple threads and or multiple times in the same thread.
|
|
88
|
+
- Concentrate callbacks provided to core N-API.
|
|
89
|
+
- Make sure wrapcallback is used.
|
|
34
90
|
|
|
35
|
-
|
|
91
|
+
#### Documentation
|
|
92
|
+
|
|
93
|
+
- Added documentation for `Napi::Addon`.
|
|
94
|
+
- Added documentation that reports the full class hierarchy.
|
|
95
|
+
- Added link to N-API tutorial website.
|
|
96
|
+
- Some minor corrections all over the documentation.
|
|
97
|
+
|
|
98
|
+
#### TEST
|
|
99
|
+
|
|
100
|
+
- Added tests to check the build process.
|
|
101
|
+
- Refactored test for threasfafe function using async/await.
|
|
102
|
+
- Converted tests that gc into async functions that await 10 ticks after
|
|
103
|
+
each gc.
|
|
104
|
+
- Some minor corrections all over the test suite.
|
|
105
|
+
|
|
106
|
+
### Commits
|
|
107
|
+
|
|
108
|
+
* [[`51e25f7c39`](https://github.com/nodejs/node-addon-api/commit/51e25f7c39)] - **doc**: remove a file (#815) (Gabriel Schulhof)
|
|
109
|
+
* [[`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)
|
|
110
|
+
* [[`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)
|
|
111
|
+
* [[`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)
|
|
112
|
+
* [[`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)
|
|
113
|
+
* [[`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)
|
|
114
|
+
* [[`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)
|
|
115
|
+
* [[`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)
|
|
116
|
+
* [[`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)
|
|
117
|
+
* [[`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)
|
|
118
|
+
* [[`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)
|
|
119
|
+
* [[`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)
|
|
120
|
+
* [[`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)
|
|
121
|
+
* [[`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)
|
|
122
|
+
* [[`6148fb4bcc`](https://github.com/nodejs/node-addon-api/commit/6148fb4bcc)] - Synchronise Node.js versions in Appveyor Windows CI with Travis (#768) (Lovell Fuller)
|
|
123
|
+
|
|
124
|
+
## 2020-07-13 Version 3.0.1, @NickNaso
|
|
125
|
+
|
|
126
|
+
### Notable changes:
|
|
127
|
+
|
|
128
|
+
#### API
|
|
129
|
+
|
|
130
|
+
- Fixed the usage of `Napi::Reference` with `Napi::TypedArray`.
|
|
131
|
+
- Fixed `Napi::ObjectWrap` inheritance.
|
|
132
|
+
|
|
133
|
+
#### Documentation
|
|
134
|
+
|
|
135
|
+
- Updated the example for `Napi::ObjectWrap`.
|
|
136
|
+
- Added documentation for instance data APIs.
|
|
137
|
+
- Some minor corrections all over the documentation.
|
|
138
|
+
|
|
139
|
+
#### TEST
|
|
140
|
+
|
|
141
|
+
- Fixed test for `Napi::ArrayBuffer` and `Napi::Buffer`.
|
|
142
|
+
- Some minor corrections all over the test suite.
|
|
36
143
|
|
|
37
|
-
|
|
144
|
+
### Commits
|
|
145
|
+
|
|
146
|
+
* [[`40c7926342`](https://github.com/nodejs/node-addon-api/commit/40c7926342)] - **build**: ensure paths with spaces can be used (Lovell Fuller) [#757](https://github.com/nodejs/node-addon-api/pull/757)
|
|
147
|
+
* [[`ef16dfb4a2`](https://github.com/nodejs/node-addon-api/commit/ef16dfb4a2)] - **doc**: update ObjectWrap example (Gabriel Schulhof) [#754](https://github.com/nodejs/node-addon-api/pull/754)
|
|
148
|
+
* [[`48f6762bf6`](https://github.com/nodejs/node-addon-api/commit/48f6762bf6)] - **src**: add \_\_wasm32\_\_ guards (Gus Caplan)
|
|
149
|
+
* [[`bd2c5ec502`](https://github.com/nodejs/node-addon-api/commit/bd2c5ec502)] - Fixes issue 745. (#748) (Nicola Del Gobbo)
|
|
150
|
+
* [[`4c01af2d87`](https://github.com/nodejs/node-addon-api/commit/4c01af2d87)] - Fix typo in CHANGELOG (#715) (Kasumi Hanazuki)
|
|
151
|
+
* [[`36e1af96d5`](https://github.com/nodejs/node-addon-api/commit/36e1af96d5)] - **src**: fix use of Reference with typed arrays (Michael Dawson) [#726](https://github.com/nodejs/node-addon-api/pull/726)
|
|
152
|
+
* [[`d463f02bc7`](https://github.com/nodejs/node-addon-api/commit/d463f02bc7)] - **src**: fix testEnumerables on ObjectWrap (Ferdinand Holzer) [#736](https://github.com/nodejs/node-addon-api/pull/736)
|
|
153
|
+
* [[`ba7ad37d44`](https://github.com/nodejs/node-addon-api/commit/ba7ad37d44)] - **src**: fix ObjectWrap inheritance (David Halls) [#732](https://github.com/nodejs/node-addon-api/pull/732)
|
|
154
|
+
* [[`31504c862b`](https://github.com/nodejs/node-addon-api/commit/31504c862b)] - **doc**: fix minor typo in object\_wrap.md (#741) (Daniel Bevenius) [#741](https://github.com/nodejs/node-addon-api/pull/741)
|
|
155
|
+
* [[`beccf2145d`](https://github.com/nodejs/node-addon-api/commit/beccf2145d)] - **test**: fix up delays for array buffer test (Michael Dawson) [#737](https://github.com/nodejs/node-addon-api/pull/737)
|
|
156
|
+
* [[`45cb1d9748`](https://github.com/nodejs/node-addon-api/commit/45cb1d9748)] - Correct AsyncProgressWorker link in README (#716) (Jeroen Janssen)
|
|
157
|
+
* [[`381c0da60c`](https://github.com/nodejs/node-addon-api/commit/381c0da60c)] - **doc**: add instance data APIs (Gabriel Schulhof) [#708](https://github.com/nodejs/node-addon-api/pull/708)
|
|
158
|
+
|
|
159
|
+
## 2020-04-30 Version 3.0.0, @NickNaso
|
|
160
|
+
|
|
161
|
+
### Notable changes:
|
|
162
|
+
|
|
163
|
+
#### API
|
|
164
|
+
|
|
165
|
+
- `Napi::Object` added templated property descriptors.
|
|
166
|
+
- `Napi::ObjectWrap` added templated methods.
|
|
167
|
+
- `Napi::ObjectWrap` the wrap is removed only on failure.
|
|
168
|
+
- `Napi::ObjectWrap` the constructor's exceptions are gracefully handled.
|
|
169
|
+
- `Napi::Function` added templated factory functions.
|
|
170
|
+
- Added `Env::RunScript` method to run JavaScript code contained in a string.
|
|
171
|
+
- Added templated version of `Napi::Function`.
|
|
172
|
+
- Added benchmarking framework.
|
|
173
|
+
- Added support for native addon instance data.
|
|
174
|
+
- Added `Napi::AsyncProgressQueueWorker` api.
|
|
175
|
+
- Changed the guards to `NAPI_VERSION > 5`.
|
|
176
|
+
- Removed N-API implementation (v6.x and v8.x support).
|
|
177
|
+
- `Napi::AsyncWorker::OnWorkComplete` and `Napi::AsyncWorker::OnExecute` methods
|
|
178
|
+
are override-able.
|
|
179
|
+
- Removed erroneous finalizer cleanup in `Napi::ThreadSafeFunction`.
|
|
180
|
+
- Disabled caching in `Napi::ArrayBuffer`.
|
|
181
|
+
- Explicitly disallow assign and copy operator.
|
|
182
|
+
- Some minor corrections and improvements.
|
|
183
|
+
|
|
184
|
+
#### Documentation
|
|
185
|
+
|
|
186
|
+
- Updated documentation for `Napi::Object`.
|
|
187
|
+
- Updated documentation for `Napi::Function`.
|
|
188
|
+
- Updated documentation for `Napi::ObjectWrap`.
|
|
189
|
+
- Added documentation on how to add benchmark.
|
|
190
|
+
- Added documentation for `Napi::AsyncProgressQueueWorker`.
|
|
191
|
+
- Added suggestion about tags to use on NPM.
|
|
192
|
+
- Added reference to N-API badges.
|
|
193
|
+
- Some minor corrections all over the documentation.
|
|
194
|
+
|
|
195
|
+
#### TEST
|
|
196
|
+
|
|
197
|
+
- Updated test cases for `Napi::Object`.
|
|
198
|
+
- Updated test cases for `Napi::Function`.
|
|
199
|
+
- Updated test cases for `Napi::ObjectWrap`.
|
|
200
|
+
- Updated test cases for `Napi::Env`.
|
|
201
|
+
- Added test cases for `Napi::AsyncProgressQueueWorker`.
|
|
202
|
+
- Some minor corrections all over the test suite.
|
|
203
|
+
|
|
204
|
+
### Commits
|
|
205
|
+
|
|
206
|
+
* [[`187318e37f`](https://github.com/nodejs/node-addon-api/commit/187318e37f)] - **doc**: Removed references to Node.js lower than 10.x. (#709) (Nicola Del Gobbo)
|
|
207
|
+
* [[`9c9accfbbe`](https://github.com/nodejs/node-addon-api/commit/9c9accfbbe)] - **src**: add support for addon instance data (Gabriel Schulhof) [#663](https://github.com/nodejs/node-addon-api/pull/663)
|
|
208
|
+
* [[`82a96502a4`](https://github.com/nodejs/node-addon-api/commit/82a96502a4)] - **src**: change guards to NAPI\_VERSION \> 5 (Gabriel Schulhof) [#697](https://github.com/nodejs/node-addon-api/pull/697)
|
|
209
|
+
* [[`a64e8a5641`](https://github.com/nodejs/node-addon-api/commit/a64e8a5641)] - **ci**: move travis from 13 to 14 (#707) (Gabriel Schulhof)
|
|
210
|
+
* [[`4de23c9d6b`](https://github.com/nodejs/node-addon-api/commit/4de23c9d6b)] - **doc**: fix support bigint64/biguint64 guards (Yulong Wang) [#705](https://github.com/nodejs/node-addon-api/pull/705)
|
|
211
|
+
* [[`fedc8195e3`](https://github.com/nodejs/node-addon-api/commit/fedc8195e3)] - **doc**: fix semicolon missing in async\_worker.md (Azlan Mukhtar) [#701](https://github.com/nodejs/node-addon-api/pull/701)
|
|
212
|
+
* [[`cdb662506c`](https://github.com/nodejs/node-addon-api/commit/cdb662506c)] - **doc**: fix typo in bigint.md (#700) (Kelvin)
|
|
213
|
+
* [[`e1a827ae29`](https://github.com/nodejs/node-addon-api/commit/e1a827ae29)] - **src**: fix AsyncProgressQueueWorker compilation (#696) (Gabriel Schulhof) [#696](https://github.com/nodejs/node-addon-api/pull/696)
|
|
214
|
+
* [[`2c3d5df463`](https://github.com/nodejs/node-addon-api/commit/2c3d5df463)] - Merge pull request #692 from kelvinhammond/patch-1 (Nicola Del Gobbo)
|
|
215
|
+
* [[`623e876949`](https://github.com/nodejs/node-addon-api/commit/623e876949)] - Merge pull request #688 from NickNaso/badges (Nicola Del Gobbo)
|
|
216
|
+
* [[`6c97913d1f`](https://github.com/nodejs/node-addon-api/commit/6c97913d1f)] - Fix minor typo in object\_lifetime\_management.md (Kelvin)
|
|
217
|
+
* [[`6b8dd47c55`](https://github.com/nodejs/node-addon-api/commit/6b8dd47c55)] - Added badge section to documentation. (NickNaso)
|
|
218
|
+
* [[`89e62a9154`](https://github.com/nodejs/node-addon-api/commit/89e62a9154)] - **doc**: recommend tags of addon helpers (legendecas) [#683](https://github.com/nodejs/node-addon-api/pull/683)
|
|
219
|
+
* [[`ab018444ae`](https://github.com/nodejs/node-addon-api/commit/ab018444ae)] - **src**: implement AsyncProgressQueueWorker (legendecas) [#585](https://github.com/nodejs/node-addon-api/pull/585)
|
|
220
|
+
* [[`d43da6ac2b`](https://github.com/nodejs/node-addon-api/commit/d43da6ac2b)] - **doc**: add @legendecas to active member list (legendecas)
|
|
221
|
+
* [[`cb498bbe7f`](https://github.com/nodejs/node-addon-api/commit/cb498bbe7f)] - **doc**: Add Napi::BigInt::New() overload for uint64\_t (ikokostya)
|
|
222
|
+
* [[`baaaa8452c`](https://github.com/nodejs/node-addon-api/commit/baaaa8452c)] - **doc**: link threadsafe function from JS function (legendecas)
|
|
223
|
+
* [[`7f56a78ff7`](https://github.com/nodejs/node-addon-api/commit/7f56a78ff7)] - **objectwrap**: remove wrap only on failure (Gabriel Schulhof)
|
|
224
|
+
* [[`4d816183da`](https://github.com/nodejs/node-addon-api/commit/4d816183da)] - **doc**: fix example code (András Timár, Dr) [#657](https://github.com/nodejs/node-addon-api/pull/657)
|
|
225
|
+
* [[`7ac6e21801`](https://github.com/nodejs/node-addon-api/commit/7ac6e21801)] - **gyp**: fix gypfile name in index.js (Anna Henningsen) [#658](https://github.com/nodejs/node-addon-api/pull/658)
|
|
226
|
+
* [[`46484202ca`](https://github.com/nodejs/node-addon-api/commit/46484202ca)] - **test**: user data in function property descriptor (Kevin Eady) [#652](https://github.com/nodejs/node-addon-api/pull/652)
|
|
227
|
+
* [[`0f8d730483`](https://github.com/nodejs/node-addon-api/commit/0f8d730483)] - **doc**: fix syntax error in example (András Timár, Dr) [#650](https://github.com/nodejs/node-addon-api/pull/650)
|
|
228
|
+
* [[`4e885069f1`](https://github.com/nodejs/node-addon-api/commit/4e885069f1)] - **src**: call `napi\_remove\_wrap()` in `ObjectWrap` dtor (Anna Henningsen) [#475](https://github.com/nodejs/node-addon-api/pull/475)
|
|
229
|
+
* [[`2fde5c3ca3`](https://github.com/nodejs/node-addon-api/commit/2fde5c3ca3)] - **test**: update BigInt test for recent change in core (Michael Dawson) [#649](https://github.com/nodejs/node-addon-api/pull/649)
|
|
230
|
+
* [[`e8935bd8d9`](https://github.com/nodejs/node-addon-api/commit/e8935bd8d9)] - **test**: add test for own properties on ObjectWrap (Guenter Sandner) [#645](https://github.com/nodejs/node-addon-api/pull/645)
|
|
231
|
+
* [[`23ff7f0b24`](https://github.com/nodejs/node-addon-api/commit/23ff7f0b24)] - **src**: make OnWorkComplete and OnExecute override-able (legendecas) [#589](https://github.com/nodejs/node-addon-api/pull/589)
|
|
232
|
+
* [[`86384f94d3`](https://github.com/nodejs/node-addon-api/commit/86384f94d3)] - **objectwrap**: gracefully handle constructor exceptions (Gabriel Schulhof)
|
|
233
|
+
* [[`9af69da01f`](https://github.com/nodejs/node-addon-api/commit/9af69da01f)] - remove N-API implementation, v6.x and v8.x support (Gabriel Schulhof) [#643](https://github.com/nodejs/node-addon-api/pull/643)
|
|
234
|
+
* [[`920d544779`](https://github.com/nodejs/node-addon-api/commit/920d544779)] - **benchmark**: add templated version of Function (Gabriel Schulhof) [#637](https://github.com/nodejs/node-addon-api/pull/637)
|
|
235
|
+
* [[`03759f7759`](https://github.com/nodejs/node-addon-api/commit/03759f7759)] - ignore benchmark built archives (legendecas) [#631](https://github.com/nodejs/node-addon-api/pull/631)
|
|
236
|
+
* [[`5eeabb0214`](https://github.com/nodejs/node-addon-api/commit/5eeabb0214)] - **tsfn**: Remove erroneous finalizer cleanup (Kevin Eady) [#636](https://github.com/nodejs/node-addon-api/pull/636)
|
|
237
|
+
* [[`9e0e0f31e4`](https://github.com/nodejs/node-addon-api/commit/9e0e0f31e4)] - **src**: remove unnecessary forward declarations (Gabriel Schulhof) [#633](https://github.com/nodejs/node-addon-api/pull/633)
|
|
238
|
+
* [[`79deefb6f3`](https://github.com/nodejs/node-addon-api/commit/79deefb6f3)] - **src**: explicitly disallow assign and copy (legendecas) [#590](https://github.com/nodejs/node-addon-api/pull/590)
|
|
239
|
+
* [[`af50ac281b`](https://github.com/nodejs/node-addon-api/commit/af50ac281b)] - **error**: do not replace pending exception (Gabriel Schulhof) [#629](https://github.com/nodejs/node-addon-api/pull/629)
|
|
240
|
+
* [[`b72f1d6978`](https://github.com/nodejs/node-addon-api/commit/b72f1d6978)] - Disable caching in ArrayBuffer (Tobias Nießen) [#611](https://github.com/nodejs/node-addon-api/pull/611)
|
|
241
|
+
* [[`0e7483eb7b`](https://github.com/nodejs/node-addon-api/commit/0e7483eb7b)] - Fix code format in tests (Tobias Nießen) [#617](https://github.com/nodejs/node-addon-api/pull/617)
|
|
242
|
+
* [[`6a0646356d`](https://github.com/nodejs/node-addon-api/commit/6a0646356d)] - add benchmarking framework (Gabriel Schulhof) [#623](https://github.com/nodejs/node-addon-api/pull/623)
|
|
243
|
+
* [[`ffc71edd54`](https://github.com/nodejs/node-addon-api/commit/ffc71edd54)] - Add Env::RunScript (Tobias Nießen) [#616](https://github.com/nodejs/node-addon-api/pull/616)
|
|
244
|
+
* [[`a1b106066e`](https://github.com/nodejs/node-addon-api/commit/a1b106066e)] - **src**: add templated function factories (Gabriel Schulhof) [#608](https://github.com/nodejs/node-addon-api/pull/608)
|
|
245
|
+
* [[`c584343217`](https://github.com/nodejs/node-addon-api/commit/c584343217)] - Add GetPropertyNames, HasOwnProperty, Delete (#615) (Tobias Nießen) [#615](https://github.com/nodejs/node-addon-api/pull/615)
|
|
246
|
+
* [[`3acc4b32f5`](https://github.com/nodejs/node-addon-api/commit/3acc4b32f5)] - Fix std::string encoding (#619) (Tobias Nießen) [#619](https://github.com/nodejs/node-addon-api/pull/619)
|
|
247
|
+
* [[`e71d0eadcc`](https://github.com/nodejs/node-addon-api/commit/e71d0eadcc)] - \[doc\] Fixed links to array documentation (#613) (Nicola Del Gobbo)
|
|
248
|
+
* [[`3dfb1f0591`](https://github.com/nodejs/node-addon-api/commit/3dfb1f0591)] - Change "WG" to "team" (Tobias Nießen)
|
|
249
|
+
* [[`ce91e14860`](https://github.com/nodejs/node-addon-api/commit/ce91e14860)] - **objectwrap**: add template methods (Dmitry Ashkadov) [#604](https://github.com/nodejs/node-addon-api/pull/604)
|
|
250
|
+
* [[`cfa71b60f7`](https://github.com/nodejs/node-addon-api/commit/cfa71b60f7)] - **object**: add templated property descriptors (Gabriel Schulhof) [#610](https://github.com/nodejs/node-addon-api/pull/610)
|
|
251
|
+
* [[`734725e971`](https://github.com/nodejs/node-addon-api/commit/734725e971)] - Correctly define copy assignment operators. (Rolf Timmermans)
|
|
38
252
|
|
|
39
253
|
## 2019-11-21 Version 2.0.0, @NickNaso
|
|
40
254
|
|
|
@@ -66,7 +280,7 @@
|
|
|
66
280
|
- Added test cases for `Napi::Date` api.
|
|
67
281
|
- Added test cases for new features added to `Napi::ThreadSafeFunction`.
|
|
68
282
|
|
|
69
|
-
###
|
|
283
|
+
### Commits
|
|
70
284
|
|
|
71
285
|
* [[`c881168d49`](https://github.com/nodejs/node-addon-api/commit/c881168d49)] - **tsfn**: add error checking on GetContext (#583) (Kevin Eady) [#583](https://github.com/nodejs/node-addon-api/pull/583)
|
|
72
286
|
* [[`24d75dd82f`](https://github.com/nodejs/node-addon-api/commit/24d75dd82f)] - Merge pull request #588 from NickNaso/add-asyncprogress-worker-readme (Nicola Del Gobbo)
|
|
@@ -107,7 +321,7 @@
|
|
|
107
321
|
|
|
108
322
|
- Fixed compilation problems that happen on Node.js with N-API version less than 4.
|
|
109
323
|
|
|
110
|
-
###
|
|
324
|
+
### Commits
|
|
111
325
|
|
|
112
326
|
* [[`c20bcbd069`](https://github.com/nodejs/node-addon-api/commit/c20bcbd069)] - Merge pull request #518 from NickNaso/master (Nicola Del Gobbo)
|
|
113
327
|
* [[`6720d57253`](https://github.com/nodejs/node-addon-api/commit/6720d57253)] - Create the native threadsafe\_function for test only for N-API greater than 3. (NickNaso)
|
|
@@ -135,7 +349,7 @@
|
|
|
135
349
|
- Added test case for bool operator.
|
|
136
350
|
- Fixed test case for `Napi::ObjectWrap`.
|
|
137
351
|
|
|
138
|
-
###
|
|
352
|
+
### Commits
|
|
139
353
|
|
|
140
354
|
* [[`717c9ab163`](https://github.com/nodejs/node-addon-api/commit/717c9ab163)] - **AsyncWorker**: add GetResult() method (Kevin Eady) [#512](https://github.com/nodejs/node-addon-api/pull/512)
|
|
141
355
|
* [[`d9d991bbc9`](https://github.com/nodejs/node-addon-api/commit/d9d991bbc9)] - **doc**: add ThreadSafeFunction to main README (#513) (Kevin Eady) [#513](https://github.com/nodejs/node-addon-api/pull/513)
|
|
@@ -172,7 +386,7 @@
|
|
|
172
386
|
|
|
173
387
|
- Some minor corrections all over the documentation.
|
|
174
388
|
|
|
175
|
-
###
|
|
389
|
+
### Commits
|
|
176
390
|
|
|
177
391
|
* [[`83b41c2fe4`](https://github.com/nodejs/node-addon-api/commit/83b41c2fe4)] - Document adding -fvisibility=hidden flag for macOS users (Nicola Del Gobbo) [#460](https://github.com/nodejs/node-addon-api/pull/460)
|
|
178
392
|
* [[`1ed7ad8769`](https://github.com/nodejs/node-addon-api/commit/1ed7ad8769)] - **doc**: correct return type of Int32Value to int32\_t (Bill Gallafent) [#459](https://github.com/nodejs/node-addon-api/pull/459)
|
|
@@ -221,7 +435,7 @@
|
|
|
221
435
|
- Removed unused member on `Napi::CallbackScope`.
|
|
222
436
|
- Enabled `Napi::CallbackScope` only with N-API v3.
|
|
223
437
|
|
|
224
|
-
###
|
|
438
|
+
### Commits
|
|
225
439
|
|
|
226
440
|
* [[`e7cd292a74`](https://github.com/nodejs/node-addon-api/commit/e7cd292a74)] - **src**: remove unused CallbackScope member (Gabriel Schulhof) [#391](https://github.com/nodejs/node-addon-api/pull/391)
|
|
227
441
|
* [[`d47399fe25`](https://github.com/nodejs/node-addon-api/commit/d47399fe25)] - **src**: guard CallbackScope with N-API v3 (Michael Dawson) [#395](https://github.com/nodejs/node-addon-api/pull/395)
|
|
@@ -246,7 +460,7 @@ associated with a callback in place when making certain N-API calls
|
|
|
246
460
|
- Added tests for `Napi::Array` class.
|
|
247
461
|
- Added tests for `Napi::ArrayBuffer` class.
|
|
248
462
|
|
|
249
|
-
###
|
|
463
|
+
### Commits
|
|
250
464
|
|
|
251
465
|
* [[`8ce605c657`](https://github.com/nodejs/node-addon-api/commit/8ce605c657)] - **build**: avoid using package-lock.json (Jaeseok Yoon) [#359](https://github.com/nodejs/node-addon-api/pull/359)
|
|
252
466
|
* [[`fa3a6150b3`](https://github.com/nodejs/node-addon-api/commit/fa3a6150b3)] - **src**: use MakeCallback() -\> Call() in AsyncWorker (Jinho Bang) [#361](https://github.com/nodejs/node-addon-api/pull/361)
|