-
Notifications
You must be signed in to change notification settings - Fork 7
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
Latest release should not be a patch! #18
Comments
@ChuckJonas help me understand this. An application that was using |
The problem is is that if you had something like However, if your cometd version doesn't get updated to 4.0.4, it will break. I can understand your reasoning though, and maybe you're right. It's definitely my fault for not locking package version my in dependent packages. In my case, this change broke the last 4 releases (which I've now just deprecated). But there is actually is a significant change to the way When you require/import it, it's immediately running the code to setup the runtime. The simple act of requiring a library should not throw an exception IMO. The ONLY way your node application will NOT crash is if you have the Steps to reproduce:
require('cometd');
require('cometd-nodejs-client');
EXPECTED RESULT
|
@ChuckJonas it has always been the intention of Unless you have other solutions that I can't see. Thanks! And there are already people complaining that I'm using |
@sbordet With 4.0.3, you could import It doesn't seem like there is any reason to run the code to setup cometdRuntime on import. Instead it should be postponed until a client is actually initialized for the first time. In general running code on imports should be avoided, but if you don't think there is another way I understands |
The |
Same as cometd/cometd#861
If you had a package that was relying on using this with a version previous to 4.0.4, it will automatically be upgraded and break things!
On that note, these might actually need major releases to prevent npm from auto-upgrading
The text was updated successfully, but these errors were encountered: