n8n/packages
Mutasem Aldmour 5c3d271145
fix(workflow-sdk): Use actual map key after auto-rename in add() and to()
When two nodes share the same name, addNodeWithSubnodes() auto-renames
the second (e.g., "Process" → "Process 1"). However, add() and to() were
using node.name instead of the returned map key, causing subsequent
connections to target the wrong node.

- Capture addNodeWithSubnodes return value for _currentNode in add()
- Add InputTarget handling to workflow-level to() method
- Merge existing/new node paths in to() using idempotent addNodeWithSubnodes
- Add InputTarget overload to WorkflowBuilder interface

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 08:10:31 +01:00
..
@n8n fix(workflow-sdk): Use actual map key after auto-rename in add() and to() 2026-02-13 08:10:31 +01:00
cli fix: Enable credentials experssions push and pull (#25530) 2026-02-12 17:00:48 +00:00
core ci: Add Kent for local testing of Sentry events and traces (#25263) 2026-02-12 08:26:31 +00:00
extensions/insights 🚀 Release 1.121.0 (#21972) 2025-11-18 10:01:47 +02:00
frontend feat(editor): UX improvements for external secret providers (#25686) 2026-02-12 17:04:22 +00:00
node-dev 🚀 Release 2.8.0 (#25565) 2026-02-10 12:00:11 +01:00
nodes-base fix(Snowflake Node): Disable logging for Snowflake-SDK to prevent folder creation issue (#25586) 2026-02-12 11:26:41 +00:00
testing fix(editor): Improve loading states of move workflow/directory modal (#25287) 2026-02-12 09:38:24 +00:00
workflow Merge tag 'n8n@2.8.0' 2026-02-11 14:35:42 +02:00