# @microsoft/applicationinsights-dependencies-js

> Microsoft Application Insights XHR dependencies plugin

Latest version **3.4.4** (published 2026-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @microsoft/applicationinsights-dependencies-js
pnpm add @microsoft/applicationinsights-dependencies-js
yarn add @microsoft/applicationinsights-dependencies-js
bun add @microsoft/applicationinsights-dependencies-js
```

## 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 | 3.4.4 |
| Published | 2026-09-09 |
| First published | 2018-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 5 |
| Unpacked size | 8.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 685 |
| Author | Microsoft Application Insights Team |
| Maintainers | microsoft1es, microsoft-oss-releases, msftapplicationinsights |

## Links

- npm: https://www.npmjs.com/package/@microsoft/applicationinsights-dependencies-js
- Repository: https://github.com/microsoft/ApplicationInsights-JS.git#main
- Homepage: https://github.com/microsoft/ApplicationInsights-JS#readme
- Issues: https://github.com/microsoft/ApplicationInsights-JS/issues
- npm.io page: https://npm.io/package/@microsoft/applicationinsights-dependencies-js

## Dependencies (5)

- [@nevware21/ts-async](https://npm.io/package/@nevware21/ts-async.md) >= 0.5.5 < 0.6.0
- [@nevware21/ts-utils](https://npm.io/package/@nevware21/ts-utils.md) >= 0.14.0 < 2.x
- [@microsoft/dynamicproto-js](https://npm.io/package/@microsoft/dynamicproto-js.md) ^2.0.3
- [@microsoft/applicationinsights-shims](https://npm.io/package/@microsoft/applicationinsights-shims.md) 3.0.1
- [@microsoft/applicationinsights-core-js](https://npm.io/package/@microsoft/applicationinsights-core-js.md) 3.4.4

## Recent versions

- 3.4.4 (latest) — 2026-09-09
- 3.4.5-nightly3.2610-02 (nightly3) — 2026-10-02
- 3.4.0-beta (beta3) — 2026-02-23
- 3.4.0-nightlybeta3.2602-27 (nightlybeta3) — 2026-02-21
- 2.8.19-nightly.2407-11 (nightly2) — 2024-07-20
- 3.0.9 (release3) — 2024-03-21
- 2.8.18 (release2) — 2024-03-12
- 2.8.16-nightly.2308-02 (nightly) — 2023-08-03
- 3.0.0-beta.2304-12 (beta) — 2023-04-12
- 2.8.13-dev.20230411.6 (dev) — 2023-04-11
- 3.4.5-nightly3.2609-09 — 2026-09-25
- 3.4.5-nightly3.2609-08 — 2026-09-25
- 3.4.5-nightly3.2609-06 — 2026-09-10
- 3.4.5-nightly3.2609-07 — 2026-09-10
- 3.4.5-nightly3.2609-05 — 2026-09-09
- … 758 more at https://npm.io/package/@microsoft/applicationinsights-dependencies-js/versions

## README

# Microsoft Application Insights JavaScript SDK - Dependencies Plugin

[![GitHub Workflow Status (main)](https://img.shields.io/github/actions/workflow/status/microsoft/ApplicationInsights-JS/ci.yml?branch=main)](https://github.com/microsoft/ApplicationInsights-JS/tree/main)
[![Build Status](https://dev.azure.com/mseng/AppInsights/_apis/build/status%2FAppInsights%20-%20DevTools%2F1DS%20JavaScript%20SDK%20web%20SKU%20(main%3B%20master)?branchName=main)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=8184&branchName=main)
[![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-dependencies-js.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-dependencies-js)

Dependencies Plugin for the Application Insights Javascript SDK

## Build

``` javascript
npm install -g grunt-cli
npm install
npm run build --silent
```

## Run unit tests

```javascript
npm run test
```

## Basic Usage

### NPM Setup (ignore if using Snippet Setup)

```js
import { ApplicationInsights } from '@microsoft/applicationinsights-web';
import { AjaxPlugin } from '@microsoft/applicationinsights-dependencies-js';

const dependencyPlugin = new AjaxPlugin();
const appInsights = new ApplicationInsights({
    config: {
        connectionString: 'InstrumentationKey=YOUR_INSTRUMENTATION_KEY_GOES_HERE',
        extensions: [dependencyPlugin],
        extensionConfig: {
            [dependencyPlugin.identifier]: {
                ignoreHeaders:[
                    "Authorization",
                    "X-API-Key",
                    "WWW-Authenticate"
                ]
            }
        }
    }
});
appInsights.loadAppInsights();
appInsights.trackPageView(); // Manually call trackPageView to establish the current user/session/pageview
```

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to
agree to a Contributor License Agreement (CLA) declaring that you have the right to,
and actually do, grant us the rights to use your contribution. For details, visit
<https://cla.microsoft.com>.

When you submit a pull request, a CLA-bot will automatically determine whether you need
to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the
instructions provided by the bot. You will only need to do this once across all repositories using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

## Data Collection

As this SDK is designed to enable applications to perform data collection which is sent to the Microsoft collection endpoints the following is required to identify our privacy statement.

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement. Our privacy statement is located at <https://go.microsoft.com/fwlink/?LinkID=824704>. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.

## Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft’s Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/@microsoft/applicationinsights-dependencies-js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
