diff --git a/.babelrc b/.babelrc index 84a1934..ff1e53b 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,4 @@ { - "presets": ["env","react"], - "plugins": ["transform-object-rest-spread", "transform-runtime"] + "presets": ["@babel/env","@babel/react"], + "plugins": ["@babel/plugin-proposal-object-rest-spread", "@babel/plugin-transform-runtime"] } diff --git a/example/.babelrc b/example/.babelrc index efb6aa7..fd6b16f 100644 --- a/example/.babelrc +++ b/example/.babelrc @@ -1,3 +1,6 @@ { - "presets": ["env", "react"] + "presets": [ + "@babel/preset-env", + "@babel/preset-react" + ] } diff --git a/example/package.json b/example/package.json index ff29a1c..a1d54af 100755 --- a/example/package.json +++ b/example/package.json @@ -6,10 +6,10 @@ "author": "derzunov ", "license": "MIT", "dependencies": { - "babel-core": "^6.26.0", - "babel-loader": "^7.1.4", - "babel-preset-env": "^1.6.1", - "babel-preset-react": "^6.24.1", + "@babel/core": "^7.0.0", + "@babel/preset-env": "^7.0.0", + "@babel/preset-react": "^7.0.0", + "babel-loader": "^8.0.0", "body-parser": "^1.18.2", "config": "^1.30.0", "del": "^3.0.0", @@ -24,12 +24,12 @@ "react-redux": "^5.0.7", "redux": "^3.7.2", "redux-form": "^7.3.0", + "redux-react-i18n": "2.0.0", "redux-thunk": "^2.2.0", "run-sequence": "^2.2.1", "stream-combiner2": "^1.1.1", "webpack": "^2.2.1", "webpack-dev-server": "^2.4.1", - "webpack-stream": "^3.2.0", - "redux-react-i18n": ">=1.2.0" + "webpack-stream": "^3.2.0" } } diff --git a/package.json b/package.json index 4c87d52..75f8682 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redux-react-i18n", - "version": "1.3.0", + "version": "2.0.0", "description": "i18n solution for react/redux", "main": "lib/index.js", "scripts": { @@ -10,12 +10,15 @@ "build": "npm run compile" }, "devDependencies": { - "babel-cli": "^6.26.0", - "babel-core": "^6.26.0", - "babel-plugin-transform-object-rest-spread": "^6.26.0", - "babel-plugin-transform-runtime": "^6.23.0", - "babel-preset-env": "^1.6.1", - "babel-preset-react": "^6.24.1", + "@babel/cli": "^7.0.0", + "@babel/core": "^7.0.0", + "@babel/plugin-proposal-object-rest-spread": "^7.0.0", + "@babel/plugin-transform-runtime": "^7.0.0", + "@babel/polyfill": "^7.2.5", + "@babel/preset-env": "^7.0.0", + "@babel/preset-react": "^7.0.0", + "babel-core": "^7.0.0-bridge.0", + "babel-jest": "^23.4.2", "enzyme": "^3.3.0", "enzyme-adapter-react-16": "^1.1.1", "jest": "^22.4.3", @@ -41,10 +44,10 @@ }, "homepage": "https://github.com/derzunov/redux-react-i18n#readme", "peerDependencies": { + "react": ">=16.0.0", "react-dom": ">=16.0.0", "react-redux": ">=5.0.0", - "redux": ">=3.0.0", - "react": ">=16.0.0" + "redux": ">=3.0.0" }, "dependencies": { "translatr": ">=2.1.0"