-
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
[Bug]: User reports breakage with 3.14.1 #2502
Comments
@neilenns Any thoughts? Do you reckon these lines added by your PR should go in the constructor, or? |
I don't understand what issue is being reported. I pulled the latest from master and ran |
I made a simple test app with the following: const winston = require("winston");
const logger = winston.createLogger({
level: "info",
transports: [new winston.transports.Console({ forceConsole: true })],
});
logger.info("Hi!"); And verified that the version of Winston in the package-lock.json was "node_modules/winston": {
"version": "3.14.1", Everything runs fine. I don't see any errors thrown when I run the test app:
I will work to validate the PR I opened since I do believe the original fix is incorrect, but I'm at a loss for how someone hit the above error and why I'm not seeing it. |
I'm wondering also if prepending |
Here is a bit more of the stack (this feels safe to share and I was not told to not share...). So this is clearly Linux, and is coming in via the package
|
The original change was probably wrong, I'm just so used to TypeScript. The move into the constructor follows the pattern of all the other class properties so it should be fine. |
Thanks for addressing this! What is the ETA on a 3.14.2 release? This is affecting an application that I maintain. It is running forever with winston as a dependency. |
@timdhughes can you confirm that this proposed fix fixes things for you? My apologies, I’ve been stuck in multiple meetings simultaneously all day, I will try to take a look at this now… Ideally, we can just get a confirmation from someone that this is indeed a fix before I push another release |
@DABH Sure! I'll try it out later today. |
@DABH @neilenns This change works for me:
I would strongly suggest that you verify this independently since I just came across the winston and forever packages yesterday when I was tracking down the bug in my dev environment. |
v3.14.2 has been published. Thanks again all! |
🔎 Search Terms
3.14.1
The problem
A user has reported a breaking change in updating from 3.14.0 to 3.14.1. This change was reported privately; the core detail is
which is a line introduced in #2498 . Raising this as a GitHub Issue for public visibility; actively working on investigating (will just revert and push 3.14.2 if needed) but putting out several fires, hopefully will have this issue resolved in <24hr.
What version of Winston presents the issue?
v3.14.1
What version of Node are you using?
Not reported
If this worked in a previous version of Winston, which was it?
v3.14.0
Minimum Working Example
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: