Skip to content

fix: Preserve concrete dependency precedence#12682

Merged
anthonyshew merged 1 commit into
mainfrom
fix-12640
May 1, 2026
Merged

fix: Preserve concrete dependency precedence#12682
anthonyshew merged 1 commit into
mainfrom
fix-12640

Conversation

@anthonyshew

@anthonyshew anthonyshew commented May 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Prevents peer dependency workspace specifiers from adding incorrect internal graph edges when a concrete dependency declaration for the same package name already exists.
  • Keeps package graph behavior aligned with Yarn Berry resolution for packages that use an external package plus a peer on the same name.

@anthonyshew anthonyshew requested a review from a team as a code owner May 1, 2026 03:03
@anthonyshew anthonyshew requested review from tknickman and removed request for a team May 1, 2026 03:03
@vercel

vercel Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment, Open in v0 May 1, 2026 3:04am
examples-designsystem-docs Ready Ready Preview, Comment, Open in v0 May 1, 2026 3:04am
examples-gatsby-web Ready Ready Preview, Comment, Open in v0 May 1, 2026 3:04am
examples-kitchensink-blog Ready Ready Preview, Comment, Open in v0 May 1, 2026 3:04am
examples-nonmonorepo Ready Ready Preview, Comment, Open in v0 May 1, 2026 3:04am
examples-svelte-web Ready Ready Preview, Comment, Open in v0 May 1, 2026 3:04am
examples-tailwind-web Ready Ready Preview, Comment, Open in v0 May 1, 2026 3:04am
examples-vite-web Ready Ready Preview, Comment, Open in v0 May 1, 2026 3:04am
turbo-site Ready Ready Preview, Comment, Open in v0 May 1, 2026 3:04am

@anthonyshew anthonyshew merged commit f8623ee into main May 1, 2026
53 of 55 checks passed
@anthonyshew anthonyshew deleted the fix-12640 branch May 1, 2026 03:21
github-actions Bot added a commit that referenced this pull request May 1, 2026
## Release v2.9.8-canary.1

> [!CAUTION]
> Versioned docs aliasing FAILED. [View
logs](https://github.com/vercel/turborepo/actions/runs/25200681290)

### Changes

- docs: Fix link to passthrough variables source code (#12643)
(`7c64d46`)
- release(turborepo): 2.9.7-canary.15 (#12677) (`bca27f0`)
- fix: Avoid rerunning non-cacheable watch dependencies (#12678)
(`9477571`)
- release(turborepo): 2.9.7 (#12679) (`92f91fa`)
- test: Add regression for gitignored output restore (#12681)
(`9eadf5e`)
- docs: Clarify root task guidance (#12683) (`8ce7492`)
- fix: Preserve concrete dependency precedence (#12682) (`f8623ee`)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request May 3, 2026
## Release v2.9.8

> [!CAUTION]
> Versioned docs aliasing FAILED. [View
logs](https://github.com/vercel/turborepo/actions/runs/25267621420)

### Changes

- release(turborepo): 2.9.7 (#12679) (`92f91fa`)
- test: Add regression for gitignored output restore (#12681)
(`9eadf5e`)
- docs: Clarify root task guidance (#12683) (`8ce7492`)
- fix: Preserve concrete dependency precedence (#12682) (`f8623ee`)
- release(turborepo): 2.9.8-canary.1 (#12685) (`1808a21`)
- fix: Resolve Yarn catalog affected packages (#12684) (`a0dcc52`)
- release(turborepo): 2.9.8-canary.2 (#12687) (`96f9786`)
- fix: Preserve Bun prune lockfile validity (#12686) (`f3b8e22`)
- release(turborepo): 2.9.8-canary.3 (#12689) (`1b7b8a9`)
- fix: Create prune docker bin stubs (#12688) (`364c177`)
- release(turborepo): 2.9.8-canary.4 (#12690) (`c37b3ff`)
- chore: Update to Rust 1.95.0 (#12636) (`c392227`)
- fix: Keep tbx shell connections stable (#12692) (`8451e86`)
- perf: Reduce `turbo watch` hash memory spikes (#12695) (`dab9979`)
- release(turborepo): 2.9.8-canary.5 (#12696) (`fe78c2c`)
- fix: Reduce parent-death watchdog CPU usage (#12697) (`97706ca`)
- release(turborepo): 2.9.8-canary.6 (#12698) (`3895eef`)

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Turborepo incorrectly viewing as peer deps as workspace dependencies when concrete npm dependency exists

1 participant