# @antv/vendor

> Vendored dependencies to fix ERR_REQUIRE_ESM.

Latest version **1.0.11** (published 2025-04-21) · MIT AND ISC license · 0 weekly downloads

## Install

```sh
npm install @antv/vendor
pnpm add @antv/vendor
yarn add @antv/vendor
bun add @antv/vendor
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.0.11 |
| Published | 2025-04-21 |
| First published | 2025-01-22 |
| Weekly downloads | 0 |
| License | MIT AND ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 41 |
| Unpacked size | 1.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | lvisei, freestyle21, soundquiet, elaine.q.10, sturuby, sakuya223, serializedowen, xdzhao, yangzhanmei, wjgogogo, leungwensen, dori, iaaron, yard, simaq, dxq613, intchous, susan_ann, jinke.li, lzxue, army8735, atool, baizn, dengfuping, neoddish, jeffy2012, zqlu, afc163, pomelo-nwu, kopiluwaky, ccnuzindex, panyuqi, bubkoo, zengyue, kasmine, boyu.zlj, l1ud0ngq1, newbyvector, winniexing, chenluli, kn9117, xdddst, semious2020, esora, nadia_liu, bbsqq, mxz96102, openwayne, pearmini, pddpd, yiqianyao, zhanba, cxxxxxn, laixingui.lxg, susiwen8, yanxiong, zeyuwang, rainy25ghz, zhangjunjie-loki, flash1, yisi.wang, dreammy23, biupiubiupiu, basketduck, xuying1027, banxuan, bqxbqxbqx, duxinyue023 |
| Keywords | antv, d3 |

## Links

- npm: https://www.npmjs.com/package/@antv/vendor
- Repository: https://github.com/antvis/vendor
- Homepage: https://github.com/antvis/vendor#readme
- Issues: https://github.com/antvis/vendor/issues
- npm.io page: https://npm.io/package/@antv/vendor

## Dependencies (41)

- [d3-dsv](https://npm.io/package/d3-dsv.md) ^3.0.1
- [d3-geo](https://npm.io/package/d3-geo.md) ^3.1.1
- [d3-ease](https://npm.io/package/d3-ease.md) ^3.0.1
- [d3-path](https://npm.io/package/d3-path.md) ^3.1.0
- [d3-time](https://npm.io/package/d3-time.md) ^3.1.0
- [d3-array](https://npm.io/package/d3-array.md) ^3.2.4
- [d3-color](https://npm.io/package/d3-color.md) ^3.1.0
- [d3-fetch](https://npm.io/package/d3-fetch.md) ^3.0.1
- [d3-force](https://npm.io/package/d3-force.md) ^3.0.0
- [d3-scale](https://npm.io/package/d3-scale.md) ^4.0.2
- [d3-shape](https://npm.io/package/d3-shape.md) ^3.2.0
- [d3-timer](https://npm.io/package/d3-timer.md) ^3.0.1
- [d3-format](https://npm.io/package/d3-format.md) ^3.1.0
- [d3-random](https://npm.io/package/d3-random.md) ^3.0.1
- [d3-dispatch](https://npm.io/package/d3-dispatch.md) ^3.0.1
- [d3-force-3d](https://npm.io/package/d3-force-3d.md) ^3.0.5
- [d3-quadtree](https://npm.io/package/d3-quadtree.md) ^3.0.1
- [d3-hierarchy](https://npm.io/package/d3-hierarchy.md) ^3.1.2
- [@types/d3-dsv](https://npm.io/package/@types/d3-dsv.md) ^3.0.7
- [@types/d3-geo](https://npm.io/package/@types/d3-geo.md) ^3.1.0
- [d3-regression](https://npm.io/package/d3-regression.md) ^1.3.10
- [@types/d3-ease](https://npm.io/package/@types/d3-ease.md) ^3.0.2
- [@types/d3-path](https://npm.io/package/@types/d3-path.md) ^3.1.0
- [@types/d3-time](https://npm.io/package/@types/d3-time.md) ^3.0.4
- [d3-interpolate](https://npm.io/package/d3-interpolate.md) ^3.0.1
- [@types/d3-array](https://npm.io/package/@types/d3-array.md) ^3.2.1
- [@types/d3-color](https://npm.io/package/@types/d3-color.md) ^3.1.3
- [@types/d3-fetch](https://npm.io/package/@types/d3-fetch.md) ^3.0.7
- [@types/d3-force](https://npm.io/package/@types/d3-force.md) ^3.0.10
- [@types/d3-scale](https://npm.io/package/@types/d3-scale.md) ^4.0.9
- [@types/d3-shape](https://npm.io/package/@types/d3-shape.md) ^3.1.7
- [@types/d3-timer](https://npm.io/package/@types/d3-timer.md) ^3.0.2
- [@types/d3-format](https://npm.io/package/@types/d3-format.md) ^3.0.4
- [@types/d3-random](https://npm.io/package/@types/d3-random.md) ^3.0.3
- [d3-geo-projection](https://npm.io/package/d3-geo-projection.md) ^4.0.0
- [@types/d3-dispatch](https://npm.io/package/@types/d3-dispatch.md) ^3.0.6
- [@types/d3-quadtree](https://npm.io/package/@types/d3-quadtree.md) ^3.0.6
- [d3-scale-chromatic](https://npm.io/package/d3-scale-chromatic.md) ^3.1.0
- [@types/d3-hierarchy](https://npm.io/package/@types/d3-hierarchy.md) ^3.1.7
- [@types/d3-interpolate](https://npm.io/package/@types/d3-interpolate.md) ^3.0.4
- [@types/d3-scale-chromatic](https://npm.io/package/@types/d3-scale-chromatic.md) ^3.1.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 1.0.11 (latest) — 2025-04-21
- 1.0.3-g2.0 (g2) — 2025-01-22
- 1.0.10 — 2025-02-27
- 1.0.9 — 2025-02-27
- 1.0.8 — 2025-02-14
- 1.0.7 — 2025-02-10
- 1.0.6 — 2025-01-23
- 1.0.5 — 2025-01-23
- 1.0.4 — 2025-01-23
- 1.0.3 — 2025-01-22
- 1.0.2 — 2025-01-22
- 1.0.1 — 2025-01-22
- 1.0.0 — 2025-01-22

## README

# @antv/vendor

A centralized dependency management solution for d3 libraries, providing vendored third-party commonjs dependencies (inspired by [VictoryVendor](https://github.com/FormidableLabs/victory/tree/main/packages/victory-vendor)).

## 📦 Included Packages

We provide the following libraries:

- d3-array
- d3-color
- d3-dispatch
- d3-dsv
- d3-fetch
- d3-force
- d3-force-3d
- d3-format
- d3-geo
- d3-geo-projection
- d3-hierarchy
- d3-interpolate
- d3-path
- d3-quadtree
- d3-random
- d3-regression
- d3-scale
- d3-scale-chromatic
- d3-shape
- d3-time
- d3-timer
- d3-ease

> Note: The following packages currently lack TypeScript type definitions:
>
> - d3-regression
> - d3-geo-projection
> - d3-force-3d

## 📥 Installation

```shell
npm install @antv/vendor
# or
yarn add @antv/vendor
# or
pnpm add @antv/vendor
```

## 🔄 Usage

### ESM

```diff
- import { geoProjection } from "d3-geo-projection"
+ import { geoProjection } from "@antv/vendor/d3-geo-projection";
```

### CommonJS

```js
const { geoProjection } = require("@antv/vendor/d3-geo-projection");
```

Both ESM and CommonJS are supported. The package automatically routes to the appropriate version based on your import style.

### Version Information

Here are the specific versions for each package:

```json
{
  "d3-array": "3.2.4",
  "d3-color": "3.1.0",
  "d3-dispatch": "3.0.1",
  "d3-dsv": "3.0.1",
  "d3-fetch": "3.0.1",
  "d3-force": "3.0.0",
  "d3-force-3d": "3.0.5",
  "d3-format": "3.1.0",
  "d3-geo": "3.1.1",
  "d3-geo-projection": "4.0.0",
  "d3-hierarchy": "3.1.2",
  "d3-interpolate": "3.0.1",
  "d3-path": "3.1.0",
  "d3-quadtree": "3.0.1",
  "d3-random": "3.0.1",
  "d3-regression": "1.3.10",
  "d3-scale": "4.0.2",
  "d3-scale-chromatic": "3.1.0",
  "d3-shape": "3.2.0",
  "d3-time": "3.1.0",
  "d3-timer": "3.0.1",
  "d3-ease": "3.0.1"
}
```

## 🛠️ Development

This project recommends using [bun](https://bun.sh/) for development.

1. Install dependencies:

```shell
bun install
```

2. Link module-resolver:

```shell
cd module-resolver && bun link && cd .. && bun link module-resolver
```

3. Build the project:

```shell
bun run scripts/build.ts
```

## 📦 Contributing New Packages

If you need to add a new package to @antv/vendor, please follow these steps:

1. Fork this repository
2. Create a new branch for your package addition
3. Add the new package to `package.json` dependencies
4. Update the build configuration in `scripts/build.ts` if necessary
5. Build and test the package locally using `bun run build`
6. Update the README.md to include the new package in the "Included Packages" list and "Version Information" section
7. Create a Pull Request with:
   - A clear description of why this package is needed
   - Any potential impact on existing functionality
   - Confirmation that the package has been tested

Note: Please ensure the package you're adding is compatible with both ESM and CommonJS module systems.

## 📄 License

This project is released under the MIT license, but the vendor'ed in libraries include other licenses (e.g. ISC) that we enumerate in our package.json:license field.

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