Skip to content

chore: node version update#6359

Draft
0xi4o wants to merge 3 commits intomainfrom
chore/node-version
Draft

chore: node version update#6359
0xi4o wants to merge 3 commits intomainfrom
chore/node-version

Conversation

@0xi4o
Copy link
Copy Markdown
Contributor

@0xi4o 0xi4o commented May 7, 2026

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades the Node.js version from 20 to 24 across the repository, including configuration files and Dockerfiles, and updates test mocks to prefix unused parameters with underscores. Feedback indicates that Node.js 24 is not yet released, which will cause build failures; it is recommended to use a stable version like Node 22 instead. Additionally, a missing ARG definition for ${NODE_VERSION} was identified in the Dockerfile runtime stage, which would lead to an invalid image name.

Comment thread .nvmrc
@@ -1 +1 @@
v20.20.2
v24.15.0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Node.js version 24 is not yet released (LTS is expected in April 2025). The version v24.15.0 does not exist on official registries, which will cause builds and development environments to fail. Please verify if you intended to use Node 22 (the current LTS) or a specific patch of Node 20.

Comment thread Dockerfile
# docker run -d -p 3000:3000 flowise

FROM node:20-alpine
FROM node:24-alpine
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Node.js version 24 is not yet released. It is recommended to use a stable, released version like 22 to ensure the image can be built from official registries.

FROM node:22-alpine

Comment thread docker/Dockerfile
@@ -1,5 +1,5 @@
# Stage 1: Build stage
FROM node:20-alpine AS build
FROM node:24-alpine AS build
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Node.js version 24 is not yet released. It is recommended to use a stable version like 22.

FROM node:22-alpine AS build

Comment thread docker/Dockerfile

# Stage 2: Runtime stage
FROM node:20-alpine
FROM node:${NODE_VERSION}-alpine
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The variable ${NODE_VERSION} is used here but is not defined as an ARG in this Dockerfile. This will cause the build to fail as the image name will be incomplete (e.g., node:-alpine). Additionally, this is inconsistent with the hardcoded version used in the build stage on line 2. It is recommended to use a consistent, released version like 22-alpine.

FROM node:22-alpine

Comment thread package.json
},
"engines": {
"node": "^20",
"node": "^24",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Setting the required Node.js engine to ^24 will prevent installation on current environments since Node 24 has not been released yet. Per repository rules, the Node.js engine version in package.json should be limited to versions verified by the CI pipeline to avoid implying support for untested versions. If the intention was to upgrade to the latest LTS, this should likely be ^22.

Suggested change
"node": "^24",
"node": "^22",
References
  1. The Node.js engine version in package.json should be limited to versions verified by the CI pipeline to avoid implying support for untested versions.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It was just released yesterday, perhaps too new

},
"engines": {
"node": "^20"
"node": "^24"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The Node.js engine version should be updated to a released version (e.g., ^22) to avoid installation failures and maintain consistency with the root package.json. Per repository rules, the Node.js engine version in package.json should be limited to versions verified by the CI pipeline to avoid implying support for untested versions.

Suggested change
"node": "^24"
"node": "^22"
References
  1. The Node.js engine version in package.json should be limited to versions verified by the CI pipeline to avoid implying support for untested versions.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

That makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants