-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createLogger breaking changes under patch release #1817
Comments
Looks like the following PR actually broke |
Will investigate but would love some help from TS-savvy people. If not, maybe the simplest solution -- since #1807 was a real bug fix -- is to add some export in |
Hi @DABH 👋 It looks like somebody forgot a generic inside the |
@Pigotz 's fix will make |
cc @Mizumaki |
Can confirm that the fix solves the problem, and However, there is another breaking change with this change where consumers could previously pass |
The generic should be |
@DABH Sorry to commit code with some mistakes... 😭 @rossanmol In my environment, Anyway, sorry to commit the breaking change in patch release. 🙇 |
Ahhhh, maybe I understand. This is your problem. right ? Wait for me to fix it. |
Here is a sample code, with the new problem (with the changes of #1817): As you can see, DefaultLevels is too strict compared to what we had before. |
Also, I believe that the methods that return another E.g. currently |
@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. |
@DABH In my conclusion, #1807 can't exist without breaking change. If anyone can fix the problem without breaking change, please take over my PR |
Thanks again all, for now we will just revert and ship this as v3.3.3. I'm definitely still interested in getting a working/backwards-compatible version of this working, if people are still interested in pursuing this. Thanks again! |
Please tell us about your environment:
winston
version?winston@3
node -v
outputs:What is the problem?
createLogger
exported by winston, will now returnLogger<winston.AbstractConfigSetLevels>
which is a breaking change as before 3.3.0/3.3.1 releasecreateLogger
would returnLogger
.What do you expect to happen instead?
Breaking change is introduced in a major version
Other information
n/a
The text was updated successfully, but these errors were encountered: