This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Use peer dependencies in package.json #12481
Open
Description
When using npm
as an install mechanism it would be useful to use the peerDependencies
key to constrain the installed versions.
For example, the angular-animate
module should only be used with the corresponding Angular core version, at the moment it is easy to upgrade angular
one minor version without upgrading angular-animate
. If angular-animate@1.4.x
specified angular@1.4.x
as a peer dependency this confusion wouldn't be possible (as far as I understand npm’s resolution logic).