From af8997154154fff937ec6e1d0c03d89c3fa05cdb Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Wed, 20 Feb 2019 12:07:59 +0000 Subject: [PATCH 1/6] chore(package): update sweetalert2 to version 8.2.2 Closes #68 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 68488d1..5a00d96 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "rollup-plugin-node-resolve": "^4.0.0", "rollup-plugin-terser": "^4.0.4", "semantic-release": "^15.0.0", - "sweetalert2": "^7.18.0", + "sweetalert2": "^8.2.2", "tslint": "^5.9.1", "typescript": "^3.1.3", "zenflow-lint-js": "^2.0.0" From c0c0255b404597f6a0d47a365e45adf351877301 Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Wed, 20 Feb 2019 14:21:49 -0300 Subject: [PATCH 2/6] test(util): Integrate sweetalert2 v8 breaking changes --- test/util/swalUtil.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/util/swalUtil.js b/test/util/swalUtil.js index 0a5dcd4..34affb7 100644 --- a/test/util/swalUtil.js +++ b/test/util/swalUtil.js @@ -1,8 +1,7 @@ import Swal from 'sweetalert2/dist/sweetalert2' // js-only, no styles async function cleanSwalState() { - Swal.resetDefaults() - await Swal({ + await Swal.fire({ animation: false, title: 'clear', onOpen: () => Swal.clickConfirm(), From 7205025d5f13fff3b55a249a030f5f11bc20395c Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Wed, 20 Feb 2019 14:26:59 -0300 Subject: [PATCH 3/6] feat(package): add `^8.2.2` to version range for sweetalert2 peer dep --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5a00d96..00153f1 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "peerDependencies": { "react": "^16.0.0", "react-dom": "^16.0.0", - "sweetalert2": "^7.18.0" + "sweetalert2": "^7.18.0 || ^8.2.2" }, "devDependencies": { "@babel/core": "^7.2.2", From dfbde4c979012fe9eabb08f58d8790c1baa0b91e Mon Sep 17 00:00:00 2001 From: Limon Monte Date: Mon, 28 Jan 2019 10:51:28 +0200 Subject: [PATCH 4/6] Revert "chore(readme): specify the sweetalert2 version" This reverts commit 504d14981918ba127d37919d104dbbfeab841971. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e8c66c..600805f 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ The following options can be React elements: ## Installation ```bash -npm install --save sweetalert2@^7.18.0 sweetalert2-react-content +npm install --save sweetalert2 sweetalert2-react-content ``` ## Usage Example From 7067799d4f5d5f0cd939a2df45ae437dd8368613 Mon Sep 17 00:00:00 2001 From: Matthew Francis Brunetti Date: Fri, 22 Feb 2019 18:52:27 -0300 Subject: [PATCH 5/6] feat(update-method): throw error when swal.update() is called --- src/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/index.js b/src/index.js index 5ff4089..351831f 100644 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,7 @@ import ReactDOM from 'react-dom' import { mounts } from './mounts' const noop = () => {} +const error = message => new Error(`sweetalert2-react-content: ${message}`) export default function withReactContent(ParentSwal) { return class extends ParentSwal { @@ -49,5 +50,10 @@ export default function withReactContent(ParentSwal) { return super._main(params) } + update() { + throw error( + 'Swal.update() is not yet supported. See https://github.com/sweetalert2/sweetalert2-react-content/issues/73', + ) + } } } From bf52a4ebaf185b6b832c595ce912295b976e3452 Mon Sep 17 00:00:00 2001 From: Limon Monte Date: Mon, 11 Mar 2019 16:29:03 +0200 Subject: [PATCH 6/6] chore: bump sweetalert2 to ^8.3.0 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 00153f1..397c8ec 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "peerDependencies": { "react": "^16.0.0", "react-dom": "^16.0.0", - "sweetalert2": "^7.18.0 || ^8.2.2" + "sweetalert2": "^7.18.0 || ^8.3.0" }, "devDependencies": { "@babel/core": "^7.2.2", @@ -71,7 +71,7 @@ "rollup-plugin-node-resolve": "^4.0.0", "rollup-plugin-terser": "^4.0.4", "semantic-release": "^15.0.0", - "sweetalert2": "^8.2.2", + "sweetalert2": "^8.3.0", "tslint": "^5.9.1", "typescript": "^3.1.3", "zenflow-lint-js": "^2.0.0"