Commit Graph
31 Commits
Author SHA1 Message Date
Garrit Franke d16d420871 fix(node-cli): Report why a dev reload did not reach n8n
The dev command discarded the reload result, so a node author saw a
clean compile next to an editor that never updated. triggerReload now
returns the reason, and the help line shows it.

Wait on /healthz/readiness instead of /healthz, which answers before
the controllers are registered and so 404s the reload that follows.

Watch every top-level directory the build copies assets from, rather
than a fixed list of three, so an icon outside nodes/ is not copied at
startup and then ignored. The ignore list is now shared with
copyStaticFiles, so the two cannot drift apart.

Use a VERSION placeholder in the --n8n-image examples, because the
pinned release predates the reload endpoint.
2026-11-30 06:22:28 +00:00
Garrit Franke c554a4ff4b fix(node-cli): Give each n8n image its own dev data volume
The dev container mounted one fixed volume regardless of --n8n-image.
n8n only migrates a database forward, so testing against an older
release after a newer one pointed that older n8n at a database it
cannot read.
2026-11-30 06:22:28 +00:00
Garrit Franke fccab83c6a fix(node-cli): Watch asset roots created after dev starts
Narrowing the static asset watcher to the directories that exist at
startup dropped the one property the previous recursive watch on the
project root had: a directory created later was still picked up. A
project that adds its first root icons folder mid-session got no
watcher, so new SVGs were not copied or reloaded until restart.

Watch the project root non-recursively when an asset root is missing,
and attach the real watcher once it appears. That costs a single
descriptor rather than one per subdirectory.
2026-11-30 06:22:28 +00:00
Garrit Franke 35da77f981 test(node-cli): Assert the whole bind-mount argument against process.cwd()
The assertion matched a substring of the joined arguments against the
fixture's tmpdir. On macOS cwd resolves the /var symlink, so it compared
/var/... against /private/var/..., which still passed only because one is
a prefix of the other. It also passed for any other mount source ending
in the same path.
2026-11-30 06:22:28 +00:00
Garrit Franke 18339e79ee fix(node-cli): Harden the dev command against shell, timeout and port issues
- Pass spawn arguments as an array instead of through a shell, so a project
  path holding $, a backtick, ; or & reaches the child intact. Windows keeps
  a cmd.exe invocation because package managers are .cmd shims, with every
  argument quoted.
- Bound the /healthz and /rest/dev/reload requests with abort signals. An
  accepted-but-unanswered connection previously parked waitForN8n forever, so
  its timeout meant nothing, and every compile leaked a pending reload promise.
- Watch only the directories that hold icons and schemas. Recursive watching
  of the whole project registered watches before filtering them, which on
  Linux can exhaust fs.inotify.max_user_watches.
- Derive the published port from the parsed --n8n-url. An implicit port made
  the mapping disagree with the URL used for readiness and reload, so the
  container never became ready.
- Push one reload once n8n answers. The first clean compile can finish before
  n8n serves the reload endpoint, leaving the node absent until the next edit.
2026-11-30 06:22:28 +00:00
Garrit Franke bd0d2efdec refactor(node-cli): Rename assertEngineRunning to assertEngineReady 2026-11-30 06:22:28 +00:00
Garrit Franke 1c8af3485a refactor(node-cli): Drop --n8n-version in favour of --n8n-image 2026-11-30 06:22:28 +00:00
Garrit Franke c24c6ea988 feat(core)!: Make n8n-node dev run n8n in a container instead of via npx 2026-11-30 06:22:28 +00:00
Benny Neugebauer c123bc77e8 docs: Clarify node style choices in the create-node wizard (#42673) 2026-10-30 09:06:10 +00:00
Benny Neugebauer d23f949801 fix: Make n8n-node release work with release-it 21 (#39378) 2026-09-23 22:37:00 +00:00
Nguyen Thanh DatandGuillaume F. 8c8bd23364 fix: Keep GitHub Actions expressions intact in scaffolded workflow files (#37973)
Co-authored-by: Guillaume F. <guillaume.feliciano@n8n.io>
2026-09-11 08:08:47 +00:00
MatsuandClaude Opus 5 7be94a1184 chore: Update eslint configuration (#38307)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 14:40:35 +03:00
Iván Ovejero d1475ada6e chore: Prepare for Node 26 upgrade (#34340) 2026-07-17 06:32:34 +00:00
d580d749f4 fix: Free port 5678 when quitting n8n-node dev (no-changelog) (#30786)
Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
Co-authored-by: Declan Carroll <declan@n8n.io>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
2026-05-27 14:52:06 +01:00
MatsuandClaude Sonnet 4.6 a2ff55c1f9 chore: Reuse ts-morph Project instance across custom template run (no-changelog) (#28972)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 11:23:18 +00:00
Garrit FrankeandClaude Sonnet 4.6 34894af3fa feat: Add --init-workflow flag to scaffold publish.yml (#27292)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 05:45:37 +00:00
Garrit Franke ec0cf13141 feat: Add optional --publish flag to n8n-node release command (#26688) 2026-03-06 14:43:51 +00:00
Garrit Frankeandaikido-pr-checks[bot] 0057bf38fc feat: Add support for publishing community nodes through GitHub Actions (#26597)
Co-authored-by: aikido-pr-checks[bot] <169896070+aikido-pr-checks[bot]@users.noreply.github.com>
2026-03-06 09:20:51 +00:00
Declan CarrollandClaude Opus 4.6 7af85fc297 fix(core): Increase timeout for workflow execution tests (#26150)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 17:34:55 +00:00
Dawid Myslak da11043e96 chore(core): Add preview notice to AI node SDK and CLI prompts (#26045) 2026-02-20 20:26:18 +00:00
yehorkardashandDawid Myslak 62dda8391a feat: Update CLI examples (#25881)
Co-authored-by: Dawid Myslak <dawid.myslak@gmail.com>
2026-02-19 14:11:47 +00:00
Ricardo Espinoza 6084fc406f chore: Remove N8N_RUNNERS_ENABLED env variable (no-changelog) (#23885) 2026-01-12 13:38:33 +00:00
Elias Meire 970f1b7070 fix: Improve dev mode output and command reliability in n8n-node CLI (#21231) 2025-11-14 09:42:24 +01:00
Elias Meire b1baca5c6c feat: Add strict mode and cloud lint rules to @n8n/node-cli (#20142) 2025-10-10 19:26:35 +02:00
RomanDavydchuk c3fff03945 fix: n8n-node not working on Windows (#20091) 2025-09-29 17:54:03 +03:00
Elias Meire 14a7c36673 fix: Improve Node CLI error messages and dev command exit behavior (#19637) 2025-09-17 14:10:27 +02:00
Elias Meire e404e55ce5 fix: Improve @n8n/node-cli cross-platform compatibility and dev experience (no-changelog) (#19368) 2025-09-11 08:47:26 +02:00
Elias Meire be8061c2a5 feat: Add release and lint scripts to node CLI (#18935) 2025-09-02 04:48:43 +01:00
Elias Meire c99eba7fa2 fix: Remove extraneous dependencies from node-cli, publish create-node package (no-changelog) (#18635) 2025-08-21 17:06:21 +02:00
Elias Meire c26104b3ba feat: Add n8n-node CLI with commands to scaffold and develop nodes (#18090) 2025-08-15 14:55:39 +02:00
Elias Meire 79c6b60fcb feat: Add @n8n/node-cli package with an empty create command (#17620) 2025-07-30 23:09:49 +01:00