Skip to content

Conversation

@markstos
Copy link
Contributor

Yesterday I suspected that maybe we should move away
from a peer dependency

#152 (comment)

And today I researched that more and confirmed, that
when upgrading from requestretry from 7 to 8, npm and classic Yarn would not automatically install postman-request because it's a peer-dep and not a direct dep.

By making postman-request a direct dep, upgrades will
go smoother.

To minimize the need to upgrade this module due to a
vuln that's found later in postman-request, we intentionally
use the ^ notation to accept any newer patch version,
so users would be able to update their lock files without
requiring a new release of this module.

To force the package-lock.json to reflect the change I rebuilt it, which created some additional churn there, although it's probably for the best as it freshed a few more things in the dependency chain.

When upgrading from 7 to 8, npm and classic Yarn
would not automatically install postman-request because
it's a peer-dep and not a direct dep.

By making postman-request a direct dep, upgrades will
go smoother.

To minimize the need to upgrade this module due to a
vuln that's found later in postman-request, we intentionally
use the `^` notation to accept any newer patch version,
so users would be able to update their lock files without
requiring a new release of this module.
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.

1 participant