chore(deps): update dependency govuk.frontend.aspnetcore to v2 #281
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.5.0
->2.7.1
Release Notes
gunndabad/govuk-frontend-aspnetcore (GovUk.Frontend.AspNetCore)
v2.7.1
Targets GOV.UK Frontend v5.7.1.
v2.7.0
Targets GOV.UK Frontend v5.7.0.
v2.6.0
Targets GOV.UK Frontend v5.6.0.
v2.5.0
Targets GOV.UK Frontend v5.5.0.
v2.4.0
Targets GOV.UK Frontend v5.4.1.
Tag helper changes
<govuk-breadcrumbs>
tag helperA
label-text
attribute has been added.v2.3.1
Removes
HtmlTags
references.v2.3.0
Targets GOV.UK Frontend v5.3.1 and .NET 8.
New features
DateInputAttribute
This attribute can be added to properties that are model bound from date input components. It allows overriding the prefix used for error messages e.g.
Tag helper changes
<govuk-input>
tag helperAn
autocapitalize
attribute has been added.Attributes can be set on the input wrapper element by specifying
input-wrapper-*
attributes.Fixes
Page template
Fix duplicate
PathBase
in OpengraphImageUrl in page template view.v2.2.0
Targets GOV.UK Frontend v5.2.0.
v2.1.0
Page template
The
StaticAssetsContentPath
andCompiledContentPath
properties onGovUkFrontendOptions
have been changed fromstring
toPathString?
.The
GenerateScriptImports
,GenerateStyleImports
andGetCspScriptHashes
methods onPageTemplateHelper
and the corresponding extension methods overIHtmlHelper
have had overloads added that take a
PathString pathBase
parameter.The
_GovUkPageTemplate.cshtml
view has been fixed to respectHttpRequest.PathBase
.Middleware has been added to rewrite the URL references in
all.min.css
to respectHttpRequest.PathBase
and theStaticAssetsContentPath
.v2.0.1
Page template
New overloads of
GenerateScriptImports
andGenerateStyleImports
have been added that accept anappendVersion
parameter.This appends a query string with a hash of the file's contents so that content changes following upgrades are seen by end users.
A
GetCspScriptHashes
extension method onIHtmlHelper
has been added that forwards to the same method onPageTemplateHelper
.v2.0.0
Targets GOV.UK Frontend v5.1.0.
New features
GOV.UK Frontend hosting options
Previously the GOV.UK Frontend library's assets were always hosted at the root of the application.
Many applications generate their own CSS and/or JavaScript bundles and don't need the standard versions at all, though they likely still need the static assets (fonts, images etc.).
There are now two properties on
GovUkFrontendOptions
to control the hosting of the static assets and the compiled assets -StaticAssetsContentPath
(default/assets
) andCompiledContentPath
(default/govuk
), respectively.Applications that build and reference their own CSS and JavaScript can set
CompiledContentPath
tonull
to skip hosting the standard compiled assets. Similarly, settingStaticAssetsContentPath
tonull
will skip hosting the static assets.Page template
PageTemplateHelper
and the_GovUkPageTemplate.cshtml
view have been updated to respect theStaticAssetsContentPath
andCompiledContentPath
paths set onGovUkFrontendOptions
.An additional
ViewData
key can now be passed to_GovUkPageTemplate.cshtml
-AssetPath
. When specified, it will be used in place of theStaticAssetsContentPath
value fromGovUkFrontendOptions
for referencing static asserts.GovUkFrontendJsEnabledScript
,GovUkFrontendScriptImports
andGovUkFrontendStyleImports
extension methods have been added overIHtmlHelper
that wrap theGenerateJsEnabledScript
,GovUkFrontendScriptImports
andGovUkFrontendStyleImports
methods onPageTemplateHelper
, respectively.Tag helper changes
bool
tag helper properties have been changed tobool?
.This is so that it's possible to differentiate between properties that have been explicitly initialized and those that have been left at the default values.
With this, other tag helpers or tag helper initializers can be created that assign default values to these properties.
Breaking changes
AddImportsToHtml
This option was used to automatically add style and JavaScript imports to all Razor views.
PageTemplateHelper
and the_GovUkPageTemplate.cshtml
layout view are better ways to generate a full page template now so this option, along with the backing tag helper component, have been removed.Fixes
Page template
The
og:image
meta
tag in the_GovUkPageTemplate.cshtml
view is now an absolute URL.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.