«

快来看,n8n更新了!n8n 2.0 正式发布

qimuai 发布于 阅读:23 一手编译


快来看,n8n更新了!n8n 2.0 正式发布

内容来源:https://blog.n8n.io/introducing-n8n-2-0/

内容总结:

n8n发布2.0.0 BETA版本:聚焦安全、可靠与性能的企业级升级

自动化工作流平台n8n于近日正式推出2.0.0 BETA版本。此次重大版本更新并非以炫目的新功能为核心,而是严格遵循语义化版本规范,集中解决了一系列需要“破坏性变更”的底层改进,旨在全面提升平台的企业级安全、可靠性与性能表现。

为何是2.0?
自2023年7月发布1.0版本以来,开发团队积累了大量亟需实施的改进,包括安全加固、可靠性修复以及淘汰导致不稳定的旧功能。这些改进均涉及“破坏性变更”,因此必须通过升级主版本号来实现。2.0版本整合了所有这些底层优化,标志着n8n作为企业级平台的成熟与巩固。

三大核心升级

  1. 安全:新版本默认配置更为严格,显著提升了开箱即用的安全性。关键变更包括:默认启用任务运行器,使所有代码节点在隔离环境中执行;默认阻止代码节点访问环境变量;默认禁用允许任意命令执行的节点。平台转向“默认安全”模式,用户可按需调整。
  2. 可靠性:通过移除遗留选项和修复导致混淆或边缘情况错误的环节,平台行为更简化、更可预测。例如,包含等待节点的子工作流现在能正确返回工作流末端数据,并移除了已不存在服务的对应节点。
  3. 性能:团队着重消除了导致速度减慢的因素。新的SQLite连接池驱动在测试中性能提升最高达10倍。基于文件系统的二进制数据处理在高负载下表现更稳定。任务运行器在保障安全的同时,也提供了更好的隔离与资源管理。

用户可见的改进
除了底层革新,2.0版本也带来了直观的体验优化:

升级准备:迁移报告工具
为协助用户平稳升级,n8n提供了迁移报告工具(适用于1.119.0及以上版本,仅全局管理员可见)。该工具能清晰列出工作流级别和实例级别需要关注的问题,并按严重性分级,帮助用户有序完成升级前调整。

版本支持与发布计划

回顾与致谢
自1.0发布以来,n8n生态蓬勃发展:GitHub星标从约3万增长至超16万,社区论坛成员从6,267人扩展至超11.5万人,团队规模从30人壮大至190余人,累计发布超120个更新。官方团队对社区用户的持续反馈、贡献以及超过50名工程师的辛勤工作致以衷心感谢,并预告更多新功能即将到来。

中文翻译:

今天我们正式发布 n8n 2.0.0 测试版
如果你接触软件足够久,就会知道主版本号的重大升级通常意味着炫酷的新功能、颠覆性的重新设计等等。自 n8n 1.0 发布已过去两年多,许多人都在期待类似的惊喜。
但这次发布并非如此。说实话?这反而是件好事。

为什么是 2.0?
n8n 遵循语义化版本规范。这意味着若不升级主版本号,我们不会发布破坏性变更(即可能要求你调整工作流或配置的更新)。
自 2023 年 7 月发布 1.0 以来,我们积攒了一系列迫切希望实现的改进:安全加固、可靠性修复、以及淘汰导致不稳定的功能。每一项都需要破坏性变更,而每一项都只能等待。
2.0 版本整合了所有这些改进,巩固了 n8n 作为企业级平台的定位,为核心工作流提供更强的安全性、可靠性与可扩展性。
未来,我们不会再次经历如此漫长的版本间隔。计划每年发布一到两个主版本,以更快迭代并及时推出改进。

2.0 的核心:安全、可靠与性能
安全性
我们全面收紧默认设置,让 n8n 开箱即用更安全。
最重要的变化:任务执行器现默认启用,所有代码节点的运行都将在访问受限的隔离环境中进行。我们还默认禁止代码节点读取环境变量,并禁用了允许任意命令执行的节点。
核心原则是“默认安全”。如果你的工作流依赖此前更宽松的行为,仍可手动启用相关功能,但需要明确配置。

可靠性
我们通过移除遗留选项、修复导致混乱或极端情况错误的场景来简化平台。
例如,包含等待节点的子工作流现在能正确返回工作流末端数据(而非等待节点的输入数据),同时我们移除了已失效服务的对应节点。更少的选项、更少的极端情况、更可预测的行为。

性能
我们虽未宣称大幅提速,但移除了导致延迟的因素。仅新的 SQLite 连接池驱动在测试中就有高达 10 倍的速度提升。基于文件系统的二进制数据处理在高负载下表现更稳定。任务执行器虽主打安全,也提供了更好的隔离与资源管理。

所有破坏性变更的完整清单已记录在迁移指南中,其中逐项说明了变更内容与处理方式。升级前请务必查阅。

即刻可见的改进
尽管 2.0 的核心在于底层优化,我们也推出了更安全的工作流更新方式及多项界面体验改进:

发布/保存机制
n8n 2.0 引入全新机制,以更审慎安全的方式将工作流更改推送到生产环境:发布/保存双操作。
在 1.x 版本中,保存已激活的工作流会立即更新生产环境。2.0 版本中,保存按钮仅保留编辑内容而不影响线上版本。新增的发布按钮作为独立明确的操作,供你在准备就绪时更新线上版本。
详见我们的文档说明。
此项变更也为即将于几周后(2026 年 1 月)推出的自动保存功能奠定了基础。

画布视觉优化
我们对工作流编辑器画布进行了细致调整,视觉效果更佳,并持续完善中。

侧边栏导航更新
重新规划侧边栏布局,助你更便捷地定位所需功能。细微调整,体验大幅提升。

升级就绪检测:迁移报告工具
我们开发了迁移报告工具,助你清晰掌握升级前需处理的工作流与配置问题。
报告将问题分为两类:工作流级问题(特定节点或行为将失效)与实例级问题(环境变量及服务器配置)。每个问题均标注严重程度——关键问题将导致工作流中断,需优先处理;中低优先级问题可暂缓,但建议后续解决。
处理完问题清单并刷新后,若报告显示无异常,即可安心升级。
详见迁移工具文档。
该工具仅对 1.119.0 及以上版本的全局管理员开放。

回顾历程:从 1.0 到 2.0
主版本发布恰是驻足回望的良机。
2023 年 7 月 n8n 1.0 发布时,我们迎来了重要里程碑:n8n 正式成为生产就绪平台。此后:

这一切离不开你们的支持:提交问题的社区成员、开发节点的贡献者、论坛答疑的热心用户、制作教程的创作者,以及每日推动 n8n 进步的所有人。本次发布与以往一样,皆源于你们的反馈与奉献。
当然,还有我们 50 余位工程师团队的辛勤付出。
衷心感谢大家!
更多激动人心的新功能即将到来,敬请期待!

常见问题解答
何时发布?

有哪些破坏性变更?
所有破坏性变更及迁移路径均已记录在 2.0 破坏性变更指南中。

如何确认是否受影响?
迁移报告工具可显示升级前需处理的工作流级与实例级问题。在 n8n 实例中通过“设置 → 迁移报告”访问(自 1.121.0 版本起可用,仅全局管理员可见)。
详见迁移工具文档。

社区版是否包含所有 2.0 更新?
是的。2.0 的所有变更均适用于 n8n 全版本:自托管社区版、云版与企业版。

1.x 版本将如何维护?
1.x 版本在 2.0 发布后将继续获得 3 个月支持,期间仅提供安全与漏洞修复,不再新增功能。

如有疑问如何咨询?
请在社区论坛回复我们的发布公告帖,我们将及时提供帮助。

迎接 2.0 的到来
未来已来,携手共进!
—— n8n 全体团队

英文来源:

Today we’re releasing n8n version 2.0.0 BETA
If you've been around software long enough, you know that major version bumps usually mean shiny new features, dramatic redesigns, the works. And with over two years since we released n8n 1.0, a lot of people were expecting something similar.
But that's not what this release is about. And honestly? That's a good thing.
Why 2.0?
n8n follows semantic versioning. That means not shipping breaking changes (updates that might require you to change your workflows or configuration) without incrementing the major version number.
Since 1.0 launched in July 2023, we've accumulated a list of improvements we've been eager to make: security hardening, reliability fixes, and deprecations of features that were causing instability. Every one of these required a breaking change. Every one of them had to wait.
Version 2.0 incorporates all of those improvements and strengthens n8n's position as an enterprise-grade platform, with enhanced security, reliability, and scalability for mission-critical workflows.
Going forward, we won't be waiting this long between major releases. We're planning to ship one to two major versions per year, allowing us to iterate faster and ship improvements without long delays.
The focus of 2.0: Security, reliability, and performance
Security
We've tightened defaults across the board to make n8n significantly more secure out of the box.
The biggest change: task runners are now enabled by default, meaning all Code node executions run in isolated environments with limited access. We've also blocked environment variables from Code nodes and disabled nodes that allow arbitrary command execution by default.
The theme is "secure by default." If your workflows rely on any of the previous, more permissive behaviors, you can still enable them, but you'll need to do so explicitly.
Reliability
We're simplifying the platform by removing legacy options and fixing a few cases that caused confusion or edge-case bugs.
For example, sub workflows with Wait nodes now correctly return data from the end of the workflow (instead of the input to the Wait node), and we've removed nodes for services that no longer exist. Less optionality, fewer edge cases, more predictable behavior.
Performance
We're not claiming dramatic speed improvements, but we are removing things that caused slowdowns. The new SQLite pooling driver alone can be up to 10x faster in our benchmarks. Filesystem-based binary data handling is more predictable under load. And task runners, while primarily a security feature, also provide better isolation and resource management.
The full list of breaking changes is documented in our migration guide which walks through each change and how to handle it. Be sure to review it before upgrading.
Improvements you’ll see right away
While the core of 2.0 is under-the-hood, we’re also shipping a safer way to update live workflows and a few UI/UX improvements:
Publish / Save
n8n v2.0 introduces a new deliberate, safer paradigm for pushing workflow changes live to production: Publish / Save.
In versions 1.x, saving an activated workflow instantly updated production. In v2.0, the Save
button preserves your edits without changing what’s live. We’ve added a new Publish
button as a separate, explicit action to update the live version when you’re ready.
Check out our docs for a detailed explanation.
This change also lays the groundwork for our Autosave feature which is coming in a few weeks (January 2026).
Improved canvas look and feel.
We made some subtle refinements to the workflow editor canvas so it looks even better, and are working on further improvements.
Updated sidebar navigation.
We've reorganized the sidebar to make it easier to find what you need. Small change, big quality-of-life improvement.
Check if you're ready: the Migration Report
We've built a tool to take the guesswork out of upgrading where you can see exactly which workflows and configurations need attention before you upgrade.
The report organizes issues into two categories: workflow-level issues (specific nodes or behaviors that will break) and instance-level issues (environment variables and server configuration). Each issue is tagged by severity — critical issues will break workflows, so fix those first. Medium and low severity items can wait, but you'll want to address them eventually.
Once you've worked through the list and hit refresh, a clean report means you're ready to upgrade.
Details in the migration tool docs.
The migration tool is only available to global admins on versions 1.119.0 and higher.
Reflecting on the journey: 1.0 → 2.0
A major version release feels like the right moment to pause and acknowledge how far we've come.
When we released n8n 1.0 in July 2023, it was a milestone: the moment n8n stepped onto the stage as a production-ready platform. Since then:

n8n

文章目录


    扫描二维码,在手机上阅读