question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

createLogger breaking changes under patch release

See original GitHub issue

Please tell us about your environment:

  • winston version?
    • [+] winston@3
  • node -v outputs:
  • Operating System? macOS
  • Language? Typescript 3.5.3

What is the problem?

createLogger exported by winston, will now return Logger<winston.AbstractConfigSetLevels> which is a breaking change as before 3.3.0/3.3.1 release createLogger would return Logger.

What do you expect to happen instead?

Breaking change is introduced in a major version

Other information

n/a

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Mizumakicommented, Jun 23, 2020

@DABH Sorry to commit code with some mistakes… 😭 @Pigotz Thanks for fixing it! 👍

@rossanmol Hmm, sorry but I can’t figure out what problem occurred. Do you face some concrete problems because of this change, or you wanna just mention this is breaking change? If you have some problem, can you explain it in detail?

In my environment, T extends Config.AbstractConfigSetLevels = DefaultLevels is enough and T extends Config.AbstractConfigSetLevels = DefaultLevels | Config.AbstractConfigSetLevels doesn’t make any difference. (because if you omit the generics, always DefaultLevels is set.)

Anyway, sorry to commit the breaking change in patch release. 🙇

1reaction
DABHcommented, Jun 23, 2020

@sigorilla , I’m waiting for the fixes/changes proposed by @AuHau @Mizumaki @rossanmol . Will give those folks a few hours – I will check back in a few hours and hopefully we can get a proper fix merged and released then. Thanks all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Breaking Change" not triggering major release #139 - GitHub
breaking changes seem to not trigger a major release. ... I do have the same problem, patch and minor version are triggered correctly...
Read more >
Upcoming Breaking Changes – Azure CLI | Microsoft Learn
Learn about breaking changes coming to Azure CLI in the next breaking change release.
Read more >
Migrating to 4.0 from 3.x - Vuex
Breaking Changes. Installation process; TypeScript support; Bundles are now aligned with Vue 3; "createLogger" function is exported from the ...
Read more >
Apache log4net: Release Notes
Breaking Changes. The signature of ILoggerFactory.CreateLogger has changed. Bug Fixes. [LOG4NET-76] - TextWriterAdapter is not thread safe ...
Read more >
Changelog | skuba - GitHub Pages
This major release includes breaking changes. See the TypeScript 4.8 announcement for more information. Patch Changes. configure, template: Ignore linting on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found