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

[Snyk] Upgrade govuk-frontend from 5.7.1 to 5.8.0 #590

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

Conversation

AnnaDodson
Copy link

snyk-top-banner

Snyk has created this PR to upgrade govuk-frontend from 5.7.1 to 5.8.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.

  • The recommended version was released 22 days ago.

Release notes
Package name: govuk-frontend
  • 5.8.0 - 2025-01-09

    To install this version with npm, run npm install govuk-frontend@5.8.0. You can also find more information about how to stay up to date in our documentation.

    New features

    Use our base configurable component to build your own configurable component

    We've added a ConfigurableComponent class to help you build your own configurable components. It extends our Component class and allows you to focus on your components' specific features by handling these shared behaviours across components:

    • checking that GOV.UK Frontend is supported
    • checking that the component is not already initialised on its root element
    • checking the type of the root element and storing it for access within the component as this.$root
    • taking a configuration object as a parameter and then storing it for access within the component as this.config
    • merging a passed configuration object with configuration options specified on the data attributes of the root element

    We introduced this change in:

    Deprecated features

    Importing Sass using govuk/all

    You'll see a warning when compiling your Sass if you import all of GOV.UK Frontend's styling using govuk/all. Importing using the all file is deprecated, and we’ll remove it in the next major release.

    In your import statements, use a trailing /index rather than /all to load GOV.UK Frontend's files:

    • @ import "govuk/index"; instead of @ import "govuk/all";

    You do not need /index at the end of each import path if you’re using Dart Sass.

    This change was introduced in pull request #5518: Deprecate govuk/all.scss and only reference govuk/index.scss internally.

    Fixes

    We've made fixes to GOV.UK Frontend in the following pull requests:

  • 5.7.1 - 2024-10-11

    To install this version with npm, run npm install govuk-frontend@5.7.1. You can also find more information about how to stay up to date in our documentation.

    Recommended changes

    Stop setting a value for File upload components

    The File upload component currently supports a value parameter, which populates the value HTML attribute of the input.

    However, since no modern browser supports passing a value to a file input, we've made the decision to remove this parameter. It has been deprecated and will be removed in a future version of GOV.UK Frontend.

    We introduced this change in pull request #5330: Deprecate File upload component's value parameter.

    Fixes

    We've made fixes to GOV.UK Frontend in the following pull requests:

from govuk-frontend GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade govuk-frontend from 5.7.1 to 5.8.0.

See this package in npm:
govuk-frontend

See this project in Snyk:
https://app.snyk.io/org/vol/project/51ac37f4-1df0-4a49-8583-c3a498ab3573?utm_source=github&utm_medium=referral&page=upgrade-pr
@AnnaDodson AnnaDodson requested review from gabrielg2020, jerotire and a team as code owners January 31, 2025 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants