-
4.0.0-alpha6 Pre-Release
released this
2026-01-07 11:43:27 +00:00 | 0 commits to htmx-v4 since this releaseThis is the first v4 alpha release of these libraries. See the README in each package for more details. You can also review the v4 changes and v2 to v4 migration guide on the htmx v4 project site.
Constructs which have been removed from htmx v4 have been marked as obsolete in these libraries. These will be completely removed at the first production v4 release. The only change that will break a build is with the
_hxDisableattribute; it is now used to identify elements that should be disabled when a request is in flight (formerly_hxDisabledElt). Otherwise, the build warnings should guide you in migrating your code to match the new library.Downloads
-
2.0.8 Stable
released this
2025-12-28 17:09:43 +00:00 | 0 commits to main since this releasePackage-Provided Script
This package now contains the htmx library script as a static web asset, which means that projects can serve htmx as a local script, rather than relying on a CDN.
For users of
Giraffe.ViewEngine.Htmx:Script.localwill create anXmlNodeto load the package-provided script.Script.minifiedandScript.unminifiedare now deprecated; these will remain in v2, but will be removed in the v4 packages. The new names for those areScript.cdnMinifiedandScript.cdnUnminified.
For users of
Giraffe.HtmxwithoutGiraffe.ViewEngine.Htmx:HtmxScript.localis anHtmlStringwith ascripttag to load the package-provided script. It can be written to the output, added in a Razor view, etc.
In either case, there may be slight changes needed for these static assets to be served.
- They are automatically available when the application is run in Development mode, and are included in published output.
- If running locally, calling
builder.UseStaticWebAssets()will enable them. - Consider adding
app.MapStaticAssets()(new in .NET 9) in the place ofapp.UseStaticFiles(). The former will process assets at build time and creates files necessary for efficient serving of these files. For more info, see Microsoft's static file documentation.
Using the local script can bring many benefits. One of HTTP 3's improvements was sending many files over the same connection, eliminating connection overhead. It also reduces dependence on an external site; CDNs can have issues, but if they go down, your site may not work either. Removing the CDN from a Content Security Policy (CSP) header also reduces the attack surface on your application.
Other Changes
- This package now directly supports .NET 10.
- The CDN links pull v2.0.8.
Downloads
-
2.0.6 Stable
released this
2025-07-03 00:23:01 +00:00 | 1 commits to main since this release- There is now full XML documentation bundled with the library - and, where applicable, this documentation also contains links to the official htmx docs. Your preferred IDE should be more help with this information in the package.
- Prior releases had missed the
hx-syncattribute; this adds an_hxSyncattribute helper, as well as anHxSyncmodule with valid values for that attribute. - Aligning with the htmx project's shift, the CDN links generated by the
Htmx.Scriptmodule (in theViewEnginepackage) now load the files from jsdelivr instead of unpkg.
POSSIBLE BREAKING CHANGE! If you use that function on a site with aContent-Security-Policyheader defined, you will need to addcdn.jsdelivr.netas an authorized script source domain; if htmx is the only reason you hadunpkg.com, you can remove it. - As .NET 6 is now EOL, the minimum .NET version required for these packages is .NET 8.
Downloads
-
2.0.4 Stable
released this
2024-12-13 22:04:17 +00:00 | 2 commits to main since this releaseThis release updates the
Giraffe.ViewEngine.Htmx.Scriptmodule functions to load v2.0.4. No header or attribute changes were a part of this release.Additionally, this version is the first to include explicit .NET 9 support.
Downloads
-
2.0.2 Stable
released this
2024-08-13 01:41:30 +00:00 | 5 commits to main since this releaseThis release updates the
Giraffe.ViewEngine.Htmx.Scriptmodule functions to load v2.0.2. No header or attribute changes were a part of this release, although this is a significant bug fix release for htmx.Downloads
-
2.0.0 Stable
released this
2024-06-18 23:45:22 +00:00 | 7 commits to main since this releaseThis is the first production release supporting htmx 2.0. See the release announcement from the htmx team for changes in its API.
For this library (the Giraffe integration), there were no new server headers in htmx 2.0, so
Giraffe.Htmxis a version/dependency bump.Giraffe.ViewEngine.Htmxdrops support forhx-sseandhx-ws, both attributes dropped from the upstream project (though thesse-swapandsse-connectattributes, contributed in beta4, still exist). As with each release, theScriptmodule has been updated to pull the specified version from unpkg.com.Finally, both libraries dropped explicit support for the now-End-of-Life .NET 7. (The .NET 6 packages should work if you're not ready to move your entire project to .NET 8 yet.)
Downloads
-
2.0.0-beta4 Pre-Release
released this
2024-05-23 23:32:40 +00:00 | 9 commits to main since this release- Add SSE attributes for Giraffe View Engine (thanks, Bjorn-Strom!).
- Update
Scripttags to load htmx 2.0.0-beta4
Downloads
-
2.0.0-beta3 Pre-Release
released this
2024-04-18 02:40:21 +00:00 | 12 commits to main since this releaseThis updates the
Scriptmodule functions to load htmx v2.0.0-beta3. Be sure to check out the caveats in the package README files.The htmx project's current plan is for this to be the final pre-release.
Downloads