|
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 | +![Supports Deno 2.1 and Newer][deno-image] |
| 8 | +![Supports Bun 1.0 and Newer][bun-image] |
8 | 9 |
|
9 | 10 | 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. |
10 | 11 |
|
11 | 12 | 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. |
12 | 13 |
|
13 | 14 | ## Installation |
14 | 15 |
|
15 | | -Datadog-metrics is compatible with Node.js v14 and later and Deno 2.1 and later. You can install it with NPM: |
| 16 | +Datadog-metrics is compatible with Node.js v14+, Deno 2.1+, and Bun 1.0+. You can install it with NPM: |
16 | 17 |
|
17 | 18 | ```sh |
18 | 19 | npm install datadog-metrics --save |
@@ -372,13 +373,13 @@ Contributions are always welcome! For more info on how to contribute or develop |
372 | 373 |
|
373 | 374 | **Breaking Changes:** |
374 | 375 |
|
375 | | -* The minimum required Node.js version is now v14.0.0 and Deno version is 2.1.0. |
| 376 | +* The minimum required Node.js version is now v14.0.0, Deno version is 2.1.0, and Bun version is 1.0.0. |
376 | 377 |
|
377 | 378 | * 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. |
378 | 379 |
|
379 | 380 | **New Features:** |
380 | 381 |
|
381 | | -* Clarify this package is compatible with Deno (>= v2.1). We’ve silently worked on Deno for a long time, but never formally supported it before this release. |
| 382 | +* Clarify this package is compatible with Deno (>= v2.1) and Bun (>= 1.0). We’ve silently worked on Deno and Bun for a long time, but never formally supported them before this release. |
382 | 383 |
|
383 | 384 | **Deprecations:** |
384 | 385 |
|
@@ -800,4 +801,5 @@ Your contributions are always welcome! See [`CONTRIBUTING.md`](./CONTRIBUTING.md |
800 | 801 | [npm-downloads]: https://img.shields.io/npm/dm/datadog-metrics.svg?style=flat-square |
801 | 802 | [ci-status-image]: https://github.com/dbader/node-datadog-metrics/actions/workflows/ci.yml/badge.svg?branch=main |
802 | 803 | [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.1 |
| 804 | +[deno-image]: https://img.shields.io/badge/Deno-^2.1-blue?logo=deno&color=70ffaf&logoColor=ffffff |
| 805 | +[bun-image]: https://img.shields.io/badge/Bun-^1.0-blue?logo=bun&color=f368e0 |
0 commit comments