Changelog
v0.2.2
error-retry
plugin, TypeError
should retry tooerror-retry
plugin, retryInterval
can be function
too, and add onRetry
to optionsChangelog
v0.2.1 2024/03/17
xior.get/post..
similar to axios.get/post..
API, no need create instance at firstDELETE
and OPTIONS
method's data option should be url encoded format like GET
/ HEAD
UMD
(Universal Module Definition) format bundle(now you can directly load xior in browser)VERSION
to xior
, now you can get current version of xior by: import xior from 'xior'; console.log(xior.VERSION)
error-cache
plugindedupe
pluginmock
pluginBreaking Change:
before:
import xior from 'xior';
let instance: xior;
instance = xior.create();
Now:
import xior, { XiorInstance } from 'xior';
let instance: XiorInstance;
instance = xior.create();
before:
import xior, { XiorInstance } from 'xior';
const instance = xior.create();
instance.options('/options_api_path', { text: 'this is data' }, { params: { a: 1 } });
now:
import xior, { XiorInstance } from 'xior';
const instance = xior.create();
instance.options('/options_api_path', { params: { a: 1, text: 'this is data' } });
Changelog
v0.1.4 2024-03-09
xiorInstance.defaults.headers['Authorization'] = 'Basic token';
Changelog
v0.1.1 2024-03-04
delete
method with axios, and delete
method shouldn't have bodyBreaking change:
import xior from 'xior';
const http = xior.create({ baseURL: 'https://exampled.com' });
// before
http.delete('/', {}, { params: { a: 1, b: 2 } });
// now
http.delete('/', { params: { a: 1, b: 2 } });
Changelog
v0.0.10 2024-03-01
Changelog
v0.0.9 2024-02-29
Changelog
v0.0.8 2024-02-29
paramsSerializer
and withCredentials
Changelog
v0.0.7 2024-02-27