Skip to content

Conversation

@harshithad0703
Copy link
Contributor

No description provided.

nadeem-cs and others added 14 commits September 4, 2025 16:39
- Changed dependencies in package.json to use local tarball files for @contentstack/core and @contentstack/utils.
- Updated versions of various dependencies in package-lock.json, including @slack/oauth, @slack/socket-mode, browserslist, caniuse-lite, electron-to-chromium, path-to-regexp, rollup, and terser.
- Modified contentstack.ts to enhance request handling by utilizing internal Axios request configuration.
- Updated StackConfig interface in types.ts to change the type of region from Region enum to string for better flexibility.
- Updated @contentstack/core to version ^1.3.1 and @contentstack/utils to version ^1.5.0 in package.json.
- Added postinstall and postupdate scripts to download regions.json from the Contentstack artifacts.

refactor: Enhance stack configuration with dynamic host resolution

- Introduced getHostforRegion function to resolve host based on cloud region.
- Updated stack function to utilize the new host resolution logic.
- Removed legacy host resolution code from stack function.

test: Add comprehensive tests for getHostforRegion and stack methods

- Implemented unit tests for getHostforRegion function covering various regions and edge cases.
- Added integration tests for stack class to ensure correct baseURL setting based on region.
- Enhanced existing tests for stack and utils to validate new functionality.

chore: Enable JSON module resolution in TypeScript configuration

- Updated tsconfig.json to include resolveJsonModule for importing JSON files.
@harshithad0703 harshithad0703 requested a review from a team as a code owner October 29, 2025 07:59
harshithad0703 and others added 4 commits October 29, 2025 13:31
Merge pull request #245 from contentstack/staging
feat: implement download script for regions.json and update postinsta…
Copy link
Contributor

@sunil-lakshman sunil-lakshman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nadeem-cs nadeem-cs marked this pull request as draft November 5, 2025 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants