diff --git a/.gitignore b/.gitignore index 8cfb756..05eeb24 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ *.user .vscode src/*.nupkg +src/tests*.txt + diff --git a/src/Directory.Build.props b/src/Directory.Build.props index b70b841..c622ac0 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,9 +1,9 @@  - net6.0;net8.0 - 2.0.3 - Update script tags to pull htmx 2.0.3 (no header or attribute changes) + net6.0;net8.0;net9.0 + 2.0.4 + Update script tags to pull htmx 2.0.4 (no header or attribute changes) danieljsummers Bit Badger Solutions https://git.bitbadger.solutions/bit-badger/Giraffe.Htmx diff --git a/src/Tests/ViewEngine.fs b/src/Tests/ViewEngine.fs index 468d01e..4653bbe 100644 --- a/src/Tests/ViewEngine.fs +++ b/src/Tests/ViewEngine.fs @@ -819,14 +819,14 @@ let script = let html = RenderView.AsString.htmlNode Script.minified Expect.equal html - """""" + """""" "Minified script tag is incorrect" } test "unminified succeeds" { let html = RenderView.AsString.htmlNode Script.unminified Expect.equal html - """""" + """""" "Unminified script tag is incorrect" } ] diff --git a/src/ViewEngine.Htmx/Htmx.fs b/src/ViewEngine.Htmx/Htmx.fs index 18607e5..ba4d623 100644 --- a/src/ViewEngine.Htmx/Htmx.fs +++ b/src/ViewEngine.Htmx/Htmx.fs @@ -445,14 +445,14 @@ module Script = /// Script tag to load the minified version from unpkg.com let minified = - script [ _src "https://unpkg.com/htmx.org@2.0.3" - _integrity "sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq" + script [ _src "https://unpkg.com/htmx.org@2.0.4" + _integrity "sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+" _crossorigin "anonymous" ] [] /// Script tag to load the unminified version from unpkg.com let unminified = - script [ _src "https://unpkg.com/htmx.org@2.0.3/dist/htmx.js" - _integrity "sha384-BBDmZzVt6vjz5YbQqZPtFZW82o8QotoM7RUp5xOxV3nSJ8u2pSdtzFAbGKzTlKtg" + script [ _src "https://unpkg.com/htmx.org@2.0.4/dist/htmx.js" + _integrity "sha384-oeUn82QNXPuVkGCkcrInrS1twIxKhkZiFfr2TdiuObZ3n3yIeMiqcRzkIcguaof1" _crossorigin "anonymous" ] []