Install a package with a non-SemVer or a buildID and see how they behave.
- npm v6 cuts of the buildID from the version string
- npm v7 leaves the version string unchanged
see demo snapshots.
Output of npm6 ls --json -a -l
look like this:
{
"name": "demo-package-with-build-id",
"version": "1.0.0-123",
"_id": "demo-package-with-build-id@1.0.0-123",
"_shrinkwrap": {
"name": "demo-package-with-build-id",
"version": "1.0.0-123+456",
"lockfileVersion": 1
},
// other properties
}
Output of npm7 ls --json -a -l
look like this:
{
"version": "1.0.0-123+456",
"name": "demo-package-with-build-id",
"_id": "demo-package-with-build-id@1.0.0-123+456",
// other properties
}