node-libcurl v2.1.0 Release Notes

Release Date: 2020-04-12 // almost 4 years ago
  • ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix retrieve-win-deps Windows build script not working correctly
    • ๐Ÿ›  Fix context switches between addon callbacks not causing Node.js to drain microtasks - (#177)
    • Fix some curl_off_t getinfo values corrupting the stack
    • WRITEFUNCTION, HEADERFUNCTION and READFUNCTION callbacks now correctly rethrow JS errors thrown inside of them.
      The return value of both callbacks is now also checked to be an integer, any other type will cause an error.
      This is considered a fix because previously the return value was being cast to an integer, which means the method would already fail, as there are remote chances (aka impossible) casting something else to an integer would yield the length of the data passed by libcurl.

    โž• Added

    • Added missing CURLOPT_SASL_AUTHZID option - libcurl 7.66.0
    • Added missing CURLE_AUTH_ERROR error code added with libcurl 7.66.0
    • Added missing CURLINFO_RETRY_AFTER info field - libcurl 7.66.0
    • Added missing CURL_HTTP_VERSION_3 constant related http version to the CurlHttpVersion enum - libcurl 7.66.0
    • Added missing CURLMOPT_MAX_CONCURRENT_STREAMS option - libcurl 7.67.0
    • Added missing CurlProgressFunc enum to reflect the new CURL_PROGRESSFUNC_CONTINUE constant - libcurl 7.68.0
    • โž• Added missing CurlSslOpt enum member NoPartialChain - libcurl 7.68.0
    • โž• Added missing CURLE_HTTP3 error code - An HTTP/3 layer problem - libcurl 7.68.0
    • Added missing CURLM_WAKEUP_FAILURE error code - wakeup is unavailable or failed - libcurl 7.68.0
    • Added missing CURLM_BAD_FUNCTION_ARGUMENT error code - function called with a bad parameter - libcurl 7.69.0
    • Added missing CURLE_QUIC_CONNECT_ERROR error code - QUIC connection error - libcurl 7.69.0
    • Added missing CURLOPT_MAIL_RCPT_ALLLOWFAILS option - libcurl 7.69.0

    ๐Ÿ”„ Changed

    • โœ… Prebuilt binaries are now compiled with libcurl 7.69.1 and, when possible, latest version of other related dependencies:
      • OpenSSL 1.1.1d
      • nghttp2 1.4.0
      • libssh2 1.9.0
    • โž• Added prebuilt binaries for:
      • Electron v8
      • NW.js v0.44, v0.43 and v0.42
    • โฌ‡๏ธ Dropped prebuilt binaries for:
      • Node.js 8
      • Electron v3, v4 and v5
      • NW.js v0.38 and v0.39
    • โœ‚ Remove dynamic require (#204)
    • ๐Ÿšš The C++ implementation for the previously removed onData and onHeader Curl/Easy instance fields has been removed - If you were still using those internal fields your code is going to break. Use WRITEFUNCTION and HEADERFUNCTION options instead.

    v2.0.3...v2.1.0