Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore: upgrade Node.js runtime to 24 LTS (#41573)
yyh8e064ffe98da
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.jsonindex 3998a69c36a..05712d24189 100644--- a/.devcontainer/devcontainer.json+++ b/.devcontainer/devcontainer.json@@ -12,7 +12,7 @@"features": {"ghcr.io/devcontainers/features/node:1": {"nodeGypDependencies": true,- "version": "lts"+ "version": "24.20.0"},"ghcr.io/devcontainers-extra/features/npm-package:1": {"package": "typescript",@@ -46,4 +46,4 @@// Configure tool-specific properties.// "customizations": {},// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.-}\ No newline at end of file+}diff --git a/.github/actions/setup-web/action.yml b/.github/actions/setup-web/action.ymlindex 68c330d0e2c..dbc20df50af 100644--- a/.github/actions/setup-web/action.yml+++ b/.github/actions/setup-web/action.yml@@ -11,6 +11,6 @@ runs:- name: Setup Vite+uses: voidzero-dev/setup-vp@1b32467adbe183473499fd9d5d372c3ed9641754 # v1.18.0with:- node-version-file: .nvmrc+ node-version-file: package.jsoncache: truerun-install: truediff --git a/.github/labeler.yml b/.github/labeler.ymlindex c2ea8873781..911aa34e37a 100644--- a/.github/labeler.yml+++ b/.github/labeler.yml@@ -6,7 +6,6 @@ web:- 'package.json'- 'pnpm-lock.yaml'- 'pnpm-workspace.yaml'- - '.nvmrc'e2e:- changed-files:diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.ymlindex 7ad86aa41b8..6023aa7fae2 100644--- a/.github/workflows/main-ci.yml+++ b/.github/workflows/main-ci.yml@@ -82,7 +82,6 @@ jobs:- 'pnpm-workspace.yaml'- 'lint.config.ts'- '.npmrc'- - '.nvmrc'- '.github/workflows/cli-tests.yml'- '.github/actions/setup-web/**'web:@@ -91,7 +90,6 @@ jobs:- 'package.json'- 'pnpm-lock.yaml'- 'pnpm-workspace.yaml'- - '.nvmrc'- '.github/workflows/main-ci.yml'- '.github/workflows/web-tests.yml'- '.github/actions/setup-web/**'@@ -105,7 +103,6 @@ jobs:- 'package.json'- 'pnpm-lock.yaml'- 'pnpm-workspace.yaml'- - '.nvmrc'- 'docker/docker-compose.middleware.yaml'- 'docker/envs/middleware.env.example'- '.github/workflows/web-e2e.yml'diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.ymlindex de1fce7977c..8f410b887be 100644--- a/.github/workflows/post-merge.yml+++ b/.github/workflows/post-merge.yml@@ -39,7 +39,6 @@ jobs:- 'e2e/tsx-register.js'- 'package.json'- 'pnpm-lock.yaml'- - '.nvmrc'- '.github/workflows/post-merge.yml'- '.github/workflows/web-e2e.yml'- '.github/actions/setup-web/**'diff --git a/.github/workflows/style.yml b/.github/workflows/style.ymlindex e2dc5504205..ca9d93d136e 100644--- a/.github/workflows/style.yml+++ b/.github/workflows/style.yml@@ -114,7 +114,6 @@ jobs:pnpm-workspace.yamlknip.config.tsscripts/check-web-production-unused-after-knip-fix.mjs- .nvmrc.github/workflows/style.yml.github/actions/setup-web/**@@ -170,7 +169,6 @@ jobs:package.jsonpnpm-lock.yamlpnpm-workspace.yaml- .nvmrcvite.config.tslint.config.tseslint.config.mjsdiff --git a/.github/workflows/tool-test-sdks.yaml b/.github/workflows/tool-test-sdks.yamlindex 2d0133131eb..e6ab2459edf 100644--- a/.github/workflows/tool-test-sdks.yaml+++ b/.github/workflows/tool-test-sdks.yaml@@ -31,7 +31,7 @@ jobs:- name: Use Node.jsuses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0with:- node-version: 22+ node-version-file: package.jsoncache: ''cache-dependency-path: 'pnpm-lock.yaml'diff --git a/.nvmrc b/.nvmrcdeleted file mode 100644index 2bd5a0a98a3..00000000000--- a/.nvmrc+++ /dev/null@@ -1 +0,0 @@-22diff --git a/api/Dockerfile b/api/Dockerfileindex 86eef5d329f..7c9b5d1a158 100644--- a/api/Dockerfile+++ b/api/Dockerfile@@ -53,15 +53,14 @@ WORKDIR /app/api# Create non-root userARG dify_uid=1001-ARG NODE_MAJOR=22-ARG NODE_PACKAGE_VERSION=22.21.0-1nodesource1+ARG NODE_PACKAGE_VERSION=24.20.0-1nodesource1ARG NODESOURCE_KEY_FPR=6F71F525282841EEDAF851B42F59B5F99B1BE0B4RUN groupadd -r -g ${dify_uid} dify && \useradd -r -u ${dify_uid} -g ${dify_uid} -s /bin/bash dify && \chown -R dify:dify /app-RUN \- apt-get update \+RUN NODE_MAJOR="${NODE_PACKAGE_VERSION%%.*}" \+ && apt-get update \&& apt-get install -y --no-install-recommends \ca-certificates \curl \diff --git a/cli/AGENTS.md b/cli/AGENTS.mdindex 2b579f401ff..322325d7c5d 100644--- a/cli/AGENTS.md+++ b/cli/AGENTS.md@@ -1,6 +1,6 @@# AGENTS.md — difyctl (TypeScript CLI)-This package is the Node 22+, ESM TypeScript implementation of `difyctl`. Development also requires the Bun version pinned in `.bun-version`; command-tree generation and the `dev`, `test`, and `build` pre-scripts invoke it. Read [`ARD.md`] before adding a command or changing shared CLI infrastructure. Read `src/commands/AGENTS.md` for command-folder and registry rules.+This package is the Node 24+, ESM TypeScript implementation of `difyctl`. Development also requires the Bun version pinned in `.bun-version`; command-tree generation and the `dev`, `test`, and `build` pre-scripts invoke it. Read [`ARD.md`] before adding a command or changing shared CLI infrastructure. Read `src/commands/AGENTS.md` for command-folder and registry rules.## Architecture Boundariesdiff --git a/cli/package.json b/cli/package.jsonindex 1c49f13137a..a2b750adb5f 100644--- a/cli/package.json+++ b/cli/package.json@@ -66,7 +66,7 @@"vitest": "catalog:"},"engines": {- "node": "^22.22.1"+ "node": "^24.20.0"},"difyctl": {"channel": "stable",diff --git a/cli/vite.config.ts b/cli/vite.config.tsindex 85b0e264cbe..451c0312d63 100644--- a/cli/vite.config.ts+++ b/cli/vite.config.ts@@ -22,7 +22,7 @@ export default defineConfig({sourcemap: true,treeshake: false,outDir: 'dist',- target: 'node22',+ target: 'node24',define: {__DIFYCTL_VERSION__: JSON.stringify(buildInfo.version),__DIFYCTL_COMMIT__: JSON.stringify(buildInfo.commit),diff --git a/cli/vitest.e2e.config.ts b/cli/vitest.e2e.config.tsindex 5ea77e18c1e..bc56c232f9c 100644--- a/cli/vitest.e2e.config.ts+++ b/cli/vitest.e2e.config.ts@@ -43,7 +43,7 @@ export default defineConfig({entry: ['src/index.ts'],format: ['esm'],outDir: 'dist',- target: 'node22',+ target: 'node24',define: {__DIFYCTL_VERSION__: JSON.stringify(buildInfo.version),__DIFYCTL_COMMIT__: JSON.stringify(buildInfo.commit),diff --git a/dify-agent-runtime/docker/Dockerfile b/dify-agent-runtime/docker/Dockerfileindex f8d38413e94..a8a25659e02 100644--- a/dify-agent-runtime/docker/Dockerfile+++ b/dify-agent-runtime/docker/Dockerfile@@ -20,7 +20,7 @@ RUN CGO_ENABLED=0 go build -o /bin/shellctl ./cmd/shellctl && \# ── Runtime stage ────────────────────────────────────────────────────────────FROM python:3.12-slim-bookworm AS production-ARG NODE_VERSION=22.22.1+ARG NODE_VERSION=24.20.0ARG PNPM_VERSION=11.9.0ARG UV_VERSION=0.8.9diff --git a/package.json b/package.jsonindex a1efeaf28b9..68ec273fbba 100644--- a/package.json+++ b/package.json@@ -56,12 +56,12 @@"devEngines": {"runtime": {"name": "node",- "version": "^22.22.1",+ "version": "24.20.0","onFail": "download"}},"engines": {- "node": "^22.22.1"+ "node": "^24.20.0"},"packageManager": "[email protected]"}diff --git a/packages/dev-proxy/package.json b/packages/dev-proxy/package.jsonindex d249d0cf50f..ebdec46de78 100644--- a/packages/dev-proxy/package.json+++ b/packages/dev-proxy/package.json@@ -39,6 +39,6 @@"vitest": "catalog:"},"engines": {- "node": "^22.22.1"+ "node": "^24.20.0"}}diff --git a/packages/dev-proxy/vite.config.ts b/packages/dev-proxy/vite.config.tsindex 2208c5108a6..d459331d695 100644--- a/packages/dev-proxy/vite.config.ts+++ b/packages/dev-proxy/vite.config.ts@@ -11,7 +11,7 @@ export default defineConfig({outDir: 'dist',platform: 'node',sourcemap: true,- target: 'node22',+ target: 'node24',treeshake: true,},test: {diff --git a/packages/migrate-no-unchecked-indexed-access/vite.config.ts b/packages/migrate-no-unchecked-indexed-access/vite.config.tsindex ac4aed1a064..2e167da96a0 100644--- a/packages/migrate-no-unchecked-indexed-access/vite.config.ts+++ b/packages/migrate-no-unchecked-indexed-access/vite.config.ts@@ -11,7 +11,7 @@ export default defineConfig({outDir: 'dist',platform: 'node',sourcemap: true,- target: 'node22',+ target: 'node24',treeshake: true,},})diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ca6b1e758eb..429790217f5 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -730,8 +730,8 @@ importers:specifier: 'catalog:'version: 6.34.0node:- specifier: runtime:^22.22.1- version: runtime:22.23.2+ specifier: runtime:24.20.0+ version: runtime:24.20.0typescript:specifier: 'catalog:'version: '@typescript/[email protected]'@@ -7398,7 +7398,7 @@ packages:resolution: {integrity: sha512-YHs7BmmcsdAI5Ozuf8JZo6PT0mv2GIWC9vMfvUC3dp65M8hn7Ux8CPL+2oBI7juNuj9d0ndhTcznq2ODBps9cQ==}engines: {node: '>=18'}- node@runtime:22.23.2:+ node@runtime:24.20.0:resolution:type: variationsvariants:@@ -7406,9 +7406,9 @@ packages:archive: tarballbin:node: bin/node- integrity: sha256-d8YwMv1KuOmOCufbnXnjlmWeBK+Vpe344cqGnkJsBKU=+ integrity: sha256-FLW9etQKtfRxX7Ti+WSFjYINlCX+KR09ZfmJJua4nB4=type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-aix-ppc64.tar.gz+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-aix-ppc64.tar.gztargets:- cpu: ppc64os: aix@@ -7416,9 +7416,9 @@ packages:archive: tarballbin:node: bin/node- integrity: sha256-YRMPOUwWMNIR3VCuzENT03lIDzbTrJE82F27oa7VhcY=+ integrity: sha256-QOVgfl7LPbkZJyN3baLXXZZiYPx0p6nnMcG9Z92pa8g=type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-darwin-arm64.tar.gz+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-darwin-arm64.tar.gztargets:- cpu: arm64os: darwin@@ -7426,9 +7426,9 @@ packages:archive: tarballbin:node: bin/node- integrity: sha256-WOmQIsL/iTlVdsx/1NmM6iS7aAgUddX4i4Ae6HKfsCY=+ integrity: sha256-nlsmRM8Qe++2rvymdrltMpa8EBOAlvAi7TeNYjPtgfQ=type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-darwin-x64.tar.gz+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-darwin-x64.tar.gztargets:- cpu: x64os: darwin@@ -7436,9 +7436,9 @@ packages:archive: tarballbin:node: bin/node- integrity: sha256-ATtZz9KBlwOm9KFKuJH8RvwqTj9bzZLeP7SSm0PjWzA=+ integrity: sha256-NRVgPiSHh5o5vHVxbxoq/9AnUAxkulDoRc9yyzMhkBM=type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-linux-arm64.tar.gz+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-arm64.tar.gztargets:- cpu: arm64os: linux@@ -7446,39 +7446,40 @@ packages:archive: tarballbin:node: bin/node- integrity: sha256-Ki9Z64/Z3sJ7O+4XxykTHR/T5tmUPUefEVbOOK+M1Zk=+ integrity: sha256-pzSzbI0dFs5FXA65wymwfdEhwshVQ1UGSphhvJbDrcw=type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-linux-armv7l.tar.gz+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-ppc64le.tar.gztargets:- - cpu: armv7l+ - cpu: ppc64leos: linux- resolution:archive: tarballbin:node: bin/node- integrity: sha256-ZciqnmRxlvMNNWS7ayATBrG1IPcvDdMnjaMmAUoBg3k=+ integrity: sha256-2MIktG7wHweKUj2bfbeSgjBvrigemGoVotv/6UfFMB4=type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-linux-ppc64le.tar.gz+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-s390x.tar.gztargets:- - cpu: ppc64le+ - cpu: s390xos: linux- resolution:archive: tarballbin:node: bin/node- integrity: sha256-mGuEQbHRoBxw7XELqyAXQf0NGW0wKn5DOP79XhwQ5h4=+ integrity: sha256-1ubRu7mtSssW1YC4m+ipyafkkJJuk708MKINRuFSv4o=type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-linux-s390x.tar.gz+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-x64-musl.tar.gztargets:- - cpu: s390x+ - cpu: x64os: linux+ libc: musl- resolution:archive: tarballbin:node: bin/node- integrity: sha256-spSlVuY51kM4gjkg5YZsIcAnQXQtLhUp7hoiXB7JJSo=+ integrity: sha256-hV1YH4pOsagRfjQm3iX+AncFkv68+zE2mu4f+/7p6Ow=type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-linux-x64.tar.gz+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-x64.tar.gztargets:- cpu: x64os: linux@@ -7486,10 +7487,10 @@ packages:archive: zipbin:node: node.exe- integrity: sha256-/sAlptoxdX47avhMWhYo6dOEQsqZohYQkdePL8+jXvM=- prefix: node-v22.23.2-win-arm64+ integrity: sha256-McZ5l0TeilRgFkMJgEDGjDaX5WyU5AfWHQ5fpfNBkdc=+ prefix: node-v24.20.0-win-arm64type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-win-arm64.zip+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-win-arm64.ziptargets:- cpu: arm64os: win32@@ -7497,31 +7498,20 @@ packages:archive: zipbin:node: node.exe- integrity: sha256-EXe0E3ulrapWNUrkDxCAx0UOiuCc7LR9pFnRxSrJn5c=- prefix: node-v22.23.2-win-x64+ integrity: sha256-bKyf+8qPakcJHktcdy4GBgScOHHLZ9kAwM7d5jDlRbo=+ prefix: node-v24.20.0-win-x64type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-win-x64.zip+ url: https://nodejs.org/download/release/v24.20.0/node-v24.20.0-win-x64.ziptargets:- cpu: x64os: win32- - resolution:- archive: zip- bin:- node: node.exe- integrity: sha256-clyeK90cIBa0HJlagfT6Ns5OLuVlt0Vdj4iRgnJ99kc=- prefix: node-v22.23.2-win-x86- type: binary- url: https://nodejs.org/download/release/v22.23.2/node-v22.23.2-win-x86.zip- targets:- - cpu: x86- os: win32- resolution:archive: tarballbin:node: bin/node- integrity: sha256-t6GiscfHbkdVDxd2RnaTmEDgpktNBL3TdaSsFLzKqNg=+ integrity: sha256-LIxQfMsPIIEtlSa6jKRUsWUqre9o/IutBvB/sRIt0e8=type: binary- url: https://unofficial-builds.nodejs.org/download/release/v22.23.2/node-v22.23.2-linux-arm64-musl.tar.gz+ url: https://unofficial-builds.nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-arm64-musl.tar.gztargets:- cpu: arm64os: linux@@ -7530,14 +7520,14 @@ packages:archive: tarballbin:node: bin/node- integrity: sha256-OW4R7mCesuXLmQ8EXE0DeqR7LCR/POywHFwWLjP/qa8=+ integrity: sha256-muE5n+9L2JkOFXc84TJ7M2oguel9jHVJ9PQspzxD9WI=type: binary- url: https://unofficial-builds.nodejs.org/download/release/v22.23.2/node-v22.23.2-linux-x64-musl.tar.gz+ url: https://unofficial-builds.nodejs.org/download/release/v24.20.0/node-v24.20.0-linux-x64-musl.tar.gztargets:- cpu: x64os: linuxlibc: musl- version: 22.23.2+ version: 24.20.0hasBin: true@@ -15043,7 +15033,7 @@ snapshots:- node@runtime:22.23.2: {}+ node@runtime:24.20.0: {}dependencies:diff --git a/web/Dockerfile b/web/Dockerfileindex 9ddb06b8ed5..b60983d5665 100644--- a/web/Dockerfile+++ b/web/Dockerfile@@ -1,5 +1,6 @@# base image-FROM node:22.22.1-alpine AS base+ARG NODE_VERSION=24.20.0+FROM node:${NODE_VERSION}-alpine AS baseLABEL maintainer="[email protected]"# if you located in China, you can use aliyun mirror to speed updiff --git a/web/Dockerfile.dockerignore b/web/Dockerfile.dockerignoreindex 115f4303fa9..4a75679e91c 100644--- a/web/Dockerfile.dockerignore+++ b/web/Dockerfile.dockerignore@@ -2,7 +2,6 @@!package.json!pnpm-lock.yaml!pnpm-workspace.yaml-!.nvmrc!web/!web/**!e2e/diff --git a/web/README.md b/web/README.mdindex cd4cc161b1e..cb5abb83bc4 100644--- a/web/README.md+++ b/web/README.md@@ -6,7 +6,7 @@ This is a [Next.js] application with [vinext] as the default local development s### Run by source code-The required Node.js and pnpm versions are pinned by the repository root `.nvmrc` and `packageManager` field. [Vite+] is also available for repository checks and tests; use its official documentation as the installation reference.+The required Node.js and pnpm versions are pinned by the repository root `devEngines.runtime` and `packageManager` fields. [Vite+] is also available for repository checks and tests; use its official documentation as the installation reference.- [Node.js]- [pnpm]@@ -20,7 +20,7 @@ pnpm install```> [!NOTE]-> JavaScript dependencies are managed by the workspace files at the repository root: `package.json`, `pnpm-lock.yaml`, `pnpm-workspace.yaml`, and `.nvmrc`.+> JavaScript dependencies are managed by the workspace files at the repository root: `package.json`, `pnpm-lock.yaml`, and `pnpm-workspace.yaml`.> Install dependencies and run the commands below from the repository root.Then, configure the environment variables.