Skip to content

Conversation

AgentEnder
Copy link
Member

BREAKING CHANGE: Plugins will need to migrate to create nodes v2 if they haven't already to stay supported.

Current Behavior

Currently if a plugin exports only createNodes, we adapt it to a createNodesV2 under the hood and run it. If a plugin exports both, we only run the v2 api.

Future Behavior

In the future we want createNodesV2 to become createNodes. To facilitate this transition for the duration of Nx 21, createNodes will not be invoked. This gives plugin authors time to migrate over to the v2 spec and export it from createNodes such that it will be ready to be called in the future.

@AgentEnder AgentEnder requested review from a team as code owners April 4, 2025 21:42
Copy link

vercel bot commented Apr 4, 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:11pm
Copy link
Contributor

nx-cloud bot commented Apr 4, 2025

View your CI Pipeline Execution ↗ for commit d817d71.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-ci ✅ Succeeded 39m 3s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 18s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded 1m 53s View ↗
nx affected -t e2e-macos-local --parallel=1 --b... ✅ Succeeded 36m 53s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-28 19:33:14 UTC

@AgentEnder AgentEnder requested review from a team and leosvelperez as code owners April 5, 2025 13:23
@AgentEnder AgentEnder requested review from ndcunningham and removed request for a team April 5, 2025 13:23
@FrozenPandaz FrozenPandaz requested review from a team and Coly010 as code owners April 7, 2025 12:12
@FrozenPandaz FrozenPandaz force-pushed the next-major branch 10 times, most recently from 9a4c671 to cf7cc52 Compare April 14, 2025 21:52
@AgentEnder AgentEnder changed the base branch from next-major to master April 25, 2025 15:02
@AgentEnder
Copy link
Member Author

Apologies for the extra review requests... rebase on next-major went wonky and decided I needed everyone 🤦

@AgentEnder AgentEnder force-pushed the feat/remove-create-nodes-v1-next-major branch from ae6dade to 958d7d7 Compare April 25, 2025 15:15
@AgentEnder AgentEnder force-pushed the feat/remove-create-nodes-v1-next-major branch from 958d7d7 to 821a10e Compare April 25, 2025 16:18
@AgentEnder AgentEnder force-pushed the feat/remove-create-nodes-v1-next-major branch from 821a10e to fb22afd Compare April 25, 2025 18:37
this.exclude = pluginDefinition.exclude;
}

if (plugin.createNodes && !plugin.createNodesV2) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should throw an error here to let plugin authors know that their plugin is incompatible with Nx 21. They have already been notified via tsdoc deprecations.

BREAKING CHANGE: Removes support for v1 of the create nodes API. Plugins need to migrate to createNodesV2 for
nx 21 support
@AgentEnder AgentEnder force-pushed the feat/remove-create-nodes-v1-next-major branch from c7c3b5d to d817d71 Compare April 28, 2025 18:48
@AgentEnder AgentEnder merged commit eb54b1d into master Apr 28, 2025
6 checks passed
@AgentEnder AgentEnder deleted the feat/remove-create-nodes-v1-next-major branch April 28, 2025 19:47
Copy link
Contributor

github-actions bot commented May 4, 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 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants