-
Notifications
You must be signed in to change notification settings - Fork 0
chore: upgrade ts-client to v4. #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades the Quant TypeScript client from v3 to v4, simplifying authentication and removing custom API helper functions. The upgrade modernizes the codebase by replacing the GitHub-hosted quant-ts-client package with the npm-published @quantcdn/quant-client v4.0.0.
Key changes:
- Migration to
@quantcdn/quant-clientv4.0.0 with built-inConfigurationsupport - Simplified base URL to
https://dashboard.quantcdn.io(removed/api/v3path) - Removed custom
apiOpts()andremoveNullValues()helper functions
Reviewed Changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/index.ts | Replaced custom authentication logic with v4 Configuration class; updated import statement and removed helper functions |
| package.json | Updated dependency from GitHub-hosted v3 to npm-published v4.0.0 |
| README.md | Updated usage examples to reflect v2 action version and new base URL format |
| CHANGELOG.txt | Added comprehensive changelog documenting v2.0.0 release with migration details |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| const environmentName = core.getInput('environment_name', { required: true }); | ||
|
|
||
| const baseUrl = core.getInput('base_url') || 'https://dashboard.quantcdn.io/api/v3'; | ||
| let baseUrl = core.getInput('base_url') || 'https://dashboard.quantcdn.io'; |
Copilot
AI
Oct 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The variable baseUrl is declared with let but is never reassigned. Consider using const instead for better immutability and code clarity.
| let baseUrl = core.getInput('base_url') || 'https://dashboard.quantcdn.io'; | |
| const baseUrl = core.getInput('base_url') || 'https://dashboard.quantcdn.io'; |
No description provided.