peerDependencies
A dependency declaration type in npm package management, used to declare the dependencies and version ranges that the current package expects the host environment to provide. It is commonly used for plugin or adapter packages.
Core Facts
Timeline (last 90 days)
Framework adapter packages typically declare the core package as peerDependencies to avoid version mismatches and duplicate installations.
If the peer dependency range declared by a provider package does not overlap with the new version, the package manager will issue a warning or even cause installation to fail.
Having an adapter package declare a version range in dependencies or peerDependencies that is consistent with the core package is the standard practice for avoiding hidden bugs such as dependency resolution conflicts.
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 (4)
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%UnverifiedFramework adapter packages typically declare the core package as peerDependencies to avoid version mismatches and duplicate installations.
70%UnverifiedIf the peer dependency range declared by a provider package does not overlap with the new version, the package manager will issue a warning or even cause installation to fail.
70%UnverifiedHaving an adapter package declare a version range in dependencies or peerDependencies that is consistent with the core package is the standard practice for avoiding hidden bugs such as dependency resolution conflicts.
50%