Skip to content

Commit

Permalink
Prepare v0.12.1 (#143)
Browse files Browse the repository at this point in the history
Release v0.12.1 with some maintenance updates and the new `process.beforeExit` functionality from #141.
  • Loading branch information
Mr0grog authored Dec 19, 2024
1 parent 31ababb commit 3614136
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
26 changes: 6 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 3614136

Please sign in to comment.