v0.11.0
New Features:
-
Built-in TypeScript definitions. If you use TypeScript, you no longer need to install separate type definitions from
@types/datadog-metrics
— they’re now built-in. Please make sure to remove@types/datadog-metrics
from your dev dependencies.Even if you’re writing regular JavaScript, you should now see better autocomplete suggestions and documentation in editors that support TypeScript definitions (e.g. VisualStudio Code, WebStorm).
Breaking Changes:
- datadog-metrics now uses modern
class
syntax internally. In most cases, you shouldn’t need to change anything. However, if you are callingBufferedMetricsLogger.apply(...)
orBufferedMetricsLogger.call(...)
, you’ll need to change your code to usenew BufferedMetricsLogger(...)
instead.
Deprecated Features:
-
The
apiHost
option has been renamed tosite
so that it matches up with Datadog docs and official packages. The oldapiHost
name still works for now, but will be removed in the future. -
The
reporters.DataDogReporter
class has been renamed toreporters.DatadogReporter
(lower-case D in "dog") so that it correctly matches Datadog’s actual name. The old name still works, but will be removed in the future.