diff --git a/CHANGELOG.md b/CHANGELOG.md index e9c17f4..2eb7f16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,14 @@ # CHANGELOG +## v2.3.0 + +### Date: 29-Sep-2025 + +- Added AU and GCP-EU region support + ## v2.2.0 -### Date: 01-Sep-2025 +### Date: 22-Sep-2025 - Async/await support added diff --git a/Sources/CSDefinitions.swift b/Sources/CSDefinitions.swift index 0966345..e38ea86 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 32d8307..aa8aeac 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"