Skip to content

Commit 2f47761

Browse files
committed
Update CHANGELOG.md
1 parent 50a5bb9 commit 2f47761

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
- Added `Endpoint` class with 3-tier resolution: in-memory cache → bundled `data/regions.json` → live CDN download.
1111
- Exposed `contentstack_management.get_contentstack_endpoint(region, service, omit_https)` module-level proxy.
1212
- `Client` now resolves the `contentManagement` endpoint from the registry instead of a hardcoded host pattern.
13-
- Added `scripts/download_regions.py` to refresh the bundled registry file.
13+
- Bundled `contentstack_management/data/regions.json` included in `package_data` — always present after `pip install`.
14+
- `setup.py` auto-refreshes `regions.json` at build time via a custom `BuildPyWithRegions` command; network failures warn but never block the build.
15+
- Runtime fallback: if `regions.json` is absent, the SDK downloads it live on the first `Endpoint` call.
1416
- New regions and services require no SDK code changes — registry update is sufficient.
15-
- Added `refresh_regions()` utility to programmatically download the latest regions manifest from the Contentstack CDN and overwrite the bundled `data/regions.json`.
16-
- Exposed `refresh_regions` at the package level (`from contentstack_management import refresh_regions`) for use in CI pipelines and tooling.
17-
- `setup.py` now auto-refreshes `regions.json` at build time via a custom `BuildPyWithRegions` command, keeping bundled region data current on every `pip install`.
17+
- Added `refresh_regions()` utility to programmatically download the latest regions manifest from the Contentstack CDN and overwrite the bundled `data/regions.json` (`from contentstack_management import refresh_regions`).
18+
- Added `python3 -m contentstack_management.region_refresh` CLI command for refreshing the registry after `pip install` (source-tree script `scripts/download_regions.py` is for contributors only).
1819

1920
---
2021
## v1.9.0

0 commit comments

Comments
 (0)