Update dependency winston to v3
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
winston | ^2.0.0 -> ^3.0.0 |
Release Notes
winstonjs/winston (winston)
v3.9.0
Functionality changes
- Handle undefined errors in getAllInfo in exception-handler in https://github.com/winstonjs/winston/pull/2208; thanks to new contributor @eivindrs
- fix: properly allow passing non-array transport in https://github.com/winstonjs/winston/pull/2256; thanks to new contributor @Tanuel
- fix #1732 (Http Transport uses JSON format options as request options) in https://github.com/winstonjs/winston/pull/2272; thanks to new contributor @MoritzLoewenstein (minor version bump per comment on the issue)
- fix: add guard clause to prevent FD leak in https://github.com/winstonjs/winston/pull/2301; thanks to new contributor @td-tomasz-joniec
@dependabot + CI autotesting
Dependency updates by- Bump eslint from 8.23.0 to 8.32.0 by @dependabot in https://github.com/winstonjs/winston/pull/2209, https://github.com/winstonjs/winston/pull/2236, https://github.com/winstonjs/winston/pull/2258, & https://github.com/winstonjs/winston/pull/2271
- Bump @babel/core from 7.19.0 to 7.20.12 by @dependabot in https://github.com/winstonjs/winston/pull/2206, https://github.com/winstonjs/winston/pull/2234, https://github.com/winstonjs/winston/pull/2259, & https://github.com/winstonjs/winston/pull/2275
- Bump @types/node from 18.0.0 to 18.11.18 by @dependabot in https://github.com/winstonjs/winston/pull/2215, https://github.com/winstonjs/winston/pull/2235, & https://github.com/winstonjs/winston/pull/2264
- Bump @babel/preset-env from 7.19.0 to 7.20.2 by @dependabot in https://github.com/winstonjs/winston/pull/2218 & https://github.com/winstonjs/winston/pull/2244
- Bump safe-stable-stringify from 2.3.1 to 2.4.3 by @dependabot in https://github.com/winstonjs/winston/pull/2217 & https://github.com/winstonjs/winston/pull/2292
- Bump @babel/cli from 7.18.10 to 7.19.3 by @dependabot in https://github.com/winstonjs/winston/pull/2216
- Bump json5 from 2.2.1 to 2.2.3 by @dependabot in https://github.com/winstonjs/winston/pull/2260
Documentation changes
- Fix readme typo in https://github.com/winstonjs/winston/pull/2230; thanks to new contributor @aretecode
- create new example for ready to use in https://github.com/winstonjs/winston/pull/2240; thanks to new contributor @myagizmaktav
- minor fixes to publishing.md
Build Infrastructure changes
- GitHub Workflows security hardening in https://github.com/winstonjs/winston/pull/2252; thanks to new contributor @sashashura
v3.8.2
Patch-level changes
- Add
.js
to main entry point in package.json in https://github.com/winstonjs/winston/pull/2177; thanks to new contributor @rumanbsl - Small grammatical fixes in README.md in https://github.com/winstonjs/winston/pull/2183; thanks to new contributor @mikebarr24
- Move colors to non-dev dependencies by @wbt in https://github.com/winstonjs/winston/pull/2190
@dependabot + CI autotesting
Dependency updates by- Bump @babel/preset-env from 7.18.2 to 7.19.0 in https://github.com/winstonjs/winston/pull/2189
- Bump @babel/cli from 7.17.10 to 7.18.10 in https://github.com/winstonjs/winston/pull/2173
- Bump eslint from 8.18.0 to 8.23.0 in https://github.com/winstonjs/winston/pull/2184
- Bump @babel/core from 7.18.5 to 7.19.0 in https://github.com/winstonjs/winston/pull/2192
- Bump logform from 2.4.1 to 2.4.2 in https://github.com/winstonjs/winston/pull/2191
v3.8.1
Patch-level changes
- Update types to match in-code definitions in https://github.com/winstonjs/winston/pull/2157; thanks to new contributor @flappyBug
@dependabot + CI autotesting
Dependency updates by- Bump logform from 2.4.0 to 2.4.1 in https://github.com/winstonjs/winston/pull/2156
- Bump async from 3.2.3 to 3.2.4 in https://github.com/winstonjs/winston/pull/2147
v3.8.0
Added functionality
- Add the stringify replacer option to the HTTP transport by @domiins in https://github.com/winstonjs/winston/pull/2155
@dependabot + CI autotesting
Dependency updates by- Bump @babel/core from 7.17.8 to 7.18.5
- Bump eslint from 8.12.0 to 8.18.0
- Bump @types/node from 17.0.23 to 18.0.0
- Bump @babel/preset-env from 7.16.11 to 7.18.2
- Bump @babel/cli from 7.17.6 to 7.17.10
Updates facilitating repo maintenance & enhancing documentation
- Explicitly note that the Contributing.md file is out of date
- Add instructions for publishing updated version by @wbt (docs/publishing.md)
- Prettier Config File by @jeanpierrecarvalho in https://github.com/winstonjs/winston/pull/2092
- Readme update to explain origin of errors for handling (#2120)
- update documentation for #2114 by @zizifn in https://github.com/winstonjs/winston/pull/2138
- enhance message for logs with no transports #2114 by @zizifn in https://github.com/winstonjs/winston/pull/2139
- Added a new Community Transport option to the list: Worker Thread based async Console Transport by @arpad1337 in https://github.com/winstonjs/winston/pull/2140
Thanks especially to new contributors @zizifn, @arpad1337, @domiins, & @jeanpierrecarvalho!
v3.7.2
This change reverts what should have been the feature-level update in 3.7.0 due to issue #2103 showing this to be breaking, unintentionally.
v3.7.1
This change includes some minor updates to package-lock.json resolving npm audit failures: one in ansi-regex and another in minimist.
v3.6.0
- [#2057] Fix potential memory leak by not waiting for
process.nextTick
before clearing pending callbacks (thanks @smashah!) - [#2071] Update to
logform
2.4.0, which includes changes such as new options forJsonOptions
and some typo fixes regarding levels - Various other dependencies are updated, tests are reorganized and cleaned up, etc. (thanks @wbt, @Maverick1872, @fearphage!)
v3.5.1
This release reverts the changes made in MR #1896 which added stricter typing to the available log levels, and inadvertently broke use of custom levels with TypeScript (Issue #2047). Apologies for that!
v3.5.0
This release includes the following, in sequence by first merge in group:
Feature updates:
Patch-level updates:
- Bump dependency versions (thanks @dependabot & @DABH!)
- Bump @types/node from 16.11.12 to 17.0.8 (MR #2009)
- Bump @babel/preset-env from 7.16.7 to 7.16.8 (#2036)
- Bump @types/node from 17.0.8 to 17.0.9 (#2035)
- Bump @babel/cli from 7.16.7 to 7.16.8 (#2034)
- Bump @types/node from 17.0.9 to 17.0.10 (#2042)
- Bump @babel/core from 7.16.7 to 7.16.12 (#2041)
- Bump @babel/preset-env from 7.16.8 to 7.16.11 (#2040)
- Fixing documentation syntax errors in transports code examples (#1916; thanks @romanzaycev!)
- Fix missing type declarations, especially for
.rejections
(#1842, #1929, #2021; thanks @vanflux, @svaj, @glensc, & others!) - More narrowly typing the “level” string (#1896, thanks @yonas-g!)
- Using a safer
stringify
, e.g. to avoid issues from circular structures, in the http transport (#2043, thanks @karlwir!)
Updates to the repo & project which don’t actually affect the running code:
- Add a channel for reporting security vulnerabilities (#2024, thanks @JamieSlome!)
- Add coverage tracking in CI & documentation (#2025 and #2028, thanks @fearphage!)
- Update issue templates (#2030 and #2031, thanks @Maverick1872!)
- Remove gitter link from README.md (#2027, thanks @DABH!)
Thanks also to maintainers @DABH, @fearphage, @Maverick1872, and @wbt for issue/MR shepherding and help across multiple parts of the release! If somebody got missed in the list of thanks, please forgive the accidental oversight and/or feel free to open a MR on this changelog.
v3.4.0
Yesterday's release was done with a higher sense of urgency than usual
due to vandalism in the colors
package.
This release:
- ties up a loose end by including [#1973] to go with [#1824]
- adds a missing http property in NpmConfigSetColors [#2004] (thanks @SimDaSong)
- fixes a minor issue in the build/release process [#2014]
- pins the version of the testing framework to avoid an issue with a test incorrectly failing [#2017]
The biggest change in this release, motivating the feature-level update, is [#2006] Make winston more ESM friendly, thanks to @miguelcobain.
Thanks also to @DABH, @wbt, and @fearphage for contributions and reviews!
v3.3.4
Compared to v3.3.3, this version fixes some issues and includes some updates to project infrastructure, such as replacing Travis with Github CI and dependabot configuration. There have also been several relatively minor improvements to documentation, and incorporation of some updated dependencies. Dependency updates include a critical bug fix [#2008] in response to self-vandalism by the author of a dependency.
- [#1964] Added documentation for how to use a new externally maintained Seq transport.
- [#1712] Add default metadata when calling log with string level and message.
- [#1824] Unbind event listeners on close
- [#1961] Handle undefined rejections
- [#1878] Correct boolean evaluation of empty-string value for eol option
- [#1977] Improved consistency of object parameters for better test reliability
v3.3.3
v3.3.2
- [#1814] Use a fork of
diagnostics
published to NPM to avoid git dependency.
v3.3.1
- [#1803], [#1807] Fix TypeScript bugs.
- [#1740] Add space between
info.message
andmeta.message
. - [#1813] Avoid indirect storage-engine dependency.
- [#1810] README updates.
v3.3.0
- [#1779] Fix property name in rejection handler.
- [#1768] Exclude extraneous files from NPM package.
- [#1364], [#1714] Don't remove transport from logger when transport error occurs.
- [#1603] Expose
child
property on default logger. - [#1777] Allow HTTP transport to pass options to request.
- [#1662] Add bearer auth capabilities to HTTP transport.
- [#1612] Remove no-op in file transport.
- [#1622], [#1623], [#1625] Typescript fixes.
- (Minor) [#1647], [#1793] Update CI settings.
- (Minor) [#1600], [#1605], [#1593], [#1610], [#1654], [#1656], [#1661], [#1651], [#1652], [#1677], [#1683], [#1684], [#1700], [#1697], [#1650], [#1705], [#1723], [#1737], [#1733], [#1743], [#1750], [#1754], [#1780], [#1778] README, Transports.md, other docs changes.
- [#1672], [#1686], [#1772] Update dependencies.
v3.2.1
UNBOUND MROTOTYPE AD INFINITUM EDITION
-
#[1579], (@indexzero) Fallback to the "root" instance always created by
createLogger
for level convenience methods (e.g..info()
,.silly()
). (Fixes [#1577]). - [#1539], (@indexzero) Assume message is the empty string when level-helper methods are invoked with no arguments (Fixed [#1501]).
- [#1583], (@kibertoad) Add typings for defaultMeta (Fixes [#1582])
- [#1586], (@kibertoad) Update dependencies.
v3.2.0
SORRY IT TOO SO LONG EDITION
NOTE: this was our first release using Github Projects. See the 3.2.0 Release Project.
New Features!
- [#1471], (@kibertoad) Implement child loggers.
- [#1462], (@drazisil) Add handleRejection support.
- [#1418], (@mfrisbey) Precompile ES6 syntax before publishing to npm.
- [#1533], (@kibertoad) Update to Babel 7.
- [#1562], (@indexzero) [fix] Better handling of
new Error(string)
throughout the pipeline(s). (Fixes [#1338], [#1486]).
Bug Fixes
- [#1355], (@DABH) Fix issues with ExceptionHandler (Fixes [#1289]).
- [#1463], (@SerayaEryn) Bubble transport
warn
events up to logger in addition toerror
s. - [#1480], [#1503], (@SerayaEryn) File tailrolling fix.
- [#1483], (@soldair) Assign log levels to un-bound functions.
- [#1513], (@TilaTheHun0) Set maxListeners for Console transport.
- [#1521], (@jamesbechet) Fix Transform from
readable-stream
using CRA. - [#1434], (@Kouzukii) Fixes logger.query function (regression from
3.0.0
) - [#1526], (@pixtron) Log file without .gz for tailable (Fixes [#1525]).
- [#1559], (@eubnara) Fix typo related to
exitOnError
. - [#1556], (@adoyle-h) Support to create log directory if it doesn't exist for FileTransport.
splat
behavior
New - [#1552], (@indexzero) Consistent handling of meta with (and without)
interpolation in
winston
andlogform
. - [#1499], (@DABH) Provide all of
SPLAT
to formats (Fixes [#1485]). - [#1485], (@mpabst) Fixing off-by-one when using both meta and splat.
Previously splat
would have added a meta
property for any additional
info[SPLAT]
beyond the expected number of tokens.
As of logform@2.0.0
, format.splat
assumes additional splat paramters
(aka "metas") are objects and merges enumerable properties into the info
.
e.g. BE ADVISED previous "metas" that were not objects will very likely
lead to odd behavior. e.g.
const { createLogger, format, transports } = require('winston');
const { splat } = format;
const { MESSAGE, LEVEL, SPLAT } = require('triple-beam');
const logger = createLogger({
format: format.combine(
format.splat(),
format.json()
),
transports: [new transports.Console()]
});
// Expects two tokens, but four splat parameters provided.
logger.info(
'Let us %s for %j', // message
'objects', // used for %s
{ label: 'sure' }, // used for %j
'lol', ['ok', 'why'] // Multiple additional meta values
);
// winston < 3.2.0 && logform@1.x behavior:
// Added "meta" property.
//
// { level: 'info',
// message: 'Let us objects for {"label":"sure"}',
// meta: ['lol', ['ok', 'why']],
// [Symbol(level)]: 'info',
// [Symbol(message)]: 'Let us %s for %j',
// [Symbol(splat)]: [ 'objects', { label: 'sure' } ] }
// winston >= 3.2.0 && logform@2.x behavior: Enumerable properties
// assigned into `info`. Since **strings and Arrays only have NUMERIC
// enumerable properties we get this behavior!**
//
// { '0': 'ok',
// '1': 'why',
// '2': 'l',
// level: 'info',
// message: 'Let us objects for {"label":"sure"}',
// [Symbol(level)]: 'info',
// [Symbol(message)]: 'Let us %s for %j',
// [Symbol(splat)]: [ 'objects', { label: 'sure' } ] }
v3.1.0
RELEASES ON A PLANE EDITION
- Minor TypeScript fixes [#1362], [#1395], [#1440]
- Fix minor typos [#1359], [#1363], [#1372], [#1378], [#1390]
- [#1373], (@revik): Add
consoleWarnLevels
property to console transport options forconsole.warn
browser support. - [#1394], (@bzoz): Fix tests on Windows.
- [#1447], (@dboshardy): Support transport name option to override default names for built-in transports.
- [#1420], (@ledbit): Fix file rotation with
tailing: true
(Fixes [#1450], [#1194]). - [#1352], (@lutovich): Add
isLevelEnabled(string)
&isXXXEnabled()
toLogger
class. - Dependency management
- Regenerate
package-lock.json
. - Upgrade to
colors@^1.3.2
(Fixes [#1439]). - Upgrade to
logform@^1.9.1
. - Upgrade to
diagnostics@^1.1.1
. - Upgrade to
@types/node@^10.9.3
. - Upgrade to
assume@^2.1.0
. - Upgrade to
hock@^1.3.3
. - Upgrade to
mocha@^5.2.0
. - Upgrade to
nyc@^13.0.1
. - Upgrade to
split2@​^3.0.0
.
- Regenerate
v3.0.1
v3.0.0
GET IN THE CHOPPA EDITION
- [#1332], (@DABH): logger.debug is sent to stderr (Fixed [#1024])
- [#1328], (@ChrisAlderson): Logger level doesn't update transports level (Fixes [#1191]).
- [#1356], (@indexzero) Move splat functionality into logform. (Fixes [#1298]).
- [#1340], (@indexzero): Check log.length when evaluating "legacyness" of transports (Fixes [#1280]).
- [#1346], (@indexzero): Implement
_final
from Node.js streams. (Related to winston-transport#24, Fixes [#1250]). - [#1347], (@indexzero): Wrap calls to
format.transform
with try / catch (Fixes [#1261]). - [#1357], (@indexzero): Remove paddings as we have no use for it in the current API.
- [TODO]: REMAINS OPEN, NO MR (Fixes [#1289])
- Documentation
- [#1301], (@westonpace) Cleaned up some of the documentation on
colorize
to address concerns in [#1095]. - First pass at a heavy refactor of
docs/transports.md
.
- [#1301], (@westonpace) Cleaned up some of the documentation on
- Dependency management
- Regenerate
package-lock.json
. - Upgrade to
logform@^1.9.0
.
- Regenerate
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.