Skip to content

Conversation

AgentEnder
Copy link
Member

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 #

@AgentEnder AgentEnder requested review from a team, FrozenPandaz and jaysoo as code owners April 17, 2025 20:09
Copy link

vercel bot commented Apr 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Apr 28, 2025 7:59pm
Copy link
Contributor

nx-cloud bot commented Apr 17, 2025

View your CI Pipeline Execution ↗ for commit 902b817.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-ci ✅ Succeeded 3m 42s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 22s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 4s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-29 14:10:43 UTC

@@ -0,0 +1,27 @@
#### Use Legacy Cache

Removes `useLegacyCache` as it is no longer functional in Nx 21
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
delete (nxJson as any).enableDbCache;
delete (nxJson as any).useLegacyCache;
}
if (nextSteps.length > 0) {
output.log({
title: `Some migrations require additional steps to be completed, please check the following:`,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return value.reduce((acc, v) => acc && typeof v === 'string', true);
return value.every((v) => typeof v === 'string');
}
if (nextSteps.length) {
output.log({
title: 'Some next steps may be necessary to complete the repair:',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: 'Some next steps may be necessary to complete the repair:',
title: 'Some repairs have additional information. See below:',

import type { NxJsonConfiguration } from './nx-json';
import { Schema } from '../utils/params';
import { Tree } from '../generators/tree';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import type

} from './workspace-json-project-json';

import type { NxJsonConfiguration } from './nx-json';
import { Schema } from '../utils/params';
Copy link
Collaborator

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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Removes `tasksRunnerOptions` from `nx.json` if it would be empty after removing custom tasks runners.
Removes custom task runner configuration from `nx.json`
@AgentEnder AgentEnder force-pushed the feat/remove-legacy-cache branch from aac22fc to 902b817 Compare April 28, 2025 19:46
@AgentEnder AgentEnder merged commit c8d89e2 into master Apr 29, 2025
6 checks passed
@AgentEnder AgentEnder deleted the feat/remove-legacy-cache branch April 29, 2025 14:39
Copy link
Contributor

github-actions bot commented May 5, 2025

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants