Skip to content

Conversation

@nadeem-cs
Copy link
Contributor

No description provided.

nadeem-cs and others added 11 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.
@nadeem-cs nadeem-cs requested a review from a team as a code owner October 29, 2025 06:57
harshithad0703
harshithad0703 previously approved these changes Oct 29, 2025
@harshithad0703 harshithad0703 merged commit a4770be into staging Oct 29, 2025
8 checks passed
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.

3 participants