react-placeholder
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -5,4 +5,11 @@ # Change Log | ||
## [v1.0.1](https://github.com/buildo/react-placeholder/tree/v1.0.1) (2017-04-03) | ||
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v1.0.0...v1.0.1) | ||
#### New features: | ||
- replace `lodash.omit` with ES6 destructuring [#21](https://github.com/buildo/react-placeholder/issues/21) | ||
## [v1.0.0](https://github.com/buildo/react-placeholder/tree/v1.0.0) (2017-03-23) | ||
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v0.0.2...v1.0.0) | ||
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v0.0.3...v1.0.0) | ||
@@ -12,3 +19,2 @@ #### Fixes (bugs & defects): | ||
- lodash and classnames should be deps, not devDeps [#13](https://github.com/buildo/react-placeholder/issues/13) | ||
- package is currently broken [#6](https://github.com/buildo/react-placeholder/issues/6) | ||
@@ -19,6 +25,9 @@ #### Breaking: | ||
#### New features: | ||
## [v0.0.3](https://github.com/buildo/react-placeholder/tree/v0.0.3) (2016-12-29) | ||
[Full Changelog](https://github.com/buildo/react-placeholder/compare/v0.0.2...v0.0.3) | ||
- Test [#5](https://github.com/buildo/react-placeholder/issues/5) | ||
#### Fixes (bugs & defects): | ||
- package is currently broken [#6](https://github.com/buildo/react-placeholder/issues/6) | ||
## [v0.0.2](https://github.com/buildo/react-placeholder/tree/v0.0.2) (2016-11-08) | ||
@@ -25,0 +34,0 @@ |
@@ -16,6 +16,2 @@ 'use strict'; | ||
var _lodash = require('lodash.omit'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
var _placeholders = require('./placeholders'); | ||
@@ -29,2 +25,4 @@ | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -55,5 +53,10 @@ | ||
}, _this.getFiller = function () { | ||
// eslint-disable-next-line no-unused-vars | ||
var _this$props = _this.props, | ||
type = _this$props.type, | ||
customPlaceholder = _this$props.customPlaceholder; | ||
customPlaceholder = _this$props.customPlaceholder, | ||
children = _this$props.children, | ||
ready = _this$props.ready, | ||
firstLaunchOnly = _this$props.firstLaunchOnly, | ||
rest = _objectWithoutProperties(_this$props, ['type', 'customPlaceholder', 'children', 'ready', 'firstLaunchOnly']); | ||
@@ -65,5 +68,4 @@ if (customPlaceholder) { | ||
var Placeholder = placeholders[type]; | ||
var props = (0, _lodash2.default)(_this.props, ['children', 'ready', 'firstLaunchOnly', 'type']); | ||
return _react2.default.createElement(Placeholder, props); | ||
return _react2.default.createElement(Placeholder, rest); | ||
}, _temp), _possibleConstructorReturn(_this, _ret); | ||
@@ -70,0 +72,0 @@ } |
{ | ||
"name": "react-placeholder", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A React component to easily replicate your page with nice placeholders while the content is loading", | ||
@@ -40,5 +40,3 @@ "main": "lib", | ||
"typings": "lib/index.d.ts", | ||
"dependencies": { | ||
"lodash.omit": "^4.5.0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -59,3 +57,3 @@ "babel": "^6.23.0", | ||
"react-dom": "^15", | ||
"smooth-release": "^7.0.1", | ||
"smooth-release": "^8.0.0", | ||
"webpack": "^1", | ||
@@ -62,0 +60,0 @@ "webpack-dev-server": "^1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
32544
2
430
- Removedlodash.omit@^4.5.0
- Removedlodash.omit@4.5.0(transitive)