victory-chart 37.0.1 → 37.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,10 +32,7 @@ const defaultProps = {
32
32
  theme: VictoryTheme.grayscale
33
33
  };
34
34
  const VictoryChartImpl = initialProps => {
35
- const propsWithDefaults = React.useMemo(() => ({
36
- ...defaultProps,
37
- ...initialProps
38
- }), [initialProps]);
35
+ const propsWithDefaults = React.useMemo(() => _defaults({}, initialProps, defaultProps), [initialProps]);
39
36
  const role = "chart";
40
37
  const {
41
38
  getAnimationProps,
@@ -39,10 +39,7 @@ const defaultProps = {
39
39
  theme: _victoryCore.VictoryTheme.grayscale
40
40
  };
41
41
  const VictoryChartImpl = initialProps => {
42
- const propsWithDefaults = _react.default.useMemo(() => ({
43
- ...defaultProps,
44
- ...initialProps
45
- }), [initialProps]);
42
+ const propsWithDefaults = _react.default.useMemo(() => (0, _defaults2.default)({}, initialProps, defaultProps), [initialProps]);
46
43
  const role = "chart";
47
44
  const {
48
45
  getAnimationProps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-chart",
3
- "version": "37.0.1",
3
+ "version": "37.0.2",
4
4
  "description": "Chart Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,10 +22,10 @@
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
24
  "react-fast-compare": "^3.2.0",
25
- "victory-axis": "^37.0.1",
26
- "victory-core": "^37.0.1",
27
- "victory-polar-axis": "^37.0.1",
28
- "victory-shared-events": "^37.0.1"
25
+ "victory-axis": "^37.0.2",
26
+ "victory-core": "^37.0.2",
27
+ "victory-polar-axis": "^37.0.2",
28
+ "victory-shared-events": "^37.0.2"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": ">=16.6.0"
@@ -51,7 +51,7 @@ const defaultProps = {
51
51
 
52
52
  const VictoryChartImpl: React.FC<VictoryChartProps> = (initialProps) => {
53
53
  const propsWithDefaults = React.useMemo(
54
- () => ({ ...defaultProps, ...initialProps }),
54
+ () => defaults({}, initialProps, defaultProps),
55
55
  [initialProps],
56
56
  );
57
57
  const role = "chart";