Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit94d62be

Browse files
committed
Cleans dependencies
- Bumps all NPM dependencies - Bumps typings files where possible - Moves typings to direct includes where needed (typings/typings#738) - Updates (now-generic) `React.SyntheticEvent`
1 parent39922c9 commit94d62be

File tree

5 files changed

+29
-28
lines changed

5 files changed

+29
-28
lines changed

‎package.json‎

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,31 @@
1919
"author":"RJ Zaworski <rj@rjzaworski.com> (http://rjzaworski.com)",
2020
"license":"ISC",
2121
"dependencies": {
22-
"babel-polyfill":"^6.13.0",
23-
"react":"^15.3.0",
24-
"react-dom":"^15.3.0",
25-
"react-redux":"^4.4.5",
26-
"redux":"^3.5.2"
22+
"react":"15.4.1",
23+
"react-redux":"4.4.6",
24+
"redux":"3.6.0"
2725
},
2826
"devDependencies": {
29-
"babel-core":"^6.14.0",
30-
"babel-loader":"^6.2.5",
31-
"babel-preset-es2015":"^6.14.0",
32-
"coveralls":"^2.11.15",
33-
"jasmine-core":"2.4.1",
34-
"jest":"^17.0.3",
35-
"jest-cli":"^17.0.3",
36-
"react-addons-test-utils":"^15.3.0",
27+
"@types/react":"0.14.55",
28+
"@types/react-dom":"0.14.20",
29+
"babel-core":"6.14.0",
30+
"babel-loader":"6.2.5",
31+
"babel-polyfill":"6.20.0",
32+
"babel-preset-es2015":"6.14.0",
33+
"coveralls":"2.11.15",
34+
"jest":"17.0.3",
35+
"jest-cli":"17.0.3",
36+
"react-addons-test-utils":"15.4.1",
37+
"react-dom":"15.4.1",
3738
"sinon":"1.17.4",
3839
"source-map-loader":"0.1.5",
39-
"ts-jest":"^17.0.3",
40-
"ts-loader":"^0.8.2",
41-
"tslint":"^3.14.0",
40+
"ts-jest":"17.0.3",
41+
"ts-loader":"0.8.2",
42+
"tslint":"3.14.0",
4243
"typescript":"2.0.6",
43-
"typings":"1.3.2",
44-
"webpack":"^1.13.1",
45-
"webpack-fail-plugin":"^1.0.5",
44+
"typings":"2.1.0",
45+
"webpack":"1.13.1",
46+
"webpack-fail-plugin":"1.0.5",
4647
"zakalwe":"https://github.com/rjz/zakalwe.git"
4748
},
4849
"jest": {

‎src/components/counter.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ const mapDispatchToProps = (dispatch: redux.Dispatch<Store.All>): ConnectedDispa
4545

4646
classCounterComponentextendsReact.Component<ConnectedState&ConnectedDispatch&OwnProps,{}>{
4747

48-
_onClickIncrement=(e:React.SyntheticEvent)=>{
48+
_onClickIncrement=(e:React.SyntheticEvent<HTMLButtonElement>)=>{
4949
e.preventDefault()
5050
this.props.increment(1)
5151
}
5252

53-
_onClickSave=(e:React.SyntheticEvent)=>{
53+
_onClickSave=(e:React.SyntheticEvent<HTMLButtonElement>)=>{
5454
e.preventDefault()
5555
if(!this.props.isSaving){
5656
this.props.save(this.props.counter.value)
5757
}
5858
}
5959

60-
_onClickLoad=(e:React.SyntheticEvent)=>{
60+
_onClickLoad=(e:React.SyntheticEvent<HTMLButtonElement>)=>{
6161
e.preventDefault()
6262
if(!this.props.isLoading){
6363
this.props.load()

‎src/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ window.addEventListener('DOMContentLoaded', () => {
2323
constrootEl=document.getElementById('redux-app-root')
2424
if(rootEl)ReactDOM.render(
2525
<Providerstore={store}>
26-
<Counterlabel='who\'scounting?'/>
26+
<Counterlabel='count:'/>
2727
</Provider>
2828
,rootEl)
2929
})

‎tsconfig.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"jsx":"react"
99
},
1010
"files": [
11+
"node_modules/@types/react-dom/index.d.ts",
12+
"node_modules/@types/react/index.d.ts",
1113
"typings/index.d.ts"
1214
]
1315
}

‎typings.json‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
22
"name":"typescript-react-redux",
33
"globalDependencies": {
4-
"jasmine":"registry:dt/jasmine#2.2.0+20160621224255",
5-
"react":"registry:dt/react#0.14.0+20160805125551",
6-
"react-addons-test-utils":"registry:dt/react-addons-test-utils#0.14.0+20160427035638",
7-
"react-dom":"registry:dt/react-dom#0.14.0+20160412154040",
8-
"sinon":"registry:dt/sinon#1.16.0+20160924120326"
4+
"jasmine":"registry:dt/jasmine#2.5.0+20161228223817",
5+
"sinon":"registry:dt/sinon#1.16.1+20161208163514"
96
},
107
"dependencies": {
8+
"react-addons-test-utils":"registry:dt/react-addons-test-utils#0.14.0+20161229235626",
119
"react-redux":"registry:npm/react-redux#4.4.0+20160614222153"
1210
}
1311
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp