- problem with using IP as baseURL (issue)
- More additional builds and rollup
middleware
option for kinka instance.eslintignore
file to ignore production files
- Reduced library size (-0.3KB)
withAuth
property because it is deprecated property- non promised builds (just use polyfills)
- [Internal] Webpack build
- BREAKING CHANGE: Prev. version is haven't build files. This version is solved problem.
- Production builds
- Warnings/Checks linked with non valid type or empty value for develop kinka version
- Extra builds with the partially
Promise
support - method
kinka.clone()
to copy current kinka instance - Manual tests
credentials
property can be seated in kinka instance
- [internal] Creating of new kinka instance ( methods always will be binded to instance )
- [internal] Renamed
instanceOptions
toconfig
( forkinka.create(config)
andkinka.instanceOptions
->kinka.config
) - Renamed
withAuth
tocredentials
for more name readability
- Typo fixes in
README.md
- Property
body
fromKinkaRequestOptions
(renamed todata
) - Property
abortableKey
fromKinkaRequestOptions
(renamed tocancelToken
)
- Unit tests for request methods using
nock
andxmlhttprequest
testing libraries - Small code refactoring
- Changed logic in
parseResponseData
response helper. Currently is not required availability ofapplication/json
response headers
- Unit tests for request helpers:
- abortRequest
- createAbortableRequest
- createRequest
- getUrl
- getUrlWithQuery
- prepareRequestData
- removeAbortableKey
- requestIsSuccess
- setHeaders
- abortableRequests
- updateContentType
- Unit tests for response helpers:
- createResponse
- parseResponseData
- getHeaders
- extra
onDownloadProgress
property forKinkaRequestOptions
- extra
onUploadProgress
property forKinkaRequestOptions
- Renamed
abortableKey
tocancelToken
for more readability. - Small changes in warning deprecation messages
- default value for
KinkaResponse
.data
andKinkaResponse
.err
has been changed fromundefined
tonull
- Added default error message
{}
inKinkaResponse
if request catches error - Transforming/Preparing
data
of the request before sending on server - Transforming/Preparing
data
of the response before returning to user
- property
body
inKinkaRequestOptions
Example:kinka.post('/some-data', { body: { foo: 'bar' }})
This property will be removed in the next versions
- Fixed problems linked with creating request via kinka
- TravisCI intergration
- Unit tests for:
- kinka instance:
- kinka basic methods (
delete
,get
,head
,options
,patch
,post
,put
) - kinka
customMethods
option (kinka.create({ customMethods: ['foo'] })
) kinka.custom()
function- kinka
baseURL
option (kinka.create({ baseURL: 'https://foo.bar' })
)
- kinka basic methods (
- base helpers:
merge()
isObject()
parseJSON()
isUndefined()
- kinka instance:
- Initial karma config