Skip to content

1.0.0

Compare
Choose a tag to compare
@Icaruk Icaruk released this 07 Aug 12:16
· 68 commits to master since this release

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.