Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Update sweetalert2 to the latest version 🚀 #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Nov 4, 2019

The dependency sweetalert2 was updated from 8.19.0 to 9.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: limonte
License: MIT

Release Notes for v9.0.0

🔴 Breaking change # 1 - rename type to icon

Swal.fire({
- type: 'success'
+ icon: 'success'
  ...
})

🔴 Breaking change # 2 - Deprecated API params were removed:

  • customContainerClass
  • confirmButtonClass
  • cancelButtonClass
  • imageClass
  • inputClass

Use customClass instead: https://sweetalert2.github.io#custom-class

🔴 Breaking change # 3 - Deprecated API methods were removed:

  • disableConfirmButton() (use Swal.getConfirmButton().setAttribute('disabled', '') instead)
  • enableConfirmButton() (use Swal.getConfirmButton().removeAttribute('disabled') instead)
  • setProgressSteps() (use Swal.update({ progressSteps: ... }) instead)
  • showProgressSteps() (use Swal.getProgressSteps() instead)
  • hideProgressSteps() (use Swal.getProgressSteps() instead)

🔴 Breaking change # 4

Cancel buttons isn't getting disabled automatically when showing loader (Swal.showLoader())


🎉 NEW FEATURES

🎉 showClass and hideClass

Now, it's possible to change showing/hiding animations of popups:

Swal.fire({
  ...
  showClass: {
    popup: '...',
    backdrop: '...',
    icon: '...',
  }
  hideClass: {
    popup: '...',
    backdrop: '...',
    icon: '...',
  }
  ...
})

The animation param was deprecated, use showClass: { popup: '', backdrop: '' } instead.

🎉 iconHtml

Use any HTML inside icons (e.g. Font Awesome)

Swal.fire({
  ...
  icon: 'success'
  iconHtml: '<i class="far fa-thumbs-up"></i>'
  ...
})

The .swal2-arabic-question-mark class was removed, use iconHtml: '؟' instead.

Commits

The new version differs by 17 commits.

  • 33c6279 chore(release): 9.0.0 [skip ci]
  • f73dcba BREAKING CHANGE: remove .swal2-arabic-question-mark, add iconHtml param
  • fcaabee BREAKING CHANGE: rename 'type' param to 'icon'
  • d7bcd7c BREAKING CHANGE: remove $swal2-success--animation and $swal2-error--animation SCSS variables
  • 3668055 BREAKING CHANGE: Stop disabling the Cancel button when in showLoading()
  • 53d9106 BREAKING CHANGE: remove setProgressSteps(), showProgressSteps(), hideProgressSteps()
  • 8ebbcaf BREAKING CHANGE: remove disableConfirmButton() and enableConfirmButton()
  • ee7e392 BREAKING CHANGE: remove inputClass
  • 2594115 BREAKING CHANGE: remove imageClass
  • 5276cfd BREAKING CHANGE: remove confirmButtonClass and cancelButtonClass
  • c04782c BREAKING CHANGE: remove customContainerClass
  • 7c4b324 feat(api): add 'icon' to showClass and hideClass
  • 8ea3ae1 Bring back the animation param, but deprecate it
  • c3cbb74 BREAKING CHANGE: remove .swal2-shown from .swal2-container, add 'backdrop' to showClass and hideClass
  • f2153cb BREAKING CHANGE: replace animation with showClass and hideClass params

There are 17 commits in total.

See the full diff


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

greenkeeper bot added a commit that referenced this pull request Nov 4, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 4, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.0.1.

Update to this version instead 🚀

Release Notes for v9.0.1

9.0.1 (2019-11-04)

Bug Fixes

  • icon when passing it as third string argument (6ad3aa5)
Commits

The new version differs by 2 commits.

  • 6e8a401 chore(release): 9.0.1 [skip ci]
  • 6ad3aa5 fix: icon when passing it as third string argument

See the full diff

greenkeeper bot added a commit that referenced this pull request Nov 4, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 4, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.0.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 5, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 5, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.1.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 5, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 5, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.1.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 5, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 5, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.1.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 5, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 5, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.1.3.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 5, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 5, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.1.4.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 5, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 5, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.1.5.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 8, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 8, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.1.6.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 9, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 9, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.2.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 10, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 10, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 11, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 11, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 12, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 12, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 12, 2019
greenkeeper bot added a commit that referenced this pull request Nov 15, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 15, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.11.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 18, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 18, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.12.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 19, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 19, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.13.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 19, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 19, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.14.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 19, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 19, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.15.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 19, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 19, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.16.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 21, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 21, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.3.17.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Nov 23, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Nov 23, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.4.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 1, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 1, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.4.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 3, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 3, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.4.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 3, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 3, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.4.3.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 9, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 9, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.5.0.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 9, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 9, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.5.1.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 9, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 9, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.5.2.

Update to this version instead 🚀

greenkeeper bot added a commit that referenced this pull request Dec 10, 2019
@greenkeeper
Copy link
Contributor Author

greenkeeper bot commented Dec 10, 2019

  • The dependency sweetalert2 was updated from 8.19.0 to 9.5.3.

Update to this version instead 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants