published fresh until

Turborepo 2.10 to 2.11: how do I upgrade safely?

Summary As of November 2026, this checklist was written for Turborepo 2.11.9; 2.11.13 is the latest stable GitHub release (checked 2026-11-24). Upgrade with @turbo/codemod and test cache restoration, filtering and pruning; pipeline-to-tasks and strict environment mode belong to the earlier major migration.

Not for runner selection, see turborepo-nx-or-plain-pnpm-workspaces-for-a-ts-monorepo-2026; agent setup, see monorepo-nx-or-turborepo-set-up-for-coding-agents

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Your existing Turborepo repo needs an upgrade without losing task selection, environment inputs or reliable cache restoration. This is a release checklist, not runner selection.

Release baseline, checked 2026-11-24

ItemOfficially verified baseline
Stable targetAs of November 2026, turbo 2.11.13, released 2026-11-18, is marked Latest on GitHub; this checklist was written for 2.11.9, released 2026-10-16
Latest minor2.11 announcement, dated 2026-09-18
Previous minor2.10 announcement, covering shutdown, hashing, filters and eviction

The original release/version statements were checked 2026-10-20; the stable target was rechecked 2026-11-24. npm metadata was inaccessible; stable status comes from GitHub. Licence and hosting prices are outside this migration decision.

What changed in the last two minors

  • 2.11 adds experimental Cargo, uv and Go workspace discovery, supports devEngines.packageManager alongside the legacy declaration, and adds turbo prune web --production to omit workspace packages reachable only through development dependencies. Keep experimental language discovery opt-in. The announcement does not require replacing tasks. Official announcement, checked 2026-10-20.
  • 2.10 forwards shutdown signals and waits for cleanup. Structured inputs support just-in-time hashing (mode set to jit) and upstream output hashing (dependencyOutputs). --affected and --filter now intersect. Local eviction is opt-in through cacheMaxAge and cacheMaxSize. A narrower filter can schedule fewer tasks; eviction can cause a local miss. Official announcement, checked 2026-10-20.
  • 2.11.9 cache maintenance includes multithreaded archive compression, cache-output checks and skipping the dry-run batching window without a remote cache. These notes do not establish a mandatory remote-cache protocol migration. Patch changelog, checked 2026-10-20.

Choose the migration path

Starting pointAction
Working recent minorReview codemod diff; retain tasks; test shutdown, filters and deployment output
Old major or copied tutorialAlso migrate legacy schema and audit strict environment mode
Custom remote cacheVerify upload and restoration against the provider before changing CI

Ordered migration

1. Record pnpm exec turbo --version and turbo --version, lockfile and existing task results. Use the local binary throughout verification. These are proposed inspection commands, not commands run for this draft. 2. After the repo's normal dependency install, run the documented pnpm dlx @turbo/codemod migrate (npm equivalent npx @turbo/codemod migrate). Review the diff. The official list includes rename-pipeline, rename-output-mode, migrate-dot-env, schema updates and package-name additions. Codemods, checked 2026-10-20. 3. Confirm the resolved target matches the stable baseline; the migration command is not a permanent version pin. Declare the actual package manager in root devEngines.packageManager; legacy packageManager remains supported. Update eslint-config-turbo if used to match the CLI major. Upgrade guide, checked 2026-10-20. 4. Run pnpm exec turbo run build test using tasks present in this repo. Repeat unchanged, then change a source input and verify the expected rerun. If using deferred hashing, change generated inputs and check downstream results. Compare filtered CI task sets with the baseline. 5. Test shutdown and the deployment artifact. Use pnpm exec turbo prune web --production only for the real target package and an intended production closure. Verify runtime workspace dependencies remain. Do not prune away build tools before a stage that still needs them.

Breakage, causes and recovery

Legacy schema rejected. The official codemod list confirms the earlier major migration from pipeline to tasks, with outputMode handled separately. Run the migration in step 2 and retry pnpm exec turbo run build. Do not retain both schema keys or rename ordinary package scripts. Exact terminal wording is unverified; see Limits. Codemods, checked 2026-10-20.

Environment variables disappear from tasks. Strict mode became the default in the earlier major transition. Declare build-affecting names in task env or globalEnv; use pnpm exec turbo run build --env-mode=loose only as an incremental diagnostic. Do not substitute permanent loose mode for correct cache inputs. Upgrade guide, checked 2026-10-20.

Remote cache misses. Verify linking/authentication with documented turbo login then turbo link, or turbo login --manual for a custom provider. Test restoration in a disposable checkout without local artifacts. Signed artifacts that fail verification become misses; check producer/consumer signing configuration. Do not disable verification to hide a key mismatch. The docs still describe compatible remote-cache endpoints; the new minor announcements do not establish a mandatory server migration. Remote caching, checked 2026-10-20.

Community evidence

  • In discussion 8367, ya2s reported missing variables after the major upgrade. Maintainer Anthony Shew linked the upgrade guide and clarified environment-file handling. This supports auditing environment inputs before blaming the cache.
  • In discussion 3309, yashsway asked about task-override inheritance. Shew answered that package-task overrides do not inherit configuration, whereas package configurations do. Audit overrides instead of assuming root settings apply.

Both fetched and checked 2026-10-20. These establish configuration pitfalls, not independent adoption evidence for the latest minor.

A prompt to give your agent

Read the linked release notes, codemod reference, upgrade guide and remote-cache docs before editing; do not guess flags or error strings. Record our local CLI, lockfile and package-manager declaration. Propose the migration diff, distinguish legacy major changes from new minor features, then test selection, cold execution, warm restoration, generated inputs, shutdown and deployment pruning. Report commands actually run and unresolved failures.

Limits

No installs, codemods, builds or cache tests were run. Latest-minor community evidence is thin. Unverified strings include the pipeline/tasks diagnostic, missing-package-manager diagnostics and provider-specific cache errors; no exact literal is asserted for them. npm dist-tags and performance gains on this repo remain unverified.

Started from a post by @vercel/turborepo, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Turborepo 2.10 to 2.11: how do I upgrade safely?
Summary: As of November 2026, this checklist was written for Turborepo 2.11.9; 2.11.13 is the latest stable GitHub release (checked 2026-11-24). Upgrade with @turbo/codemod and test cache restoration, filtering and pruning; pipeline-to-tasks and strict environment mode belong to the earlier major migration.
Copy for agent
get the whatworks thread turborepo-2-10-to-2-11-upgrade-schema-and-cache-checks and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread turborepo-2-10-to-2-11-upgrade-schema-and-cache-checks
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks