mobx-react
Advanced tools
Comparing version 3.3.0 to 3.3.1
# MobX-React Changelog | ||
### 3.2.1 | ||
* Added typescript typings form `mobx-react/native` and `mobx-react/custom` | ||
* Fixed #63: error when using stateless function components when using babel and typescript | ||
### 3.2.0 | ||
@@ -4,0 +9,0 @@ |
@@ -151,3 +151,8 @@ (function() { | ||
// wrap it to a react class automatically | ||
if (typeof componentClass === "function" && !componentClass.prototype.render && !componentClass.isReactClass && !React.Component.isPrototypeOf(componentClass)) { | ||
if ( | ||
typeof componentClass === "function" && | ||
(!componentClass.prototype || !componentClass.prototype.render) && | ||
!componentClass.isReactClass && | ||
!React.Component.isPrototypeOf(componentClass) | ||
) { | ||
return observer(React.createClass({ | ||
@@ -154,0 +159,0 @@ displayName: componentClass.displayName || componentClass.name, |
@@ -151,3 +151,8 @@ (function() { | ||
// wrap it to a react class automatically | ||
if (typeof componentClass === "function" && !componentClass.prototype.render && !componentClass.isReactClass && !React.Component.isPrototypeOf(componentClass)) { | ||
if ( | ||
typeof componentClass === "function" && | ||
(!componentClass.prototype || !componentClass.prototype.render) && | ||
!componentClass.isReactClass && | ||
!React.Component.isPrototypeOf(componentClass) | ||
) { | ||
return observer(React.createClass({ | ||
@@ -154,0 +159,0 @@ displayName: componentClass.displayName || componentClass.name, |
@@ -151,3 +151,8 @@ (function() { | ||
// wrap it to a react class automatically | ||
if (typeof componentClass === "function" && !componentClass.prototype.render && !componentClass.isReactClass && !React.Component.isPrototypeOf(componentClass)) { | ||
if ( | ||
typeof componentClass === "function" && | ||
(!componentClass.prototype || !componentClass.prototype.render) && | ||
!componentClass.isReactClass && | ||
!React.Component.isPrototypeOf(componentClass) | ||
) { | ||
return observer(React.createClass({ | ||
@@ -154,0 +159,0 @@ displayName: componentClass.displayName || componentClass.name, |
{ | ||
"name": "mobx-react", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "React bindings for MobX. Create fully reactive components.", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"scripts": { | ||
"build": "cp index.js native.js && git apply mobx-react-native.patch && cp index.js custom.js && git apply mobx-react-custom.patch", | ||
"build": "cp index.js native.js && git apply mobx-react-native.patch && cp index.js custom.js && git apply mobx-react-custom.patch && cp index.d.ts native.d.ts && cp index.d.ts custom.d.ts", | ||
"prepublish": "npm run build", | ||
@@ -15,0 +15,0 @@ "test": "browserify test/*.js | tape-run && tsc -p test/ts", |
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
41770
12
648