Skip to content

Releases: Icaruk/dame

1.2.7

27 Oct 00:47
Compare
Choose a tag to compare

Fix

  • Fixed an issue with the DELETE method attempting to send an empty body. Now this method won't try to send a payload like Axios.delete does. RFC 7231 section 4.3.5 (DELETE)

1.2.6

24 Aug 15:32
Compare
Choose a tag to compare

1.2.5

11 Aug 22:39
Compare
Choose a tag to compare

Fix

  • Fixed error "Cannot read properties of null (reading 'split')" when response didn't had a Content-Type.

1.2.0

02 Sep 19:10
Compare
Choose a tag to compare

New

  • Added responseType to config (browser only). It defines the type of the data that the server will respond with.
    • Possible values are: "arraybuffer" | "stream" | "json" | "text"
    • Default value is "json"

Fix

  • redirectCount should not be present if it's value is 0.

1.1.0

14 Aug 19:58
Compare
Choose a tag to compare

Changes

  • Added the ability to follow redirects.
  • Coverage Status
  • Added redirectCount to the response object.
  • Added maxRedirects to config.

Fixes

  • The config.timeout wasn't taking priority over instance.timeout.
  • Timeout wasn't working on browser.

1.0.0

07 Aug 12:16
Compare
Choose a tag to compare

Breaking changes

  • Methods setConfig, clearConfig, getConfig have been removed.

❌ Before

dame.setConfig("default", "baseUrl", "https://yourapi.com");
dame.setConfig("default", "headers", {
	Authorization: "Bearer a4jkl.q345a.a45a.a45"
});

✅ After

const yourApi = dame.new({
	baseUrl: "https://yourapi.com",
	headers: {
		Authorization: "Bearer a4jkl.q345a.a45a.a45"
	}
});
  • The parameter configGroup on get, post, put, delete, patch methods has been removed.