n8n/packages/@n8n
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
..
ai-utilities Merge tag 'n8n@2.8.0' 2026-02-11 14:35:42 +02:00
ai-workflow-builder.ee feat(ai-builder): Skip redundant node discovery in code-builder when approved plan is provided (#25608) 2026-02-12 13:25:44 +00:00
api-types chore(editor): Gate personal space policy settings behind license feature (#25527) 2026-02-12 10:12:18 +00:00
backend-common chore(editor): Gate personal space policy settings behind license feature (#25527) 2026-02-12 10:12:18 +00:00
backend-test-utils Merge tag 'n8n@2.8.0' 2026-02-11 14:35:42 +02:00
benchmark 🚀 Release 2.6.0 (#24880) 2026-01-26 16:36:54 +01:00
chat-hub 🚀 Release 2.8.0 (#25565) 2026-02-10 12:00:11 +01:00
client-oauth2 🚀 Release 2.0.0-rc.0 (#22613) 2025-12-02 16:50:45 +02:00
codemirror-lang chore: Migrate codemirror packages to use vitest (#25694) 2026-02-13 06:23:25 +00:00
codemirror-lang-html chore: Migrate codemirror packages to use vitest (#25694) 2026-02-13 06:23:25 +00:00
codemirror-lang-sql chore: Migrate codemirror packages to use vitest (#25694) 2026-02-13 06:23:25 +00:00
config 🚀 Release 2.8.0 (#25565) 2026-02-10 12:00:11 +01:00
constants chore(editor): Gate personal space policy settings behind license feature (#25527) 2026-02-12 10:12:18 +00:00
crdt 🚀 Release 2.7.0 (#25167) 2026-02-02 15:30:26 +02:00
create-node 🚀 Release 2.7.0 (#25167) 2026-02-02 15:30:26 +02:00
db fix(editor): Add filter by accessible projects in folders query (no-changelog) (#25678) 2026-02-12 14:13:17 +00:00
decorators 🚀 Release 2.8.0 (#25565) 2026-02-10 12:00:11 +01:00
di 🚀 Release 1.122.0 (#22237) 2025-11-24 15:35:52 +01:00
errors 🚀 Release 2.7.0 (#25167) 2026-02-02 15:30:26 +02:00
eslint-config fix(core): Bug with incorrect DI in some cases - picked up by enabling linting rule (#23855) 2026-01-05 21:30:23 +01:00
eslint-plugin-community-nodes 🚀 Release 1.122.0 (#22237) 2025-11-24 15:35:52 +01:00
extension-sdk 🚀 Release 1.121.0 (#21972) 2025-11-18 10:01:47 +02:00
imap 🚀 Release 1.122.0 (#22237) 2025-11-24 15:35:52 +01:00
json-schema-to-zod 🚀 Release 1.122.0 (#22237) 2025-11-24 15:35:52 +01:00
node-cli 🚀 Release 2.7.0 (#25167) 2026-02-02 15:30:26 +02:00
nodes-langchain Merge tag 'n8n@2.8.0' 2026-02-11 14:35:42 +02:00
permissions Merge tag 'n8n@2.8.0' 2026-02-11 14:35:42 +02:00
scan-community-package 🚀 Release 1.122.0 (#22237) 2025-11-24 15:35:52 +01:00
stylelint-config chore(core): Add "test:unit" scripts to most of the backend packages (#22091) 2025-11-20 15:28:28 +01:00
syslog-client 🚀 Release 2.8.0 (#25565) 2026-02-10 12:00:11 +01:00
task-runner 🚀 Release 2.8.0 (#25565) 2026-02-10 12:00:11 +01:00
task-runner-python feat(core): Add drain timeout for runners (#24290) 2026-02-06 13:34:53 +00:00
typescript-config 🚀 Release 1.102.0 (#17075) 2025-07-07 17:13:34 +02:00
utils 🚀 Release 2.8.0 (#25565) 2026-02-10 12:00:11 +01:00
vitest-config 🚀 Release 2.6.0 (#24880) 2026-01-26 16:36:54 +01:00
workflow-sdk fix(workflow-sdk): Use actual map key after auto-rename in add() and to() 2026-02-13 08:10:31 +01:00