Skip to content

Conversation

RomanDavydchuk
Copy link
Contributor

Summary

Add getN8nVersion helper to FunctionsBase so it's available in IExecuteFunctions, IWebhookFunctions, etc. The logic is very similar to what there is in the cli package, see here. Except here the root package.json is used, since the package.json in core package can have a different version, for some reason. Perhaps we could somehow extract this so the logic is not duplicated between packages, but I'm not sure what's the best place to do that

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-3549/add-n8n-version-helper-to-n8n-workflow

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@RomanDavydchuk RomanDavydchuk marked this pull request as ready for review October 3, 2025 11:19
@Joffcom Joffcom requested a review from elsmr October 3, 2025 11:20
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Oct 3, 2025
Copy link

codecov bot commented Oct 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant