turbo
2.11.13 · 18 Nov 2026MIT48.2M / weekRepositoryHomepagenpmAtom feed
1.13.4 is the newest release of 1.x.
In short
1 deprecated4 new8 fixed2 changed6 internal
- Deprecated
Pnpx command is deprecated in version 6.x
Security
1 advisory affects 1.0.25; 2.9.14 fixes them
- ModerateTurbo: Login callback CSRF/session fixationGHSA-hcf7-66rw-9f5r · 19 May 2026Fixed in 2.9.14
Release note
What's new?
Environment variable dependencies and hashing
When you use turbo with tools which inline environment variables at build time (e.g. Next.js or Create React App), it is important you tell turbo about it. Otherwise, you could ship a cached artifact with the wrong environment variables!
With this release, you can now change a task hash by doing any of the following:
(new) Including environment variables in a
dependsOnin yourpipelinedefinition prefixed by a$will impact the cache fingerprint on a per-task or per-package-task basis.(new) Including environment variables in
globalDependencieslist prefixed by a$will impact the cache fingerprint of all tasks.Including files or globs of files in
globalDependencieswill impact the cache fingerprint of all tasks.(new) The value of any environment variable that includes
THASHin its name will impact the cache fingerprint of all tasks.
Example Configuration
{
"turbo": {
"pipeline": {
"build": {
"dependsOn": {
"^build"
// env vars will impact hashes of all "build" tasks
"$SOME_ENV_VAR"
},
"outputs": ["dist/**"]
},
"web#build": { // override settings for the "build" task for the "web" app
"dependsOn": [
"^build",
// env vars that will impact the hash of "build" task for only "web" app
"$STRIPE_SECRET_KEY",
"$NEXT_PUBLIC_STRIPE_PUBLIC_KEY",
"$NEXT_PUBLIC_ANALYTICS_ID",
],
"outputs": [".next/**"],
},
"docs#build": { // override settings for the "build" task for the "docs" app
"dependsOn": [
"^build",
// env vars that will impact the hash of "build" task for only "web" app
"$STRIPE_SECRET_KEY",
"$NEXT_PUBLIC_STRIPE_PUBLIC_KEY",
"$NEXT_PUBLIC_ANALYTICS_ID",
],
"outputs": [".next/**"],
}
},
"baseBranch": "origin/main",
"globalDependencies": [
"$GITHUB_TOKEN"// env var that will impact the hashes of all tasks,
"tsconfig.json" // file contents will impact the hashes of all tasks,
".env.*" // glob file contents will impact the hashes of all tasks,
],
}
}Bugfixes
Correctly show pnpx command in
create-turboTreat symlink directory as directory in
globalDependenciesFix cpu overloading during long running tasks
Better error message when
workspacesare not defined
Commits
Fix kitchen-sink test #466
- Deprecated
Pnpx command is deprecated in version 6.x
Treat symlink directory as directory
Move runOptions stream checks before the
forloop to prevent cpu loadQoL changes for using examples
Hash env vars
Error when workspaces are not defined
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.