Skip to content

Commit

Permalink
Merge pull request #27 from TheAppleFreak/TheAppleFreak-patch-1
Browse files Browse the repository at this point in the history
Bump version to 2.3.1
  • Loading branch information
TheAppleFreak authored May 10, 2023
2 parents 78d4a63 + ee2b781 commit 7db9145
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -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.
* Removed the old method of attaching attachments, also as a suggestion from Issue #2.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 7db9145

Please sign in to comment.