This repository was archived by the owner on Jul 24, 2024. It is now read-only.
Releases: AfterShip/aftership-sdk-nodejs
Releases · AfterShip/aftership-sdk-nodejs
6.1.0
Bug fix - export
- Fix aftership.js export function argument
- Fix payload.js export function argument
Aftership.call(...) support override default api_key
New feature:
Aftership.call(...)
support overrideapi_key
via options and control rate-limit for each API key
Bug fix:
retry with meta.code >= 500
toretry with meta.code = [500, 502, 503, 504]
Support return promise
New feature
Aftership.call(...)
will return promise, if last argument is not function
Rate limit options + bug fix
New feature
rate
flag in constructor, if enable, will retry429 too many request
when the rate is reset
Bug fix
- rate_limiter is
String
, parse it toNumber
- Retry request.js error - [ETIMEDOUT, ECONNRESET, ECONNREFUSED]