Skip to content

Commit 7dc87c1

Browse files
authored
Upgraded deps, including babel plugins (#350)
* Upgraded deps, including babel plugins * Removed node 8 build target * Added npm install to travis script
1 parent 0d7799c commit 7dc87c1

File tree

6 files changed

+3128
-2179
lines changed

6 files changed

+3128
-2179
lines changed

.babelrc

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
11
{
22
"presets": [
33
[
4-
"env",
4+
"@babel/preset-env",
55
{
66
"loose": true,
77
"targets": {
88
"node": "8"
99
}
1010
}
1111
],
12-
"react",
13-
"stage-2"
12+
"@babel/preset-react",
13+
"@babel/preset-flow"
1414
],
1515
"env": {
1616
"test": {
17-
"plugins": ["transform-react-jsx-source", "istanbul"]
17+
"plugins": [
18+
"@babel/plugin-transform-react-jsx-source",
19+
"istanbul"
20+
]
1821
}
1922
},
20-
"plugins": ["transform-flow-strip-types"]
23+
"plugins": [
24+
"@babel/plugin-transform-flow-strip-types",
25+
"@babel/plugin-syntax-dynamic-import",
26+
"@babel/plugin-syntax-import-meta",
27+
"@babel/plugin-proposal-class-properties",
28+
"@babel/plugin-proposal-json-strings",
29+
[
30+
"@babel/plugin-proposal-decorators",
31+
{
32+
"legacy": true
33+
}
34+
],
35+
"@babel/plugin-proposal-function-sent",
36+
"@babel/plugin-proposal-export-namespace-from",
37+
"@babel/plugin-proposal-numeric-separator",
38+
"@babel/plugin-proposal-throw-expressions"
39+
]
2140
}

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
sudo: false
22
language: node_js
3+
before_install:
4+
- npm install -g [email protected]
35
cache:
46
directories:
57
- node_modules
68
notifications:
79
email: false
810
node_js:
11+
- '9'
912
- '10'
10-
- '8'
13+
- 'stable'
1114
script:
1215
- npm start validate
1316
after_success:
1417
- npx codecov
15-
# - npm install --global semantic-release
16-
# - semantic-release pre && npm publish && semantic-release post
1718
branches:
1819
only:
1920
- master

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
✅ Opt-in subscriptions - only update on the state you need!
1717

18-
✅ 💥 [**3.1k gzipped**](https://bundlephobia.com/result?p=react-final-form) 💥
18+
✅ 💥 [**3.0k gzipped**](https://bundlephobia.com/result?p=react-final-form) 💥
1919

2020
---
2121

0 commit comments

Comments
 (0)