-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Migrate from @azure/core-http to @azure/core-rest-pipeline and upgrade undici to v7 #2206
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
…peline Co-authored-by: salmanmkc <32169182+salmanmkc@users.noreply.github.com>
Co-authored-by: salmanmkc <32169182+salmanmkc@users.noreply.github.com>
|
@copilot We should probably bump http-client, github and attest in package.json and add to their readme about this change if it was modified |
… and attest Co-authored-by: salmanmkc <32169182+salmanmkc@users.noreply.github.com>
Done! Version bumps and release notes added in commit de5ed03:
Updated RELEASES.md for all three packages to document the undici v7 upgrade. |
|
Your pipeline runs have failed, have a look @copilot |
Co-authored-by: salmanmkc <32169182+salmanmkc@users.noreply.github.com>
Fixed in commit b5bb4b9. The CI failures were caused by TypeScript type mismatches between two different versions of undici in the dependency tree. Added The build and tests now pass successfully. |
|
Which dependencies were on different versions, are they within toolkit that we can upgrade? @copilot |
The version conflicts were in the toolkit packages themselves: Before the fix:
This created a nested dependency tree where github had both undici v7 (direct) and v5 (via http-client), causing TypeScript type conflicts. The fix: Note:
|
Migration Plan: Replace @azure/core-http with @azure/core-rest-pipeline
Summary
Successfully migrated from deprecated Azure SDK packages and upgraded undici to v7:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.