From 48866c348a01079809618c95e1773b3cb4891c0e Mon Sep 17 00:00:00 2001 From: Gerasimos Chatzidamianos <11447903+gerhat@users.noreply.github.com> Date: Sun, 29 Mar 2020 11:20:03 +0300 Subject: [PATCH] Updates for resolving minimist security vulnerability --- CHANGELOG.md | 4 + example/package.json | 36 +- example/src/SimpleFormExample.jsx | 6 +- package-lock.json | 2507 ++++++++--------------------- package.json | 36 +- 5 files changed, 685 insertions(+), 1904 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 490108b..2cbe309 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ### [Versions](https://github.com/gerhat/material-ui-formik-components/releases) +## 0.6.1 +###### _Mar 29, 2020_ +- Package updates for fixing `minimist` security vulnerability + ## 0.6.0 ###### _Mar 8, 2020_ ### General diff --git a/example/package.json b/example/package.json index e92155b..5883aa4 100644 --- a/example/package.json +++ b/example/package.json @@ -11,48 +11,48 @@ "main": "src/index.js", "dependencies": { "@date-io/date-fns": "^1.3.13", - "@material-ui/core": "^4.9.5", - "@material-ui/lab": "^4.0.0-alpha.45", + "@material-ui/core": "^4.9.8", + "@material-ui/lab": "^4.0.0-alpha.47", "@material-ui/pickers": "^3.2.10", - "date-fns": "^2.10.0", + "date-fns": "^2.11.1", "formik": "^2.1.4", - "react": "^16.13.0", - "react-dom": "^16.13.0", + "react": "^16.13.1", + "react-dom": "^16.13.1", "yup": "^0.28.3" }, "devDependencies": { "@babel/cli": "^7.8.4", - "@babel/core": "^7.8.7", + "@babel/core": "^7.9.0", "@babel/node": "^7.8.7", "@babel/plugin-proposal-class-properties": "^7.8.3", - "@babel/preset-env": "^7.8.7", - "@babel/preset-react": "^7.8.3", + "@babel/preset-env": "^7.9.0", + "@babel/preset-react": "^7.9.4", "babel-eslint": "^10.1.0", - "babel-loader": "^8.0.6", + "babel-loader": "^8.1.0", "babel-plugin-module-resolver": "^4.0.0", "clean-webpack-plugin": "^3.0.0", "cross-env": "^7.0.2", "css-loader": "^3.4.2", "eslint": "^6.8.0", - "eslint-config-standard": "^14.1.0", + "eslint-config-standard": "^14.1.1", "eslint-config-standard-react": "^9.2.0", - "eslint-plugin-import": "^2.20.1", + "eslint-plugin-import": "^2.20.2", "eslint-plugin-jsx-a11y": "^6.2.3", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-react": "^7.19.0", "eslint-plugin-standard": "^4.0.1", "eslint-watch": "^6.0.1", - "file-loader": "^5.1.0", - "fs-extra": "^8.1.0", - "html-loader": "^0.5.5", - "html-webpack-plugin": "^3.2.0", - "jest": "^25.1.0", + "file-loader": "^6.0.0", + "fs-extra": "^9.0.0", + "html-loader": "^1.0.0", + "html-webpack-plugin": "^4.0.3", + "jest": "^25.2.3", "node-sass": "^4.13.1", "rimraf": "3.0.2", "sass-loader": "^8.0.2", "style-loader": "^1.1.3", - "webpack": "^4.42.0", + "webpack": "^4.42.1", "webpack-cli": "^3.3.11", "webpack-dev-server": "^3.10.3" }, diff --git a/example/src/SimpleFormExample.jsx b/example/src/SimpleFormExample.jsx index 3aa70a9..2d290b3 100755 --- a/example/src/SimpleFormExample.jsx +++ b/example/src/SimpleFormExample.jsx @@ -29,17 +29,17 @@ const SimpleFormExample = () => ( validationSchema={validationSchema} validateOnBlur={false} validateOnChange - onSubmit={values => { + onSubmit={(values) => { // eslint-disable-next-line no-alert window.alert(` Username: ${values.username} Gender: ${values.gender} Country: ${values.country.label} - Skills: ${values.skills.map(v => v.label).join(',')} + Skills: ${values.skills.map((v) => v.label).join(',')} Birth date: ${values.birthdate}`) }} > - {formik => ( + {(formik) => (