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-metricsfrom 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
classsyntax 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
apiHostoption has been renamed tositeso that it matches up with Datadog docs and official packages. The oldapiHostname still works for now, but will be removed in the future. -
The
reporters.DataDogReporterclass 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.