Releases: Icaruk/dame
Releases · Icaruk/dame
1.2.7
1.2.6
Doc
- Added Configuring base instance.
1.2.5
1.2.0
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"
- Possible values are:
Fix
- redirectCount should not be present if it's value is 0.
1.1.0
1.0.0
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.