Skip to content

Commit 92cd2fa

Browse files
committed
Upgraded all dependencies removing alpha and beta versions
1 parent df8c26d commit 92cd2fa

4 files changed

Lines changed: 28 additions & 28 deletions

File tree

.eslintrc.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ module.exports = {
3030
'templateStrings': true,
3131
},
3232
},
33+
"settings": {
34+
"react": {
35+
"version": "16.3",
36+
},
37+
"propWrapperFunctions": ["forbidExtraProps"]
38+
},
3339
'plugins': ['react', 'class-property', 'babel', 'prettier'],
3440
'rules': {
3541
'arrow-body-style': 'off',
@@ -58,7 +64,7 @@ module.exports = {
5864
'max-depth': ['warn', 4],
5965
'max-len': ['error', 120],
6066
'max-nested-callbacks': ['warn', 2],
61-
'max-params': ['warn', 4],
67+
'max-params': ['warn', 5],
6268
'max-statements': ['off', 10],
6369
'new-cap': 'error',
6470
'new-parens': 'error',

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ To get the diff between two versions, go to https://github.com/FriendsOfECMAScri
88
- 0.8.0
99
- React new Context API is now used to manage state
1010
- Decoupled from `react-intl` and `react-redux`
11-
- Added React component testing using `react-testing-library`
1211
- [BC BREAK] Removed bridges for redux, browser, in-memory and local storage.
1312
- [BC BREAK] Removed support for React and ReactDOM < 16.3 (Context API is not supported in those versions)
13+
- Added React component testing using `react-testing-library`
14+
- Increased the test code coverage
15+
- Upgraded all dependencies removing alpha and beta versions
1416
- 0.7.0
1517
- Added support for using an string-array as the path property as `react-router` does.
1618
- 0.6.0

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -99,29 +99,29 @@
9999
}
100100
},
101101
"dependencies": {
102-
"@babel/preset-env": "^7.0.0-beta.49",
103-
"@babel/preset-react": "^7.0.0-beta.49",
104-
"babel-preset-minify": "^0.5.0-alpha.a28b6b00"
102+
"@babel/preset-env": "^7.2.3",
103+
"@babel/preset-react": "^7.0.0",
104+
"babel-preset-minify": "^0.5.0"
105105
},
106106
"devDependencies": {
107-
"@babel/cli": "^7.0.0-beta.49",
108-
"@babel/core": "^7.0.0-beta.51",
109-
"@babel/plugin-proposal-class-properties": "^7.0.0-beta.49",
110-
"@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.49",
111-
"@babel/plugin-transform-modules-commonjs": "^7.0.0-beta.49",
112-
"babel-core": "^7.0.0-0",
113-
"babel-eslint": "^8.2.3",
114-
"babel-jest": "^23.0.1",
115-
"eslint": "^4.19.1",
116-
"eslint-plugin-babel": "^5.1.0",
107+
"@babel/cli": "^7.2.3",
108+
"@babel/core": "^7.2.2",
109+
"@babel/plugin-proposal-class-properties": "^7.2.3",
110+
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
111+
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
112+
"babel-core": "^6.26.3",
113+
"babel-eslint": "^8.2.6",
114+
"babel-jest": "^23.6.0",
115+
"eslint": "^5.11.1",
116+
"eslint-plugin-babel": "^5.3.0",
117117
"eslint-plugin-class-property": "^1.1.0",
118-
"eslint-plugin-prettier": "^3.0.0",
119-
"eslint-plugin-react": "^7.9.1",
120-
"jest": "^23.1.0",
118+
"eslint-plugin-prettier": "^3.0.1",
119+
"eslint-plugin-react": "^7.12.0",
120+
"jest": "^23.6.0",
121121
"mkdirp": "^0.5.1",
122122
"npm-install-peers": "^1.2.1",
123-
"prettier": "^1.10.2",
124-
"react-testing-library": "^5.3.2",
123+
"prettier": "^1.15.3",
124+
"react-testing-library": "^5.4.2",
125125
"regenerator-runtime": "^0.11.1",
126126
"rimraf": "^2.6.2"
127127
},

src/renderTranslatedRoutes.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import flatMap from 'lodash.flatmap';
1111

12-
// eslint-disable-next-line max-params
1312
const getRouteConfig = (configRoute, locale, currentLocale, pathFromRouteForPathsAndLocale) => {
1413
const {paths, ...configRouteRest} = configRoute;
1514

@@ -21,9 +20,7 @@ const getRouteConfig = (configRoute, locale, currentLocale, pathFromRouteForPath
2120
getRouteConfigForLocale = (configRoute, currentLocale, pathFromRouteForPathsAndLocale) => locale =>
2221
getRouteConfig(configRoute, locale, currentLocale, pathFromRouteForPathsAndLocale);
2322

24-
// eslint-disable-next-line max-params
2523
const renderTranslatedRoutesForLocales = (
26-
configRoute,
2724
routes,
2825
locales,
2926
currentLocale,
@@ -45,24 +42,20 @@ const renderTranslatedRoutesForLocales = (
4542
);
4643
}),
4744
),
48-
// eslint-disable-next-line max-params
4945
renderTranslatedRoutesForConfig = (
50-
configRoute,
5146
routes,
5247
currentLocale,
5348
pathFromRouteForPathsAndLocale,
5449
getRouteConfigForCurrentLocale,
5550
) => locales =>
5651
renderTranslatedRoutesForLocales(
57-
configRoute,
5852
routes,
5953
locales,
6054
currentLocale,
6155
pathFromRouteForPathsAndLocale,
6256
getRouteConfigForCurrentLocale,
6357
);
6458

65-
// eslint-disable-next-line max-params
6659
const renderTranslatedRoutes = (locales, routes, pathFromRouteForPathsAndLocale) => currentLocale => (
6760
config,
6861
iterationLocale,
@@ -75,7 +68,6 @@ const renderTranslatedRoutes = (locales, routes, pathFromRouteForPathsAndLocale)
7568
pathFromRouteForPathsAndLocale,
7669
),
7770
renderTranslatedRoutesForCurrentConfig = renderTranslatedRoutesForConfig(
78-
configRoute,
7971
routes,
8072
currentLocale,
8173
pathFromRouteForPathsAndLocale,

0 commit comments

Comments
 (0)