From d388391da4ef03f4d80558ae3f61e1ffc737aa0d Mon Sep 17 00:00:00 2001 From: Steph Locke Date: Thu, 7 Aug 2025 13:22:48 +0100 Subject: [PATCH] Increment supported version #970 In May, node released version 24.* - whilst this is not documented as supported yet, testing with version 4.1.10 of the core tools by npm and following the same sort of process swa cli takes, the `func` runs without error --- src/core/func-core-tools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/func-core-tools.ts b/src/core/func-core-tools.ts index a94553c69..7351ffc85 100644 --- a/src/core/func-core-tools.ts +++ b/src/core/func-core-tools.ts @@ -42,7 +42,7 @@ export function isCoreToolsVersionCompatible(coreToolsVersion: number, nodeVersi // Runtime support reference: https://docs.microsoft.com/azure/azure-functions/functions-versions?pivots=programming-language-javascript#languages switch (coreToolsVersion) { case 4: - return nodeVersion >= 18 && nodeVersion <= 22; + return nodeVersion >= 18 && nodeVersion <= 24; case 3: return nodeVersion >= 14 && nodeVersion <= 20; case 2: @@ -54,7 +54,7 @@ export function isCoreToolsVersionCompatible(coreToolsVersion: number, nodeVersi export function detectTargetCoreToolsVersion(nodeVersion: number): number { // Pick the highest version that is compatible with the specified Node version - if (nodeVersion >= 18 && nodeVersion <= 22) return 4; + if (nodeVersion >= 18 && nodeVersion <= 24) return 4; if (nodeVersion >= 14 && nodeVersion < 20) return 3; if (nodeVersion >= 10 && nodeVersion < 14) return 2;