-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Change jade dependency to pug after their renaming #2200
Comments
We cannot upgrade to |
@boneskull Please be more specific. How can this break old versions of npm? |
If a dependency or nested dependency uses tildes/carets in their package.json, it breaks old npm support. Check here for an example: #2121 (comment) Using npm 1.2.30, I get several failures since they can't resolve versions with
|
Is there an estimated date for this? |
@donaldpipowitch There's lots to fix before dropping support for v0.8.x. Is this just because of the warning, or? |
No, just a general question :) I was a little surprised that 0.8.x is still so important? |
I think @boneskull has a better insight regarding 0.8 usage. |
it just sucks getting this warning message every time I like to use mocha. And cheers - I love your work! |
@mitselek The only acceptable option is to upgrade the dependency in the next major version, it's not a weak excuse.
Cheers! |
Actually I fail to understand, how would it be breaking change in this particular case. |
Well, I didn't expect this issue to trigger so many opinions :-) I understand both sides. Yes, maintaining compatibility of old versions of Node.js/npm is important (even though this shows that v0.8 is well buried, I fully understand it cannot be removed before next major bump of Mocha). Yes, this warning is indeed annoying. So, what about nicely requesting @pugjs to |
@mitselek, it wouldn't break automatic updates to Mocha as a dependency using the caret, but (at least according to the documentation for the old version of npm in question) it would still break updates using |
I don't understand the caret problem. It depends on npm and not Node or am I wrong? 0.8 Node users can use the newest npm. |
Let me clear up any confusion:
If it becomes critical to upgrade to Workaround 1Fork Workaround 2Change the log level of For the skeptics: Need convincing? Try @mitselek: Your demands that we "fix" this issue are not well-received; it makes you sound spoiled. Please understand that this is an open-source project, and you are not entitled to support. |
(linking to pugjs/pug#2184) |
(also #1887) |
@boneskull I apologise for my semi-intentional unpolite language. I encounter closed-source coding on daily basis so I really do appreciate quality and commitment so abundant in open-source world. For some reason I do have greatly higher expectations for support even acknowledging that I do not have any legal basis. Maybe thats because I love to point corporate coders to open-source community, where lots of effort is put into "thinking before acting" versus just spit it out and let the customer to suck it up. So I want to make sure we have thought about every possible solution to not show unnecessary warning messages in install procedures to millions of users every month. I can't emphasise enough how thankful I am for existence of projects like this. |
Looks like no one has taken @astorije 's advice yet so I opened an issue on pug's tracker: pugjs/pug#2384 |
Thanks @iknowcss! |
|
I believe I read somewhere that npm learnt from past mistakes (left-pad) and will not allow unpublishing of packages that have been longer than 12h in the registry or had any downloads. But someone should confirm this.
|
@dasilvacontin - @TimothyGu confirmed on another thread that despite what that post said, old versions of jade will not be unpublished from npm regardless of whether npm would heed such a request anyway |
yes, another left-pad-gate would likely be avoided. |
As I mentioned in the Pug issue, the Jade version used by Mocha is extremely old. Is there a specific reason/issue holding back the update? |
It would break old versions of node as per this comment: Seems it might be updated in the next major release of mochajs |
The jade/pug dependency was removed in v3 major version. ping @boneskull |
v3 isn't published yet, right? This is still an issue until/unless #2356 is addressed. |
Looks like it's really close. In Sails, I'm just doing balderdashy/captains-log@f2fffc3 in the mean time. @boneskull Let me know if I can help. |
…. Bump mocha to 3.0 prerelease to get rid of deprecation msgs. Also loosen semver ranges on mp-fs/mp-process devDeps.
Right, v3.0.0 removes the jade/pug dependency altogether. I'll close this |
See #2350 for status |
It was already mentioned in #1811, and the original discussion comes from pugjs/pug#2184.
At the moment, installing the latest
mocha
(2.4.5), we get the following warning:I wanted to take a shot at it but realized you've been using a 2012-old version of
jade
for reasons, and it looks like they haven't released old versions under the new name, so unless they do, it's not a trivial change.Maybe a start could be requesting them to publish specific versions considering they have git tags for them...
The text was updated successfully, but these errors were encountered: