You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add dynamic endpoint resolution and region management
- Introduced dynamic endpoint resolution via `Endpoint.getContentstackEndpoint()`
- Added convenience method `Contentstack.Builder.setRegion(String)` for region targeting
- Implemented static proxy methods for ad-hoc URL resolution in `Contentstack`
- Added `Contentstack.refreshRegions()` to refresh regions registry from live source
- Bundled `regions.json` in JAR and auto-refreshed during build
- Added public accessors `Contentstack.getHost()` and `Contentstack.getBaseUrl()`
- Created `Endpoint` class to manage endpoint resolution and caching
- Implemented tests for endpoint resolution and region management
Copy file name to clipboardExpand all lines: changelog.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,16 @@
1
1
# Changelog
2
2
3
+
## v1.12.0
4
+
5
+
### Jun 05, 2026
6
+
7
+
- Feature: Dynamic endpoint resolution via `Endpoint.getContentstackEndpoint()` backed by the Contentstack Regions Registry (`https://artifacts.contentstack.com/regions.json`). Resolves the correct API URL for any of the 7 supported regions (NA, EU, AU, Azure NA, Azure EU, GCP NA, GCP EU) and 18 service keys without hardcoding host strings.
8
+
- Feature: `Contentstack.Builder.setRegion(String)` — convenience method to target a region directly (e.g. `.setRegion("eu")`), automatically resolving the correct Content Management API host.
9
+
- Feature: `Contentstack.getContentstackEndpoint(region, service)` and `Contentstack.getContentstackEndpoints(region)` static proxy methods for ad-hoc URL resolution.
10
+
- Feature: `Contentstack.refreshRegions()` — forces a live download of the regions registry and refreshes the in-memory cache, so newly published regions or service URLs are available without upgrading the SDK.
11
+
- Feature: `regions.json` bundled in the JAR and auto-refreshed at build time via `scripts/download-regions.sh` (invoked on the Maven `generate-resources` phase).
12
+
- Feature: `Contentstack.getHost()` and `Contentstack.getBaseUrl()` public accessors on the client instance.
0 commit comments