Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Commit

Permalink
Update dependencies and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurClemens committed Dec 2, 2017
1 parent f310268 commit b449adc
Show file tree
Hide file tree
Showing 141 changed files with 4,068 additions and 3,839 deletions.
18 changes: 12 additions & 6 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@
"transform-object-assign"
],
"env": {
"test": {
"presets": [
"env"
],
"plugins": ["transform-runtime"]
}
"test": {
"presets": [
"env"
],
"plugins": ["transform-runtime"]
},
"production": {
"presets": [
["env", { "modules": false }],
["minify"]
],
}
}
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@
"@lhorie/rollup-plugin-commonjs": "^8.2.3",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.2",
"babel-eslint": "^8.0.3",
"babel-loader": "^7.1.2",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-minify": "^0.2.0",
"babel-register": "^6.26.0",
"babili-webpack-plugin": "0.1.2",
"broken-link-checker": "^0.7.6",
"compression-webpack-plugin": "^1.0.1",
"css-loader": "^0.28.7",
"cssnano": "^3.10.0",
"del": "^3.0.0",
"eslint": "^4.11.0",
"eslint": "^4.12.1",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-react": "^7.5.1",
"extract-text-webpack-plugin": "^3.0.2",
"fs-promise": "^2.0.3",
"glob-fs": "^0.1.7",
Expand All @@ -42,11 +42,11 @@
"lerna": "2.5.1",
"mithril-jest": "^0.1.7",
"npm-run-all": "^4.1.2",
"react": "^16.1.1",
"react": "^16.2.0",
"react-addons-test-utils": "^15.6.2",
"react-dom": "^16.1.1",
"react-test-renderer": "^16.1.1",
"rollup": "^0.51.7",
"react-dom": "^16.2.0",
"react-test-renderer": "^16.2.0",
"rollup": "^0.52.0",
"rollup-plugin-babel": "^3.0.2",
"rollup-plugin-eslint": "^4.0.0",
"rollup-plugin-livereload": "^0.6.0",
Expand All @@ -57,6 +57,6 @@
"rollup-plugin-uglify": "^2.0.1",
"shelljs": "^0.7.8",
"style-loader": "^0.19.0",
"webpack": "^3.8.1"
"webpack": "^3.9.1"
}
}
2 changes: 1 addition & 1 deletion packages/polythene-css/dist/polythene-css-standalone.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file modified packages/polythene-css/dist/polythene.css.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/polythene-mithril-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"README.md"
],
"dependencies": {
"mithril": "1.1.5",
"mithril": "1.1.6",
"polythene-core": "^1.0.0-rc.9"
},
"author": "Arthur Clemens <arthurclemens@gmail.com> (http://arthurclemens.com)",
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/polythene-react-base/dist/polythene-react-base.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions packages/polythene-react-base/dist/polythene-react-base.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,7 @@ var StateComponent = function StateComponent(_ref) {
var protoState = _extends$1({}, component, _this.createVirtualNode(), {
redrawValues: undefined
});
var initialState = getInitialState(protoState, stream);
_this.state = initialState;
_this.state = getInitialState(protoState, stream);
_this.registerDOM = _this.registerDOM.bind(_this);
_this._render = _this._render.bind(_this);
return _this;
Expand All @@ -411,7 +410,9 @@ var StateComponent = function StateComponent(_ref) {
}, {
key: "componentDidUpdate",
value: function componentDidUpdate() {
onUpdate(this.createVirtualNode());
if (this._mounted) {
onUpdate(this.createVirtualNode());
}
}
}, {
key: "componentWillUnmount",
Expand All @@ -422,11 +423,10 @@ var StateComponent = function StateComponent(_ref) {
}, {
key: "createVirtualNode",
value: function createVirtualNode() {
var props = _extends$1({}, this.props);
return {
state: this.state,
attrs: props,
children: props.children,
attrs: this.props,
children: this.props.children,
dom: this.dom
};
}
Expand Down
4 changes: 2 additions & 2 deletions packages/polythene-react-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"dependencies": {
"mithril": "1.1.5",
"polythene-core": "^1.0.0-rc.9",
"react": "^16.1.1",
"react-dom": "^16.1.1",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-hyperscript": "^3.0.0"
},
"devDependencies": {
Expand Down
8 changes: 3 additions & 5 deletions packages/polythene-react-base/src/stateComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export const StateComponent = ({
redrawValues: undefined
}
);
const initialState = getInitialState(protoState, stream);
this.state = initialState;
this.state = getInitialState(protoState, stream);
this.registerDOM = this.registerDOM.bind(this);
this._render = this._render.bind(this);
}
Expand All @@ -56,11 +55,10 @@ export const StateComponent = ({
}

createVirtualNode() {
const props = Object.assign({}, this.props);
return {
state: this.state,
attrs: props,
children: props.children,
attrs: this.props,
children: this.props.children,
dom: this.dom,
};
}
Expand Down
12 changes: 6 additions & 6 deletions packages/polythene-react-base/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ prop-types@^15.6.0:
loose-envify "^1.3.1"
object-assign "^4.1.1"

react-dom@^16.1.1:
version "16.1.1"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.1.1.tgz#b2e331b6d752faf1a2d31399969399a41d8d45f8"
react-dom@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.2.0.tgz#69003178601c0ca19b709b33a83369fe6124c044"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.1.0"
Expand All @@ -95,9 +95,9 @@ react-hyperscript@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/react-hyperscript/-/react-hyperscript-3.0.0.tgz#3c16010b33175de6bc01fd1ebad0a16a9a6dc9ab"

react@^16.1.1:
version "16.1.1"
resolved "https://registry.yarnpkg.com/react/-/react-16.1.1.tgz#d5c4ef795507e3012282dd51261ff9c0e824fe1f"
react@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.1.0"
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/polythene-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"polythene-core": "^1.0.0-rc.9",
"polythene-core-css": "^1.0.0-rc.9",
"polythene-fastclick": "^1.0.0-rc.9",
"react": "^16.1.1",
"react": "^16.2.0",
"react-hyperscript": "^3.0.0"
},
"author": "Arthur Clemens <arthurclemens@gmail.com> (http://arthurclemens.com)",
Expand Down
6 changes: 3 additions & 3 deletions packages/polythene-react/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ react-hyperscript@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/react-hyperscript/-/react-hyperscript-3.0.0.tgz#3c16010b33175de6bc01fd1ebad0a16a9a6dc9ab"

react@^16.1.1:
version "16.1.1"
resolved "https://registry.yarnpkg.com/react/-/react-16.1.1.tgz#d5c4ef795507e3012282dd51261ff9c0e824fe1f"
react@^16.2.0:
version "16.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba"
dependencies:
fbjs "^0.8.16"
loose-envify "^1.1.0"
Expand Down
Loading

0 comments on commit b449adc

Please sign in to comment.