diff --git a/README.md b/README.md index b0ae1aa..3876a19 100644 --- a/README.md +++ b/README.md @@ -367,34 +367,20 @@ Contributions are always welcome! For more info on how to contribute or develop ## Release History -### In Development: - -**Breaking Changes:** - -TBD +### 0.12.1 (2024-12-18) **New Features:** -* When auto-flushing is enabled, metrics are now also flushed before the process exits. In previous versions, you needed to do this manually by calling `metrics.flush()` at the every end of your program. - - You will still need to flush manually if you set `flushIntervalSeconds` to `0` or you are quitting your program by calling `process.exit()` [(which interrupts a variety of operations)](https://nodejs.org/docs/latest/api/process.html#processexitcode). - -**Deprecations:** - -TBD - -**Bug Fixes:** - -TBD +* When auto-flushing is enabled, metrics are now also flushed before the process exits. In previous versions, you needed to do this manually by calling `metrics.flush()` at the every end of your program. (#141) -**Maintenance:** + You will still need to flush manually if you set `flushIntervalSeconds` to `0` or `stop()` (see below) if you are quitting your program by calling `process.exit()` [(which interrupts a variety of operations)](https://nodejs.org/docs/latest/api/process.html#processexitcode). -TBD +* A new `stop()` method disables auto-flushing and flushes any currently buffered metrics (you can leave metrics in the buffer instead with the `flush` option: `stop({flush: false})`). (#141) -[View diff](https://github.com/dbader/node-datadog-metrics/compare/v0.12.0...main) +[View diff](https://github.com/dbader/node-datadog-metrics/compare/v0.12.0...v0.12.1) -### 0.12.0 (2024-12-5) +### 0.12.0 (2024-12-05) Datadog-metrics now automatically retries failed metric submissions and uses promises for asynchronous actions! There are a handful of other deprecations and small improvements. diff --git a/package.json b/package.json index 6b2964c..467f1e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datadog-metrics", - "version": "0.12.1-dev", + "version": "0.12.1", "description": "Buffered metrics reporting via the Datadog HTTP API", "main": "index.js", "types": "dist/index.d.ts",