Bug Fixes
Features
- match outline color with custom button colors (#2814) (62fb3fc)
Features
Bug Fixes
- types: allow theme update (4b8c4e2)
Bug Fixes
- types: allow borderless theme (8618e53)
Features
Bug Fixes
- toast background color fixed to white in dark theme (#2798) (33e248b)
Features
Bug Fixes
- kiss: get rid of sass:color (ef5ff13)
Bug Fixes
- styles: stop using sass:math, add $swal2-icon-border-width scss variable (d0bf711)
Bug Fixes
Bug Fixes
Bug Fixes
- get rid of SCSS mixins, one file for styles is what I need (#2791) (5e72a29)
Bug Fixes
- revert "stop using deprecated sass imports (#2790)" (dd97316)
Bug Fixes
Bug Fixes
- styles specificity for html container (1104474)
Bug Fixes
Bug Fixes
Features
Bug Fixes
Bug Fixes
Bug Fixes
- handle
transitionend
together with animationend
(#2773) (3441fc5)
Bug Fixes
Bug Fixes
- avoid using deprecated sass lighten function (#2767) (eb16ab3)
Features
Bug Fixes
- checkbox label = inputPlaceholder || inputLabel (#2761) (e783864)
Bug Fixes
Bug Fixes
Features
Bug Fixes
Bug Fixes
- strict types renderInput.js and getTemplateParams.js (df6d0ed)
Bug Fixes
Bug Fixes
Bug Fixes
- styles: :focus -> :focus-visible for buttons (#2733) (9be8249)
Features
Bug Fixes
Features
Bug Fixes
- prevent popup content from being selected on double click on the container (#2722) (7910325)
Bug Fixes
- improve performance by pulling querySelector out of the loop (#2719) (9f94517)
Bug Fixes
- allow single quotes in default email validator (#2717) (e4b7a3a)
Bug Fixes
- show the browser validation message for input (#2704) (68d6d35)
Bug Fixes
Bug Fixes
- rm unnecessary transform styles on success icon (69c2372), closes #2698
Bug Fixes
Bug Fixes
- resolve swal promise when its dismissed by another swal (#2689) (0b4329b)
Features
11.9.1 (2023-11-14)
Bug Fixes
11.9.0 (2023-10-30)
Features
- automatically show/hide title/content/footer when their innerHTML is changing (#2680) (3339dea)
11.8.0 (2023-10-28)
Features
- support input date, datetime-local, time, week, month, search (#2679) (3fce8ac)
Bug Fixes
- strict types popup-click-handler.js (e5af701)
Bug Fixes
- types: make bindClickHandler()'s param optional (de5f162)
Bug Fixes
- types: add missing bindClickHandler() (59a9613)
Bug Fixes
- types: allow imageUrl to be null (6e7915f)
- types: allow returning false from inputValidator (a3becd9)
- types: allow target to be null (82a40d5)
Bug Fixes
- strict types keydown-handler.js (1e39486)
Bug Fixes
Bug Fixes
Bug Fixes
- always adjust padding right when body has overflow-y: scroll (#2665) (b0ec753)
Bug Fixes
- do not adjust padding right when body has overflow-y: scroll (#2664) (4d86677)
Bug Fixes
Bug Fixes
- types: rm generic from SweetAlertOptions to make it easier to read (c3bf4cc)
Bug Fixes
- types: add
SyncOrAsync
to preConfirm
definition (#2658) (98c3b5f)
Bug Fixes
Bug Fixes
- rended iconHTML with icon: undefined (83e8fe2)
Bug Fixes
Bug Fixes
- when resizing textarea take params.width into consideration (#2654) (98b34a1)
Bug Fixes
- avoid using navigator.userAgent and navigator.platform (#2650) (3039432)
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
- strict types renderContent.js (0de698e)
Bug Fixes
11.7.9 (2023-05-30)
Bug Fixes
11.7.8 (2023-05-29)
Bug Fixes
11.7.7 (2023-05-29)
Bug Fixes
- assign instance methods to prototype in a webpack4 compatible way (fixes #2625) (f8942e8)
11.7.6 (2023-05-28)
Bug Fixes
- types for SweetAlert class (166077e)
11.7.5 (2023-05-04)
Bug Fixes
- add types to mixin.js and enable-disable-elements.js (#2605) (f77f418)
11.7.4 (2023-05-04)
Bug Fixes
- styles: set
$swal2-close-button-font-family
to monospace (d4bef39)
11.7.3 (2023-02-28)
Bug Fixes
11.7.2 (2023-02-17)
Bug Fixes
11.7.1 (2023-01-24)
Bug Fixes
11.7.0 (2023-01-11)
Features
Bug Fixes
- remove innerParams from handleTab() and setFocus() (#2570) (ac79cfc)
Bug Fixes
- types in keydown-handler.js (51f05b0)
Bug Fixes
- disallow plugin usage for
.ru
, .su
, and .рф
domain zones (#2567) (6d02e10)
Bug Fixes
- remove unnecessary instanceMethods/progress-steps.js (6b56c13)
Bug Fixes
Bug Fixes
- add types to validation-message.js (47a88ca)
Bug Fixes
- use zx for tools/*.mjs scripts (48c422b)
11.6.9 (2022-11-17)
Bug Fixes
- add types to bindClickHandler.js (c9db31a)
- remove typesVersions (dbf6e4d)
11.6.8 (2022-11-10)
Bug Fixes
11.6.7 (2022-11-07)
Bug Fixes
11.6.6 (2022-11-06)
Bug Fixes
11.6.5 (2022-10-30)
Bug Fixes
- toast pop up sizing based on message length (#2540) (251ffea)
11.6.4 (2022-10-27)
Bug Fixes
- use @rollup/plugin-terser (19e858a)
11.6.3 (2022-10-27)
Bug Fixes
11.6.2 (2022-10-24)
Bug Fixes
11.6.1 (2022-10-21)
Bug Fixes
11.6.0 (2022-10-19)
Features
11.5.2 (2022-10-15)
Bug Fixes
- should not throw console warning for
{ allowOutsideClick: true }
since default value of backdrop
is true
(#2524) (a95871e)
11.5.1 (2022-10-11)
Bug Fixes
11.5.0 (2022-10-10)
Features
- add ability to pass function as a template param (#2519) (0a8d004)
Bug Fixes
- template params when typeof default value is undefined or string (#2517) (53ced8c)
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
- add types to button-handlers.js (e51f6c1)
Bug Fixes
- better description for Masyanya video (e51a499)
Bug Fixes
- add Masyanya's attempt to teach empathy to russians (fc75aaf)
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
- types: fix types for Swal.close() (3cc9193)
Bug Fixes
- remove unused globalState.deferDisposalTimer (#2443) (a5f32e9)
Bug Fixes
Bug Fixes
Bug Fixes
Bug Fixes
- use transparent background for progressSteps and input (#2437) (ac9407f)
Bug Fixes
- throw warning about invalid inputType for input: textarea (a26e08a)
11.4.9 (2022-04-21)
Bug Fixes
11.4.8 (2022-03-29)
Bug Fixes
- bump cycjimmy/semantic-release-action to v3 (f6cb46f)
11.4.7 (2022-03-24)
Bug Fixes
11.4.6 (2022-03-19)
Bug Fixes
- types: customClass can be also a string (27e9282), closes #2411
11.4.5 (2022-03-17)
Bug Fixes
- rm cspell, it takes too long to install (c39de26)
11.4.4 (2022-02-21)
Bug Fixes
- complete the promise when calling showValidationMessage() inside preConfirm (#2409) (e2384a6)
11.4.3 (2022-02-21)
Bug Fixes
11.4.2 (2022-02-20)
Bug Fixes
- arrow keys when there are Confirm and Cancel buttons (95f3632)
11.4.1 (2022-02-19)
Bug Fixes
- isModal() to return true only if .swal2-shown is set on body (#2405) (e0f2240)
11.4.0 (2022-02-06)
Features
Bug Fixes
- revert mistakenly deleted replace-in-file (6c728fd)
11.3.9 (2022-01-26)
Bug Fixes
- remove type="module" from package.json (0ae493b)
- remove type="module" from package.json before building dist (#2397) (1968d8b)
11.3.8 (2022-01-26)
Bug Fixes
- use ESM modules for dev/build tools (1b182e6)
11.3.7 (2022-01-26)
Bug Fixes
11.3.6 (2022-01-17)
Bug Fixes
- add types to getTemplateParams.js (7a48d60)
11.3.5 (2022-01-13)
Bug Fixes
- throw error when returnInputValueOnDeny is used without input (#2381) (a09fc87)
11.3.4 (2022-01-07)
Bug Fixes
11.3.3 (2022-01-01)
Bug Fixes
11.3.2 (2021-12-30)
Bug Fixes
11.3.1 (2021-12-28)
Bug Fixes
11.3.0 (2021-12-05)
Features
11.2.2 (2021-12-03)
Bug Fixes
- detecting toast so removePopupAndResetState() would work properly (#2360) (afef35a)
11.2.1 (2021-11-25)
Bug Fixes
11.2.0 (2021-11-20)
Features
- add new animation for question, info and warning mark (#2351) (c5d8b68)
Bug Fixes
11.1.9 (2021-10-16)
Bug Fixes
- handle the rejection of the initial Swal when chaining multiple Swal inside preConfirm (#2335) (84e2e55)
11.1.8 (2021-10-14)
Bug Fixes
- preConfirm & preDeny promise rejections rejects the main Swal.fire promise (#2334) (040b7a9)
11.1.7 (2021-09-22)
Bug Fixes
- buttons outline for toasts (a51814f)
11.1.6 (2021-09-19)
Bug Fixes
11.1.5 (2021-09-07)
Bug Fixes
- get rid of workabound for bottom gap in Firefox, fix it properly (#2317) (7857b9e)
11.1.4 (2021-08-19)
Bug Fixes
11.1.3 (2021-08-18)
Bug Fixes
- remove hardcoded max-width from input='number' (b186823)
11.1.2 (2021-08-03)
Bug Fixes
11.1.1 (2021-08-03)
Bug Fixes
- unsetting
aria-hidden="true"
when modal is called twice (#2306) (64223a7)
11.1.0 (2021-07-30)
Features
Bug Fixes
- overflowing children of html-container (#2295) (f2724f3)
- scss: add $swal2-color variable (10745a7)
Bug Fixes
Bug Fixes
- disable pointer-events for toast container (#2278) (08defbf)
Bug Fixes
Bug Fixes
Bug Fixes
- types: add missing types for Swal.getContainer() (5b87ee7)
Bug Fixes
- safari: purge container instead of removing it (#2268) (5559256)
Bug Fixes
Bug Fixes
- show loading while waiting for inputValue promise (#2260) (3cf8608)
Bug Fixes
Bug Fixes
- disable pointer-events on .swal2-container when backdrop: false (#2258) (4619c23)
11.0.9 (2021-05-21)
Bug Fixes
11.0.8 (2021-05-19)
Bug Fixes
- scss: add $swal2-html-container-word-break (fa966dd)
11.0.7 (2021-05-17)
Bug Fixes
11.0.6 (2021-05-17)
Bug Fixes
- do not use runIfFunction() helper for document.activeElement.blur() (fc8f893), closes #2250
11.0.5 (2021-05-16)
Bug Fixes
- add scss variables for .swal2-title (a280885)
11.0.4 (2021-05-16)
Bug Fixes
11.0.3 (2021-05-16)
Bug Fixes
11.0.2 (2021-05-16)
Bug Fixes
11.0.1 (2021-05-16)
Bug Fixes
11.0.0 (2021-05-14)
Bug Fixes
- BREAKING CHANGE: move loader in toasts to the left side, replacing the icon (#2240) (3ec9fae), closes #2240
- BREAKING CHANGE: switch container to CSS Grid Layout (#2239) (706665d), closes #2239
- BREAKING CHANGE: change toast layout (#2238) (ce5cad7), closes #2238
- BREAKING CHANGE: switch to CSS Grid Layout (#2237) (8d8253a), closes #2237
- BREAKING CHANGE: remove .swal2-header and .swal2-content (#2232) (18adb8b), closes #2232
- BREAKING CHANGE: remove deprecated animation param (19d1efe)
- BREAKING CHANGE: remove deprecated lifecycle hooks (ed84b89)
- BREAKING CHANGE: remove .queue() (close #2229) (fec7977), closes #2229
- BREAKING CHANGE: Drop IE11 and old Edge support (#2191) (c0421e5), closes #2191
- BREAKING CHANGE: Update btn colors (#2227) (0dd06d9), closes #2227
BREAKING CHANGES
Bug Fixes
Bug Fixes
- prevent shrinking of radio/checkbox inputs (5150086)
Bug Fixes
- showClass/hideClass passed via .mixin() should be treated the same as passed via .fire() (#2179) (d228741)
Bug Fixes
- remove horizontal padding for .swal2-actions (446e7b5)
- trim string params from <template> (e779812)
- use display: block for popup title (27fa048)
Bug Fixes
- publish dist files to GitHub Releases (b205739)
Bug Fixes
- sass: add $swal2-toast-content-margin variable (63d85df)
Bug Fixes
Features
Bug Fixes
- Cannot read property 'stopKeydownPropagation' of undefined fix #2204 (541e8ab)
Bug Fixes
- remove display: none from .swal2-validation-message (#2193) (2e4ce60)
Bug Fixes
- mixin params added later should take precedence over mixin params added earlier (#2176) (9336fa1), closes #2174
Bug Fixes
Bug Fixes
Bug Fixes
- hide the confirm button when inputOptions is a promise (9bacebb)
Bug Fixes
Features
Bug Fixes
- Swal.getIcon() to work in jest environment (#2163) (f9c936e)
Features
Bug Fixes
- apply $swal2-icon-size to success and error icons (#2158) (f367041)
Bug Fixes
- warnings in IE11 for invalid elements in templates (#2157) (3f9cbd6)
Bug Fixes
- only throw warnings for direct children in template (#2156) (a0d19ea)
Features
- add customClass.inputLabel (4d0f89c)
Bug Fixes
- do not animate timer progress bar is timer was unset (fix #2147) (3b165eb)
Bug Fixes
- do not close toast by internal click in case the timer is set (03f5469)
Bug Fixes
- customClass default value: undefined -> empty object (#2137) (39bba2d)
Bug Fixes
- params precedence, user params > template params > mixin params (#2133) (98f44b4)
Bug Fixes
- support empty strings in template attributes (#2130) (8e30ea5)
Bug Fixes
- ignore null values for attributes in template elements (#2128) (bd6ac8d)
Bug Fixes
- template params precedence over user/mixin params (#2126) (159cc04)
Features
- add ability to trigger popups declaratively (#2122) (8c2acde)
Bug Fixes
Features
Bug Fixes
Bug Fixes
- setting inputValue to null when input is select (#2115) (1950fb7)
Bug Fixes
Bug Fixes
- types: getCloseButton(): HTMLButtonElement | null (ecaaf13)
Features
10.9.1 (2020-11-08)
Bug Fixes
10.9.0 (2020-10-30)
Features
10.8.1 (2020-10-22)
Bug Fixes
10.8.0 (2020-10-22)
Features
10.7.0 (2020-10-21)
Features
10.6.1 (2020-10-16)
Bug Fixes
- types: make returnInputValueOnDeny optional (9237bbc)
10.6.0 (2020-10-15)
Bug Fixes
Features
10.5.1 (2020-10-13)
Bug Fixes
- types: inputValue can be number or boolean (#2083) (fa1ac2b)
10.5.0 (2020-10-12)
Features
10.4.0 (2020-10-11)
Features
10.3.7 (2020-10-09)
Bug Fixes
10.3.6 (2020-10-08)
Bug Fixes
- wrap progress steps when they aren't fitting one row (#2074) (fa695bf)
10.3.5 (2020-09-25)
Bug Fixes
10.3.4 (2020-09-25)
Bug Fixes
- types: move fire<T>(options: SweetAlertOptions<T>) to the top (#2068) (20ea88d)
10.3.3 (2020-09-23)
Bug Fixes
- add timeout before calling setScrollingVisibility() (#2066) (c8c28f7)
10.3.2 (2020-09-22)
Bug Fixes
10.3.1 (2020-09-21)
Bug Fixes
- add the opacity workaround and timeout for animating popup (#2060) (4362d2b)
10.3.0 (2020-09-20)
Features
- consistent hook names: willOpen, didOpen, didRender, willClose, didClose, didDestroy (#2057) (6434fb5)
10.2.0 (2020-09-18)
Features
- make background and iconColor params updatable (#2054) (ed384ab)
10.1.0 (2020-09-17)
Features
10.0.2 (2020-09-08)
Bug Fixes
- padding on .swal2-actions for toasts (e2a8f6f)
10.0.1 (2020-09-08)
Bug Fixes
- scss: set $swal2-<...>-button-order vars to null (ef97ba1)
10.0.0 (2020-09-07)
Bug Fixes
Features
- BREAKING CHANGE: Separate loader from the confirm button (#2045) (e049195), closes #2045
BREAKING CHANGES
- Separate loader from the confirm button
9.17.2 (2020-09-03)
Bug Fixes
- types: add missing params to SweetAlertUpdatableParameters (#2042) (7142fad)
9.17.1 (2020-07-26)
Bug Fixes
9.17.0 (2020-07-14)
Features
9.16.0 (2020-07-14)
Features
- styles: add $swal2-header-padding variable (#2001) (11338e6)
9.15.3 (2020-07-09)
Bug Fixes
9.15.2 (2020-06-23)
Bug Fixes
- do not fix scrollbar padding in case body has overflow-y: hidden (#2006) (bc90d3c)
9.15.1 (2020-06-14)
Bug Fixes
- do not use Array.find because it's not supported in IE11 (20526ab)
9.15.0 (2020-06-13)
Features
- add support for objects containing toPromise method (#1998) (0d33441)
9.14.4 (2020-06-09)
Bug Fixes
9.14.3 (2020-06-08)
Bug Fixes
- types: remove the readonly modifier from 'SweetAlertOptions' (#1996) (12fbea0)
9.14.2 (2020-06-06)
Bug Fixes
- add bottom padding to container for iOS Safari (#1993) (1378a78)
9.14.1 (2020-06-06)
Bug Fixes
9.14.0 (2020-05-30)
Features
- input/select: add support to <optgroup> in inputOptions (#1985) (0659d0e), closes #1589
9.13.4 (2020-05-29)
Bug Fixes
- types: add missing prefix to UpdatableParameters (#1984) (26d037e)
9.13.3 (2020-05-29)
Bug Fixes
- types: improve type inference and correct some return types (#1983) (d2e47cd)
9.13.2 (2020-05-28)
Bug Fixes
- types: support for generic types in interfaces and methods (#1981) (146309c)
9.13.1 (2020-05-21)
Bug Fixes
9.13.0 (2020-05-21)
Features
- add isConfirmed and isDismissed to SweetAlertResult (#1976) (8fc85f3)
9.12.0 (2020-05-20)
Features
- make onClose onAfterClose onDestroy updatable (#1974) (91700e7)
9.11.0 (2020-05-19)
Features
Bug Fixes
Bug Fixes
- perform container.scrollTop = 0 asyncronously (#1947) (5674005)
Bug Fixes
Bug Fixes
9.10.9 (2020-04-02)
Bug Fixes
9.10.8 (2020-03-31)
Bug Fixes
- take <head> into account when parsing html with DOMParser (#1934) (92eec64)
9.10.7 (2020-03-28)
Bug Fixes
9.10.6 (2020-03-24)
Bug Fixes
9.10.5 (2020-03-22)
Bug Fixes
9.10.4 (2020-03-21)
Bug Fixes
- a11y: fix missing outline in Chrome (7371fea)
9.10.3 (2020-03-19)
Bug Fixes
9.10.2 (2020-03-16)
Bug Fixes
9.10.1 (2020-03-15)
Bug Fixes
- setup timer after the popup is opened (#1917) (7e24824)
- styles: add border-bottom-radius to timer-progress-bar (32ff38f)
9.10.0 (2020-03-09)
Features
9.9.0 (2020-03-07)
Features
- scss: add $swal2-close-button-align-items and $swal2-close-button-justify-content vars (fdf12c1)
9.8.2 (2020-02-22)
Bug Fixes
9.8.1 (2020-02-21)
Bug Fixes
- do not start animating timerProgressBar if timer is stopped (#1898) (c4546bc)
9.8.0 (2020-02-21)
Features
- api: expose the getTimerProgressBar method (#1897) (e48ab48)
9.7.2 (2020-02-07)
Bug Fixes
9.7.1 (2020-01-28)
Bug Fixes
- polish success icon for perfect rendering in Safari (fix #1876) (fb9fe38)
9.7.0 (2020-01-22)
Features
9.6.1 (2020-01-20)
Bug Fixes
9.6.0 (2020-01-15)
Features
- make allowOutsideClick and allowEscapeKey updatable (#1867) (810d291)
9.5.4 (2019-12-27)
Bug Fixes
9.5.3 (2019-12-10)
Bug Fixes
- fire swalOpenAnimationFinished() only when popup's animation is finished (#1845) (ebcb2b8)
9.5.2 (2019-12-09)
Bug Fixes
- do not re-add popup's showClass (7922360)
9.5.1 (2019-12-09)
Bug Fixes
- make icon classes op popup different from classes on icons (#1844) (1ae23fc)
9.5.0 (2019-12-09)
Features
9.4.3 (2019-12-03)
Bug Fixes
- types: export input, grow and position options types (#1837) (5e1cf62)
9.4.2 (2019-12-03)
Bug Fixes
- progress steps and getQueueStep() API method (#1836) (0f9fdde)
9.4.1 (2019-12-01)
Bug Fixes
9.4.0 (2019-11-23)
Features
9.3.17 (2019-11-21)
Bug Fixes
- do not fail when hideLoading() without popup (2ada37c)
9.3.16 (2019-11-19)
Bug Fixes
9.3.15 (2019-11-19)
Bug Fixes
- hasClass multiple classes support for IE11 (bd4eab5)
- revert "fix: add showClass asyncronously to popup (IE11)" (6cb66cc)
9.3.14 (2019-11-19)
Bug Fixes
9.3.13 (2019-11-18)
Bug Fixes
- add showClass asyncronously to popup (IE11) (8aed623)
9.3.12 (2019-11-18)
Bug Fixes
- types: simplify Swal.fire(title, message, icon) back (#1823) (0cc40ff)
9.3.11 (2019-11-15)
Bug Fixes
- use $swal2-background in $swal2-button-focus-box-shadow (bef3d86)
- use $swal2-background in $swal2-toast-button-focus-box-shadow (2da88c2)
9.3.10 (2019-11-15)
Bug Fixes
- ci: fix semantic-release step (fcf57b9)
- ci: use yarn for bundlewatch (effa758)
9.3.9 (2019-11-15)
Bug Fixes
9.3.8 (2019-11-15)
Bug Fixes
9.3.7 (2019-11-15)
Bug Fixes
- add $swal2-toast-background (8ac68f1)
- use $swal2-background for range, radio, checkbox background (6af549b)
9.3.6 (2019-11-14)
Bug Fixes
9.3.5 (2019-11-13)
Bug Fixes
- use inline-block for confirm button in showLoading() (#1810) (c876d13)
9.3.4 (2019-11-12)
Bug Fixes
- "funding" field can't be a string even though docs says so (604f3d2)
9.3.3 (2019-11-12)
Bug Fixes
- add "funding" field to package.json (04236fb)
9.3.2 (2019-11-12)
Bug Fixes
- reset timer progress bar on Swal.increaseTimer() (#1807) (604feb8)
9.3.1 (2019-11-11)
Bug Fixes
9.3.0 (2019-11-10)
Features
9.2.0 (2019-11-09)
Features
- support HTMLElement and JQuery in shorthand (#1804) (9318f79)
9.1.6 (2019-11-08)
Bug Fixes
- types: add missing version type (10c4136)
9.1.5 (2019-11-05)
Bug Fixes
- .swal2-icon-content for toasts (941b900)
9.1.4 (2019-11-05)
Bug Fixes
9.1.3 (2019-11-05)
Bug Fixes
- remove default backdrop background (5027076)
9.1.2 (2019-11-05)
Bug Fixes
- default backdrop background (501cab3)
9.1.1 (2019-11-05)
Bug Fixes
- apply $swal2-backdrop to background instead of background-color (8c27e1a)
9.1.0 (2019-11-05)
Features
- scss: add $swal2-icon-animations (897b20b)
9.0.2 (2019-11-04)
Bug Fixes
- types: add missing iconHtml (6f7f316)
9.0.1 (2019-11-04)
Bug Fixes
- icon when passing it as third string argument (6ad3aa5)
9.0.0 (2019-11-04)
- BREAKING CHANGE: remove .swal2-arabic-question-mark, add iconHtml param (f73dcba), closes #1672 #1532
- BREAKING CHANGE: rename 'type' param to 'icon' (fcaabee)
- BREAKING CHANGE: Stop disabling the Cancel button when in showLoading() (3668055), closes #1501
- BREAKING CHANGE: remove setProgressSteps(), showProgressSteps(), hideProgressSteps() (53d9106), closes #1507 #1673
- BREAKING CHANGE: remove disableConfirmButton() and enableConfirmButton() (8ebbcaf)
- BREAKING CHANGE: remove inputClass (ee7e392)
- BREAKING CHANGE: remove imageClass (2594115)
- BREAKING CHANGE: remove confirmButtonClass and cancelButtonClass (5276cfd)
- BREAKING CHANGE: remove customContainerClass (c04782c)
- BREAKING CHANGE: remove .swal2-shown from .swal2-container, add 'backdrop' to showClass and hideClass (c3cbb74)
- BREAKING CHANGE: replace animation with showClass and hideClass params (f2153cb), closes #1193 #654 #650 #761
Features
- api: add 'icon' to showClass and hideClass (7c4b324)
BREAKING CHANGES
- remove .swal2-arabic-question-mark, add iconHtml param
- rename 'type' param to 'icon'
- Stop disabling the Cancel button when in showLoading()
- remove setProgressSteps(), showProgressSteps(), hideProgressSteps()
- remove disableConfirmButton() and enableConfirmButton()
- remove inputClass
- remove imageClass
- remove confirmButtonClass and cancelButtonClass
- remove customContainerClass
- remove .swal2-shown from .swal2-container, add 'backdrop' to showClass and hideClass
- replace animation with showClass and hideClass params
8.19.0 (2019-11-02)
Features
8.18.7 (2019-11-01)
Bug Fixes
8.18.6 (2019-10-23)
Bug Fixes
8.18.5 (2019-10-18)
Bug Fixes
- throw warning when calling update() for closing popup (#1779) (69d737e)
8.18.4 (2019-10-16)
Bug Fixes
- types: do not use SweetAlertArrayOptions in fire() definition (#1775) (893eee7)
8.18.3 (2019-10-09)
Bug Fixes
8.18.2 (2019-10-09)
Bug Fixes
- types: getInput() returns HTMLInputElement (#1766) (c9916da)
8.18.1 (2019-10-07)
Bug Fixes
- get file result for multiple file type input (#1759) (cf00614)
8.18.0 (2019-09-30)
Features
- scss: add $swal2-close-button-font-family and $swal2-button-focus-background-color variables (#1753) (bc1da42)
8.17.6 (2019-09-19)
Bug Fixes
- throw warning about unexpected type of customClass (#1743) (102bd03)
8.17.5 (2019-09-19)
Bug Fixes
8.17.4 (2019-09-17)
Bug Fixes
- types: title and footer can be of HTMLElement and JQuery types (b00065f)
8.17.3 (2019-09-16)
Bug Fixes
8.17.2 (2019-09-16)
Bug Fixes
- split SCSS into smaller pieces for easier theming (#1734) (c21d615)
8.17.1 (2019-08-31)
Bug Fixes
- types: first element of SweetAlertArrayOptions is also optional (b30baf8)
- types: more precise SweetAlertArrayOptions type and minor syntax improvement (e0225e7)
8.17.0 (2019-08-31)
Features
8.16.4 (2019-08-30)
Bug Fixes
8.16.3 (2019-08-22)
Bug Fixes
8.16.2 (2019-08-18)
Bug Fixes
- types: Swal.close() now takes the value to resolve with, not a callback (8def219)
8.16.1 (2019-08-17)
Bug Fixes
8.16.0 (2019-08-16)
Features
- sass: add variables for .swal2-content (c50185a)
8.15.3 (2019-08-09)
Bug Fixes
- expand/shrink popup accordingly to textarea width (#1702) (93f59dc)
8.15.2 (2019-08-05)
Bug Fixes
- apply buttons classes even if both of them are hidden (#1697) (a90f139)
8.15.1 (2019-08-03)
Bug Fixes
- types: add missing getPopup() definition (f4374a7)
8.15.0 (2019-08-02)
Features
- sass: add variables for .swal2-actions (3fc4c0c)
8.14.1 (2019-08-02)
Bug Fixes
- types: support sweetalert2 modules from dist and src folders (#1693) (ca1cbe9)
8.14.0 (2019-07-18)
Features
8.13.6 (2019-07-15)
Bug Fixes
8.13.5 (2019-07-14)
Bug Fixes
8.13.4 (2019-07-09)
Bug Fixes
- perform removeBodyClasses() as the very last step (#1651) (624ccc9)
8.13.3 (2019-07-08)
Bug Fixes
- Move
globalState
variables delete statements in closing callback (#1647) (e5ded53)
8.13.2 (2019-07-08)
Bug Fixes
- change closing sequence to detect a closing swal (#1645) (9a8e802)
8.13.1 (2019-07-04)
Bug Fixes
- inputValue as a promise (reject case) (544c0c1)
8.13.0 (2019-06-21)
Features
8.12.2 (2019-06-20)
Bug Fixes
8.12.1 (2019-06-10)
Bug Fixes
- add z-index to the close button to prevent its overlapping by the content (#1618) (ad07176)
8.12.0 (2019-06-08)
Features
- dist: use this instead of window to support Firefox extensions (#1615) (9996bcf)
8.11.7 (2019-05-31)
Bug Fixes
8.11.6 (2019-05-25)
Bug Fixes
- run swalCloseEventFinished only for animations on popup (#1601) (78920dc)
8.11.5 (2019-05-23)
Bug Fixes
- revert 'module' field, add 'browser' field to package.json (#1599) (4fe56fb)
8.11.4 (2019-05-22)
Bug Fixes
8.11.3 (2019-05-22)
Bug Fixes
- iOS: disable body scroll when modal is shown (#1596) (409be8f)
8.11.2 (2019-05-22)
Bug Fixes
- aviod double-executing of swalCloseEventFinished (3874ba9)
8.11.1 (2019-05-16)
Bug Fixes
- sass: Add !default to swal2-actions-justify-content (#1593) (5062187)
8.11.0 (2019-05-16)
Bug Fixes
- do not access innerParams in close() if there's no popup (86e16f9)
Features
- sass: add $swal2-actions-justify-content variable to control buttons justification (#1592) (c0fcab8)
8.10.7 (2019-05-11)
Bug Fixes
- pass isToast to removePopupAndResetState() (#1585) (53f1047)
8.10.6 (2019-05-10)
Bug Fixes
- sass: add $swal2-close-button-hover-background (c209d1b)
- styling: revert opacity on toast hide animation (1bb5a56)
8.10.5 (2019-05-10)
Bug Fixes
- remove opacity from toast show/hide animations (#1584) (469bcc5)
8.10.4 (2019-05-09)
Bug Fixes
8.10.3 (2019-05-09)
Bug Fixes
- improve the awareness of users to support awesomeness (982a612)
8.10.2 (2019-05-07)
Bug Fixes
- double-click on backdrop should close popup once (#1579) (78d2d2a)
- unset props after closing a popup so GC will dispose them (#1570) (81c0a0d)
8.10.1 (2019-05-06)
Bug Fixes
8.10.0 (2019-05-03)
Features
- sass: add variables for toast, input and backdrop (#1571) (feab788)
8.9.0 (2019-04-28)
Features
8.8.7 (2019-04-21)
Bug Fixes
- revert "chore(tools): git hooks for running linters before commit (#1537)" (#1559) (d22b234)
8.8.6 (2019-04-21)
Bug Fixes
- force extensions for import statements (fa94cec)
8.8.5 (2019-04-13)
Bug Fixes
8.8.4 (2019-04-13)
Bug Fixes
8.8.3 (2019-04-10)
Bug Fixes
- d.ts: add missing HTMLElement to target param (2ea9d80)
8.8.2 (2019-04-10)
Bug Fixes
8.8.1 (2019-04-02)
Bug Fixes
- do not re-render icon if isn't provided or the same as before (#1518) (f7613af)
8.8.0 (2019-03-31)
Features
- allow image size to be set in any CSS units (#1510) (9d74299)
8.7.1 (2019-03-30)
Bug Fixes
8.7.0 (2019-03-26)
Features
8.6.0 (2019-03-24)
Features
- sass-variables: add $swal2-container-padding (#1463) (d448794)
8.5.0 (2019-03-15)
Features
8.4.0 (2019-03-15)
Features
- add customClass.icon, simplify icons markup (ba4a485)
- add Swal.getIcon() (acc42a0)
8.3.0 (2019-03-11)
Bug Fixes
- remove excessive isVisible check for buttons, support Jest testing enviroment (#1439) (42ef213)
Features
- api: allow adding custom classes to header, content, footer, etc. (#1441) (4381bae)
8.2.6 (2019-02-26)
Bug Fixes
8.2.5 (2019-02-26)
Bug Fixes
- make close button friendly for non-UTF encodings × -> × (#1431) (b2006c3)
8.2.4 (2019-02-23)
Bug Fixes
8.2.3 (2019-02-21)
Bug Fixes
8.2.2 (2019-02-20)
Bug Fixes
- crash if swal2 action buttons classes are applied to elements in html prop (#1420) (a21ef6b)
8.2.1 (2019-02-18)
Bug Fixes
8.2.0 (2019-02-17)
Features
8.1.0 (2019-02-17)
Features
- add new SCSS variables for input and progress steps (#1411) (5be77b6)
8.0.7 (2019-02-12)
Bug Fixes
- restore correct padding when scrollbar is present (#1410) (f73f1d7)
8.0.6 (2019-02-05)
Bug Fixes
8.0.5 (2019-02-02)
Bug Fixes
- build-dist: git add src/SweetAlert.js, connected to #1401 (d024119)
8.0.4 (2019-02-02)
Bug Fixes
8.0.3 (2019-01-29)
Bug Fixes
- api: showLoading() should open a new popup (#1394) (38823ff)
8.0.2 (2019-01-28)
Bug Fixes
8.0.1 (2019-01-19)
Bug Fixes
- use .js in imports to support ES modules (0e3e89e)
8.0.0 (2019-01-19)
Detailed summury on the release page.
- BREAKING CHANGE: Change the main call method: swal() -> Swal.fire() (#1438)
- BREAKING CHANGE: remove getButtonsWrapper() (c93b5e3)
- BREAKING CHANGE: close() as instance method (#1379) (2519c17), closes #1379
- BREAKING CHANGE: replace deprecated
jsnext:main
with module
in package.json (#1378) (1785905), closes #1378
- BREAKING CHANGE: drop Bower support (#1377) (cb4ef28), closes #1377
- BREAKING CHANGE: remove withNoNewKeyword enhancer (#1372) (f581352), closes #1372
- BREAKING CHANGE: remove swal.noop() (40d6fbb)
- BREAKING CHANGE: rename $swal2-validationerror -> $swal2-validation-message (#1370) (9d1b13b), closes #1370
- BREAKING CHANGE: inputValidator and preConfirm should always resolve (#1383) (fc70cf9), closes #1383
- BREAKING CHANGE: remove setDefault and resetDefaults (#1365) (97c1d7c), closes #1365
- BREAKING CHANGE: remove extraParams (#1363) (5125491), closes #1363
- BREAKING CHANGE: remove showValidationError and resetValidationError (#1367) (50a1eff), closes #1367
- BREAKING CHANGE: remove useRejections and expectRejections (#1362) (f050caf), closes #1362
- BREAKING CHANGE: dismissReason: overlay -> backdrop (#1360) (d05bf33), closes #1360
- BREAKING CHANGE: drop Android 4.4 support (#1359) (c0eddf3), closes #1359
Features
BREAKING CHANGES
- swal() -> Swal.fire() (#1438)
- close() as instance method (#1379)
- drop Android 4.4 support (#1359)
- replace deprecated
jsnext:main
with module
in package.json (#1378)
- drop Bower support (#1377)
- remove withNoNewKeyword enhancer (#1372)
- remove swal.noop()
- rename $swal2-validationerror -> $swal2-validation-message (#1370)
- inputValidator and preConfirm should always resolve (#1383)
- remove setDefault and resetDefaults (#1365)
- remove extraParams (#1363)
- remove showValidationError and resetValidationError (#1367)
- remove useRejections and expectRejections (#1362)
- dismissReason: overlay -> backdrop (#1360)
- remove getButtonsWrapper()
7.33.1 (2018-12-22)
Bug Fixes
7.33.0 (2018-12-22)
Features
- API: add customContainerClass for specifying custom container class (#1347) (c5ef1aa)
7.32.4 (2018-12-15)
Bug Fixes
7.32.3 (2018-12-15)
Bug Fixes
- Remove excessive args check (#1344)
7.32.2 (2018-12-09)
Bug Fixes
- do not throw warnings when inputValue is a promise (#1333) (3607b72)
7.32.1 (2018-12-09)
Bug Fixes
7.32.0 (2018-12-08)
Features
7.31.1 (2018-12-07)
Bug Fixes
- check this.running in timer methods (#1327) (418b8d3)
- support HTMLElement for setting title/html/footer (#1328) (6f35e48)
7.31.0 (2018-12-06)
Features
- api: add .resumeTimer(), .toggleTimer(), .increaseTimer() (#1325) (77649ee)
7.30.0 (2018-12-05)
Features
7.29.2 (2018-11-26)
Bug Fixes
- validators: support long top level domain names in URL validator (#1307) (3263217)
7.29.1 (2018-11-18)
Bug Fixes
7.29.0 (2018-11-08)
Features
Bug Fixes
Bug Fixes
Bug Fixes
- build: use
.min.css
for .all.js
to prevent the string concatenation (#1268) (f18b4bc)
Bug Fixes
- sarafi: add preventDefault() in esc key handling (#1264) (8a5c40f)
7.28.9 (2018-10-24)
Bug Fixes
- typings: validationMesage typo (3e9dbd5)
7.28.8 (2018-10-21)
Bug Fixes
- add resize handlers for IE11 vertical alignment fix (ba1d4cf)
7.28.7 (2018-10-18)
Bug Fixes
- animation: detect animation before initialization (#1255) (7e9cf38)
7.28.6 (2018-10-18)
Bug Fixes
- styles: body 'overflow-y: hidden' -> 'overflow: hidden' (#1254) (1b3d505)
7.28.5 (2018-10-12)
Bug Fixes
7.28.4 (2018-09-28)
Bug Fixes
7.28.3 (2018-09-28)
Bug Fixes
- api: call onAfterClose after previousActiveElement is focused (#1233) (68c83ed)
7.28.2 (2018-09-24)
Bug Fixes
- styles: revert breaking changes in SASS variables (#1229) (7d9f9d1)
7.28.1 (2018-09-23)
Bug Fixes
7.28.0 (2018-09-23)
Features
- getters: expose .getValidationMessage() (3780165)
- params: add validationMessage (73e0413)
- params: deprecate extraParams (1224200)
7.27.0 (2018-09-22)
Features
Bug Fixes
Bug Fixes
- release: purge jsdelivr before switching to master (#1215) (4b5c55d)
Bug Fixes
- release: purge jsdelivr cache after releasing a new version (#1214) (6229c1f)
Bug Fixes
- release: remove --unshallow from fetch (8f18115)
Bug Fixes
- release: fix cherry-picking the latest commit to master (d2da2e1)
Bug Fixes
- clear changelog and trigger new release (b652257)