Skip to content

Update dependency winston to v3

Renovate Bot requested to merge renovate/winston-3.x into master

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
winston ^2.0.0 -> ^3.0.0 age adoption passing confidence

Release Notes

winstonjs/winston (winston)

v3.9.0

Compare Source

Functionality changes
Dependency updates by @​dependabot + CI autotesting
Documentation changes
Build Infrastructure changes

v3.8.2

Compare Source

Patch-level changes
Dependency updates by @​dependabot + CI autotesting

v3.8.1

Compare Source

Patch-level changes
Dependency updates by @​dependabot + CI autotesting

v3.8.0

Compare Source

Added functionality
Dependency updates by @​dependabot + CI autotesting
Updates facilitating repo maintenance & enhancing documentation

Thanks especially to new contributors @​zizifn, @​arpad1337, @​domiins, & @​jeanpierrecarvalho!

v3.7.2

Compare Source

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

Compare Source

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

Compare Source

  • [#​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 for JsonOptions 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

Compare Source

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

Compare Source

This release includes the following, in sequence by first merge in group:

Feature updates:

Patch-level updates:

Updates to the repo & project which don’t actually affect the running code:

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

Compare Source

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

Compare Source

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

Compare Source

  • [#​1820] Revert [#​1807] to resolve breaking changes for Typescript users.

v3.3.2

Compare Source

  • [#​1814] Use a fork of diagnostics published to NPM to avoid git dependency.

v3.3.1

Compare Source

v3.3.0

Compare Source

v3.2.1

Compare Source

UNBOUND MROTOTYPE AD INFINITUM EDITION

v3.2.0

Compare Source

SORRY IT TOO SO LONG EDITION

NOTE: this was our first release using Github Projects. See the 3.2.0 Release Project.

New Features!
Bug Fixes
New splat behavior

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

Compare Source

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 for console.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() to Logger 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@&#8203;^3.0.0.

v3.0.1

Compare Source

v3.0.0

Compare Source

GET IN THE CHOPPA EDITION

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Edited by Renovate Bot

Merge request reports