request-extra

⚡️ Extremely stable HTTP request module built on top of libcurl with retries, timeouts and callback API

BSD-3-CLAUSE License

Downloads
499
Stars
23
Committers
2

Bot releases are visible (Hide)

request-extra - v4.0.0 Latest Release

Published by dr-dimitru 4 months ago

📦 NPM [email protected]

Major Changes

  • ⚠️ Min. required node.js version now is >=16.14

Whats' new

  • type: module
  • .cjs CommonJS version built via rollup.js

Updates/Changes

  • 🖥️ Default user agent upgraded to chrome@126

Dependencies

Dev Dependencies

request-extra - v3.0.0

Published by dr-dimitru almost 2 years ago

  1. 👨‍💻 Accept empty (null) values as headers option to unset default headers like Accept: and default User-Agent
  2. 👷‍♂️ Make sure form option is string when calculating Content-Length header
  3. 👨‍💻 Fix assigning and applying default options via request.defaultOptions.*
  4. 🔥 Minimum required version of node.js now ^14.14 || >=16
  5. 📦 node-libcurl updated to v3.0.0, (was v2.3.4)
  6. 📦 [dev] [email protected]
  7. 📦 [dev] [email protected]
request-extra - v2.3.4

Published by dr-dimitru over 2 years ago

This is maintenance release

request-extra - v2.3.3

Published by dr-dimitru over 2 years ago

👷‍♂️ This is maintenance release

  • 🤝 Compatibility with latest node LTS
  • 👨‍💻 Fixes for executables on various platforms from win to arm
  • 📔 Minor documentation update
  • 👨‍🔬 Tests minor updates and fixes

📦 Dependencies update

request-extra - v2.3.2

Published by dr-dimitru about 3 years ago

  • Dependencies update

Dependencies:

request-extra - v2.3.1

Published by dr-dimitru over 3 years ago

Changes:

  • 👷 Pass latest location header to the final response headers, when {followRedirect: true}
  • 👨‍💻 Return correct headers after redirect chain, when {followRedirect: true}
  • 👷 Do not continue if CURL OPTION is failed to set;
  • 📋 Documentation minor update (mostly links fixes);
  • 👨‍🔬 Test-suite update;

Dependencies:

request-extra - v2.3.0

Published by dr-dimitru over 3 years ago

  • 🤘 HTTP/3 support by latest cURL
  • 👷 Improved errors handling
  • 👷 Improved arguments type check
  • 📋 Improved documentation and examples

Added:

  • pipeTo option — Pass response data to writableStream, for example download a file to FS

Changed:

  • 👨‍💻 .pipe() method now can be used multiple times to pipe response to multiple writeable streams
  • 📦 node-libcurl upgraded to v2.3.0, was v2.2.0
  • 📦 [dev-dependency] mocha upgraded to v8.2.1, was v8.1.1
request-extra - v2.2.1

Published by dr-dimitru about 4 years ago

  • 👷 This is maintenance release;
  • 📦 node-libcurl updated to v2.2.0, was v2.1.1;
  • 📦 dev-dependency mocha updated to v8.1.1, was v7.1.2.
request-extra - v2.2.0

Published by dr-dimitru over 4 years ago

Added:

  • 👷 Add .pipe() method;
  • 📋 Update documentation with "download example" via .pipe() method;
request-extra - v2.1.0

Published by dr-dimitru over 4 years ago

Changes:

  • Minimum required Node.js version is >=9.0.0;

Updates:

  • 📦 Update node-libcurl to v2.1.1, was v2.0.3;
  • 📦 [dev-dependency] Update mocha to v7.1.2, was v7.1.1;
request-extra - v2.0.7

Published by dr-dimitru over 4 years ago

  • 👷 This is maintenance release, update potentially unsafe dependency;
  • 📦 [dev-dependency] [email protected], was v7.1.0.
request-extra - v2.0.6

Published by dr-dimitru over 4 years ago

  • 👷 Maintenance release;
  • 👨‍🔬 Update test-suite for IDN domains over HTTPS;
  • 📋 Minor documentation update;
  • 📦 [dev-dependency] update mocha to v7.1.0, was v6.2.2.
request-extra - v2.0.5

Published by dr-dimitru over 4 years ago

  • 👷 This is stability and compatibility patch release;
  • 👨‍💻 Compatibility with locally built node-libcurl. Via checking availability of Curl.option, as some of the options might be not available due to build-configuration or platform itself;
  • 📋 Documentation: Add "known issues" section;
request-extra - v2.0.4

Published by dr-dimitru almost 5 years ago

  • 👨‍🔬 Test-suite: add support for DEBUG env.var
  • 👨‍🔬 Test-suite: add tests for T-IDN (translate/punycode IDN)
  • 👨‍🔬 Test-suite and documentation: fix minor typos
  • 📦 Update node-libcurl to v2.0.3, was v2.0.2
request-extra - v2.0.3

Published by dr-dimitru almost 5 years ago

  • 👷‍♂️ Fix for timeouts
  • 👨‍🔬 Add test coverage for .abort() method
  • 👨‍💻 Fix error returned by .abort() method — as per documentation to return 499: Client Closed Request error object
request-extra - v2.0.1

Published by dr-dimitru almost 5 years ago

  • 👷‍♂️ Regular maintenance release
  • 📦 Update [dev-dependency] [email protected] (was 6.2.1)
request-extra - v2.0.0

Published by dr-dimitru about 5 years ago

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!

request-extra - v1.0.3

Published by dr-dimitru over 5 years ago

  • 👨‍💻 Minor security fix
request-extra - v1.0.2

Published by dr-dimitru over 5 years ago

  • 👨‍💻 Remove unused dev dependencies;
  • 📦 Update NPM dependencies;
  • 👷‍♂️ Minor codebase enhancements
  • 📋 Minor docs fixes.
request-extra - v1.0.1

Published by dr-dimitru over 5 years ago

  • 👷‍♂️ Fix GitHub's vulnerabilities
  • 📋 Update docs