Comparing version 2.0.0-rc.1 to 2.0.0-rc.2
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _extends2 = require('babel-runtime/helpers/extends'); | ||
var _extends3 = _interopRequireDefault(_extends2); | ||
var _typeof2 = require('babel-runtime/helpers/typeof'); | ||
@@ -12,6 +16,2 @@ | ||
var _extends2 = require('babel-runtime/helpers/extends'); | ||
var _extends3 = _interopRequireDefault(_extends2); | ||
var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray'); | ||
@@ -39,3 +39,5 @@ | ||
var oldAppStart = app.start; | ||
return (0, _extends3.default)({}, app, { router: router, start: start }); | ||
app.router = router; | ||
app.start = start; | ||
return app; | ||
@@ -54,6 +56,4 @@ function router(router) { | ||
// container 必须有 | ||
(0, _invariant2.default)(container, '[app.start] container should be defined'); | ||
// 并且是 HTMLElement | ||
(0, _invariant2.default)(isHTMLElement(container), '[app.start] container should be HTMLElement'); | ||
(0, _invariant2.default)(!container || isHTMLElement(container), '[app.start] container should be HTMLElement'); | ||
@@ -129,3 +129,3 @@ // 路由必须提前注册 | ||
function render(container, store, app, router) { | ||
var ReactDOM = require('react-dom'); | ||
var ReactDOM = require('react-dom'); // eslint-disable-line | ||
ReactDOM.render(_react2.default.createElement(getProvider(store, app, router)), container); | ||
@@ -132,0 +132,0 @@ } |
{ | ||
"name": "dva", | ||
"version": "2.0.0-rc.1", | ||
"version": "2.0.0-rc.2", | ||
"description": "React and redux based, lightweight and elm-style framework.", | ||
@@ -12,6 +12,5 @@ "repository": { | ||
"dva", | ||
"ant", | ||
"alibaba", | ||
"react", | ||
"react-native", | ||
"mobile", | ||
"redux", | ||
@@ -32,10 +31,8 @@ "redux-saga", | ||
"build": "ruban build", | ||
"test": "ruban lint && ruban test", | ||
"test": "ruban test", | ||
"debug": "ruban debug", | ||
"coveralls": "ruban coveralls", | ||
"lint": "ruban lint", | ||
"pub": "ruban pub" | ||
"coveralls": "ruban coveralls" | ||
}, | ||
"dependencies": { | ||
"dva-core": "^0.2.0", | ||
"dva-core": "^0.3.0", | ||
"global": "^4.3.2", | ||
@@ -55,16 +52,11 @@ "history": "^4.6.3", | ||
}, | ||
"devDependencies": { | ||
"expect": "^1.20.2", | ||
"react": "^15.6.1", | ||
"react-dom": "^15.6.1", | ||
"ruban": "^0.1.2" | ||
}, | ||
"files": [ | ||
"lib", | ||
"src", | ||
"router.js", | ||
"dynamic.js", | ||
"fetch.js", | ||
"index.js", | ||
"router.js", | ||
"saga.js" | ||
] | ||
} |
@@ -32,3 +32,5 @@ import React from 'react'; | ||
const oldAppStart = app.start; | ||
return { ...app, router, start }; | ||
app.router = router; | ||
app.start = start; | ||
return app; | ||
@@ -53,10 +55,5 @@ function router(router) { | ||
// container 必须有 | ||
invariant( | ||
container, | ||
`[app.start] container should be defined`, | ||
); | ||
// 并且是 HTMLElement | ||
invariant( | ||
isHTMLElement(container), | ||
!container || isHTMLElement(container), | ||
`[app.start] container should be HTMLElement`, | ||
@@ -105,3 +102,3 @@ ); | ||
function render(container, store, app, router) { | ||
const ReactDOM = require('react-dom'); | ||
const ReactDOM = require('react-dom'); // eslint-disable-line | ||
ReactDOM.render(React.createElement(getProvider(store, app, router)), container); | ||
@@ -108,0 +105,0 @@ } |
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
0
11
280
0
12112
+ Addeddva-core@0.3.0(transitive)
- Removeddva-core@0.2.0(transitive)
Updateddva-core@^0.3.0