v2.0.0: .NET 8 / .NET 10, no jQuery, AJAX + htmx, CSP-friendly - #24
Merged
Merged
Conversation
Update package metadata (Company, PackageProjectUrl, RepositoryUrl) and README demo links to point at github.com/codewithmukesh/ToastNotification. Package ID stays AspNetCoreHero.ToastNotification.
Library - Target net8.0 and net10.0; drop netcoreapp3.1 and net5.0 - Replace Newtonsoft.Json with System.Text.Json - No jQuery; client scripts boot from a JSON data block (no inline JS) - Automatic toasts for fetch, XHR, jQuery and htmx; Toastify gets AJAX support - Sticky toasts (duration 0), per-type styles, custom classes, optional Font Awesome, RTL, full-width positions, accessible close buttons - Optional CSP nonce on both view components - AddNotyf/AddToastify/UseNotyf/UseToastify in the standard namespaces - Fix script-context breakout and quote handling in messages (#4) - Fix shared Toastify config across requests, ignored HasRippleEffect, Bootstrap-only contrast classes, and the hard-coded icon path - Audit fixes: ignore cross-origin toast headers, keep toasts across AJAX/htmx redirects, survive hx-boost, cap header size - SourceLink, snupkg, nullable annotations, package validation Repo - src/ samples/ tests/ layout, .slnx, Central Package Management - Unit, integration, public API and Playwright browser tests (210) - CI and release workflows (NuGet trusted publishing) - Samples rebuilt as the docs site: playground, compare, setup wizard - New README, CHANGELOG and LICENSE
- samples/ToastNotification.Docs replaces the Notyf (MVC) and Toastify (Razor Pages) samples, which were ~95% duplicated - One app shows all three workloads for real: MVC controllers, a Razor Page (/checkout) and Minimal API endpoints - Docs section gets a Notyf / Toastify toggle that switches snippets, settings tables, forms, fetch/jQuery/htmx demos and "Try" buttons - Demo endpoints and form posts take a library parameter - Nav links work from every page; plain Kestrel launch profile - README: "Docs App" section replaces "Samples" - Tests: pass TestContext cancellation token (xUnit1051)
- Restyle on the codewithmukesh.com design tokens: warm neutrals, brand purple, flat surfaces with borders, Outfit / Figtree / JetBrains Mono; light by default with a dark toggle - Rewrite page copy in first person, drop eyebrow labels and slogans, replace the icon feature grid with a plain "What you get" list - Full-width section dividers with alternating shaded bands - Fix text overflow and layout issues found by a 320-1920px audit: wrapping segmented controls, collapsible mobile nav, shrinkable grid columns, stacked-card tables on phones, ellipsis for long file names
This file contains hidden or 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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 first release in five years. Rebuilt for .NET 8 and .NET 10, working through every open issue.
Highlights
fetch, XHR, jQuery and htmx, on success and error responses, including requests that redirectscript-src 'self') works. Optional nonce.0duration), per-type colours / classes / icons, optional Font Awesome, RTL, full-width positions, accessible close buttonsusinglinesIssues
Fixes #2, #3, #4, #5, #7, #8, #9, #10, #11, #13, #14, #15, #16, #17, #22, #23. Supersedes #12. #1 (IE11) is not supported.
Tests
210 tests: unit + integration on .NET 8 and .NET 10, a public API snapshot, and Playwright browser tests (redirects, fetch, XHR, jQuery, htmx, hx-boost, sticky toasts, strict CSP, no-jQuery pages, cross-origin header injection).
The packed
.nupkgwas also installed into fresh .NET 8 MVC and .NET 10 Razor Pages apps, run in Development and published to Production.Repo
src/samples/tests/layout,.slnx, Central Package Managementsamples/ToastNotification.Docs(playground, Notyf vs Toastify, setup wizard)Breaking changes are listed in the CHANGELOG.