Skip to content

Conversation

@nadeem-cs
Copy link
Contributor

No description provided.

- 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 28, 2025 19:49
@nadeem-cs nadeem-cs merged commit 4eea354 into development Oct 29, 2025
8 checks passed
@nadeem-cs nadeem-cs deleted the enhancement/endpoints-region branch October 29, 2025 06:56
@nadeem-cs nadeem-cs restored the enhancement/endpoints-region branch October 29, 2025 07:52
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