From a686012e0f881f9a6cdf1390141bacaa2cd23f4a Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Fri, 5 Sep 2025 15:56:41 +0530 Subject: [PATCH 1/2] Update CHANGELOG and add support for AU and GCP-EU regions in Contentstack SDK --- CHANGELOG.md | 3 ++- Sources/CSDefinitions.swift | 4 ++++ Tests/ContentstackTests.swift | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9c17f45..fd010954 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,10 @@ ## v2.2.0 -### Date: 01-Sep-2025 +### Date: 15-Sep-2025 - Async/await support added +- Added AU and GCP-EU region support ## v2.1.0 diff --git a/Sources/CSDefinitions.swift b/Sources/CSDefinitions.swift index 0966345b..e38ea86b 100644 --- a/Sources/CSDefinitions.swift +++ b/Sources/CSDefinitions.swift @@ -40,6 +40,10 @@ public enum ContentstackRegion: String { case azure_eu = "azure-eu" /// This region is for GCP-NA Cloud case gcp_na = "gcp-na" + /// This region is for GCP-EU Cloud + case gcp_eu = "gcp-eu" + /// Australia (AU) region + case au = "au" } /// The cache policies allow you to define the source from where the SDK will retrieve the content. public enum CachePolicy { diff --git a/Tests/ContentstackTests.swift b/Tests/ContentstackTests.swift index 32d8307d..aa8aeac9 100644 --- a/Tests/ContentstackTests.swift +++ b/Tests/ContentstackTests.swift @@ -42,6 +42,13 @@ final class ContentstackTests: XCTestCase { XCTAssertEqual(stack.region, ContentstackRegion.gcp_na) XCTAssertNil(stack.branch) } + + func testStack_AUHostRegion_ReturnStackWithAUValue () { + let stack = makeStackSut(region: .au) + XCTAssertEqual(stack.host, "au-cdn.contentstack.com") + XCTAssertEqual(stack.region, ContentstackRegion.au) + XCTAssertNil(stack.branch) + } func testStack_NewHost_ReturnStackWithNewHost () { let host = "api.contentstack.com" From abed20835100ca86dd011fc142f74f9888ad16be Mon Sep 17 00:00:00 2001 From: reeshika-h Date: Fri, 26 Sep 2025 11:05:26 +0530 Subject: [PATCH 2/2] chore: verison bump --- CHANGELOG.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd010954..2eb7f167 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,16 @@ # CHANGELOG +## v2.3.0 + +### Date: 29-Sep-2025 + +- Added AU and GCP-EU region support + ## v2.2.0 -### Date: 15-Sep-2025 +### Date: 22-Sep-2025 - Async/await support added -- Added AU and GCP-EU region support ## v2.1.0