-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat(core)!: drop support for create nodes v1 in favor of only calling create nodes v2 #30616
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 d817d71.
☁️ Nx Cloud last updated this comment at |
9a4c671
to
cf7cc52
Compare
Apologies for the extra review requests... rebase on next-major went wonky and decided I needed everyone 🤦 |
ae6dade
to
958d7d7
Compare
958d7d7
to
821a10e
Compare
821a10e
to
fb22afd
Compare
this.exclude = pluginDefinition.exclude; | ||
} | ||
|
||
if (plugin.createNodes && !plugin.createNodesV2) { |
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.
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.
6faf02d
to
c7c3b5d
Compare
BREAKING CHANGE: Removes support for v1 of the create nodes API. Plugins need to migrate to createNodesV2 for nx 21 support
c7c3b5d
to
d817d71
Compare
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. |
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 acreateNodesV2
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 becomecreateNodes
. 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 fromcreateNodes
such that it will be ready to be called in the future.