-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
4.0.2 is broken? #29
Comments
I think the issue is only with v4.0.2, as from what I can remember, it was fixed in v5.0.0: 343ac6e |
It will be much better with the upcoming TS 4.5: https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/ |
Thanks. Since I found this by chance and it impacted my network performance significantly, do you think it would be good to unpublish 4.0.2? Sure, that will break some installs, but it's better to go back to 4.0.1 if you're on ^4. At least, wiser from this, I've now added caching metrics to my code to keep track on the hit rate, so there's some good out of this. :) |
It's not possible to remove versions, but I have deprecated 4.0.2 with a message to stay on 4.0.1 or upgrade to 5.0.0. |
That's unfortunate when |
@fregante Why is it unfortunate? People that don't have a lockfile get notified that they're running on a broken version. |
Who reads npm install logs? They're so noisy. Leaving a broken version as HEAD of v4 is not great practice, especially if the solution is just republishing 4.0.1 as 4.0.3 (even if breaking for the 1 user who depends on the new behavior, it's not breaking for literally everyone else) |
Not to mention that "stay on 4.0.1" means manually editing every package.json that uses "^4.0.0" |
@sindresorhus is it possible to backport fixes from 343ac6e to 4.0.3? I agree with @fregante, people rarely read through all install logs, and just switching to |
You can use |
Right, but that works only for Node >= 12 if I’m correct?
This seems like reasonable solution. We would need ponyfill (or basic implementation) for |
Node.js 14. So it's a good solution if you're not making reusable packages. |
Am I mistaken, or are all releases between 4.0.2 up to 6.0.0 broken?
I was running 4.0.1 for a long time in production with good results, but today when measuring some caching metrics I realized I had lots of misses. Turns out this commit breaks the caching of promises by calling
await
on the returned promise before putting it in the cache. Am I right?I realize this is not a big deal since it IS fixed in 6.0.0, but perhaps put a note on the Readme or something to stay away from 4.0.2 and 5.x? Can you even revert the 4.0.2 release so that ^4.0.1 in package.json does not pick it up?
(BTW I had severe problems going to 6.0 due to the ESM change. I can't for my life get tsconfig to play ball when this module uses ESM. Still struggling...)
The text was updated successfully, but these errors were encountered: