Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

recharts

Package Overview
Dependencies
Maintainers
3
Versions
245
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recharts - npm Package Versions

1
25

2.1.15

Diff

Changelog

Source

2.1.15 (Oct 12, 2022)

fix

  • Fix scroll on hover
  • DefaultTooltipContent.tsx Solving type error for entry.value and entry.name

chore

  • Revert D3 version
arcthur
published 2.1.14 •

Changelog

Source

2.1.14 (Sep 7, 2022)

fix

  • Add inactiveShape prop to Pie component (#2900)
  • Revert "chore: move type deps into devDependencies (#2843)" (#2942)
  • Fix typing of default tooltip formatter (#2924)
  • Take letter-spacing and font-size into consideration while rendering ticks (#2898)
  • Add formatter function type to tooltip props (#2916)
  • doc: Update CHANGELOG.md about d3 7.x (#2919)
arcthur
published 2.1.13 •

Changelog

Source

2.1.13 (Jul 26, 2022)

fix

  • set animate flag before chart data update (#2911)
  • Error bar domain fix (#2863)
  • fix: fix "recharts@… doesn't provide prop-types, requested by react-smooth" warning (#2895)

chore

  • upgrade d3 (#2893)
arcthur
published 2.1.12 •

Changelog

Source

2.1.12 (Jun 27, 2022)

fix

  • update react-smooth version
  • update d3 from 6.x to 7.x it may break some tools like jest

fix config for jest is to add the following configuration

const path = require('path');
// took from d3/package.json
const d3Pkgs = [
	'd3',
	'd3-array',
	'd3-axis',
	'd3-brush',
	'd3-chord',
	'd3-color',
	'd3-contour',
	'd3-delaunay',
	'd3-dispatch',
	'd3-drag',
	'd3-dsv',
	'd3-ease',
	'd3-fetch',
	'd3-force',
	'd3-format',
	'd3-geo',
	'd3-hierarchy',
	'd3-interpolate',
	'd3-path',
	'd3-polygon',
	'd3-quadtree',
	'd3-random',
	'd3-scale',
	'd3-scale-chromatic',
	'd3-selection',
	'd3-shape',
	'd3-time',
	'd3-time-format',
	'd3-timer',
	'd3-transition',
	'd3-zoom',
];

// option 1 map module to an bundled version of the package which is es5
const moduleNameMapper = d3Pkgs.reduce((acc, pkg) => {
	acc[`^${pkg}$`] = path.join(require.resolve(pkg), `../../dist/${pkg}.min.js`);
	return acc;
}, {});

module.exports = {
	moduleNameMapper: {
		// option 1
		// ...moduleNameMapper
	},
	transform: {
		// match mjs js jsx ts tsx
		'^.+\\.m?[jt]sx?$': 'babel-jest',
	},
	// stop ignore node_modules transform since d3 and others start to put es6 as main of packages
	transformIgnorePatterns: [
		// option 2, stop ignore transform on es6 packages
		`/node_modules/(?!${d3Pkgs.join('|')}|internmap|d3-delaunay|delaunator|robust-predicates)`,
		// option 3, stop ignore transform on all node_modules
		// `/node_modules/(?!.*)`,
	],
};
arcthur
published 2.1.11 •

Changelog

Source

2.1.11 (Jun 24, 2022)

feat

  • Adds react ^18.0.0 as valid peerDependency (#2820)
arcthur
published 2.1.10 •

Changelog

Source

2.1.10 (May 19, 2022)

feat

  • Add ARIA1.2 attributes to the SvgElementPropKeys filter array
  • Added Storybook Badge (#2840)
  • Handling of undefined values and type checks in DefaultTooltipContent

fix

  • Axis scale=band no longer works as of Recharts 2.x.x (#2742)

chore

  • chore: move type deps into devDependencies (#2843)
arcthur
published 2.1.9 •

Changelog

Source

2.1.9 (Feb 10, 2022)

feat

  • feat: allow axis domain to accept a callback (#2770)
  • Categorical chart callback types (#2739)

fix

  • Fixing types in strict mode (#2745) (#2747)
  • Fix: removes overlapping legend for categorical charts (#2752)
  • Categorical chart callback types (#2739)
arcthur
published 2.1.8 •

Changelog

Source

2.1.8 (dec 14, 2021)

fix

  • Must use import to load ES Module (#2658)
arcthur
published 2.1.7 •

Changelog

Source

2.1.7 (dec 14, 2021)

fix

  • Treemap do not render depth (#2718 #2719)
  • Update PolarRadiusAxis.tsx (#2720)

chore

  • Update d3-interpolate, d3-scale and d3-shape (#2707)
arcthur
published 2.1.6 •

Changelog

Source

2.1.6 (oct 26, 2021)

fix

  • Fix types folder missing
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc