Sitelet https://web.archive.org/web/20220721052615/https://github.com/nodejs/node-addon-api/commits/main
Skip to content
Permalink
main
Switch branches/tags

Commits on Jun 14, 2022

  1. Update README.md (#1187)

    * Update README.md
    
    Corrections of misspelled words.
    chineduG committed Jun 14, 2022

Commits on May 27, 2022

  1. test: add tests for TypedArray

    Add tests for TypedArray#ElementSize
    Add tests for TypedArray#BufferLength
    Add tests for TypedArray#ByteOffset
    
    PR-URL: #1179
    Reviewed-By: Kevin Eady <kevin.c.eady@gmail.com>
    Reviewed-By: Michael Dawson <midawson@redhat.com
    dantehemerson authored and mhdawson committed May 27, 2022

Commits on May 13, 2022

  1. test: Add promise unit test (#1173)

    * Add promise unit test
    egg-bread committed May 13, 2022

Commits on May 10, 2022

  1. doc: fix broken Napi::ThreadSafeFunction link (#1172)

    * docs: fix broken link `Napi::ThreadSafeFunction`
    F3n67u committed May 10, 2022
  2. src: reformat all code

    Reformat all code to pass current linter checks
    
    PR-URL: #1160
    Reviewed-By: Michael Dawson <midawson@redhat.com
    Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
    Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
    KevinEady authored and mhdawson committed May 10, 2022

Commits on May 5, 2022

  1. test: add missing value tests

    PR-URL: #1170
    Reviewed-By: Michael Dawson <midawson@redhat.com
    JckXia authored and mhdawson committed May 5, 2022

Commits on May 2, 2022

  1. Prepare release v5.0.0.

    NickNaso committed May 2, 2022

Commits on Apr 29, 2022

Commits on Apr 20, 2022

  1. src: check for tsfn in conditional_variable wait

    Fixes: #1150
    
    PR-URL: #1168
    Reviewed-By: Michael Dawson <midawson@redhat.com
    KevinEady authored and mhdawson committed Apr 20, 2022

Commits on Apr 13, 2022

  1. src: fix regression introduced by #874

    Fixes: #1158
    
    Revert part of #874
    to avoid breaking existing code.
    
    PR-URL: #1159 (review)
    Reviewed-By: Kevin Eady <kevin.c.eady@gmail.com>
    
    Signed-off-by: Michael Dawson <mdawson@devrus.com>
    mhdawson committed Apr 13, 2022

Commits on Mar 31, 2022

  1. doc: clarify ObjectWrap weak ref behavior (#1155)

    Refs: nodejs/node#42461
    
    We currently defer finalizer callbacks until the loop is idle.
    Warn users that the weak reference on ObjectWraps
    isn't guaranteed to be valid just because the object hasn't
    been finalized (destructed) yet.
    mildsunrise committed Mar 31, 2022

Commits on Mar 21, 2022

  1. build: run Windows CI only on nondeprecated build configurations (#1152)

    The windows-2016 runner has been deprecated on March 15, 2022. That is
    why those runs are getting cancelled recently. This change fixes the
    issue by removing that runner from the config.
    
    Refs: https://github.blog/changelog/2021-10-19-github-actions-the-windows-2016-runner-image-will-be-removed-from-github-hosted-runners-on-march-15-2022
    Signed-off-by: Darshan Sen <raisinten@gmail.com>
    RaisinTen committed Mar 21, 2022

Commits on Mar 11, 2022

  1. src: mark methods of wrapper classes const

    PR-URL: #874
    Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
    Reviewed-By: Michael Dawson <midawson@redhat.com
    seishun authored and mhdawson committed Mar 11, 2022

Commits on Feb 22, 2022

  1. lint: set sourceType to 'script' (#1141)

    This allows parsing `return;` outside of functions.
    addaleax committed Feb 22, 2022
  2. src: enable wrapping Napi namespace with custom namespace (#1135)

    Enable support for a `NAPI_CPP_CUSTOM_NAMESPACE` that would wrap
    the `Napi` namespace in a custom namespace.
    
    This can be helpful when there are multiple parts of a compiled
    shared library or executable that depend on `node-addon-api`,
    but different versions of it. In order to avoid symbol conflicts
    in these cases, namespacing can be used to make sure that the
    linker would not merge definitions that the compiler potentially
    generates for the node-addon-api methods.
    addaleax committed Feb 22, 2022

Commits on Feb 21, 2022

  1. Add Function::Call Napi::Value override (#1026)

    * Add Function::Call Napi::Value vector override
    
    * Fix lint issues
    rgerd committed Feb 21, 2022
  2. test: fix compilation problem on debian 8

    PR-URL: #1138
    Reviewed-By: Michael Dawson <midawson@redhat.com
    Reviewed-By: Anna Henningsen <anna@addaleax.net>
    NickNaso authored and mhdawson committed Feb 21, 2022
  3. src: do not use non-static class member for constant value (#1134)

    Non-static class members need to be set for each instantiated
    object and take up extra space, which is why constant data
    is generally provided through static members or static functions
    (and static functions are a bit easier to use in header-only C++11).
    addaleax committed Feb 21, 2022

Commits on Feb 18, 2022

  1. Merge pull request #1130 from meixg/main

    Add test case for Object Set using uint32 as key
    JckXia committed Feb 18, 2022

Commits on Feb 17, 2022

  1. Merge pull request #1132 from JckXia/test-wfl-run

    Revert `windows-latest` to use `windows-2019` before the issue gets resolved by node-gyp
    JckXia committed Feb 17, 2022
  2. src: allow customization of ObjectWrap behavior

    Add new method to allow customization of ObjectWrap behavior
    
    PR-URL: #1125
    Reviewed-By: Michael Dawson <midawson@redhat.com
    p120ph37 authored and mhdawson committed Feb 17, 2022
  3. remove window-latest to debug

    JckXia committed Feb 17, 2022
  4. Testing CI run

    JckXia committed Feb 17, 2022

Commits on Jan 31, 2022

  1. test: enhance the test framework

    - allow subset of tests to be run more easily
    Deepak Rajamohan authored and mhdawson committed Jan 31, 2022

Commits on Jan 21, 2022

  1. Prepare release v4.3.0.

    NickNaso committed Jan 21, 2022

Commits on Dec 20, 2021

Commits on Nov 26, 2021

  1. Merge pull request #1075 from JckXia/handle-error-thrown

    Add logic to handle graceful error handling when primitive errors are thrown by JS functions
    JckXia committed Nov 26, 2021
Older