createLogger breaking changes under patch release
See original GitHub issuePlease 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:
- Created 3 years ago
- Reactions:6
- Comments:15 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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 andT extends Config.AbstractConfigSetLevels = DefaultLevels | Config.AbstractConfigSetLevels
doesn’t make any difference. (because if you omit the generics, alwaysDefaultLevels
is set.)Anyway, sorry to commit the breaking change in patch release. 🙇
@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.