Skip to content
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

feat: npm lock v2 and v3 support #4401

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

JamesPatrickGill
Copy link
Member

@JamesPatrickGill JamesPatrickGill commented Feb 10, 2023

What does this PR do?

This adds cli support for package-lock versions 2 and 3. These versions have been in use since npm7.

Previous support for npm-lock-v2 exists but was using older dep-tree logic. This PR also upgrades this to use dep-graph solely.

@JamesPatrickGill JamesPatrickGill requested a review from a team as a code owner February 10, 2023 16:01
@JamesPatrickGill JamesPatrickGill marked this pull request as draft February 10, 2023 16:01
@JamesPatrickGill JamesPatrickGill force-pushed the feat/npm-lock-v2-and-v3-support branch 11 times, most recently from df425af to 8ea0b4f Compare February 13, 2023 16:21
@JamesPatrickGill JamesPatrickGill marked this pull request as ready for review February 13, 2023 16:31
@JamesPatrickGill JamesPatrickGill requested a review from a team as a code owner February 13, 2023 16:31
admons
admons previously approved these changes Feb 14, 2023
src/lib/plugins/nodejs-plugin/index.ts Outdated Show resolved Hide resolved
@JamesPatrickGill JamesPatrickGill force-pushed the feat/npm-lock-v2-and-v3-support branch 2 times, most recently from 3ef807a to 17f44d3 Compare February 28, 2023 15:14
@JamesPatrickGill JamesPatrickGill force-pushed the feat/npm-lock-v2-and-v3-support branch 2 times, most recently from 228780c to 138388b Compare March 6, 2023 11:56
@JamesPatrickGill
Copy link
Member Author

This PR is dependent on the new version of nodejs-lockfile-parser that will be published by this PR snyk/nodejs-lockfile-parser#182

@JamesPatrickGill JamesPatrickGill force-pushed the feat/npm-lock-v2-and-v3-support branch 4 times, most recently from 6511e07 to b393ab2 Compare March 7, 2023 17:22
@JamesPatrickGill JamesPatrickGill merged commit 6f68e92 into master Mar 22, 2023
@JamesPatrickGill JamesPatrickGill deleted the feat/npm-lock-v2-and-v3-support branch March 22, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants