Skip to content

Conversation

@barbados-clemens
Copy link
Contributor

add new page for the createNodes api compat
add callouts to extending project graph and tooling plugin page

fixes DOC-255

@barbados-clemens barbados-clemens requested a review from a team as a code owner October 16, 2025 19:20
@vercel
Copy link

vercel bot commented Oct 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 21, 2025 10:42pm

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Oct 16, 2025

View your CI Pipeline Execution ↗ for commit 217a652

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

☁️ Nx Cloud last updated this comment at 2025-10-21 23:42:27 UTC

@netlify
Copy link

netlify bot commented Oct 16, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 217a652
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/68f8081dca8224000805637c
😎 Deploy Preview https://deploy-preview-33102--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Nx 22 removed the V1 of the createNodes types. For those supporting
older versions of Nx we recommend inlining types if needed.
Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

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

Nx Cloud is proposing a fix for your failed CI:

We've formatted the newly added createnodes-compatibility.mdoc file to meet Prettier code style requirements. The formatting adjustments include proper indentation, trailing commas, line wrapping for long type declarations, and removal of extra blank lines.

We verified this fix by re-running astro-docs:format.

Suggested Fix changes
diff --git a/astro-docs/src/content/docs/extending-nx/createnodes-compatibility.mdoc b/astro-docs/src/content/docs/extending-nx/createnodes-compatibility.mdoc
index 7be429f6da..26a3aa6441 100644
--- a/astro-docs/src/content/docs/extending-nx/createnodes-compatibility.mdoc
+++ b/astro-docs/src/content/docs/extending-nx/createnodes-compatibility.mdoc
@@ -91,26 +91,28 @@ In Nx 22 the type for v1 of the create nodes api are removed, you can inline the
 import {
   CreateNodesV2,
   CreateNodesContextV2,
-  CreateNodesResult
+  CreateNodesResult,
 } from '@nx/devkit';
 
-
 // inlined types for backwards compat to v1 of createNodes
 // removed in Nx 22
 export interface OldCreateNodesContext extends CreateNodesContextV2 {
-    /**
-     * The subset of configuration files which match the createNodes pattern
-     */
-    readonly configFiles: readonly string[];
+  /**
+   * The subset of configuration files which match the createNodes pattern
+   */
+  readonly configFiles: readonly string[];
 }
 
-
 type OldCreateNodes<T = unknown> = readonly [
   projectFilePattern: string,
   createNodesFunction: CreateNodesFunction<T>
 ];
 
-export type OldCreateNodesFunction<T = unknown> = (projectConfigurationFile: string, options: T | undefined, context: OldCreateNodesContext) => CreateNodesResult | Promise<CreateNodesResult>;
+export type OldCreateNodesFunction<T = unknown> = (
+  projectConfigurationFile: string,
+  options: T | undefined,
+  context: OldCreateNodesContext
+) => CreateNodesResult | Promise<CreateNodesResult>;
 
 export interface MyPluginOptions {
   // your options

Apply fix via Nx Cloud  Reject fix via Nx Cloud

Or Apply changes locally with:

npx nx-cloud apply-locally oxic-Yu5e

Apply fix locally with your editor ↗  View interactive diff ↗


🎓 To learn more about Self Healing CI, please visit nx.dev

Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
@barbados-clemens barbados-clemens force-pushed the cu/DOC-255-createNodesV2 branch from 4eb9f82 to 217a652 Compare October 21, 2025 22:24
@barbados-clemens barbados-clemens merged commit 3d8658c into master Oct 22, 2025
19 checks passed
@barbados-clemens barbados-clemens deleted the cu/DOC-255-createNodesV2 branch October 22, 2025 00:08
@github-actions
Copy link
Contributor

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 Oct 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants