From 29839fa7959866b7b06da406bb8a86da7f0c3f87 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Wed, 17 Apr 2024 22:25:06 -0400 Subject: [PATCH] Update script tags for v2.0.0 beta3 - Update paths in package metadata --- src/Common/README.md | 2 +- src/Directory.Build.props | 8 ++++---- src/Htmx/README.md | 2 +- src/Tests/ViewEngine.fs | 4 ++-- src/ViewEngine.Htmx/Htmx.fs | 8 ++++---- src/ViewEngine.Htmx/README.md | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Common/README.md b/src/Common/README.md index 463389a..a3d5abe 100644 --- a/src/Common/README.md +++ b/src/Common/README.md @@ -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: 2.0.0-beta1** +**htmx version: 2.0.0-beta3** diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 778d6a4..ebd3cee 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -3,13 +3,13 @@ net6.0;net7.0;net8.0 2.0.0 - beta1 - Update script tags to pull htmx 2.0.0-beta1 + beta3 + Update script tags to pull htmx 2.0.0-beta3 danieljsummers Bit Badger Solutions - https://github.com/bit-badger/Giraffe.Htmx + https://git.bitbadger.solutions/bit-badger/Giraffe.Htmx false - https://github.com/bit-badger/Giraffe.Htmx + https://git.bitbadger.solutions/bit-badger/Giraffe.Htmx Git MIT License MIT diff --git a/src/Htmx/README.md b/src/Htmx/README.md index afb5d03..d45c250 100644 --- a/src/Htmx/README.md +++ b/src/Htmx/README.md @@ -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: 2.0.0-beta1** +**htmx version: 2.0.0-beta3** _Note that htmx 2.0 is a BETA release. The [migration guide](https://v2-0v2-0.htmx.org/migration-guide-htmx-1/) does not currently specify any request or response header changes. This means that, as of this release, there are no required code changes in moving to this major version._ diff --git a/src/Tests/ViewEngine.fs b/src/Tests/ViewEngine.fs index 7d6ed37..a7f9146 100644 --- a/src/Tests/ViewEngine.fs +++ b/src/Tests/ViewEngine.fs @@ -820,14 +820,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 fbfd349..1d8f34a 100644 --- a/src/ViewEngine.Htmx/Htmx.fs +++ b/src/ViewEngine.Htmx/Htmx.fs @@ -444,14 +444,14 @@ module Script = /// Script tag to load the minified version from unpkg.com let minified = - script [ _src "https://unpkg.com/htmx.org@2.0.0-beta1" - _integrity "sha384-T4bn1KcRXtR+kI4M+oOdhVp039Q5Oyq59dsDYJuSBCuHDbLA4iBpCSYaEKmGK5AU" + script [ _src "https://unpkg.com/htmx.org@2.0.0-beta3" + _integrity "sha384-9wQIC/7bdsqgMwBWWcREHyQOU7vU6P9J2tgQq0056HPV9t35Ypm4vPYA6Ud1MgY9" _crossorigin "anonymous" ] [] /// Script tag to load the unminified version from unpkg.com let unminified = - script [ _src "https://unpkg.com/htmx.org@2.0.0-beta1/dist/htmx.js" - _integrity "sha384-LT44Cr6uyeKreQr6d0kPh+o3cuLJ3Q+ysV1YzehXD6D9pdpF/7DMiUDx7hrlPiNi" + script [ _src "https://unpkg.com/htmx.org@2.0.0-beta3/dist/htmx.js" + _integrity "sha384-lGcccsClz1aGJ47pTvGg8H69LcUEacfYDRwjlmFmRi35GGy8sBegHZaca5O4/Kai" _crossorigin "anonymous" ] [] diff --git a/src/ViewEngine.Htmx/README.md b/src/ViewEngine.Htmx/README.md index 0fc008a..bdf6de9 100644 --- a/src/ViewEngine.Htmx/README.md +++ b/src/ViewEngine.Htmx/README.md @@ -2,13 +2,13 @@ This package enables [htmx](https://htmx.org) support within the [Giraffe](https://giraffe.wiki) view engine. -**htmx version: 2.0.0-beta1** +**htmx version: 2.0.0-beta3** _Note that this is a BETA release of htmx 2.0; see [the migration guide](https://v2-0v2-0.htmx.org/migration-guide-htmx-1/) for changes_ ### Setup -1. Install the package (must use `--Prelease` flag). +1. Install the package (must use `--Prerelease` flag). 2. Prior to using the attribute or support modules, `open Giraffe.ViewEngine.Htmx`. ### Use