|
4 | 4 | [![NPM Version][npm-image]][npm-url] |
5 | 5 | [![Build Status][ci-status-image]][ci-status-url] |
6 | 6 | [![Downloads Stats][npm-downloads]][npm-url] |
| 7 | +![deno compatibility][deno-image] |
7 | 8 |
|
8 | 9 | Datadog-metrics lets you collect application metrics through Datadog's HTTP API. Using the HTTP API has the benefit that you **don't need to install the Datadog Agent (StatsD)**. Just get an API key, install the module and you're ready to go. |
9 | 10 |
|
10 | 11 | The downside of using the HTTP API is that it can negatively affect your app's performance. Datadog-metrics **solves this issue by buffering metrics locally and periodically flushing them** to Datadog. |
11 | 12 |
|
12 | 13 | ## Installation |
13 | 14 |
|
14 | | -Datadog-metrics is compatible with Node.js v14 and later. You can install it with NPM: |
| 15 | +Datadog-metrics is compatible with Node.js v14 and later and Deno 2.0 and later. You can install it with NPM: |
15 | 16 |
|
16 | 17 | ```sh |
17 | 18 | npm install datadog-metrics --save |
@@ -371,13 +372,13 @@ Contributions are always welcome! For more info on how to contribute or develop |
371 | 372 |
|
372 | 373 | **Breaking Changes:** |
373 | 374 |
|
374 | | -* The minimum required Node.js version is now v14.0.0. |
| 375 | +* The minimum required Node.js version is now v14.0.0 and Deno version is 2.0.0. |
375 | 376 |
|
376 | 377 | * The `code` property on `AuthorizationError` instances has been changed to `DATADOG_METRICS_AUTHORIZATION_ERROR` for clarity and consistency (it was previously `DATADOG_AUTHORIZATION_ERROR`). If you are using `errorInstance.code` to check types, make sure to update the string you were looking for. |
377 | 378 |
|
378 | 379 | **New Features:** |
379 | 380 |
|
380 | | -TBD |
| 381 | +* Clarify this package is compatible with Deno (>= v2.0). We’ve silently worked on Deno for a long time, but never formally supported it before this release. |
381 | 382 |
|
382 | 383 | **Deprecations:** |
383 | 384 |
|
@@ -799,3 +800,4 @@ Your contributions are always welcome! See [`CONTRIBUTING.md`](./CONTRIBUTING.md |
799 | 800 | [npm-downloads]: https://img.shields.io/npm/dm/datadog-metrics.svg?style=flat-square |
800 | 801 | [ci-status-image]: https://github.com/dbader/node-datadog-metrics/actions/workflows/ci.yml/badge.svg?branch=main |
801 | 802 | [ci-status-url]: https://github.com/dbader/node-datadog-metrics/actions/workflows/ci.yml?query=branch%3Amain |
| 803 | +[deno-image]: https://shield.deno.dev/deno/2.0 |
0 commit comments