Skip to content

Commit

Permalink
Merge pull request #5588 from alphagov/release-5.8.0
Browse files Browse the repository at this point in the history
Release v5.8.0
  • Loading branch information
owenatgov authored Jan 9, 2025
2 parents db96257 + 43f2b61 commit 9b78915
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 13 deletions.
16 changes: 11 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ For advice on how to use these release notes see [our guidance on staying up to

## Unreleased

### Use our base configurable component to build your own configurable component
## v5.8.0 (Feature release)

We've added a `ConfigurableComponent` class to help you build your own configurable components. It extends our base component class and so it allows you to focus on your components' specific features by handling these shared behaviours across components:
To install this version with npm, run `npm install [email protected]`. You can also find more information about [how to stay up to date](https://frontend.design-system.service.gov.uk/staying-up-to-date/#updating-to-the-latest-version) 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
- 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:
Expand All @@ -27,7 +33,7 @@ You'll see a warning when compiling your Sass if you import all of GOV.UK Fronte

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";`;
- `@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.

Expand Down
2 changes: 1 addition & 1 deletion dist/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7.1
5.8.0
1 change: 0 additions & 1 deletion dist/govuk-frontend-5.7.1.min.css.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/govuk-frontend-5.7.1.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/govuk-frontend-5.7.1.min.js.map

This file was deleted.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/govuk-frontend-5.8.0.min.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/govuk-frontend-5.8.0.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/govuk-frontend-5.8.0.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/govuk-frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "govuk-frontend",
"description": "GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.",
"version": "5.7.1",
"version": "5.8.0",
"main": "dist/govuk/all.bundle.js",
"module": "dist/govuk/all.mjs",
"sass": "dist/govuk/index.scss",
Expand Down

0 comments on commit 9b78915

Please sign in to comment.