From bc8c04da4bd260f00b87d6cfc0e983c033f49e18 Mon Sep 17 00:00:00 2001 From: TheAppleFreak Date: Wed, 10 May 2023 19:07:06 -0400 Subject: [PATCH 1/2] Update CHANGELOG for v2.3.1 --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13c021a..e8d1ba7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ (all dates use the ISO-8601 format, which is YYYY/MM/DD) +## 2.3.1 (2023/5/10) + +* The `SlackHookOptions` type now extends `TransportStreamOptions`. This change is courtesy of [Pull #26](https://github.com/TheAppleFreak/winston-slack-webhook-transport/pull/26). Thanks @DominicRoyStang! + ## 2.3.0 (2023/4/5) * Added an option (`emitAxiosErrors`) to enable or disable emitting errors if Axios throws an error. Previously, if Axios returned an error for any reason, this would emit an error, which if unhandled would be treated as an unhandled exception. This includes potentially transient issues, such as if Slack would return an error for any reason, including API outages or `429 Too Many Requests` errors. This option requires the user to explicitly opt into this behavior, and is `false` by default. This closes [Issue #24](https://github.com/TheAppleFreak/winston-slack-webhook-transport/issues/24). Thanks @jbojbo for bringing this to my attention! @@ -101,4 +105,4 @@ * Reworked the logger so it uses [request](https://github.com/request/request) instead of the much heavier Slack API. * Added support for the new [Layout Blocks](https://api.slack.com/messaging/composing/layouts) formatting option that Slack recently introduced. * Implemented formatter suggestion from [Issue #2](https://github.com/TheAppleFreak/winston-slack-webhook-transport/issues/2) to tidy up the logger calls. -* Removed the old method of attaching attachments, also as a suggestion from Issue #2. \ No newline at end of file +* Removed the old method of attaching attachments, also as a suggestion from Issue #2. From ee2b7815a6f3b668fe518996da3e7f72e9eb29a7 Mon Sep 17 00:00:00 2001 From: TheAppleFreak Date: Wed, 10 May 2023 19:09:25 -0400 Subject: [PATCH 2/2] Bump version to v2.3.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a84926a..8609d04 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "winston-slack-webhook-transport", - "version": "2.3.0", + "version": "2.3.1", "description": "A Slack transport for Winston 3 that logs to a channel via webhooks.", "main": "slackHook.js", "typings": "./slackHook.d.ts",