Aller au contenu
verdict:

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.

chore: 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.

refactor(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.

chore(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.

feat: 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
  1. <!-- Release notes generated using configuration in .github/turborepo-release.yml at v2.0.0 -->
  2. ## What's Changed
  3. Upgrade guide: https://turbo.build/repo/docs/crafting-your-repository/upgrading
  4. ### @turbo/codemod
  5. * feat(codemod): add logic for major version bump by @chris-olszewski in https://github.com/vercel/turbo/pull/8260
  6. * feat(codemod): place tasks last in turbo.json rewrites by @chris-olszewski in https://github.com/vercel/turbo/pull/8268
  7. * fix(codemod): support jsonc when parsing root turbo.json by @chris-olszewski in https://github.com/vercel/turbo/pull/8279
  8. * fix(codemod): respect --dry flag by @chris-olszewski in https://github.com/vercel/turbo/pull/8280
  9. * feat: change values of "ui" in turbo.json by @chris-olszewski in https://github.com/vercel/turbo/pull/8289
  10. * fix(codemod): support jsonc when parsing root turbo.json by @chris-olszewski in https://github.com/vercel/turbo/pull/8279
  11. * feat(codemod): place tasks last in turbo.json rewrites by @chris-olszewski in https://github.com/vercel/turbo/pull/8268
  12. * feat(codemod): add logic for major version bump by @chris-olszewski in https://github.com/vercel/turbo/pull/8260
  13. * feat(codemod): add missing package names by @tknickman in https://github.com/vercel/turbo/pull/8186
  14. ### Changelog
  15. #### Breaking
  16. * chore: remove legacy filter flags by @chris-olszewski in https://github.com/vercel/turbo/pull/8294/
  17. * chore(turborepo): adjust error message for pipeline by @NicholasLYang in https://github.com/vercel/turbo/pull/8264
  18. * chore(turbo)!: remove check for legacy turbo config in package.json by @mehulkar in https://github.com/vercel/turbo/pull/8023
  19. * chore(turbo)! hard error on env vars in task and global dependencies by @mehulkar in #8026
  20. * feat: require packageManager in package.json by @chris-olszewski in #8017
  21. * feat(filter): no longer infer scope in filters by @chris-olszewski in #8137
  22. * chore!(create-turbo): remove old pm arg by @tknickman in #8150
  23. * feat: error on empty package name by @chris-olszewski #8152
  24. * feat(filter): error on invalid filters by @chris-olszewski #8142
  25. * Move fs cache location. by @anthonyshew in #8126
  26. * refactor(turborepo): Rename outputMode to outputLogs in turbo.json by @NicholasLYang in #8149
  27. * feat: --only now applies to package dependencies by @chris-olszewski in #8163
  28. * Rename pipeline to tasks. by @anthonyshew in #8157
  29. * feat: add doublestar to exact dir paths by @chris-olszewski in #8180
  30. * chore: remove globalDotEnv and dotEnv fields by @chris-olszewski in #8181
  31. * chore: make env mode strict by default by @chris-olszewski in #8182
  32. #### Other
  33. * feat: allow for negative globs in globalDeps by @chris-olszewski in #8190
  34. * chore: change turborepo licenses to MIT by @chris-olszewski in #8197
  35. * feat: all dependencies of root package contribute to global hash by @chris-olszewski in #8202
  36. * fix(turborepo): non-determinism with root internal deps hash. by @NicholasLYang in https://github.com/vercel/turbo/pull/8277
  37. * fix: update integration test to expect correct output by @chris-olszewski in https://github.com/vercel/turbo/pull/8285
  38. * chore: remove cpuprofile flag by @chris-olszewski in https://github.com/vercel/turbo/pull/8282
  39. * fix(ui): disable UI on all dry runs by @chris-olszewski in https://github.com/vercel/turbo/pull/8269
  40. * fix(turborepo): stderr log by @NicholasLYang in https://github.com/vercel/turbo/pull/8267
  41. * chore(turborepo): adjust error message for pipeline by @NicholasLYang in https://github.com/vercel/turbo/pull/8264
  42. * fix(ui): ensure prelude gets printed before ui starts by @chris-olszewski in https://github.com/vercel/turbo/pull/8265
  43. * chore(@turbo/benchmark): fix lint warnings by @mehulkar in https://github.com/vercel/turbo/pull/8233
  44. * chore(turborepo): Feature flagged off file hashing by @NicholasLYang in https://github.com/vercel/turbo/pull/8229
  45. * chore: downgrade curl to fix Windows rust tests by @chris-olszewski in https://github.com/vercel/turbo/pull/8242
  46. * fix(turborepo): Remove optional git locks by @NicholasLYang in https://github.com/vercel/turbo/pull/8244
  47. * fix(turborepo): Optional lock with env var by @NicholasLYang in https://github.com/vercel/turbo/pull/8247
  48. * add two retry strategies to allow requests to timeout gracefully by @arlyon in https://github.com/vercel/turbo/pull/8080
  49. * add support for upload speed / remaining in the cache upload step by @arlyon in https://github.com/vercel/turbo/pull/8081
  50. * chore: remove --ignore flag by @chris-olszewski in https://github.com/vercel/turbo/pull/8201
  51. * feat: factor engines into global cache key by @chris-olszewski in #8173
  52. **Full Changelog**: https://github.com/vercel/turbo/compare/v1.13.4...v2.0.0

voir sur githubimported 2026-09-28 via npm