Skip to content

Releases: vercel/turborepo

v1.1.1

31 Jan 15:48
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.0...v1.1.1

Turborepo v1.1.0

27 Jan 14:13
Compare
Choose a tag to compare

Blog Post

Turborepo 1.1

What's New?

  • Added partial and experimental yarn v2/3 support with nodeLinker: "node-modules"
  • Added new @turbo/codemod package for automatic migrations
  • Move configuration into turbo.json for convenience
  • Use packageManager in root package.json to determine package manager faster
  • Show deprecation warning when turbo key in package.json with suggestions to run npx @turbo/codemod create-turbo-config
  • Show deprecation warning when packageManager key in package.json is not set with suggestions to run npx @turbo/codemod add-package-manager
  • Updated create-turbo templates to set packageManager automatically
  • New and improved documentation search and UI tweaks

Bug Fixes

  • Fixed regression where turbo prune broke subsequent yarn install --frozen-lockfile
  • Fixed CRLF/LF issues in lockfile and yaml parsing
  • Fixed memory leak / CPU overheating issue

Commits

New Contributors

Full Changelog: v1.0.29...v1.1.0

v1.0.29

26 Jan 18:00
Compare
Choose a tag to compare

What's Changed?

  • fix: cached symlinks causing cache misses (#491)
  • fix: handle dead symlinks in walk (#569)

What's coming?

In v1.1.x, we'll be moving configuration into turbo.json and using the new packageManager key to detect the package manager even faster. We're also going to be publishing a new package to assist with this and future incremental migrations called @turbo/codemod. All of the changes coming are backwards compatible. turbo will show a warning message along with the command you should run to execute the necessary migration.

Full Changelog: v1.0.28...v1.0.29

v1.1.0-canary.2

25 Jan 20:22
Compare
Choose a tag to compare
v1.1.0-canary.2 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v1.1.0-canary.1...v1.1.0-canary.2

v1.1.0-canary.1

22 Jan 18:33
Compare
Choose a tag to compare
v1.1.0-canary.1 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v1.0.26...v1.1.0-canary.1

v1.0.28

14 Jan 02:25
Compare
Choose a tag to compare

What's changed?

  • Updated next-env.d.ts in create-turbo so that there isn't a cache miss on the first run due to altered source

Full Changelog: v1.0.27...v1.0.28

v1.0.27

14 Jan 01:10
Compare
Choose a tag to compare

What's changed?

  • Patched bug causing turbo to hang on errors #557

Full Changelog: v1.0.26...v1.0.27

v1.0.26

12 Jan 17:09
Compare
Choose a tag to compare

What's Changed

  • fix a typo in hashable env pairs array name by @hemache in #547

New Contributors

Full Changelog: v1.0.25...v1.0.26

v1.0.25

10 Jan 19:37
Compare
Choose a tag to compare

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 dependsOn in your pipeline definition prefixed by a $ will impact the cache fingerprint on a per-task or per-package-task basis.
  • (new) Including environment variables in globalDependencies list prefixed by a $ will impact the cache fingerprint of all tasks.
  • Including files or globs of files in globalDependencies will impact the cache fingerprint of all tasks.
  • (new) The value of any environment variable that includes THASH in 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-turbo
  • Treat symlink directory as directory in globalDependencies
  • Fix cpu overloading during long running tasks
  • Better error message when workspaces are not defined

Commits

New Contributors

Full Changelog: v1.0.24...v1.0.25

v1.0.25-canary.1

10 Jan 19:33
Compare
Choose a tag to compare
v1.0.25-canary.1 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v1.0.24...v1.0.25-canary.1