Comparing version 7.8.0 to 8.0.0
CHANGELOG | ||
========= | ||
## 8.0.0 (2020-9-23) | ||
* @naseemkullah Change default value for 'host' from 'localhost' to | ||
undefined. This should also 127.0.0.1 or ::1 to be used in the | ||
default case, which does look to speed things up. This should be a | ||
non-breaking change, but bumping to a major version for it given | ||
it's a very base change to the library. | ||
* @naseemkullah Switch from equals to strictEquals in tests | ||
## 7.8.0 (2020-8-28) | ||
@@ -5,0 +13,0 @@ * @bdeitte Fix some flaky tests |
@@ -49,3 +49,3 @@ const util = require('util'), | ||
this.cacheDnsTtl = options.cacheDnsTtl || CACHE_DNS_TTL_DEFAULT; | ||
this.host = options.host || process.env.DD_AGENT_HOST || 'localhost'; | ||
this.host = options.host || process.env.DD_AGENT_HOST; | ||
this.port = options.port || parseInt(process.env.DD_DOGSTATSD_PORT, 10) || 8125; | ||
@@ -52,0 +52,0 @@ this.prefix = options.prefix || ''; |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for StatsD, DogStatsD, and Telegraf", | ||
"version": "7.8.0", | ||
"version": "8.0.0", | ||
"author": "Steve Ivy", | ||
@@ -6,0 +6,0 @@ "types": "./types.d.ts", |
@@ -34,3 +34,5 @@ # hot-shots | ||
Parameters (specified as one object passed into hot-shots): | ||
* `host`: The host to send stats to, if not set, the constructor tries to retrieve it from the `DD_AGENT_HOST` environment variable, `default: localhost` | ||
* `host`: The host to send stats to, if not set, the constructor tries to | ||
retrieve it from the `DD_AGENT_HOST` environment variable, `default: 'undefined'` which as per [UDP/datagram socket docs](https://nodejs.org/api/dgram.html#dgram_socket_send_msg_offset_length_port_address_callback) results in `127.0.0.1` or `::1` being used. | ||
* `port`: The port to send stats to, if not set, the constructor tries to retrieve it from the `DD_DOGSTATSD_PORT` environment variable, `default: 8125` | ||
@@ -37,0 +39,0 @@ * `prefix`: What to prefix each stat name with `default: ''` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80407
300