Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 4 additions & 0 deletions Sources/CSDefinitions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 7 additions & 0 deletions Tests/ContentstackTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down