Releases: vercel/turborepo
v1.1.1
What's Changed
- Fix @turbo/codemod help text by @jaredpalmer in #625
- Add back npm to
run-exampes.sh
by @jaredpalmer in #626
Full Changelog: v1.1.0...v1.1.1
Turborepo v1.1.0
Blog Post
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 rootpackage.json
to determine package manager faster - Show deprecation warning when
turbo
key inpackage.json
with suggestions to runnpx @turbo/codemod create-turbo-config
- Show deprecation warning when
packageManager
key inpackage.json
is not set with suggestions to runnpx @turbo/codemod add-package-manager
- Updated
create-turbo
templates to setpackageManager
automatically - New and improved documentation search and UI tweaks
Bug Fixes
- Fixed regression where
turbo prune
broke subsequentyarn install --frozen-lockfile
- Fixed CRLF/LF issues in lockfile and yaml parsing
- Fixed memory leak / CPU overheating issue
Commits
- Add yarn berry node_modules linker, CRLF/LF, and update prune by @xenfo in #544
- Fix channel closing on errors by @jaredpalmer in #557
- docs(configuration): fix commas in JSON by @chentsulin in #568
- Fix syml/yaml lockfile indentation in turbo prune by @jaredpalmer in #574
- fix: handle dead symlinks in walk by @markjm in #569
- chore: fixed typo on ancestralHash by @sebasrodriguez in #578
- Add @turbo/codemod package by @jaredpalmer in #556
- fix: warn when no packageManager by @xenfo in #579
- Fix e2e example check by @jaredpalmer in #580
- fix: stop ignoring package.json by @xenfo in #581
- docs(typo): corrects "sepecify" by @SuttonJack in #585
- fix: conditionally set arch when installing hyperfine by @virtuoushub in #584
- fix: run examples by @xenfo in #583
- fix: cached symlinks causing cache misses by @adamelmore in #491
- docs: consolidate install commands by @josefaidt in #604
- Start on some contributing notes and tools by @gsoltis in #605
- Upgrade docs with better search by @shuding in #599
- docs: Incorporate some upstream features of nextra-theme-docs by @jaredpalmer in #613
- Add more actionable e2e assertions by @jaredpalmer in #551
- docs: Bump nextra to fix search by @jaredpalmer in #616
- Migrate root turbo config from package.json to turbo.json by @gsoltis in #606
- Add @types/node to examples and template by @jaredpalmer in #623
- Set packageManager in create-turbo before install by @jaredpalmer in #621
- Finish docs move to
turbo.json
by @jaredpalmer in #622
New Contributors
- @xenfo made their first contribution in #544
- @chentsulin made their first contribution in #568
- @sebasrodriguez made their first contribution in #578
- @SuttonJack made their first contribution in #585
- @virtuoushub made their first contribution in #584
- @adamelmore made their first contribution in #491
- @josefaidt made their first contribution in #604
- @gsoltis made their first contribution in #605
Full Changelog: v1.0.29...v1.1.0
v1.0.29
What's Changed?
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
What's Changed
- fix: handle dead symlinks in walk by @markjm in #569
- chore: fixed typo on ancestralHash by @sebasrodriguez in #578
- Add @turbo/codemod package by @jaredpalmer in #556
- fix: warn when no packageManager by @xenfo in #579
- Fix e2e example check by @jaredpalmer in #580
- fix: stop ignoring package.json by @xenfo in #581
- docs(typo): corrects "sepecify" by @SuttonJack in #585
- fix: conditionally set arch when installing hyperfine by @virtuoushub in #584
- fix: run examples by @xenfo in #583
- fix: cached symlinks causing cache misses by @adamelmore in #491
New Contributors
- @xenfo made their first contribution in #544
- @chentsulin made their first contribution in #568
- @sebasrodriguez made their first contribution in #578
- @SuttonJack made their first contribution in #585
- @virtuoushub made their first contribution in #584
- @adamelmore made their first contribution in #491
Full Changelog: v1.1.0-canary.1...v1.1.0-canary.2
v1.1.0-canary.1
What's Changed
- Add yarn berry node_modules linker, CRLF/LF, and update prune by @xenfo in #544
- Fix channel closing on errors by @jaredpalmer in #557
- docs(configuration): fix commas in JSON by @chentsulin in #568
- Fix syml/yaml lockfile indentation in turbo prune by @jaredpalmer in #574
New Contributors
- @chentsulin made their first contribution in #568
Full Changelog: v1.0.26...v1.1.0-canary.1
v1.0.28
What's changed?
- Updated
next-env.d.ts
increate-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
v1.0.26
v1.0.25
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 yourpipeline
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
- Bump @babel/core from 7.16.0 to 7.16.7 by @dependabot in #477
- fix kitchen-sink test #466 by @kbenrafik in #473
- Bump @types/jest from 27.0.3 to 27.4.0 by @dependabot in #476
- docs: Fix gap on open mobile nav with banner by @jaredpalmer in #507
- docs: Papercuts by @jaredpalmer in #513
- docs: add missing flag for pnpm install command by @fwouts in #520
- docs: add privacy / security questions to faq by @jaredpalmer in #522
- fix: pnpx command is deprecated in version 6.x by @KieSun in #486
- fix: treat symlink directory as directory by @markjm in #532
- fix: Move runOptions stream checks before the
for
loop to prevent cpu load by @marcinbunsch in #529 - QoL changes for using examples by @markjm in #518
- Hash env vars by @jaredpalmer in #495
- fix: error when workspaces are not defined by @KarolNov in #472
New Contributors
- @kbenrafik made their first contribution in #473
- @fwouts made their first contribution in #520
- @KieSun made their first contribution in #486
- @markjm made their first contribution in #532
- @marcinbunsch made their first contribution in #529
- @KarolNov made their first contribution in #472
Full Changelog: v1.0.24...v1.0.25
v1.0.25-canary.1
What's Changed
- Bump @babel/core from 7.16.0 to 7.16.7 by @dependabot in #477
- fix kitchen-sink test #466 by @kbenrafik in #473
- Bump @types/jest from 27.0.3 to 27.4.0 by @dependabot in #476
- docs: Fix gap on open mobile nav with banner by @jaredpalmer in #507
- docs: Papercuts by @jaredpalmer in #513
- docs: add missing flag for pnpm install command by @fwouts in #520
- docs: add privacy / security questions to faq by @jaredpalmer in #522
- fix: pnpx command is deprecated in version 6.x by @KieSun in #486
- fix: treat symlink directory as directory by @markjm in #532
- fix: Move runOptions stream checks before the
for
loop to prevent cpu load by @marcinbunsch in #529 - QoL changes for using examples by @markjm in #518
- Hash env vars by @jaredpalmer in #495
- fix: error when workspaces are not defined by @KarolNov in #472
New Contributors
- @kbenrafik made their first contribution in #473
- @fwouts made their first contribution in #520
- @KieSun made their first contribution in #486
- @markjm made their first contribution in #532
- @marcinbunsch made their first contribution in #529
- @KarolNov made their first contribution in #472
Full Changelog: v1.0.24...v1.0.25-canary.1