v5.0.0
v5.0.0
Breaking Changes
🔴 Breaking change # 1 - IE11 and Legacy Edge support is DISCONTINUED
If you need to support these old browsers in your project, please use the previous major release v4.5.0
🔴 Breaking change # 2 - .QueueAsync()
, .GetQueueStepAsync()
, .InsertQueueStepAsync()
, .DeleteQueueStepAsync()
methods are REMOVED
async/await
can perfectly replace all use-cases of .QueueAsync()
.
💅 Styling Changes
sweetalert2@11
introduced a variety of styling changes.
- Update button color
- Switch to CSS Grid Layout
- Refreshed look for toasts
- Loaded in toasts moved to the left side (instead of the icon)
Examples and explainations for these changes can be found on the sweetalert2 v11.0.0 release notes.
🎉 New features
Default Settings
You can now specify global defaults during Startup for your SweetAlertOptions that apply to all your SweetAlert2 dialogs.
services.AddSweetAlert2(options => {
options.DefaultOptions = new SweetAlertOptions {
HeightAuto = false
};
});
View the README.md for more information
Dependencies
- bump
sweetalert2
to11.0.17
- bump
@sweetalert2/themes
to5.0.0
Multi-targetting enabled
Blazor dependencies are now dependant on which version of .NET is being used in the application.
.NETCoreApp 3.1
Microsoft.AspNetCore.Components
(>=3.1.0
&& <5.0.0
)Microsoft.AspNetCore.Components.Web
(>=3.1.0
&& <5.0.0
)
.NETStandard 2.0
Microsoft.AspNetCore.Components
(>=3.1.0
&& <5.0.0
)Microsoft.AspNetCore.Components.Web
(>=3.1.0
&& <5.0.0
)
net5.0
Microsoft.AspNetCore.Components
(>=5.0.0
&& <6.0.0
)Microsoft.AspNetCore.Components.Web
(>=5.0.0
&& <6.0.0
)