Skip to content

Commit

Permalink
Bump govuk-frontend from 4.7.0 to 5.0.0
Browse files Browse the repository at this point in the history
Bumps [govuk-frontend](https://github.com/alphagov/govuk-frontend) from 4.7.0 to 5.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/alphagov/govuk-frontend/releases">govuk-frontend's releases</a>.</em></p>
<blockquote>
<h2>GOV.UK Frontend v5.0.0</h2>
<p>You can find a summary of the main <a href="https://frontend.design-system.service.gov.uk/changes-to-govuk-frontend-v5/">changes to GOV.UK Frontend v5</a> on the Frontend site. It's important to note <a href="https://frontend.design-system.service.gov.uk/v4/migrating-from-legacy-products/">our old frameworks (such as GOV.UK Elements)</a> are no longer compatible with this release. It also stops Internet Explorer 11 from running GOV.UK Frontend JavaScript and removes support completely for Internet Explorer 8 to 10.</p>
<p>Your service will not stop working in Internet Explorer 11, but components will look and behave differently without JavaScript. Read more about <a href="https://frontend.design-system.service.gov.uk/browser-support/">how we provide support for different browsers</a>.</p>
<p>Service teams should be <a href="https://www.gov.uk/service-manual/technology/using-progressive-enhancement">using a progressive enhancement approach</a> to make sure users can still access any content and complete their tasks.</p>
<p>If you still need to provide support for older versions of Internet Explorer, you should stay on the latest <a href="https://github.com/alphagov/govuk-frontend/releases">GOV.UK Frontend v4 release</a>.</p>
<p>If you need it, we have a checklist for the changes you might need to make for v5, which you can <a href="https://docs.google.com/spreadsheets/d/1Qt-9kLcB_ONp4WOTI61i69P3q7Ymw0ziA5YNUqNkImE/edit">view</a> or <a href="https://docs.google.com/spreadsheets/d/1Qt-9kLcB_ONp4WOTI61i69P3q7Ymw0ziA5YNUqNkImE/copy">copy (needs a Google account)</a>.</p>
<h2>Breaking changes</h2>
<p>You must make the following changes when you migrate to this release, or your service might break.</p>
<h3>Update package file paths for Sass</h3>
<p>In preparation for additional build targets, we've moved our package files into a directory called <code>dist</code>.</p>
<p>Replace <code>govuk-frontend/govuk</code> with <code>govuk-frontend/dist/govuk</code> in any <a href="https://sass-lang.com/">Sass</a> <code>@import</code> paths.</p>
<p>For example:</p>
<pre lang="scss"><code>@import &quot;node_modules/govuk-frontend/dist/govuk/all&quot;;
</code></pre>
<p>If you've added <a href="https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#simplify-sass-import-paths"><code>node_modules/govuk-frontend</code> as a Sass import path</a>, update it with the <code>/dist</code> suffix:</p>
<pre lang="js"><code>loadPaths: [
  'node_modules/govuk-frontend/dist'
]
</code></pre>
<p>If you're building your Sass code through Rails Assets Pipeline or Sprockets, refer to the section 'Update package file paths in Rails Assets Pipeline or Sprockets'.</p>
<p>Refer to the <a href="https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#import-using-sass">detailed guidance on importing using Sass</a>.</p>
<p>These changes were introduced in <a href="https://redirect.github.com/alphagov/govuk-frontend/pull/3498">#3498: Remove built <code>dist</code> and <code>package</code> from source</a></p>
<h3>Update package file paths for Nunjucks</h3>
<p>In preparation for additional build targets, we've moved our package files into a directory called <code>dist</code>.</p>
<p>Replace <code>govuk-frontend</code> with <code>govuk-frontend/dist</code> in any <a href="https://mozilla.github.io/nunjucks/api.html#configure"><code>nunjucks.configure()</code></a> search paths:</p>
<pre lang="js"><code>nunjucks.configure([
  'node_modules/govuk-frontend/dist'
&lt;/tr&gt;&lt;/table&gt;
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/alphagov/govuk-frontend/blob/main/CHANGELOG.md">govuk-frontend's changelog</a>.</em></p>
<blockquote>
<h2>5.0.0 (Breaking release)</h2>
<p>You can find a summary of the main <a href="https://frontend.design-system.service.gov.uk/changes-to-govuk-frontend-v5/">changes to GOV.UK Frontend v5</a> on the Frontend site. It's important to note <a href="https://frontend.design-system.service.gov.uk/v4/migrating-from-legacy-products/">our old frameworks (such as GOV.UK Elements)</a> are no longer compatible with this release. It also stops Internet Explorer 11 from running GOV.UK Frontend JavaScript and removes support completely for Internet Explorer 8 to 10.</p>
<p>Your service will not stop working in Internet Explorer 11, but components will look and behave differently without JavaScript. Read more about <a href="https://frontend.design-system.service.gov.uk/browser-support/">how we provide support for different browsers</a>.</p>
<p>Service teams should be <a href="https://www.gov.uk/service-manual/technology/using-progressive-enhancement">using a progressive enhancement approach</a> to make sure users can still access any content and complete their tasks.</p>
<p>If you still need to provide support for older versions of Internet Explorer, you should stay on the latest <a href="https://github.com/alphagov/govuk-frontend/releases">GOV.UK Frontend v4 release</a>.</p>
<p>If you need it, we have a checklist for the changes you might need to make for v5, which you can <a href="https://docs.google.com/spreadsheets/d/1Qt-9kLcB_ONp4WOTI61i69P3q7Ymw0ziA5YNUqNkImE/edit">view</a> or <a href="https://docs.google.com/spreadsheets/d/1Qt-9kLcB_ONp4WOTI61i69P3q7Ymw0ziA5YNUqNkImE/copy">copy (needs a Google account)</a>.</p>
<h3>Breaking changes</h3>
<p>You must make the following changes when you migrate to this release, or your service might break.</p>
<h4>Update package file paths for Sass</h4>
<p>In preparation for additional build targets, we've moved our package files into a directory called <code>dist</code>.</p>
<p>Replace <code>govuk-frontend/govuk</code> with <code>govuk-frontend/dist/govuk</code> in any <a href="https://sass-lang.com/">Sass</a> <code>@import</code> paths.</p>
<p>For example:</p>
<pre lang="scss"><code>@import &quot;node_modules/govuk-frontend/dist/govuk/all&quot;;
</code></pre>
<p>If you've added <a href="https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#simplify-sass-import-paths"><code>node_modules/govuk-frontend</code> as a Sass import path</a>, update it with the <code>/dist</code> suffix:</p>
<pre lang="js"><code>loadPaths: [
  'node_modules/govuk-frontend/dist'
]
</code></pre>
<p>If you're building your Sass code through Rails Assets Pipeline or Sprockets, refer to the section 'Update package file paths in Rails Assets Pipeline or Sprockets'.</p>
<p>Refer to the <a href="https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#import-using-sass">detailed guidance on importing using Sass</a>.</p>
<p>These changes were introduced in <a href="https://redirect.github.com/alphagov/govuk-frontend/pull/3498">#3498: Remove built <code>dist</code> and <code>package</code> from source</a></p>
<h4>Update package file paths for Nunjucks</h4>
<p>In preparation for additional build targets, we've moved our package files into a directory called <code>dist</code>.</p>
<p>Replace <code>govuk-frontend</code> with <code>govuk-frontend/dist</code> in any <a href="https://mozilla.github.io/nunjucks/api.html#configure"><code>nunjucks.configure()</code></a> search paths:</p>
<pre lang="js"><code>nunjucks.configure([
&lt;/tr&gt;&lt;/table&gt;
</code></pre>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/87d7633848e14183a655bb06006cbc3f99b466d2"><code>87d7633</code></a> Merge pull request <a href="https://redirect.github.com/alphagov/govuk-frontend/issues/4540">#4540</a> from alphagov/release-5.0.0</li>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/833e8a38c3b8cefa6a6dd7b4594c11070e08b9c9"><code>833e8a3</code></a> Release v5.0.0</li>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/2bcc9cfcd6aa8cfd7d56bb9c4c24bde4cd5fa3cf"><code>2bcc9cf</code></a> Merge pull request <a href="https://redirect.github.com/alphagov/govuk-frontend/issues/4538">#4538</a> from alphagov/add-drafted-content</li>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/031acba44cf7bc233f67419466e752719ee7eab9"><code>031acba</code></a> Add links to checklist to CHANGELOG</li>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/134b90b2b91ee0ad2860a7659261757be582fe5b"><code>134b90b</code></a> Replace links to pre-release docs with links to actual site</li>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/e9abebf19ac74ad87ae27ecc5e1d8306febb7a7e"><code>e9abebf</code></a> Update link to the SVG code for the logo</li>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/3c4b8da0252b32c6b3c349fc5d8c89d7aa85d696"><code>3c4b8da</code></a> Update browser support doc with drafted content</li>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/a9bccd2bb5b664842be14c1a6b8e6c39de3f4a1a"><code>a9bccd2</code></a> Add release notes draft to the CHANGELOG</li>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/16ae7ef602cacf35483cc995485aa488d6959a2d"><code>16ae7ef</code></a> Merge pull request <a href="https://redirect.github.com/alphagov/govuk-frontend/issues/4536">#4536</a> from alphagov/skip-link-urls</li>
<li><a href="https://github.com/alphagov/govuk-frontend/commit/5cf5c3289a4ab85b2360bcff763fa9404cc58062"><code>5cf5c32</code></a> Return early for internal URLs too</li>
<li>Additional commits viewable in <a href="https://github.com/alphagov/govuk-frontend/compare/v4.7.0...v5.0.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=govuk-frontend&package-manager=npm_and_yarn&previous-version=4.7.0&new-version=5.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>
  • Loading branch information
fumimowdan committed Dec 21, 2023
1 parent 41f73f5 commit 8d84084
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"govuk-frontend": "^4.7.0"
"govuk-frontend": "^5.0.0"
},
"license": "MIT"
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# yarn lockfile v1


govuk-frontend@^4.7.0:
version "4.7.0"
resolved "https://registry.yarnpkg.com/govuk-frontend/-/govuk-frontend-4.7.0.tgz#69950b6c2e69f435ffe9aa60d8dee232dac977de"
integrity sha512-0OsdCusF5qvLWwKziU8zqxiC0nq6WP0ZQuw51ymZ/1V0tO71oIKMlSLN2S9bm8RcEGSoidPt2A34gKxePrLjvg==
govuk-frontend@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/govuk-frontend/-/govuk-frontend-5.0.0.tgz#c08a4d1115fb31eb39b6d19979c627f816185dd7"
integrity sha512-3WSfvQ+3kw/q/m8jrq/t8XnMUA8D2r0uhGyZaDbIh1gWTJBQzJBHbHiKYI9nc9ixIXdCFsc9RozkgEm57a795g==

0 comments on commit 8d84084

Please sign in to comment.