From 493221006d4b6a0d17f50ac7bfb78ba1ade6e6b8 Mon Sep 17 00:00:00 2001 From: finalerock44 Date: Tue, 24 Nov 2026 11:57:37 +0000 Subject: [PATCH] fix(device): drop iOS 17 from the help text The API removes iOS 17 on 24 Nov 2026 (dcd feat/removals-2026-11-24): iPhone 14 offers iOS 18 only. EiOSVersions only feeds the --ios-version help text; validation already follows the live compatibility data. The unit fixtures mirror the new matrix. schema.types.ts is deliberately not regenerated, as on 2 Nov. --- src/commands/cloud.ts | 2 +- src/types/domain/device.types.ts | 1 - test/unit/device-validation.service.test.ts | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/commands/cloud.ts b/src/commands/cloud.ts index 97a12e6..ff6cd73 100644 --- a/src/commands/cloud.ts +++ b/src/commands/cloud.ts @@ -531,7 +531,7 @@ export const cloudCommand = defineCommand({ })); // Validated after the notices, so a notice aimed at a removed device or - // OS version (e.g. removed-ios-17-2026-11-02) is shown before the + // OS version (e.g. removed-ios-17-2026-11-24) is shown before the // rejection it explains. deviceValidationService.validateiOSDevice(iOSVersion, iOSDevice, compatibilityData, { debug, diff --git a/src/types/domain/device.types.ts b/src/types/domain/device.types.ts index eadaf1b..4d0344b 100644 --- a/src/types/domain/device.types.ts +++ b/src/types/domain/device.types.ts @@ -40,7 +40,6 @@ export enum EAndroidDevices { export enum EiOSVersions { 'eighteen' = '18', - 'seventeen' = '17', 'twentySeven' = '27', 'twentySix' = '26', } diff --git a/test/unit/device-validation.service.test.ts b/test/unit/device-validation.service.test.ts index 943020f..51b8a7b 100644 --- a/test/unit/device-validation.service.test.ts +++ b/test/unit/device-validation.service.test.ts @@ -11,7 +11,7 @@ import type { CompatibilityData } from '../../src/utils/compatibility.js'; */ const compat: CompatibilityData = { ios: { - 'iphone-14': ['17', '18'], + 'iphone-14': ['18'], 'iphone-16': ['18', '26', '27'], 'iphone-17': ['26', '27'], 'iphone-19': ['28'], @@ -117,7 +117,7 @@ describe('DeviceValidationService', () => { it('rejects an unsupported explicit pair with the device\'s versions', () => { expect(() => ios('27', 'iphone-14')).to.throw( - /^iphone-14 only supports these iOS versions: 17, 18$/, + /^iphone-14 only supports these iOS versions: 18$/, ); expect(() => android('34', 'pixel-10')).to.throw( /^pixel-10 only supports these Android API levels: 36, 37$/, @@ -136,7 +136,7 @@ describe('DeviceValidationService', () => { describe('requests that rely on a default', () => { it('tells a device-only iOS request to pass the version explicitly', () => { expect(() => ios(undefined, 'iphone-14')).to.throw( - 'iphone-14 only supports these iOS versions: 17, 18. No iOS version was given, so the default (26) was checked: pass one of those explicitly with --ios-version', + 'iphone-14 only supports these iOS versions: 18. No iOS version was given, so the default (26) was checked: pass one of those explicitly with --ios-version', ); });