Skip to content

Move all packages that use core-http to use the newer Azure Core packages #15594

@ramya-rao-a

Description

@ramya-rao-a

We started out shipping the newer packages in November 2019 that all used the @azure/core-http package mainly that implemented pipelines and policies for making http requests. See the readme for core packages for more details.

Earlier this year, we shipped Azure Core 2.0 for JS SDKs

In May 2021, we shipped a new version of our SDK generator that supports these newer core packages by default with an option to use the older core-http

This issue is to track the work needed to ensure all our packages have been upgraded to use the new Azure Core v2.
We documented one of the package moves in a wiki which you can refer to for changes you may want to do in the hand written layer of your package to avoid any breaking changes for your customers. See core http dependency migration to core client core rest pipeline

Packages that already use the newer Azure Core v2 packages, but should be upgraded to use the output of the latest version of our SDK generator

Packages that use the older core-http, but not the code generator and should upgrade to use the newer core packages

Packages that use the older core-http, have a convenience layer over generated code and should be upgraded to use the output of the latest version of our SDK generator. You most probably have a swagger/README.md file where you have configured the use-extenstion argument to a version of @autorest/typescript. Update this to the latest beta version of https://www.npmjs.com/package/@autorest/typescript and re-generate your code

Rest of the packages that are currently purely auto-generated and so will automatically get updated the next time there is a swagger update

Benefits of the move can be found in https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-rest-pipeline/documentation/core2.md

Metadata

Metadata

Assignees

Labels

Azure.CoreClientThis issue points to a problem in the data-plane of the library.Epic

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions