- [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
statusCode
anduri
to 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-join
to properly concat URL's when building the request
- [patch] Removes experimental
getBy
andgetById
methods.
- [minor] Adds
.npmignore
file to fix npm published version.
- [major] Removed use of
es6-promise
library; native promises are used now. - [minor] Adds
lodash-babel-plugin
to optimize size for browser use case.
- Fixed rate limiting to abort if retry-after header is missing
- [minor] Added optional
environment
config option
- [minor] Added
encodeParams
option 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 [email protected]
- 'DNSLookupError' now inherits from 'NetworkError'
- [minor] Added
NetworkError
, withConnectionAbortedError
,SocketTimeoutError
,ConnectionTimeoutError
,ConnectionRefusedError
sub classes. - Fixed undefined err object
- Fixed bug in error response
- [minor] Added experimental
getBy
method - [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
getAll
where 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
getById
method - Added ability to flag methods as experimental
- Refactored
request
to eliminate unneeded function - Refactored
getAll
and 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
getAllJson
in 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
concurrencyLimit
option to the constructor - Updated
qs
- Added
rateLimiting
option to the constructor - Added
mimeType
option to requests - Setting
opts.headers.Accept
andopts.headers['Content-Type']
overrides json defaults - Fixed bug where
get
anddelete
setContent-Type
- Replaced
q
withes6-promise
- Added error type
RateLimitExceededError
- Added
afterRequest
config function to transform response objects - Replaced
gulp
with npm scripts - Replaced
jshint
foreslint
- Methods now allow the format .method(url[string], opts[object]);
- Added error types
SystemServiceUnavailableError
andSystemServiceUnavailableError
getJson
,postJson
,putJson
, anddeleteJson
are deprecated- Replaced
request
withaxios
adapter to makeanx-api
isomorphic
- Updated
qs
andlodash
- Allows null or undefined urls
- Allows un-setting 'User-Agent' with config.userAgent = null
- Added
beforeRequest
config function to transform request options - Added ability to set default headers in the config.
- Added change log
- Methods return promises and callbacks are removed.