This repository has been archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Update sweetalert2 to the latest version 🚀 #39
Open
greenkeeper
wants to merge
2
commits into
master
Choose a base branch
from
greenkeeper/sweetalert2-9.0.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The dependency sweetalert2 was updated from
8.19.0
to9.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
toicon
🔴 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()
(useSwal.getConfirmButton().setAttribute('disabled', '')
instead)enableConfirmButton()
(useSwal.getConfirmButton().removeAttribute('disabled')
instead)setProgressSteps()
(useSwal.update({ progressSteps: ... })
instead)showProgressSteps()
(useSwal.getProgressSteps()
instead)hideProgressSteps()
(useSwal.getProgressSteps()
instead)🔴 Breaking change # 4
Cancel buttons isn't getting disabled automatically when showing loader (
Swal.showLoader()
)🎉 NEW FEATURES
🎉
showClass
andhideClass
Now, it's possible to change showing/hiding animations of popups:
The
animation
param was deprecated, useshowClass: { popup: '', backdrop: '' }
instead.🎉
iconHtml
Use any HTML inside icons (e.g. Font Awesome)
The
.swal2-arabic-question-mark
class was removed, useiconHtml: '؟'
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 🌴