Skip to content

Releases: wolfpackthatcodes/typescript-http-client

v0.6.0

13 Feb 00:12

Choose a tag to compare

Added

  • timeout method.

Fixed

  • Replace this trivial promise with "Promise.resolve".

Removed

  • Useless constructors in custom exceptions.

v0.5.0

30 Dec 19:31

Choose a tag to compare

Added

  • OPTIONS request helper methods.

v0.4.0

30 Dec 13:30

Choose a tag to compare

Added

  • retry and withUrl methods.

Removed

  • PendingRequestUrl instance within the HTTP Client.

v0.3.0

29 Dec 17:10

Choose a tag to compare

Added

  • withOption and withOptions helper methods.

Changed

  • The HTTP Client constructor to accept an optional second parameter as an object for Fetch Options.
  • replaceHeader, withCredentials, withHeader and withToken methods to utilize the withOptions method or the options property.
  • replaceHeaders and withHeaders methods accept Header instances.

Fixed

  • Missing type for mockedResponse variable.

Removed

  • PendingRequestAuthorization, PendingRequestCredentials, and PendingRequestHeaders instances within the HTTP Client.

v0.2.0

24 Dec 16:29

Choose a tag to compare

Added

  • Support higher node versions.

Changed

  • Upgrade dev dependencies.

Fixed

  • Typo in Readme for FormData example.

v0.1.2

31 Oct 21:44
ceabb11

Choose a tag to compare

Fixed

  • Vite config for generating types entry file.

v0.1.1

31 Oct 21:33

Choose a tag to compare

Fixed

  • Remove invalid type declaration in package.json.

v0.1.0

31 Oct 20:38

Choose a tag to compare

Added

  • HEAD, GET, POST, PUT, PATCH, and DELETE request helper methods.
  • withQueryParameters method.
  • accept, acceptJson, asJson, asForm, and asUrlEncoded content type methods.
  • withHeaders, withHeader, replaceHeaders, replaceHeader helper methods.
  • withBasicAuth, and withToken authentication helper methods.
  • fake method.