Skip to content

Commit c7a0714

Browse files
authored
chore!: Change supported Node from 18 to 20 (#20669)
* chore!: Change supported Node from 18 to 20 Node 20 is the active LTS version for Node. Node 18 will be end of life soon and new libraries like React 19 support Node 20+ * Fix tests
1 parent 33ccf17 commit c7a0714

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

flow-server/src/main/java/com/vaadin/flow/server/frontend/FrontendTools.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ public class FrontendTools {
117117
private static final FrontendVersion WHITESPACE_ACCEPTING_NPM_VERSION = new FrontendVersion(
118118
7, 0);
119119

120-
private static final int SUPPORTED_NODE_MAJOR_VERSION = 18;
121-
private static final int SUPPORTED_NODE_MINOR_VERSION = 12;
122-
private static final int SUPPORTED_NPM_MAJOR_VERSION = 8;
120+
private static final int SUPPORTED_NODE_MAJOR_VERSION = 20;
121+
private static final int SUPPORTED_NODE_MINOR_VERSION = 0;
122+
private static final int SUPPORTED_NPM_MAJOR_VERSION = 9;
123123
private static final int SUPPORTED_NPM_MINOR_VERSION = 6;
124124

125125
static final FrontendVersion SUPPORTED_NODE_VERSION = new FrontendVersion(

flow-server/src/test/java/com/vaadin/flow/server/frontend/FrontendToolsTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
@Category(SlowTests.class)
7070
public class FrontendToolsTest {
7171

72-
private static final String SUPPORTED_NODE_BUT_OLDER_THAN_AUTOINSTALLED = "18.12.0";
72+
private static final String SUPPORTED_NODE_BUT_OLDER_THAN_AUTOINSTALLED = "20.0.0";
7373

7474
public static final String DEFAULT_NODE = FrontendUtils.isWindows()
7575
? "node\\node.exe"

flow-test-generic/src/main/java/com/vaadin/flow/testutil/FrontendStubs.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ public String getScript() {
254254
*/
255255
public static class ToolStubBuilder {
256256

257-
private static final String DEFAULT_NPM_VERSION = "8.6.0";
258-
private static final String DEFAULT_NODE_VERSION = "18.12.0";
257+
private static final String DEFAULT_NPM_VERSION = "10.9.0";
258+
private static final String DEFAULT_NODE_VERSION = "22.12.0";
259259

260260
private String version;
261261
private String cacheDir;

0 commit comments

Comments
 (0)