- [patch] Updated axios
- [patch] Removed pre-push for security reasons
- [patch] Updated dev dependencies
- [patch] Updated axios
- [patch] Updated dev dependencies
- [major] Reworked errors
- [patch] Added eslint
- [patch] Various lint fixes
- [patch] Bumped jest and ts-jest versions
- [patch] More strict internal types
- [patch] Unit tested concurrency
- [minor] Added
statusCodeandurito the root response object
- [major] Converted project to typescript
- [minor] Updated dependencies and converted from nsp to npm audit
[major] Adds in the package url-join to properly concat URL's when building the request. This breaking change requires partial url segments to be used when making requests instead of specifying fully-qualified paths. See: #70
- [patch] reverts changes made in v5.0.3 due to breaking change
- [patch] Adds in the package
url-jointo properly concat URL's when building the request
- [patch] Removes experimental
getByandgetByIdmethods.
- [minor] Adds
.npmignorefile to fix npm published version.
- [major] Removed use of
es6-promiselibrary; native promises are used now. - [minor] Adds
lodash-babel-pluginto optimize size for browser use case.
- Fixed rate limiting to abort if retry-after header is missing
- [minor] Added optional
environmentconfig option
- [minor] Added
encodeParamsoption for params
- [minor] Added original request options to the response
res.req - Converted from Mocha to Jest
- Added eslint-config-appnexus
- Fixed missing content in request queue
- Added coveralls.io
- Upgraded nock
- Fixed rate limiting
- Updated Axios@0.15.0
- 'DNSLookupError' now inherits from 'NetworkError'
- [minor] Added
NetworkError, withConnectionAbortedError,SocketTimeoutError,ConnectionTimeoutError,ConnectionRefusedErrorsub classes. - Fixed undefined err object
- Fixed bug in error response
- [minor] Added experimental
getBymethod - [minor] Added request options in the response object
res.req - [minor] Added request options in the error object
err.req - [minor] Added request response in the error object
err.res - [major] Revamped internal error building, error api slightly changed
- Updated dependencies
- [minor] Added totalTime to response object
- [major] Removed deprecated methods
requestJson,getJson,getAllJson,postJson,putJson, anddeleteJson
- Fixed bug in
getAllwhere it did not fail on first api error - Fixed formatting for DNS Lookup Errors
- Fixed bug in axiosAdapter error handling
- Added pre-push lint and dependency checks
- [minor] Added default timeout to 60 seconds
- [minor] Added experimental
getByIdmethod - Added ability to flag methods as experimental
- Refactored
requestto eliminate unneeded function - Refactored
getAlland added unit tests for it
- Updated dependencies
- [minor] Added config unit test
- Fixed error handling for newer axios version
- [minor] Rate limiting on by default
- [minor] Added support for retry-after header [API v1.17]
- Added rate limit detection with status code 429 [API v1.17]
- Deprecated
getAllJsonin favor ofgetAll - 'getAllJson' no longer designated as experimental.
- Fixed paging in
getAllJson
- Temporary fix for FireFox not supporting
Error.captureStackTrace - Fixed various bugs with error handling.
- Added
DNSLookupError
- [minor] Added
concurrencyLimitoption to the constructor - Updated
qs
- Added
rateLimitingoption to the constructor - Added
mimeTypeoption to requests - Setting
opts.headers.Acceptandopts.headers['Content-Type']overrides json defaults - Fixed bug where
getanddeletesetContent-Type - Replaced
qwithes6-promise - Added error type
RateLimitExceededError - Added
afterRequestconfig function to transform response objects - Replaced
gulpwith npm scripts - Replaced
jshintforeslint - Methods now allow the format .method(url[string], opts[object]);
- Added error types
SystemServiceUnavailableErrorandSystemServiceUnavailableError getJson,postJson,putJson, anddeleteJsonare deprecated- Replaced
requestwithaxiosadapter to makeanx-apiisomorphic
- Updated
qsandlodash - Allows null or undefined urls
- Allows un-setting 'User-Agent' with config.userAgent = null
- Added
beforeRequestconfig function to transform request options - Added ability to set default headers in the config.
- Added change log
- Methods return promises and callbacks are removed.