---
title: "@visx/shape 4.0.0 Breaking Changes on npm | Since.dev"
description: "What each @visx/shape release removed, renamed or changed: 49 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@visx/shape
last_updated: 2026-12-04
---

# @visx/shape breaking changes

@visx/shape 4.0.0 (June 11, 2026) is its newest release with breaking changes, 47 of them. The first: Raises the Node.js toolchain baseline to Node 18 in @visx/shape 4.0.0. Every breaking API change we have recorded in @visx/shape on npm: 49 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released June 11, 2026. [Source repository](https://github.com/airbnb/visx)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 47 breaking changes in 1 version.

## @visx/shape 4.0.0 breaking changes

@visx/shape 4.0.0, released June 11, 2026: 47 breaking changes.

- **Removed**  

The release moves the build toolchain to Node 18, so older Node versions are no longer supported for building. [github.com](https://github.com/airbnb/visx/releases/tag/v4.0.0)
- **Removed**  

Support for older React versions is dropped, so install React 18 or 19 before upgrading. [github.com](https://github.com/airbnb/visx/releases/tag/v4.0.0)
- **Removed**  

The package no longer ships prop-types, so code that relied on its prop validation or imports must change. [github.com](https://github.com/airbnb/visx/releases/tag/v4.0.0)
- **Behavior changed**  

The underlying d3-shape and d3-path dependencies are upgraded to major version 3, which can change shape output. [github.com](https://github.com/airbnb/visx/releases/tag/v4.0.0)
- **Behavior changed** `BaseAxis`  

The empty-data check in BaseAxis is stricter, so axes may render differently when entries have empty data arrays. [github.com](https://github.com/airbnb/visx/commit/99d164d4fac497a68bfad0c93a94a60261ee0f8a)
- **Configuration changed**  

Strict TypeScript apps on React 18 or earlier must install @types/react themselves, or they will see type errors. [github.com](https://github.com/airbnb/visx/commit/0f1ae13f2627694de6c85a93551a49ed654ccb1b)
- **Signature changed** `arc`  

Was function arc\<Datum>({innerRadius, outerRadius, cornerRadius, startAngle, endAngle, padAngle, padRadius}?: ArcPathConfig\<Datum>): import("d3-shape").Arc\<any, Datum>; now function arc\<Datum>({innerRadius, outerRadius, cornerRadius... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `Arc`  

Was function Arc\<Datum>({className, data, innerRadius, outerRadius, cornerRadius, startAngle, endAngle, padAngle, padRadius, children, innerRef, ...restProps}: AddSVGProps\<ArcProps\<Datum>, SVGPathElement>): JSX.Element | null; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `area`  

Was function area\<Datum>({x, x0, x1, y, y0, y1, defined, curve}?: AreaPathConfig\<Datum>): import("d3-shape").Area\<Datum>; now function area\<Datum>({x, x0, x1, y, y0, y1, defined, curve}?: AreaPathConfig\<Datum>)... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `Area`  

Was function Area\<Datum>({children, x, x0, x1, y, y0, y1, data, defined, className, curve, innerRef, ...restProps}: AddSVGProps\<AreaProps\<Datum>, SVGPathElement>): JSX.Element; now function Area\<Datum>({children, x, x0, x1, y, y0, y1... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `AreaClosed`  

Was function AreaClosed\<Datum>({x, x0, x1, y, y1, y0, yScale, data, defined, className, curve, innerRef, children, ...restProps}: AddSVGProps\<AreaClosedProps\<Datum>, SVGPathElement>): JSX.Element; now function AreaClosed\<Datum>({x, x0, x1... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `AreaStack`  

Was function AreaStack\<Datum, Key extends StackKey = StackKey>({className, top, left, keys, data, curve, defined, x, x0, x1, y0, y1, value, order, offset, color, children, ...restProps}: AddSVGProps\<AreaStackProps\<Datum, Key>... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `Bar`  

Was function Bar({className, innerRef, ...restProps}: AddSVGProps\<BarProps, SVGRectElement>): JSX.Element; now function Bar({className, innerRef, ...restProps}: AddSVGProps\<BarProps, SVGRectElement>)... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `BarGroup`  

Was function BarGroup\<Datum extends DatumObject, Key extends GroupKey = GroupKey, X0Scale extends AnyScaleBand = AnyScaleBand, X1Scale extends AnyScaleBand = AnyScaleBand>({data, className, top, left, x0, x0Scale, x1Scale, yScale, color... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `BarGroupHorizontal`  

Was function BarGroupHorizontal\<Datum extends DatumObject, Key extends GroupKey = GroupKey, Y0Scale extends AnyScaleBand = AnyScaleBand, Y1Scale extends AnyScaleBand = AnyScaleBand>({data, className, top, left, x, y0, y0Scale, y1Scale... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `BarRounded`  

Was function BarRounded({children, className, innerRef, x, y, width, height, radius, all, top, bottom, left, right, topLeft, topRight, bottomLeft, bottomRight, ...restProps}: AddSVGProps\<BarRoundedProps, SVGPathElement>): JSX.Element; now... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `BarStack`  

Was function BarStack\<Datum, Key extends StackKey = StackKey, XScale extends PositionScale = PositionScale, YScale extends PositionScale = PositionScale>({data, className, top, left, x, y0, y1, xScale, yScale, color, keys, value, order... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `BarStackHorizontal`  

Was function BarStackHorizontal\<Datum, Key extends StackKey = StackKey, XScale extends PositionScale = PositionScale, YScale extends PositionScale = PositionScale>({data, className, top, left, y, x0, x1, xScale, yScale, color, keys, value... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `Circle`  

Was function Circle({className, innerRef, ...restProps}: AddSVGProps\<CircleProps, SVGCircleElement>): JSX.Element; now function Circle({className, innerRef, ...restProps}: AddSVGProps\<CircleProps, SVGCircleElement>)... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `getPoint`  

Was const getPoint: ({sides, size, center, rotate, side}: {side: number;} & Pick\<PolygonProps, "center" | "size" | "rotate" | "sides">) => {x: number; y: number;}; now const getPoint: ({sides, size, center, rotate, side}: {side: number;} &... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `line`  

Was function line\<Datum>({x, y, defined, curve}?: LinePathConfig\<Datum>): import("d3-shape").Line\<Datum>; now function line\<Datum>({x, y, defined, curve}?: LinePathConfig\<Datum>): import("@visx/vendor/d3-shape").Line\<Datum>. [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `Line`  

Was function Line({from, to, fill, className, innerRef, ...restProps}: AddSVGProps\<LineProps, SVGLineElement>): JSX.Element; now function Line({from, to, fill, className, innerRef, ...restProps}: AddSVGProps\<LineProps, SVGLineElement>)... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinePath`  

Was function LinePath\<Datum>({children, data, x, y, fill, className, curve, innerRef, defined, ...restProps}: AddSVGProps\<LinePathProps\<Datum>, SVGPathElement>): JSX.Element; now function LinePath\<Datum>({children, data, x, y, fill... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LineRadial`  

Was function LineRadial\<Datum>({className, angle, radius, defined, curve, data, innerRef, children, fill, ...restProps}: AddSVGProps\<LineRadialProps\<Datum>, SVGPathElement>): JSX.Element; now function LineRadial\<Datum>({className, angle... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkHorizontal`  

Was function LinkHorizontalDiagonal\<Link, Node>({className, children, data, innerRef, path, x, y, source, target, ...restProps}: AddSVGProps\<LinkHorizontalDiagonalProps\<Link, Node>, SVGPathElement>): JSX.Element; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkHorizontalCurve`  

Was function LinkHorizontalCurve\<Link, Node>({className, children, data, innerRef, path, percent, x, y, source, target, ...restProps}: AddSVGProps\<LinkHorizontalCurveProps\<Link, Node>, SVGPathElement>): JSX.Element; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkHorizontalLine`  

Was function LinkHorizontalLine\<Link, Node>({className, children, innerRef, data, path, x, y, source, target, ...restProps}: AddSVGProps\<LinkHorizontalLineProps\<Link, Node>, SVGPathElement>): JSX.Element; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkHorizontalStep`  

Was function LinkHorizontalStep\<Link, Node>({className, innerRef, data, path, percent, x, y, source, target, children, ...restProps}: AddSVGProps\<LinkHorizontalStepProps\<Link, Node>, SVGPathElement>): JSX.Element; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkRadial`  

Was function LinkRadialDiagonal\<Link, Node>({className, children, data, innerRef, path, angle, radius, source, target, ...restProps}: AddSVGProps\<LinkRadialDiagonalProps\<Link, Node>, SVGPathElement>): JSX.Element; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkRadialCurve`  

Was function LinkRadialCurve\<Link, Node>({className, children, data, innerRef, path, percent, x, y, source, target, ...restProps}: AddSVGProps\<LinkRadialCurveProps\<Link, Node>, SVGPathElement>): JSX.Element; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkRadialLine`  

Was function LinkRadialLine\<Link, Node>({className, innerRef, data, path, x, y, source, target, children, ...restProps}: AddSVGProps\<LinkRadialLineProps\<Link, Node>, SVGPathElement>): JSX.Element; now function LinkRadialLine\<Link... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkRadialStep`  

Was function LinkRadialStep\<Link, Node>({className, innerRef, data, path, x, y, source, target, children, ...restProps}: AddSVGProps\<LinkRadialStepProps\<Link, Node>, SVGPathElement>): JSX.Element; now function LinkRadialStep\<Link... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkVertical`  

Was function LinkVerticalDiagonal\<Link, Node>({className, children, data, innerRef, path, x, y, source, target, ...restProps}: AddSVGProps\<LinkVerticalDiagonalProps\<Link, Node>, SVGPathElement>): JSX.Element; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkVerticalCurve`  

Was function LinkVerticalCurve\<Link, Node>({className, children, data, innerRef, path, percent, x, y, source, target, ...restProps}: AddSVGProps\<LinkVerticalCurveProps\<Link, Node>, SVGPathElement>): JSX.Element; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkVerticalLine`  

Was function LinkVerticalLine\<Link, Node>({className, innerRef, data, path, x, y, source, target, children, ...restProps}: AddSVGProps\<LinkVerticalLineProps\<Link, Node>, SVGPathElement>): JSX.Element; now function LinkVerticalLine\<Link... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `LinkVerticalStep`  

Was function LinkVerticalStep\<Link, Node>({className, innerRef, data, path, percent, x, y, source, target, children, ...restProps}: AddSVGProps\<LinkVerticalStepProps\<Link, Node>, SVGPathElement>): JSX.Element; now function... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `pie`  

Was function pie\<Datum>({startAngle, endAngle, padAngle, value, sort, sortValues}?: PiePathConfig\<Datum>): import("d3-shape").Pie\<any, Datum>; now function pie\<Datum>({startAngle, endAngle, padAngle, value, sort, sortValues}?... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `Pie`  

Was function Pie\<Datum>({className, top, left, data, centroid, innerRadius, outerRadius, cornerRadius, startAngle, endAngle, padAngle, padRadius, pieSort, pieSortValues, pieValue, children, fill, ...restProps}: AddSVGProps\<PieProps\<Datum>... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `Polygon`  

Was function Polygon({sides, size, center, rotate, className, children, innerRef, points, ...restProps}: AddSVGProps\<PolygonProps, SVGPolygonElement>): JSX.Element; now function Polygon({sides, size, center, rotate, className, children... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `radialLine`  

Was function radialLine\<Datum>({angle, radius, defined, curve}?: RadialLinePathConfig\<Datum>): import("d3-shape").RadialLine\<Datum>; now function radialLine\<Datum>({angle, radius, defined, curve}?: RadialLinePathConfig\<Datum>)... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `SplitLinePath`  

Was function SplitLinePath\<Datum>({children, className, curve, defined, segmentation, sampleRate, segments, x, y, styles}: SplitLinePathProps\<Datum>): JSX.Element; now function SplitLinePath\<Datum>({children, className, curve, defined... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `stack`  

Was function stack\<Datum, Key>({keys, value, order, offset}: StackPathConfig\<Datum, Key>): import("d3-shape").Stack\<any, Datum, Key>; now function stack\<Datum, Key>({keys, value, order, offset}: StackPathConfig\<Datum, Key>)... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `Stack`  

Was function Stack\<Datum, Key extends StackKey = StackKey>({className, top, left, keys, data, curve, defined, x, x0, x1, y0, y1, value, order, offset, color, children, ...restProps}: AddSVGProps\<StackProps\<Datum, Key>, SVGPathElement>)... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `STACK_OFFSET_NAMES`  

Was const STACK_OFFSET_NAMES: string\[\]; now const STACK_OFFSET_NAMES: StackOffset\[\]. [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `STACK_OFFSETS`  

Was const STACK_OFFSETS: {expand: typeof stackOffsetExpand; diverging: typeof stackOffsetDiverging; none: typeof stackOffsetNone; silhouette: typeof stackOffsetSilhouette; wiggle: typeof stackOffsetWiggle;}; now const STACK_OFFSETS... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `STACK_ORDER_NAMES`  

Was const STACK_ORDER_NAMES: string\[\]; now const STACK_ORDER_NAMES: StackOrder\[\]. [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)
- **Signature changed** `STACK_ORDERS`  

Was const STACK_ORDERS: {ascending: typeof stackOrderAscending; descending: typeof stackOrderDescending; insideout: typeof stackOrderInsideOut; none: typeof stackOrderNone; reverse: typeof stackOrderReverse;}; now const STACK_ORDERS... [npmjs.com](https://www.npmjs.com/package/@visx/shape/v/4.0.0)

## @visx/shape 3.0.0 breaking changes

@visx/shape 3.0.0, released January 6, 2023: 2 breaking changes.

- **Removed** `deprecated.LinePathAnnotation`  

The deprecated/LinePathAnnotation export was removed. Code that imports it must be updated to use another annotation component. [github.com](https://github.com/airbnb/visx/releases/tag/v3.0.0)
- **Behavior changed**  

The responsive package needs ResizeObserver to be available, or a polyfill loaded, for it to work. [github.com](https://github.com/airbnb/visx/releases/tag/v3.0.0)

## Related packages

- [@visx/grid](https://since.dev/packages/npm/@visx/grid.md)
- [@visx/axis](https://since.dev/packages/npm/@visx/axis.md)
- [@visx/geo](https://since.dev/packages/npm/@visx/geo.md)
- [@visx/curve](https://since.dev/packages/npm/@visx/curve.md)
- [@visx/event](https://since.dev/packages/npm/@visx/event.md)
- [@visx/tooltip](https://since.dev/packages/npm/@visx/tooltip.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
