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

victory-bar

Package Overview
Dependencies
Maintainers
19
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-bar - npm Package Compare versions

Comparing version 36.7.0 to 36.8.1

12

CHANGELOG.md
# victory-bar
## 36.8.1
## 36.8.0
### Minor Changes
- Remove v37 experimental code ([#2697](https://github.com/FormidableLabs/victory/pull/2697))
### Patch Changes
- Remove usage of defaultProps from components ([#2679](https://github.com/FormidableLabs/victory/pull/2679))
## 36.7.0

@@ -4,0 +16,0 @@

16

es/bar.js

@@ -49,7 +49,13 @@ import _assign from "lodash/assign";

});
};
var defaultProps = {
defaultBarWidth: 8,
pathComponent: /*#__PURE__*/React.createElement(Path, null),
role: "presentation",
shapeRendering: "auto"
}; // eslint-disable-next-line prefer-arrow-callback
var Bar = /*#__PURE__*/forwardRef(function Bar(props, ref) {
props = evaluateProps(props);
props = evaluateProps(_objectSpread(_objectSpread({}, defaultProps), props));
var _props = props,

@@ -99,8 +105,2 @@ polar = _props.polar,

});
Bar.defaultProps = {
defaultBarWidth: 8,
pathComponent: /*#__PURE__*/React.createElement(Path, null),
role: "presentation",
shapeRendering: "auto"
};
export default Bar;

@@ -71,7 +71,13 @@ "use strict";

});
};
var defaultProps = {
defaultBarWidth: 8,
pathComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.Path, null),
role: "presentation",
shapeRendering: "auto"
}; // eslint-disable-next-line prefer-arrow-callback
var Bar = /*#__PURE__*/(0, _react.forwardRef)(function Bar(props, ref) {
props = evaluateProps(props);
props = evaluateProps(_objectSpread(_objectSpread({}, defaultProps), props));
var _props = props,

@@ -121,9 +127,3 @@ polar = _props.polar,

});
Bar.defaultProps = {
defaultBarWidth: 8,
pathComponent: /*#__PURE__*/_react.default.createElement(_victoryCore.Path, null),
role: "presentation",
shapeRendering: "auto"
};
var _default = Bar;
exports.default = _default;
{
"name": "victory-bar",
"version": "36.7.0",
"version": "36.8.1",
"description": "Bar Component for Victory",

@@ -25,4 +25,4 @@ "keywords": [

"prop-types": "^15.8.1",
"victory-core": "^36.7.0",
"victory-vendor": "^36.7.0"
"victory-core": "^36.8.1",
"victory-vendor": "^36.8.1"
},

@@ -29,0 +29,0 @@ "peerDependencies": {

@@ -44,5 +44,11 @@ import { assign } from "lodash";

const defaultProps = {
defaultBarWidth: 8,
pathComponent: <Path />,
role: "presentation",
shapeRendering: "auto",
};
// eslint-disable-next-line prefer-arrow-callback
const Bar = forwardRef(function Bar(props, ref) {
props = evaluateProps(props);
props = evaluateProps({ ...defaultProps, ...props });
const { polar, origin, style, barWidth, cornerRadius } = props;

@@ -99,9 +105,2 @@

Bar.defaultProps = {
defaultBarWidth: 8,
pathComponent: <Path />,
role: "presentation",
shapeRendering: "auto",
};
export default Bar;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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