Skip to content

Commit 3614136

Browse files
authored
Prepare v0.12.1 (#143)
Release v0.12.1 with some maintenance updates and the new `process.beforeExit` functionality from #141.
1 parent 31ababb commit 3614136

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

README.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -367,34 +367,20 @@ Contributions are always welcome! For more info on how to contribute or develop
367367

368368
## Release History
369369

370-
### In Development:
371-
372-
**Breaking Changes:**
373-
374-
TBD
370+
### 0.12.1 (2024-12-18)
375371

376372
**New Features:**
377373

378-
* 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.
379-
380-
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).
381-
382-
**Deprecations:**
383-
384-
TBD
385-
386-
**Bug Fixes:**
387-
388-
TBD
374+
* 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)
389375

390-
**Maintenance:**
376+
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).
391377

392-
TBD
378+
* 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)
393379

394-
[View diff](https://github.com/dbader/node-datadog-metrics/compare/v0.12.0...main)
380+
[View diff](https://github.com/dbader/node-datadog-metrics/compare/v0.12.0...v0.12.1)
395381

396382

397-
### 0.12.0 (2024-12-5)
383+
### 0.12.0 (2024-12-05)
398384

399385
Datadog-metrics now automatically retries failed metric submissions and uses promises for asynchronous actions! There are a handful of other deprecations and small improvements.
400386

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "datadog-metrics",
3-
"version": "0.12.1-dev",
3+
"version": "0.12.1",
44
"description": "Buffered metrics reporting via the Datadog HTTP API",
55
"main": "index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)