Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency govuk.frontend.aspnetcore to v2 #281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 3, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
GovUk.Frontend.AspNetCore 1.5.0 -> 2.7.1 age adoption passing confidence

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 helper

A 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.

[DateInput(ErrorMessagePrefix = "Your date of birth")]
public DateOnly? DateOfBirth { get; set; }
Tag helper changes
<govuk-input> tag helper

An 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 and CompiledContentPath properties on GovUkFrontendOptions have been changed from string to PathString?.

The GenerateScriptImports, GenerateStyleImports and GetCspScriptHashes methods on PageTemplateHelper and the corresponding extension methods over IHtmlHelper
have had overloads added that take a PathString pathBase parameter.

The _GovUkPageTemplate.cshtml view has been fixed to respect HttpRequest.PathBase.

Middleware has been added to rewrite the URL references in all.min.css to respect HttpRequest.PathBase and the StaticAssetsContentPath.

v2.0.1

Page template

New overloads of GenerateScriptImports and GenerateStyleImports have been added that accept an appendVersion 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 on IHtmlHelper has been added that forwards to the same method on PageTemplateHelper.

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) and CompiledContentPath (default /govuk), respectively.
Applications that build and reference their own CSS and JavaScript can set CompiledContentPath to null to skip hosting the standard compiled assets. Similarly, setting StaticAssetsContentPath to null will skip hosting the static assets.

Page template

PageTemplateHelper and the _GovUkPageTemplate.cshtml view have been updated to respect the StaticAssetsContentPath and CompiledContentPath paths set on GovUkFrontendOptions.

An additional ViewData key can now be passed to _GovUkPageTemplate.cshtml - AssetPath. When specified, it will be used in place of the StaticAssetsContentPath value from GovUkFrontendOptions for referencing static asserts.

GovUkFrontendJsEnabledScript, GovUkFrontendScriptImports and GovUkFrontendStyleImports extension methods have been added over IHtmlHelper that wrap the
GenerateJsEnabledScript, GovUkFrontendScriptImports and GovUkFrontendStyleImports methods on PageTemplateHelper, respectively.

Tag helper changes

bool tag helper properties have been changed to bool?.
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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label May 3, 2024
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 4 times, most recently from 0d0896c to fde25a5 Compare May 11, 2024 01:03
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 5 times, most recently from 0def959 to f9f659c Compare May 21, 2024 05:50
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 5 times, most recently from 9d1f9f8 to 78e888d Compare May 29, 2024 01:57
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 3 times, most recently from e73ef6e to ce74e63 Compare May 31, 2024 01:01
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 6 times, most recently from 975bb57 to 325ad76 Compare June 17, 2024 21:27
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch from 325ad76 to be2eb89 Compare June 19, 2024 22:30
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 3 times, most recently from 959a194 to adaa4c9 Compare July 5, 2024 21:32
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 2 times, most recently from 17f65c8 to c2959e7 Compare July 9, 2024 18:21
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 5 times, most recently from 199e0da to d9f9e95 Compare October 30, 2024 01:47
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 4 times, most recently from 439c7bb to fb5fe29 Compare November 2, 2024 03:18
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 5 times, most recently from acb3f22 to e07c513 Compare November 19, 2024 19:50
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 5 times, most recently from 325280b to 1151c7e Compare December 5, 2024 21:55
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 4 times, most recently from 5e3de16 to 2a8b862 Compare December 18, 2024 08:48
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 2 times, most recently from 51e2052 to d243587 Compare December 31, 2024 04:02
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch 2 times, most recently from 9127d6e to 0ad6269 Compare January 5, 2025 13:38
@renovate renovate bot force-pushed the renovate/govuk.frontend.aspnetcore-2.x branch from 0ad6269 to 6374d36 Compare January 5, 2025 19:13
Copy link

sonarqubecloud bot commented Jan 5, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants