-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(core)!: remove legacy cache flag from nx.json #30787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
View your CI Pipeline Execution ↗ for commit 902b817.
☁️ Nx Cloud last updated this comment at |
3209542
to
0d2c18e
Compare
0d2c18e
to
cc1e13a
Compare
cc1e13a
to
5cedb95
Compare
5cedb95
to
51b11a5
Compare
@@ -0,0 +1,27 @@ | |||
#### Use Legacy Cache | |||
|
|||
Removes `useLegacyCache` as it is no longer functional in Nx 21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removes `useLegacyCache` as it is no longer functional in Nx 21 | |
Removes `useLegacyCache` from `nx.json` as it is no longer functional in Nx 21 |
return; | ||
} | ||
|
||
// If workspaces had `enableDbCache` we can just delete the property as the db cache is enabled by default in nx v20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't make sense
|
||
// If workspaces had `enableDbCache` we can just delete the property as the db cache is enabled by default in nx v20 | ||
if ((nxJson as any).useLegacyCache) { | ||
delete (nxJson as any).enableDbCache; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete (nxJson as any).enableDbCache; | |
delete (nxJson as any).useLegacyCache; |
@@ -1682,6 +1684,12 @@ async function runMigrations( | |||
title: `No changes were made from running '${opts.runMigrations}'. This workspace is up to date!`, | |||
}); | |||
} | |||
if (nextSteps.length > 0) { | |||
output.log({ | |||
title: `Some migrations require additional steps to be completed, please check the following:`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: `Some migrations require additional steps to be completed, please check the following:`, | |
title: `Some migrations have additional information. See below:`, |
if (!Array.isArray(value)) { | ||
return false; | ||
} | ||
return value.reduce((acc, v) => acc && typeof v === 'string', true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return value.reduce((acc, v) => acc && typeof v === 'string', true); | |
return value.every((v) => typeof v === 'string'); |
@@ -43,5 +43,11 @@ export async function repair( | |||
title: `No changes were necessary. This workspace is up to date!`, | |||
}); | |||
} | |||
if (nextSteps.length) { | |||
output.log({ | |||
title: 'Some next steps may be necessary to complete the repair:', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title: 'Some next steps may be necessary to complete the repair:', | |
title: 'Some repairs have additional information. See below:', |
@@ -8,6 +8,7 @@ import { | |||
|
|||
import type { NxJsonConfiguration } from './nx-json'; | |||
import { Schema } from '../utils/params'; | |||
import { Tree } from '../generators/tree'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import type
@@ -8,6 +8,7 @@ import { | |||
|
|||
import type { NxJsonConfiguration } from './nx-json'; | |||
import { Schema } from '../utils/params'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import type
|
||
#### Sample Code Changes | ||
|
||
Removes `tasksRunnerOptions` from `nx.json` if it would be empty after removing custom tasks runners. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removes `tasksRunnerOptions` from `nx.json` if it would be empty after removing custom tasks runners. | |
Removes custom task runner configuration from `nx.json` |
2e6f7fa
to
aac22fc
Compare
aac22fc
to
902b817
Compare
Current Behavior
useLegacyCache is there for opting out of db cache impl
Expected Behavior
db cache is only cache when at all possible, unfortunately on wasm builds it is still unsupported.
Related Issue(s)
Fixes #