Turborepo 2.0.0
featured
note: la synthèse et les notes de version sont en anglais
warning: action requise
4 breaking changes5 points clés
Turborepo 2.0 removes legacy flags and config and makes validation stricter, so review breaking changes first.
synthèse · uniquement d’après les notes de version · claude-haiku-5-5 · prompt v7
breaking changestous cités, chacun avec un correctif
breaking[1]: Legacy filter flags are removed.
23chore: remove legacy filter flags by @chris-olszewski in https://github.com/vercel/turbo/pull/8294/
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
=help: The notes give no replacement, so check your scripts for the removed filter flags and use the current filter syntax.
breaking[2]: The outputMode option in turbo.json is renamed to outputLogs.
33refactor(turborepo): Rename outputMode to outputLogs in turbo.json by @NicholasLYang in #8149
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
=help: Rename outputMode to outputLogs in turbo.json.
breaking[3]: Env vars in task and global dependencies now cause a hard error.
26chore(turbo)! hard error on env vars in task and global dependencies by @mehulkar in #8026
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
=help: The notes give no steps, so check the env vars listed in task and global dependencies in turbo.json and remove any that should not be there.
breaking[4]: A packageManager field is now required in package.json.
27feat: require packageManager in package.json by @chris-olszewski in #8017
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
=help: Check that package.json sets a packageManager field.
points clés
release-notesgithub.com/vercel/turborepo · 61 lignes
- <!-- Release notes generated using configuration in .github/turborepo-release.yml at v2.0.0 -->
- ## What's Changed
- Upgrade guide: https://turbo.build/repo/docs/crafting-your-repository/upgrading
- ### @turbo/codemod
- * feat(codemod): add logic for major version bump by @chris-olszewski in https://github.com/vercel/turbo/pull/8260
- * feat(codemod): place tasks last in turbo.json rewrites by @chris-olszewski in https://github.com/vercel/turbo/pull/8268
- * fix(codemod): support jsonc when parsing root turbo.json by @chris-olszewski in https://github.com/vercel/turbo/pull/8279
- * fix(codemod): respect --dry flag by @chris-olszewski in https://github.com/vercel/turbo/pull/8280
- * feat: change values of "ui" in turbo.json by @chris-olszewski in https://github.com/vercel/turbo/pull/8289
- * fix(codemod): support jsonc when parsing root turbo.json by @chris-olszewski in https://github.com/vercel/turbo/pull/8279
- * feat(codemod): place tasks last in turbo.json rewrites by @chris-olszewski in https://github.com/vercel/turbo/pull/8268
- * feat(codemod): add logic for major version bump by @chris-olszewski in https://github.com/vercel/turbo/pull/8260
- * feat(codemod): add missing package names by @tknickman in https://github.com/vercel/turbo/pull/8186
- ### Changelog
- #### Breaking
- * chore: remove legacy filter flags by @chris-olszewski in https://github.com/vercel/turbo/pull/8294/
- * chore(turborepo): adjust error message for pipeline by @NicholasLYang in https://github.com/vercel/turbo/pull/8264
- * chore(turbo)!: remove check for legacy turbo config in package.json by @mehulkar in https://github.com/vercel/turbo/pull/8023
- * chore(turbo)! hard error on env vars in task and global dependencies by @mehulkar in #8026
- * feat: require packageManager in package.json by @chris-olszewski in #8017
- * feat(filter): no longer infer scope in filters by @chris-olszewski in #8137
- * chore!(create-turbo): remove old pm arg by @tknickman in #8150
- * feat: error on empty package name by @chris-olszewski #8152
- * feat(filter): error on invalid filters by @chris-olszewski #8142
- * Move fs cache location. by @anthonyshew in #8126
- * refactor(turborepo): Rename outputMode to outputLogs in turbo.json by @NicholasLYang in #8149
- * feat: --only now applies to package dependencies by @chris-olszewski in #8163
- * Rename pipeline to tasks. by @anthonyshew in #8157
- * feat: add doublestar to exact dir paths by @chris-olszewski in #8180
- * chore: remove globalDotEnv and dotEnv fields by @chris-olszewski in #8181
- * chore: make env mode strict by default by @chris-olszewski in #8182
- #### Other
- * feat: allow for negative globs in globalDeps by @chris-olszewski in #8190
- * chore: change turborepo licenses to MIT by @chris-olszewski in #8197
- * feat: all dependencies of root package contribute to global hash by @chris-olszewski in #8202
- * fix(turborepo): non-determinism with root internal deps hash. by @NicholasLYang in https://github.com/vercel/turbo/pull/8277
- * fix: update integration test to expect correct output by @chris-olszewski in https://github.com/vercel/turbo/pull/8285
- * chore: remove cpuprofile flag by @chris-olszewski in https://github.com/vercel/turbo/pull/8282
- * fix(ui): disable UI on all dry runs by @chris-olszewski in https://github.com/vercel/turbo/pull/8269
- * fix(turborepo): stderr log by @NicholasLYang in https://github.com/vercel/turbo/pull/8267
- * chore(turborepo): adjust error message for pipeline by @NicholasLYang in https://github.com/vercel/turbo/pull/8264
- * fix(ui): ensure prelude gets printed before ui starts by @chris-olszewski in https://github.com/vercel/turbo/pull/8265
- * chore(@turbo/benchmark): fix lint warnings by @mehulkar in https://github.com/vercel/turbo/pull/8233
- * chore(turborepo): Feature flagged off file hashing by @NicholasLYang in https://github.com/vercel/turbo/pull/8229
- * chore: downgrade curl to fix Windows rust tests by @chris-olszewski in https://github.com/vercel/turbo/pull/8242
- * fix(turborepo): Remove optional git locks by @NicholasLYang in https://github.com/vercel/turbo/pull/8244
- * fix(turborepo): Optional lock with env var by @NicholasLYang in https://github.com/vercel/turbo/pull/8247
- * add two retry strategies to allow requests to timeout gracefully by @arlyon in https://github.com/vercel/turbo/pull/8080
- * add support for upload speed / remaining in the cache upload step by @arlyon in https://github.com/vercel/turbo/pull/8081
- * chore: remove --ignore flag by @chris-olszewski in https://github.com/vercel/turbo/pull/8201
- * feat: factor engines into global cache key by @chris-olszewski in #8173
- **Full Changelog**: https://github.com/vercel/turbo/compare/v1.13.4...v2.0.0
-->voir sur githubimported 2026-09-28 via npm