• 4.0.0-alpha6 Pre-Release

    danieljsummers released this 2026-01-07 11:43:27 +00:00 | 0 commits to htmx-v4 since this release

    This 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 _hxDisable attribute; 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
  • v2.0.8 121eb95d87

    2.0.8 Stable

    danieljsummers released this 2025-12-28 17:09:43 +00:00 | 0 commits to main since this release

    Package-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.local will create an XmlNode to load the package-provided script.
    • Script.minified and Script.unminified are now deprecated; these will remain in v2, but will be removed in the v4 packages. The new names for those are Script.cdnMinified and Script.cdnUnminified.

    For users of Giraffe.Htmx without Giraffe.ViewEngine.Htmx:

    • HtmxScript.local is an HtmlString with a script tag 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 of app.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
  • v2.0.6 6b7458070b

    2.0.6 Stable

    danieljsummers 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-sync attribute; this adds an _hxSync attribute helper, as well as an HxSync module with valid values for that attribute.
    • Aligning with the htmx project's shift, the CDN links generated by the Htmx.Script module (in the ViewEngine package) now load the files from jsdelivr instead of unpkg.
      POSSIBLE BREAKING CHANGE! If you use that function on a site with a Content-Security-Policy header defined, you will need to add cdn.jsdelivr.net as an authorized script source domain; if htmx is the only reason you had unpkg.com, you can remove it.
    • As .NET 6 is now EOL, the minimum .NET version required for these packages is .NET 8.
    Downloads
  • v2.0.4 10c31d77b5

    2.0.4 Stable

    danieljsummers released this 2024-12-13 22:04:17 +00:00 | 2 commits to main since this release

    This release updates the Giraffe.ViewEngine.Htmx.Script module 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
  • v2.0.3 5626031593

    2.0.3 Stable

    danieljsummers released this 2024-10-18 13:37:51 +00:00 | 4 commits to main since this release

    This release updates the Giraffe.ViewEngine.Htmx.Script module functions to load v2.0.3. No header or attribute changes were a part of this release.

    Downloads
  • v2.0.2 f0de18845f

    2.0.2 Stable

    danieljsummers released this 2024-08-13 01:41:30 +00:00 | 5 commits to main since this release

    This release updates the Giraffe.ViewEngine.Htmx.Script module 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
  • v2.0.1 961307fd99

    2.0.1 Stable

    danieljsummers released this 2024-07-29 22:11:51 +00:00 | 6 commits to main since this release

    This release updates the Giraffe.ViewEngine.Htmx.Script module functions to load v2.0.1. No header or attribute changes were a part of this release.

    Downloads
  • v2.0.0 a2960a79c6

    2.0.0 Stable

    danieljsummers released this 2024-06-18 23:45:22 +00:00 | 7 commits to main since this release

    This 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.Htmx is a version/dependency bump. Giraffe.ViewEngine.Htmx drops support for hx-sse and hx-ws, both attributes dropped from the upstream project (though the sse-swap and sse-connect attributes, contributed in beta4, still exist). As with each release, the Script module 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

    danieljsummers 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 Script tags to load htmx 2.0.0-beta4
    Downloads
  • 2.0.0-beta3 Pre-Release

    danieljsummers released this 2024-04-18 02:40:21 +00:00 | 12 commits to main since this release

    This updates the Script module 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