-
Notifications
You must be signed in to change notification settings - Fork 170
CB-14145 resolve npm audit issues in patch fix #281
Conversation
Why?
Why are so many additional libraries now listed there?
was this somewhere decided to how Cordova should handle
Why?
What does this mean? Won't these commits get merged to master as well? Is it correct that RELEASENOTES don't have a 6.0.1 entry here? |
Keep npm install behavior as predictable as possible.
With node_modules installed by newer version of npm (comes with non-deprecated version of Node.js), additional libraries need to be listed to work on Node.js 4. We know that Node.js 4 is deprecated but should not be dropped in a patch release:-(
I think this was discussed in document on dev list for next major release (not sure). But I think we do not want to introduce this file in patch release, that is why I added it to .gitignore.
A combination of updated dependencies and npm from non-deprecated version of Node.js results in such a massive change to node_modules that it seems cleanest to remove old node_modules before making the update.
The changes proposed here are tailored specifically to the patch release in the 6.0.x branch. A number of changes are needed in node_modules since we should not drop Node.js 4 in a patch release. But I think we do not want all of these changes in the master branch. I think we want to take a cleaner approach in the master branch: drop Node.js 4 support, remove committed node_modules, and target the next major release. I would be happy to add a note to some of the commits with the reason why we do not want them in the master branch.
Yes I did not do that part yet. (I think it should be in another JIRA task according to https://github.com/apache/cordova-coho/blob/master/docs/platforms-release-process.md.) |
Ok, to be honest I still don't really understand what is going on here, but if you are confident that this won't break anything please go ahead - I don't want to block any cleanup, and there should be no negative impact because of these changes. |
(update JS snapshot from cordova-js@4.2.4 via coho)
installed by npm@6.1.0 using the following command: npm install --only=production (not wanted in the master branch)
(needed to support deprecated Node.js 4)
Reopening, will remove appveyor.yml updates from patch fix, apologies for the confusion. |
Why? Who was confused? I have 0 context what is going on here. |
Platforms affected
Windows
What does this PR do?
npm audit
issuesnode_modules/.bin
) using the following command on npm@6.1.0:npm install --only=production
bundledDependencies
to support deprecated Node.js 4 in this patch fixadd Node.js 8 & 10 to AppVeyor CI & Travis CI in this patch fix.travis.yml
in this patch fixcordova.js
update from cordova-js@4.2.2What testing has been done on this change?
CI testing done:
npm test
and other items succeed on AppVeyor CIChecklist
Added automated test coverage as appropriate for this change.