Skip to content

Commit

Permalink
Update to htmx 1.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljsummers committed Aug 25, 2023
1 parent 5aa9408 commit 69a4034
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This package contains common code shared between [`Giraffe.Htmx`](https://www.nuget.org/packages/Giraffe.Htmx) and [`Giraffe.ViewEngine.Htmx`](https://www.nuget.org/packages/Giraffe.ViewEngine.Htmx), and will be automatically installed when you install either one.

**htmx version: 1.9.4**
**htmx version: 1.9.5**
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<VersionPrefix>1.9.4</VersionPrefix>
<PackageReleaseNotes>Update script tags to pull htmx 1.9.4</PackageReleaseNotes>
<VersionPrefix>1.9.5</VersionPrefix>
<PackageReleaseNotes>Update script tags to pull htmx 1.9.5</PackageReleaseNotes>
<Authors>danieljsummers</Authors>
<Company>Bit Badger Solutions</Company>
<PackageProjectUrl>https://github.com/bit-badger/Giraffe.Htmx</PackageProjectUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/Htmx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This package enables server-side support for [htmx](https://htmx.org) within [Giraffe](https://giraffe.wiki) and ASP.NET's `HttpContext`.

**htmx version: 1.9.4**
**htmx version: 1.9.5**

### Setup

Expand Down
4 changes: 2 additions & 2 deletions src/Tests/ViewEngine.fs
Original file line number Diff line number Diff line change
Expand Up @@ -422,14 +422,14 @@ let script =
let html = RenderView.AsString.htmlNode Script.minified
Expect.equal
html
"""<script src="https://unpkg.com/[email protected].4" integrity="sha384-zUfuhFKKZCbHTY6aRR46gxiqszMk5tcHjsVFxnUo8VMus4kHGVdIYVbOYYNlKmHV" crossorigin="anonymous"></script>"""
"""<script src="https://unpkg.com/[email protected].5" integrity="sha384-xcuj3WpfgjlKF+FXhSQFQ0ZNr39ln+hwjN3npfM9VBnUskLolQAcN80McRIVOPuO" crossorigin="anonymous"></script>"""
"Minified script tag is incorrect"
}
test "unminified succeeds" {
let html = RenderView.AsString.htmlNode Script.unminified
Expect.equal
html
"""<script src="https://unpkg.com/[email protected].4/dist/htmx.js" integrity="sha384-2caa3Jf+wayjuHAc9J3mR3xz191GzmIDNYVBsE8LetbkJn4wjLrO6Ht9rRMuEjIo" crossorigin="anonymous"></script>"""
"""<script src="https://unpkg.com/[email protected].5/dist/htmx.js" integrity="sha384-7PsmARhgPhXF9ahyuTafz8AWfM9ZfXE9qZJeagUhWAYK632LixPUVjGRZnHP9ylN" crossorigin="anonymous"></script>"""
"Unminified script tag is incorrect"
}
]
Expand Down
8 changes: 4 additions & 4 deletions src/ViewEngine.Htmx/Htmx.fs
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,14 @@ module Script =

/// Script tag to load the minified version from unpkg.com
let minified =
script [ _src "https://unpkg.com/[email protected].4"
_integrity "sha384-zUfuhFKKZCbHTY6aRR46gxiqszMk5tcHjsVFxnUo8VMus4kHGVdIYVbOYYNlKmHV"
script [ _src "https://unpkg.com/[email protected].5"
_integrity "sha384-xcuj3WpfgjlKF+FXhSQFQ0ZNr39ln+hwjN3npfM9VBnUskLolQAcN80McRIVOPuO"
_crossorigin "anonymous" ] []

/// Script tag to load the unminified version from unpkg.com
let unminified =
script [ _src "https://unpkg.com/[email protected].4/dist/htmx.js"
_integrity "sha384-2caa3Jf+wayjuHAc9J3mR3xz191GzmIDNYVBsE8LetbkJn4wjLrO6Ht9rRMuEjIo"
script [ _src "https://unpkg.com/[email protected].5/dist/htmx.js"
_integrity "sha384-7PsmARhgPhXF9ahyuTafz8AWfM9ZfXE9qZJeagUhWAYK632LixPUVjGRZnHP9ylN"
_crossorigin "anonymous" ] []


Expand Down
2 changes: 1 addition & 1 deletion src/ViewEngine.Htmx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This package enables [htmx](https://htmx.org) support within the [Giraffe](https://giraffe.wiki) view engine.

**htmx version: 1.9.4**
**htmx version: 1.9.5**

### Setup

Expand Down

0 comments on commit 69a4034

Please sign in to comment.