peer dependency
A peer dependency is a dependency declaration introduced by npm that indicates a package requires a certain package to be provided by the host environment rather than installed by itself. It is used to avoid the same dependency being installed multiple times, which can cause inconsistencies between types and runtime behavior.
Core Facts
Timeline (last 90 days)
A peer dependency requires users to explicitly install the specified version of the package in their project rather than having the current package install it automatically.
When multiple packages share the same version sequence, upgrading only one of them may lead to unsatisfied peer dependencies or inconsistent assumptions about internal APIs.
peerDependencies is a dependency declaration mechanism in npm package management that is not automatically downloaded upon installation but instead requires the host project to provide the specified version of the dependency.
All Facts (3)
peerDependencies is a dependency declaration mechanism in npm package management that is not automatically downloaded upon installation but instead requires the host project to provide the specified version of the dependency.
80%UnverifiedA peer dependency requires users to explicitly install the specified version of the package in their project rather than having the current package install it automatically.
50%UnverifiedWhen multiple packages share the same version sequence, upgrading only one of them may lead to unsatisfied peer dependencies or inconsistent assumptions about internal APIs.
50%