All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
5.0.0 / 2022-04-03
- Update to awilix v7.
4.0.0 / 2022-02-14
- (Breaking) Update to Got version 12.
- Required Node.js >=14.
- This package is now pure ESM.
- Update to quick-lru v6.
- Update to mlabs-logger v9.
- Update to awilix v6.
- Update to prom-client v14.
3.2.0 / 2021-05-09
- New option
got
tocreateHttpClient
.
3.1.1 / 2021-03-03
- Downgrade quick-lru to v5 to avoid ES module issue.
3.1.0 / 2021-03-03
- New metric
requests_retried_total.
- New metric hook
metricsHandleRetry
. - New
retry
event emitted.
- Log
statusCode
on retry warning. - Metric
request_duration_milliseconds
now includes retry timings. - Update quick-lru to v6.
3.0.0 / 2020-12-24
- Publish as both ES and CommonJS module.
- (Breaking) Renamed export
createClient
tocreateHttpClient
. - (Breaking) Update prom-client to v13.
- (Breaking) Use Conditional Exports to provide ES or CommonJS module. Cannot import or require internal paths.
- (Breaking) Drop support for Node.js versions before 12.13.0.
- (Breaking) The
default
export.
2.0.1 / 2020-11-17
- Update all dependencies and test on Node Fermium.
- License to MIT.
2.0.0 / 2020-07-21
- (Breaking) Update to Got v11.
- Replaced
baseUrl
withprefixUrl
to match Got update. - Replaced
healthBaseUrl
withhealthPrefixUrl
to match. - Remove
json
option in favor of passingresponseType
inextend
option. The defaultresponseType
isjson
. - Metrics handler
data
propertyfromCache
renamed toisFromCache
. - The new Got error structure now puts many properties that use to be on the
root object under
response
. The directly effects the errors thrown by theHttpClient
. However, thestatusCode
is now copied to the root error object for convenience.
- Replaced
1.6.0 / 2020-06-18
- Update all dependencies (except to Got).
1.5.0 / 2020-03-19
- Update all dependencies (except to Got).
1.4.0 / 2019-04-11
- Open source under the Apache License, Version 2.0!
1.3.0 / 2019-03-07
- Update to Got v9.6.0.
- Option
healthBaseUrl
to override health checkbaseUrl
. - Register Got hooks via
createHooks
option. - Allow passing
hooks
tocreateClient
to be added to default got options.
- Throw informative error if metrics are not registered.
1.2.0 / 2019-02-16
- Register and use quick-lru cache with
registerClient
. - Log
fromCache
at top level. - New metrics:
http_client_requests_completed_cached_total
http_client_requests_failed_cached_total
- Handle error with metrics and cached response.
1.1.1 / 2018-12-17
- Update to makenew-node-lib v5.3.0.
1.1.0 / 2018-10-30
- Log warning on retry.
- Update Got to v9.3.0.
- Metric timings work with Got v9.3.0.
- Error contains body with Got v9.3.0.
- Initial release.