Skip to content

Commit 0752bce

Browse files
committed
Merge branch 'release/v2.3.5'
2 parents 8c4c8bd + 9211187 commit 0752bce

6 files changed

+977
-3427
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
## [v2.3.5] - 2021-05-23
11+
### Changed
12+
- [#26](https://github.com/ivanmarban/winston-telegram/issues/26) Set `handleExceptions` option `true` by default.
13+
1014
## [v2.3.4] - 2021-04-02
1115
### Fixed
1216
- [#25](https://github.com/ivanmarban/winston-telegram/issues/25) Winston Transport can only be default-imported using the 'esModuleInterop' flag.
@@ -128,7 +132,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
128132
## [v0.1.0] - 2015-11-12
129133
- First version.
130134

131-
[unreleased]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.4...develop
135+
[unreleased]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.5...develop
136+
[v2.3.5]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.4...v2.3.5
132137
[v2.3.4]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.3...v2.3.4
133138
[v2.3.3]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.2...v2.3.3
134139
[v2.3.2]: https://github.com/ivanmarban/winston-telegram/compare/v2.3.1...v2.3.2

lib/winston-telegram.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare namespace WinstonTelegram {
2626
template?: string
2727
/** Format output message by own method. */
2828
formatMessage?: (params: WinstonTelegram.FormatOptions) => string
29-
/** Handle uncaught exceptions. (default false) */
29+
/** Handle uncaught exceptions. (default true) */
3030
handleExceptions?: boolean
3131
/** Time in ms within which to batch messages together. (default = 0) (0 = disabled) */
3232
batchingDelay?: number

lib/winston-telegram.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = class Telegram extends Transport {
4242
this.chatId = options.chatId
4343
this.parseMode = options.parseMode || ''
4444
this.level = options.level || 'info'
45-
this.handleExceptions = options.handleExceptions || false
45+
this.handleExceptions = options.handleExceptions || true
4646
this.unique = options.unique || false
4747
this.silent = options.silent || false
4848
this.disableNotification = options.disableNotification || false

0 commit comments

Comments
 (0)