Skip to content

v2.0.0

Compare
Choose a tag to compare
@dr-dimitru dr-dimitru released this 11 Oct 15:12
· 65 commits to master since this release
ffdeabd

In order to follow our primary idea — simple, robust, and efficient codebase we have removed all unnecessary "features", leaving us with a classic callback-based API.

New:

  • 🤓 All new reworked, reviewed, and optimized codebase
  • 👨‍🔬 90% auto-tests coverage for HTTP(S) protocol, and 99% auto-tests coverage for library's features
  • 🧰 New options (see updated docs):
    • rejectUnauthorizedProxy - Check SSL/TLS certificate of a proxy host
    • upload - Easily upload a file with a single option
    • curlOptions - Explicitly pass options to libcurl
    • curlFeatures - Explicitly enable/disable features of libcurl
  • 🧰 API of LibCurlRequest :
    • LibCurlRequest#abort() - Abort ongoing request
    • LibCurlRequest#send() - Send (e.g. perform) pending request
    • LibCurlRequest#onData() - Hook data streaming event
    • LibCurlRequest#onHeader - Hook headers streaming event

Removed:

  • Promises API
  • Async/Await API
  • LibCurlRequest#request
  • LibCurlRequest#curl
  • LibCurlRequest#on(/*...*/) — events API

Changed:

  • 📦 node-libcurl upgraded to v2.0.2 (was v2.0.1)

Thanks to @JCMais for node-libcurl library
Thanks to @curl team for maintaining libcurl library through decades
Thanks to @bagder for building and maintaining libcurl since forever!