Skip to content

Latest commit

 

History

History
89 lines (58 loc) · 1.73 KB

CHANGELOG.md

File metadata and controls

89 lines (58 loc) · 1.73 KB

reqclient CHANGELOG

2.0.1

  • Fixed quote character used when system environment variables are used in cURL logging.

2.0.0

  • Added HTTP Authentication support.
  • Added OAuth2 Authentication support.
  • Added full URL parameter support on each call.
  • If debugResponse is activated and a response has HTTP Status >= 400 it will log with error severity.
  • Added an optional parameter options to all public method to override the default options.

Backward incompatible changes

  • _prepareOptions() method now builds the request options in async mode returning a Promise, useful to add options obtained from external resources without blocking the execution, like an access token from an OAuth server.
  • The new options parameter replace the cacheTtl parameter in the get() method. Now this parameter is a optional property inside the options parameter (eg. {cacheTtl: 60, ...}).

1.2.2

  • Fixed mutable header issue.

1.2.1

  • Fixed formData debug with null values.

1.2.0

  • Improvements in form and formData submits, useful to send files.
  • Use encodeURIComponent() to encode query parameters.

1.1.1

  • Fixed query parameter binding issue.
  • Minor fix in README.

1.1.0

  • Added config option encodeQuery to encode "unsafe" characters in the URL query parameters.
  • Fixed cURL debug output to not add content-type header if it's a GET or DELETE request (no body present).

1.0.0

  • Added cache support.
  • Added default headers configuration.
  • Refactor how config options is passed to the constructor class.
  • Improvements in README docs.

0.1.1

  • Fixed "DELETE" method.
  • Fixed README docs

0.1.0

Initial source code.