Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

victory-vendor

FormidableLabs15.2mMIT AND ISC37.3.6TypeScript support: included

Vendored dependencies for Victory

data visualization, React, d3, charting

readme

VictoryVendor

Vendored dependencies for Victory.

Background

D3 has released most of its libraries as ESM-only. This means that consumers in Node.js applications can no longer just require() anything with a d3 transitive dependency, including much of Victory.

To help provide an easy path to folks still using CommonJS in their Node.js applications that consume Victory, we now provide this package to vendor in various d3-related packages.

Packages

We presently provide the following top-level libraries:

  • d3-ease
  • d3-interpolate
  • d3-scale
  • d3-shape
  • d3-timer

This is the total list of top and transitive libraries we vendor:

  • d3-array
  • d3-color
  • d3-ease
  • d3-format
  • d3-interpolate
  • d3-path
  • d3-scale
  • d3-shape
  • d3-time
  • d3-time-format
  • d3-timer
  • internmap

Note that this does not include the following D3 libraries that still support CommonJS:

  • d3-voronoi

How it works

We provide two alternate paths and behaviors -- for ESM and CommonJS

ESM

If you do a Node.js import like:

import { interpolate } from "victory-vendor/d3-interpolate";

under the hood it's going to just re-export and pass you through to node_modules/d3-interpolate, the real ESM library from D3.

CommonJS

If you do a Node.js import like:

const { interpolate } = require("victory-vendor/d3-interpolate");

under the hood it's going to will go to an alternate path that contains the transpiled version of the underlying d3 library to be found at victory-vendor/lib-vendor/d3-interpolate/**/*.js. This futher has internally consistent import references to other victory-vendor/lib-vendor/<pkg-name> paths.

Note that for some tooling (like Jest) that doesn't play well with package.json:exports routing to this CommonJS path, we also output a root file in the form of victory-vendor/d3-interpolate.js.

Licenses

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.

changelog

victory-vendor

37.3.6

37.3.5

37.3.4

37.3.3

37.3.2

37.3.1

37.3.0

37.2.0

37.1.2

Patch Changes

  • Fix victory-native container styles (eae3fe5dd)

37.1.1

37.1.0

37.0.2

37.0.1

37.0.0

Major Changes

  • Upgrade babel dependencies and build target to modern browsers (#2804)

36.9.2

36.9.1

36.9.0

36.8.6

36.8.5

Patch Changes

  • Replace instances of lodash.assign with Object.assign (#2757)

36.8.4

36.8.3

36.8.2

36.8.1

36.8.0

36.7.0

36.6.12

36.6.11

36.6.10

Patch Changes

  • Setup NPM Provenance (#2590)

36.6.9

Patch Changes

  • Setup NPM Provenance (#2587)

36.6.8

36.6.7

36.6.6

36.6.5

Patch Changes

  • Export types directly from d3-* (fixes #2439) (#2440)

36.6.4

Patch Changes

  • Allow data accessors to accept any data types (fixes #2360) (#2436)

36.6.3

Patch Changes

  • Do not generate *.js.map sourcemaps (fixes #2346) (#2432)

36.6.2

36.6.1

36.6.0

Patch Changes

  • Update source code with minor lint-based improvements (see #2236). (#2403)

36.5.3 and earlier

Change history for version 36.5.3 and earlier can be found in our root CHANGELOG.md.