Skip to content

copilot: Avoid Node deprecation warnings - #328746

Draft
connor4312 wants to merge 1 commit into
microsoft:mainfrom
connor4312:fix/copilot-extension-host-deprecation-warnings
Draft

copilot: Avoid Node deprecation warnings#328746
connor4312 wants to merge 1 commit into
microsoft:mainfrom
connor4312:fix/copilot-extension-host-deprecation-warnings

Conversation

@connor4312

Copy link
Copy Markdown
Member

Summary

  • update @google/genai to the first v1 release that uses google-auth-library@10
  • remove the transitive node-fetch@2, whatwg-url, and tr46 dependency chain from the bundled Copilot extension
  • prevent DEP0040 (punycode) and DEP0169 (url.parse()) warnings from appearing in Extension Development Host debug sessions

Fixes #328548

Validation

  • npm run compile in extensions/copilot
  • npm run typecheck in extensions/copilot
  • focused Gemini unit tests: 35 passed, 3 skipped
  • verified the rebuilt dependency bundle is silent under Electron with --trace-deprecation

Update the Gemini SDK to remove the transitive node-fetch 2 dependency that bundles deprecated punycode and url.parse usage.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 3, 2026 16:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates Copilot’s Gemini SDK dependency to eliminate Node deprecation warnings from its bundled authentication stack.

Changes:

  • Upgrade @google/genai to 1.26.
  • Replace the deprecated node-fetch@2 dependency chain.
Show a summary per file
File Description
extensions/copilot/package.json Updates the Gemini SDK dependency.
extensions/copilot/package-lock.json Locks updated Google authentication and fetch dependencies.

Review details

Files not reviewed (1)
  • extensions/copilot/package-lock.json: Generated file
  • Files reviewed: 1/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

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.

Extension Development Host Debug Console shows DEP0040/DEP0169 from extensionHostProcess.js

3 participants