react-resolver
Advanced tools
Comparing version 3.1.0 to 3.1.1
# React Resolver Changelog | ||
### v3.1.0 - (2016-11-23) | ||
- Call resolvers even if property was already passed from the top component | ||
+ <https://github.com/ericclemmons/react-resolver/pull/121> | ||
+ <https://github.com/ericclemmons/react-resolver/issues/119> | ||
### v3.0.3 - (2016-08-01) | ||
@@ -4,0 +9,0 @@ - Fix promise duplication |
{ | ||
"name": "react-resolver", | ||
"version": "3.0.3", | ||
"version": "3.1.1", | ||
"description": "Async-rendering & data-fetching for universal React applications", | ||
@@ -20,2 +20,3 @@ "main": "dist/index.js", | ||
"mocha": "2.3.4", | ||
"prop-types": "^15.5.8", | ||
"react": "^15.0.0", | ||
@@ -32,3 +33,3 @@ "react-dom": "^15.0.0" | ||
"docs": "gitbook serve", | ||
"docs:publish": "npm run clean:docs && npm run build:docs && cd _book && git init && git commit --allow-empty -m 'Update gitbook' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'Update gitbook' && git push --force https://github.com/ericclemmons/react-resolver gh-pages", | ||
"docs:publish": "npm run clean:docs && npm run build:docs && cd _book && git init && git commit --allow-empty -m 'Update gitbook' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'Update gitbook' && git push --force git@github.com:ericclemmons/react-resolver gh-pages", | ||
"lint": "eslint src test", | ||
@@ -35,0 +36,0 @@ "prepublish": "npm run build:lib", |
@@ -21,2 +21,6 @@ "use strict"; | ||
var _propTypes = require("prop-types"); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _react = require("react"); | ||
@@ -32,4 +36,4 @@ | ||
return function clientDecorator(Component) { | ||
return (function (_React$Component) { | ||
_inherits(ClientResolver, _React$Component); | ||
return (function (_Component) { | ||
_inherits(ClientResolver, _Component); | ||
@@ -43,3 +47,3 @@ _createClass(ClientResolver, null, [{ | ||
value: { | ||
resolver: _react2["default"].PropTypes.instanceOf(_Resolver2["default"]) | ||
resolver: _propTypes2["default"].instanceOf(_Resolver2["default"]) | ||
}, | ||
@@ -50,3 +54,3 @@ enumerable: true | ||
value: { | ||
resolver: _react2["default"].PropTypes.instanceOf(_Resolver2["default"]) | ||
resolver: _propTypes2["default"].instanceOf(_Resolver2["default"]) | ||
}, | ||
@@ -127,3 +131,3 @@ enumerable: true | ||
return ClientResolver; | ||
})(_react2["default"].Component); | ||
})(Component); | ||
}; | ||
@@ -130,0 +134,0 @@ } |
@@ -23,2 +23,6 @@ "use strict"; | ||
var _propTypes = require("prop-types"); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _react = require("react"); | ||
@@ -29,3 +33,3 @@ | ||
function context(name) { | ||
var type = arguments.length <= 1 || arguments[1] === undefined ? _react2["default"].PropTypes.any.isRequired : arguments[1]; | ||
var type = arguments.length <= 1 || arguments[1] === undefined ? _propTypes2["default"].any.isRequired : arguments[1]; | ||
@@ -32,0 +36,0 @@ return function contextDecorator(Component) { |
@@ -7,23 +7,18 @@ "use strict"; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
function _interopRequire(obj) { return obj && obj.__esModule ? obj["default"] : obj; } | ||
var _client = require("./client"); | ||
var _client2 = _interopRequireDefault(_client); | ||
exports.client = _interopRequire(_client); | ||
var _context = require("./context"); | ||
var _context2 = _interopRequireDefault(_context); | ||
exports.context = _interopRequire(_context); | ||
var _resolve = require("./resolve"); | ||
var _resolve2 = _interopRequireDefault(_resolve); | ||
exports.resolve = _interopRequire(_resolve); | ||
var _Resolver = require("./Resolver"); | ||
var _Resolver2 = _interopRequireDefault(_Resolver); | ||
exports.client = _client2["default"]; | ||
exports.context = _context2["default"]; | ||
exports.resolve = _resolve2["default"]; | ||
exports.Resolver = _Resolver2["default"]; | ||
exports.Resolver = _interopRequire(_Resolver); |
@@ -21,2 +21,6 @@ /* eslint-disable no-underscore-dangle */ | ||
var _propTypes = require("prop-types"); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _react = require("react"); | ||
@@ -44,3 +48,3 @@ | ||
value: { | ||
resolver: _react2["default"].PropTypes.instanceOf(Resolver) | ||
resolver: _propTypes2["default"].instanceOf(Resolver) | ||
}, | ||
@@ -51,3 +55,3 @@ enumerable: true | ||
value: { | ||
resolver: _react2["default"].PropTypes.instanceOf(Resolver) | ||
resolver: _propTypes2["default"].instanceOf(Resolver) | ||
}, | ||
@@ -70,6 +74,6 @@ enumerable: true | ||
value: { | ||
children: _react2["default"].PropTypes.func.isRequired, | ||
data: _react2["default"].PropTypes.object.isRequired, | ||
props: _react2["default"].PropTypes.object, | ||
resolve: _react2["default"].PropTypes.object | ||
children: _propTypes2["default"].func.isRequired, | ||
data: _propTypes2["default"].object.isRequired, | ||
props: _propTypes2["default"].object, | ||
resolve: _propTypes2["default"].object | ||
}, | ||
@@ -227,5 +231,10 @@ enumerable: true | ||
this.setState(nextState); | ||
this.setAtomicState(nextState); | ||
} | ||
}, { | ||
key: "componentWillUnmount", | ||
value: function componentWillUnmount() { | ||
this._unmounted = true; | ||
} | ||
}, { | ||
key: "computeState", | ||
@@ -368,6 +377,15 @@ value: function computeState(thisProps, nextState) { | ||
_this.setState(nextState); | ||
_this.setAtomicState(nextState); | ||
}); | ||
} | ||
}, { | ||
key: "setAtomicState", | ||
value: function setAtomicState(nextState) { | ||
if (this._unmounted) { | ||
return; | ||
} | ||
this.setState(nextState); | ||
} | ||
}, { | ||
key: "shouldComponentUpdate", | ||
@@ -374,0 +392,0 @@ value: function shouldComponentUpdate(nextProps, nextState) { |
{ | ||
"name": "react-resolver", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Async-rendering & data-fetching for universal React applications", | ||
@@ -20,2 +20,3 @@ "main": "dist/index.js", | ||
"mocha": "2.3.4", | ||
"prop-types": "^15.5.8", | ||
"react": "^15.0.0", | ||
@@ -22,0 +23,0 @@ "react-dom": "^15.0.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
3527
5
1602051
9
73