Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
131 lines (100 loc) · 3.95 KB

CHANGELOG.md

File metadata and controls

131 lines (100 loc) · 3.95 KB

CHANGELOG

[3.0.0-alpha.1]

Fixed

  • problem with using IP as baseURL (issue)

Added

  • More additional builds and rollup
  • middleware option for kinka instance
  • .eslintignore file to ignore production files

Changed

  • Reduced library size (-0.3KB)

Removed

  • withAuth property because it is deprecated property
  • non promised builds (just use polyfills)
  • [Internal] Webpack build

Fixed

  • BREAKING CHANGE: Prev. version is haven't build files. This version is solved problem.

Fixed

  • Production builds

Added

  • 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

Changed

  • [internal] Creating of new kinka instance ( methods always will be binded to instance )
  • [internal] Renamed instanceOptions to config ( for kinka.create(config) and kinka.instanceOptions -> kinka.config )
  • Renamed withAuth to credentials for more name readability

Fixed

  • Typo fixes in README.md

Removed

  • Property body from KinkaRequestOptions (renamed to data)
  • Property abortableKey from KinkaRequestOptions (renamed to cancelToken)

Changed

  • Unit tests for request methods using nock and xmlhttprequest testing libraries
  • Small code refactoring
  • Changed logic in parseResponseData response helper. Currently is not required availability of application/json response headers

Added

  • 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 for KinkaRequestOptions
  • extra onUploadProgress property for KinkaRequestOptions

Changed

  • Renamed abortableKey to cancelToken for more readability.
  • Small changes in warning deprecation messages

Changed

  • default value for KinkaResponse.data and KinkaResponse.err has been changed from undefined to null

Fixed

  • Added default error message {} in KinkaResponse if request catches error
  • Transforming/Preparing data of the request before sending on server
  • Transforming/Preparing data of the response before returning to user

Deprecated

  • property body in KinkaRequestOptions
    Example: kinka.post('/some-data', { body: { foo: 'bar' }})
    This property will be removed in the next versions

Fixed

  • Fixed problems linked with creating request via kinka

Added

  • 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' }))
    • base helpers:
      • merge()
      • isObject()
      • parseJSON()
      • isUndefined()
  • Initial karma config