From eb8732b08e1d16aeeef031d5a078a4a345523774 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 18 Sep 2026 12:07:07 +0100 Subject: [PATCH] fix(tasks): drop the SDK version whitelist The list had to be edited for every release and was last extended at 2.0.x, so generating SDK examples for 2.1.x or 2.2.x failed with "Unknown version given" even though `APP_VERSION_STABLE` is 2.2.0. The value only names an output directory, and every real caller passes a version that came from a release, so the list added a maintenance step without protecting anything. --- src/Appwrite/Platform/Tasks/SDKs.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/Appwrite/Platform/Tasks/SDKs.php b/src/Appwrite/Platform/Tasks/SDKs.php index a401a0801f..88c4516969 100644 --- a/src/Appwrite/Platform/Tasks/SDKs.php +++ b/src/Appwrite/Platform/Tasks/SDKs.php @@ -124,33 +124,6 @@ class SDKs extends Action if (! $createRelease) { $version ??= Console::confirm('Choose an Appwrite version'); - - if (! \in_array($version, [ - '0.6.x', - '0.7.x', - '0.8.x', - '0.9.x', - '0.10.x', - '0.11.x', - '0.12.x', - '0.13.x', - '0.14.x', - '0.15.x', - '1.0.x', - '1.1.x', - '1.2.x', - '1.3.x', - '1.4.x', - '1.5.x', - '1.6.x', - '1.7.x', - '1.8.x', - '1.9.x', - '2.0.x', - 'latest', - ])) { - throw new \Exception('Unknown version given'); - } } $selectedPlatforms = ($selectedPlatform === '*' || $selectedPlatform === null) ? null : \array_map('trim', \explode(',', $selectedPlatform));