Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR bumps the version from 2.0.0 to 2.0.1 and replaces the axios and node-fetch dependencies with native Node.js fetch API to address Node.js 24 deprecation warnings and reduce bundle size.
Key Changes:
- Removed
axiosandnode-fetchdependencies in favor of nativefetchAPI - Implemented
fetchWithTimeoutfunction to replace axios HTTP requests - Updated error logging to handle native fetch response headers
Reviewed changes
Copilot reviewed 5 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| package.json | Version bumped to 2.0.1, removed axios and node-fetch dependencies |
| src/oidc-auth.js | Removed axios import, added fetchWithTimeout function, updated authentication and validation to use native fetch |
| src/download-cli.js | Replaced node-fetch with native fetch, simplified stream piping using pipeline |
| eslint.config.js | Added clearTimeout and AbortController to ESLint globals |
| dist/37.index.js | Updated bundled distribution file with new module IDs and exports |
| CHANGELOG.md | Added entry for version 2.0.1 and duplicate entry in 2.0.0 section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - Updated test workflows to run on Node 24 | ||
| - Updated documentation to v2 | ||
| - OIDC Audience defaults to `https://github.com/{org-name}` from `api://AzureADTokenExchange` | ||
| - Replaced `axios` with native `fetch` API to fix Node.js 24 `url.parse()` deprecation warning (DEP0169) and reduce bundle size |
There was a problem hiding this comment.
This changelog entry is duplicated between version 2.0.0 and version 2.0.1. The change should only appear in version 2.0.1 where it was actually implemented. Remove this line from the 2.0.0 section.
Suggested change
| - Replaced `axios` with native `fetch` API to fix Node.js 24 `url.parse()` deprecation warning (DEP0169) and reduce bundle size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.