revert: Make n8n-workflow a peer dependency in ai-utilities#26420
Closed
DawidMyslak wants to merge 1 commit intomasterfrom
Closed
revert: Make n8n-workflow a peer dependency in ai-utilities#26420DawidMyslak wants to merge 1 commit intomasterfrom
DawidMyslak wants to merge 1 commit intomasterfrom
Conversation
Contributor
There was a problem hiding this comment.
No issues found across 2 files
Architecture diagram
sequenceDiagram
participant Build as Build System (Monorepo)
participant AI as @n8n/ai-utilities
participant WF as n8n-workflow
participant Run as n8n Runtime
Note over Build, WF: Build-time Resolution (Restored)
Build->>AI: Start build/transpilation
AI->>Build: Resolve module "n8n-workflow"
alt Dependency Found
Build->>WF: CHANGED: Locate via "dependencies" (workspace:*)
WF-->>AI: Provide type definitions & source
AI-->>Build: Compilation success
else Peer Dependency Error (Reverted State)
Build--xAI: Fails to resolve (Peer deps not auto-linked in build)
end
Note over AI, Run: Runtime Control Flow
Run->>AI: Call AI utility function
AI->>WF: Access shared workflow primitives (Interfaces/Classes)
WF-->>AI: Context/Data
AI-->>Run: Return AI process result
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
4 tasks
|
Found 1 test failure on Blacksmith runners: Failure
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reverts #26404. Moving
n8n-workflowfromdependenciestopeerDependenciesin@n8n/ai-utilitiesbroke the monorepo build — peer deps aren't automatically resolved for the package itself during build, soai-utilitiescan no longer findn8n-workflow.The proper fix needs
n8n-workflowin bothdevDependencies(for monorepo build) andpeerDependencies(for npm consumers). Will follow up with a corrected PR.Related Linear tickets, Github issues, and Community forum posts
https://linear.app/n8n/issue/NODE-4532
Review / Merge checklist
release/backport(if the PR is an urgent fix that needs to be backported)