[WIP] package-lock.json experiment WIP #325
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This experiment illustrates a possible issue with committing
package-lock.json
as we had agreed in [1] and [2]:When updating
package-lock.json
, npm does not seem to be so smart about checking if any lower-level dependencies should be updated.The commits in this PR illustrate my observation:
package-lock.json
after npm install - shows somenpm audit
issues due to old [email protected] as explicitly required by [email protected]npm install cordova-lib@^9.0.0-nightly
(just a test) - thennpm audit
issues continue to show up even though old request version 2.79.0 is no longer neededpackage-lock.json
package-lock.json
afternpm install --package-lock-only
- now with no morenpm audit
warningsAfter step 2 (91dce43),
npm audit
gave me the following suggestion:npm update request --depth 2
to resolve 5 vulnerabilitiesWhile this suggestion should be able to resolve the warnings, I really find this process to be a bit clumsy and non-intuitive.
[1] https://lists.apache.org/thread.html/7f92561d382f143aaf49e083bbe215dcf95a3f4d8b6e3cbb6089a5f3@%3Cdev.cordova.apache.org%3E
[2] apache/cordova#4