@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
On this page
Latest version 4.0.0, released June 11, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@visx/shape 4.0.0 breaking changes
- Removed
The release moves the build toolchain to Node 18, so older Node versions are no longer supported for building. github.com - Removed
Support for older React versions is dropped, so install React 18 or 19 before upgrading. github.com - Removed
The package no longer ships prop-types, so code that relied on its prop validation or imports must change. github.com - Behavior changed
The underlying d3-shape and d3-path dependencies are upgraded to major version 3, which can change shape output. github.com - Behavior changed
BaseAxis
The empty-data check in BaseAxis is stricter, so axes may render differently when entries have empty data arrays. github.com - Configuration changed
Strict TypeScript apps on React 18 or earlier must install @types/react themselves, or they will see type errors. github.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
STACK_OFFSET_NAMES
Was const STACK_OFFSET_NAMES: string[]; now const STACK_OFFSET_NAMES: StackOffset[]. npmjs.com - 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 - Signature changed
STACK_ORDER_NAMES
Was const STACK_ORDER_NAMES: string[]; now const STACK_ORDER_NAMES: StackOrder[]. npmjs.com - 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
@visx/shape 3.0.0 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 - Behavior changed
The responsive package needs ResizeObserver to be available, or a polyfill loaded, for it to work. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.