You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dependency declared in multiple dependency arrays (e.g. in both peerDeps and devDeps) with different version range is not updated correctly #411
Suppose there is a changeset that updates pkg-b to 1.0.1. The 2 packages will end up with the following state:
pkg-a
{
name: "pkg-a",
version: "1.0.0"
peerDependencies: {
pkg-b: "^1.0.0"
},
devDependencies: {
pkg-b: "1.0.0" // ISSUE: it should be bumped to 1.0.1
}
}
pkg-b
{
name: "pkg-b",
version: "1.0.1"
}
ISSUE: pkg-b in pkg-a's devDependencies is not bumped.
The issue is that changeset assumes the same dependency share the same version range across dependencies, devDependencies, peerDependencies, etc. In this case, changesets only uses the peerDependency to decide whether or not to create a release object for pkg-a. It didn't create one because pkg-b: "^1.0.0" satisfies 1.0.1.
Activity