# @azure/core-http-compat

> Core HTTP Compatibility Library to bridge the gap between Core V1 & V2 packages.

Latest version **2.5.0** (published 2026-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @azure/core-http-compat
pnpm add @azure/core-http-compat
yarn add @azure/core-http-compat
bun add @azure/core-http-compat
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.5.0 |
| Published | 2026-07-13 |
| First published | 2022-02-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.0.0 |
| Dependencies | 1 |
| Unpacked size | 299.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2297 |
| Author | Microsoft Corporation |
| Maintainers | azure-sdk, microsoft1es, microsoft-oss-releases |
| Keywords | azure, cloud |

## Links

- npm: https://www.npmjs.com/package/@azure/core-http-compat
- Repository: https://github.com/Azure/azure-sdk-for-js
- Homepage: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-http-compat/
- Issues: https://github.com/Azure/azure-sdk-for-js/issues
- npm.io page: https://npm.io/package/@azure/core-http-compat

## Dependencies (1)

- [@azure/abort-controller](https://npm.io/package/@azure/abort-controller.md) ^2.1.2

## Recent versions

- 2.5.0 (latest) — 2026-07-13
- 2.3.3-alpha.20260311.2 (dev) — 2026-03-11
- 2.4.0 — 2026-04-08
- 2.3.3-alpha.20260306.4 — 2026-03-06
- 2.3.3-alpha.20260305.6 — 2026-03-05
- 2.3.3-alpha.20260227.2 — 2026-02-27
- 2.3.3-alpha.20260226.1 — 2026-02-26
- 2.3.3-alpha.20260223.3 — 2026-02-23
- 2.3.3-alpha.20260210.1 — 2026-02-10
- 2.3.2 — 2026-02-05
- 2.3.2-alpha.20260204.2 — 2026-02-04
- 2.3.2-alpha.20260203.2 — 2026-02-03
- 2.3.2-alpha.20260121.1 — 2026-01-21
- 2.3.2-alpha.20260120.1 — 2026-01-20
- 2.3.2-alpha.20260113.1 — 2026-01-13
- … 343 more at https://npm.io/package/@azure/core-http-compat/versions

## README

# Azure Core HTTP Compatibility library for JavaScript

This library provides classes and interfaces to be used by Azure client libraries that want to move from using [@azure/core-http](https://www.npmjs.com/package/@azure/core-http) to [@azure/core-client](https://www.npmjs.com/package/@azure/core-client) & [@azure/core-rest-pipeline](https://www.npmjs.com/package/@azure/core-rest-pipeline) without causing breaking changes in their public API surface.

## Usage

### ExtendedCommonClientOptions

With `@azure/core-http` library, the `options` parameter to the custom client will look like:

```
export interface SearchClientOptions extends PipelineOptions {
  apiVersion?: string;
}
```

With the `@azure/core-client` & `@azure/core-rest-pipeline` libraries, the `options` parameter to the custom client will look like:

```
export interface SearchClientOptions extends CommonClientOptions {
  apiVersion?: string;
}
```

With the Core HTTP Compatibility library, the `options` parameter to the custom client will look like:

```
export interface SearchClientOptions extends ExtendedCommonClientOptions {
  apiVersion?: string;
}
```

---
_Source: https://npm.io/package/@azure/core-http-compat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
