Skip to content

armgit / dify

Public Imported from GitHub
0

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.

chore: stop managing the Node.js runtime with pnpm (#44976)

Stephen Zhou5d99eb1dc2b6
diff --git a/.github/actions/setup-web/action.yml b/.github/actions/setup-web/action.yml
index ae142b92547..b7303c853ff 100644
--- a/.github/actions/setup-web/action.yml
+++ b/.github/actions/setup-web/action.yml
@@ -12,8 +12,16 @@ inputs:
runs:
using: composite
steps:
- - name: Setup pnpm and Node.js
- uses: pnpm/setup@fbda4c85fc2e1e08721cd8763afea8f48d60f024 # v3.0.0
+ # setup-node resolves engines.node from the runner tool cache or GitHub's mirror.
+ - name: Setup Node.js
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version-file: package.json
+ package-manager-cache: false
+ # pnpm/setup also restores pnpm's lockfile verification log; without it every job
+ # re-checks the whole lockfile against the registry before installing.
+ - name: Setup pnpm
+ uses: pnpm/setup@a0881977cd8ea73b1ed212236c99ca10dcc80cf4 # v3.1.1
with:
install: false
- name: Setup Vite+
diff --git a/.github/workflows/cli-e2e.yml b/.github/workflows/cli-e2e.yml
index f6bae5375b1..ac83a515f62 100644
--- a/.github/workflows/cli-e2e.yml
+++ b/.github/workflows/cli-e2e.yml
@@ -87,6 +87,11 @@ jobs:
with:
bun-version: latest
+ - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
+ with:
+ node-version-file: package.json
+ package-manager-cache: false
+
- uses: pnpm/setup@a0881977cd8ea73b1ed212236c99ca10dcc80cf4 # v3.1.1
with:
install: false
diff --git a/.github/workflows/web-bundle-size.yml b/.github/workflows/web-bundle-size.yml
index 7ee6914eac4..e47e52eb095 100644
--- a/.github/workflows/web-bundle-size.yml
+++ b/.github/workflows/web-bundle-size.yml
@@ -101,9 +101,10 @@ jobs:
persist-credentials: false
- name: Setup Node.js
- uses: pnpm/setup@a0881977cd8ea73b1ed212236c99ca10dcc80cf4 # v3.1.1
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- install: false
+ node-version-file: package.json
+ package-manager-cache: false
- name: Download size snapshots
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
diff --git a/cli/package.json b/cli/package.json
index d639db385d1..e50968d5a14 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -61,13 +61,6 @@
"vite-plus": "catalog:",
"vitest": "catalog:"
},
- "devEngines": {
- "runtime": {
- "name": "node",
- "version": "24.22.1",
- "onFail": "download"
- }
- },
"engines": {
"node": "^24.22.1"
},
diff --git a/package.json b/package.json
index 8669e42e951..86455d1e8c8 100644
--- a/package.json
+++ b/package.json
@@ -35,13 +35,6 @@
"vite": "catalog:",
"vite-plus": "catalog:"
},
- "devEngines": {
- "runtime": {
- "name": "node",
- "version": "24.22.1",
- "onFail": "download"
- }
- },
"engines": {
"node": "^24.22.1"
},
diff --git a/packages/dev-proxy/package.json b/packages/dev-proxy/package.json
index fdd6bc9afe7..f680e0837c5 100644
--- a/packages/dev-proxy/package.json
+++ b/packages/dev-proxy/package.json
@@ -39,13 +39,6 @@
"vite": "catalog:",
"vite-plus": "catalog:"
},
- "devEngines": {
- "runtime": {
- "name": "node",
- "version": "24.22.1",
- "onFail": "download"
- }
- },
"engines": {
"node": "^24.22.1"
}
diff --git a/packages/image-resources/package.json b/packages/image-resources/package.json
index b39ea190601..53bb6127e7a 100644
--- a/packages/image-resources/package.json
+++ b/packages/image-resources/package.json
@@ -23,13 +23,6 @@
"vite": "catalog:",
"vite-plus": "catalog:"
},
- "devEngines": {
- "runtime": {
- "name": "node",
- "version": "24.22.1",
- "onFail": "download"
- }
- },
"engines": {
"node": "^24.22.1"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 601b2d75c84..a832ee95829 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -848,9 +848,6 @@ importers:
knip:
specifier: 'catalog:'
version: 6.42.0
- node:
- specifier: runtime:24.22.1
- version: runtime:24.22.1
tsrs:
specifier: 'catalog:'
version: 0.18.0-ts7.1.0-dev.20260929
@@ -915,9 +912,6 @@ importers:
hono:
specifier: 'catalog:'
version: 4.13.13
- node:
- specifier: runtime:24.22.1
- version: runtime:24.22.1
tsrs:
specifier: 'catalog:'
version: 0.18.0-ts7.1.0-dev.20260929
@@ -1049,9 +1043,6 @@ importers:
'@typescript/native':
specifier: 'catalog:'
- node:
- specifier: runtime:24.22.1
- version: runtime:24.22.1
tsrs:
specifier: 'catalog:'
version: 0.18.0-ts7.1.0-dev.20260929
@@ -1225,9 +1216,6 @@ importers:
'@typescript/native':
specifier: 'catalog:'
- node:
- specifier: runtime:24.22.1
- version: runtime:24.22.1
tsrs:
specifier: 'catalog:'
version: 0.18.0-ts7.1.0-dev.20260929
@@ -1488,9 +1476,6 @@ importers:
'@vitest/coverage-v8':
specifier: 'catalog:'
version: 5.0.5(@vitest/[email protected])([email protected])
- node:
- specifier: runtime:24.22.1
- version: runtime:24.22.1
tsrs:
specifier: 'catalog:'
version: 0.18.0-ts7.1.0-dev.20260929
@@ -7771,138 +7756,6 @@ packages:
resolution: {integrity: sha512-BdiKAgbfRlvfMq/XzO/AF9NPmaA8a+YpLAyAFTVFBj3gARrAIfWvNq7Q7NE4se3KgFu0KkrvQMxTS0XVnsGzHg==}
engines: {node: '>=18'}
- node@runtime:24.22.1:
- resolution:
- type: variations
- variants:
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-9ie20HmCnmSKS4AP+oidN9viORNQcDADDbhaqGFZGiY=
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-aix-ppc64.tar.gz
- targets:
- - cpu: ppc64
- os: aix
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-icaCWT12zUQjP6U7FWMmTn3py7GJytFpE1xbT637wKc=
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-darwin-arm64.tar.gz
- targets:
- - cpu: arm64
- os: darwin
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-0TJVfn7iuFrwiwyMNDOOZcZDDyI40B9ydyjvQtyDsDU=
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-darwin-x64.tar.gz
- targets:
- - cpu: x64
- os: darwin
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-M8N74jS6i+4EGWEEexkWD019DxZOjiRveL3RD+/xSLM=
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-arm64.tar.gz
- targets:
- - cpu: arm64
- os: linux
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-nOVyhEUBaynkmtCY96M2Bhql93DRd9knJ4vCb9Ym5kM=
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-ppc64le.tar.gz
- targets:
- - cpu: ppc64le
- os: linux
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-cZea6xw4W8jugxANODo7HsClIC4D35+ZanBAMwnK/7U=
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-s390x.tar.gz
- targets:
- - cpu: s390x
- os: linux
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-myUNKdariuON0jAZ4sBKbWspFqsdrXIcX24dorKQHGo=
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-x64-musl.tar.gz
- targets:
- - cpu: x64
- os: linux
- libc: musl
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-62co53xXajUWLBIsRcyt8iTYn/AKvI2uRswol8YALXw=
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-x64.tar.gz
- targets:
- - cpu: x64
- os: linux
- - resolution:
- archive: zip
- bin:
- node: node.exe
- integrity: sha256-oMgHMZ/t4kxKDY+EVkyCphm9MTsWsQwAfDg8JgnpkXE=
- prefix: node-v24.22.1-win-arm64
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-win-arm64.zip
- targets:
- - cpu: arm64
- os: win32
- - resolution:
- archive: zip
- bin:
- node: node.exe
- integrity: sha256-0gRtKMLD3NIRrFFFwL8w4gR++d+zBmk8jG4uzNi5X6U=
- prefix: node-v24.22.1-win-x64
- type: binary
- url: https://nodejs.org/download/release/v24.22.1/node-v24.22.1-win-x64.zip
- targets:
- - cpu: x64
- os: win32
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-glQSWCWj5eg0vYomDatMgwP3IEZKdBUG7CeYm5uhdps=
- type: binary
- url: https://unofficial-builds.nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-arm64-musl.tar.gz
- targets:
- - cpu: arm64
- os: linux
- libc: musl
- - resolution:
- archive: tarball
- bin:
- node: bin/node
- integrity: sha256-Cp7dzi0ujzrdvpT6RtdRMlstdPf9HOYylhZNNrbfxuU=
- type: binary
- url: https://unofficial-builds.nodejs.org/download/release/v24.22.1/node-v24.22.1-linux-x64-musl.tar.gz
- targets:
- - cpu: x64
- os: linux
- libc: musl
- version: 24.22.1
- hasBin: true
-
resolution: {integrity: sha512-RWk+PI433eESQ7ounYxIp67CYuVsS1uYSonX3kA6ps/3LWfjVQa/ptEg6Y3T6uAMq1mWpX9PQ+qx+QaHpsc7gQ==}
engines: {node: ^20.17.0 || >=22.9.0}
@@ -15150,8 +15003,6 @@ snapshots:
- node@runtime:24.22.1: {}
-
dependencies:
hosted-git-info: 9.0.3
diff --git a/sdks/nodejs-client/package.json b/sdks/nodejs-client/package.json
index 324d93cb6b0..8b5c6462f42 100644
--- a/sdks/nodejs-client/package.json
+++ b/sdks/nodejs-client/package.json
@@ -60,13 +60,6 @@
"vite-plus": "catalog:",
"vitest": "catalog:"
},
- "devEngines": {
- "runtime": {
- "name": "node",
- "version": "24.22.1",
- "onFail": "download"
- }
- },
"engines": {
"node": ">=18.0.0"
}
diff --git a/web/README.md b/web/README.md
index 778d9f68176..95c9ab6b9ec 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 `devEngines.runtime` and `packageManager` fields. [Vite+] is also available for repository checks and tests; use its official documentation as the installation reference.
+The required Node.js range is declared by the repository root `engines.node` field (enforced via `engineStrict`), and the pnpm version is pinned by `packageManager`. [Vite+] is also available for repository checks and tests; use its official documentation as the installation reference.
- [Node.js]
- [pnpm]