Skip to content

Commit

Permalink
Bump govuk-components from 4.1.2 to 5.0.0
Browse files Browse the repository at this point in the history
Bumps [govuk-components](https://github.com/x-govuk/govuk-components) from 4.1.2 to 5.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/x-govuk/govuk-components/releases">govuk-components's releases</a>.</em></p>
<blockquote>
<h2>Version 5.0.0</h2>
<h1>Draft release notes</h1>
<p>⚠️  <strong>This is a breaking change release</strong></p>
<p>Version 5.0.0 of the ruby <code>govuk-components</code> gem supports version <code>5.0.0</code> of the <code>govuk-frontend</code> npm package. Both contain breaking changes, and are dependent on each other – so you should update both at the same time.</p>
<p>These release notes for the ruby gem should be read alongside the release notes for <code>govuk-frontend</code>.</p>
<h2>Upgrade instructions</h2>
<h3>1. Install both the gem AND the node package</h3>
<p>Update the version of <code>govuk-component</code> in your <code>Gemfile</code> and run <code>bundle install</code>:</p>
<pre><code>gem &quot;govuk-components&quot;, &quot;~&gt; 5.0.0b4&quot;
</code></pre>
<p>Update your version of <code>govuk-frontend</code> in your <code>package.json</code> and then run <code>npm install</code> or <code>yarn install</code> (depending on which you use).</p>
<pre><code>&quot;govuk-frontend&quot;: &quot;5.0.0-beta.2&quot;,
</code></pre>
<h4>2. Check that your app still builds</h4>
<p>The way that assets have been packaged in <code>govuk-frontend</code> has changed, so you may need to update your build process.</p>
<p>If you're using Sass, change</p>
<pre><code>@import &quot;govuk-frontend/govuk/all&quot;;
</code></pre>
<p>to</p>
<pre><code>@import &quot;govuk-frontend/dist/govuk/all&quot;;
</code></pre>
<p>If you are using a javascript compiler, change <code>govuk-frontend/govuk</code> to <code>govuk-frontend/dist/govuk</code>.</p>
<p>See <a href="https://github.com/alphagov/govuk-frontend/releases/tag/v5.0.0-beta.0">release notes for govuk-frontend 5.0.0</a> for details.</p>
<h4>3. Update your application layout file</h4>
<p>In your application layout file (normally <code>layouts/application.html.erb</code>), update the code snippet which adds a class to the document body.</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/x-govuk/govuk-components/commit/69106acf39245b7779bb9a1c589e090a827a4a8d"><code>69106ac</code></a> Release version 5.0.0</li>
<li><a href="https://github.com/x-govuk/govuk-components/commit/00d582f30a15971c07a415102d8b0e040f2ebb7e"><code>00d582f</code></a> Version 5.0.0 (<a href="https://redirect.github.com/x-govuk/govuk-components/issues/456">#456</a>)</li>
<li><a href="https://github.com/x-govuk/govuk-components/commit/a70be3e18f71cac026768d7c920229ba4493bae1"><code>a70be3e</code></a> Use released version</li>
<li><a href="https://github.com/x-govuk/govuk-components/commit/ab2d25830f6472d6aaccff1212724accece20edf"><code>ab2d258</code></a> Fix spelling of compatible (<a href="https://redirect.github.com/x-govuk/govuk-components/issues/476">#476</a>)</li>
<li><a href="https://github.com/x-govuk/govuk-components/commit/1691036297b0c93effc3aa87b447690b3f51cc7b"><code>1691036</code></a> Fix spelling of compatible</li>
<li><a href="https://github.com/x-govuk/govuk-components/commit/3bcf53101ac562406a5876f8a2ac51ad76577397"><code>3bcf531</code></a> code style fix</li>
<li><a href="https://github.com/x-govuk/govuk-components/commit/b29f7a990c776f91bc730a18d9d0f62361cf2900"><code>b29f7a9</code></a> Bump version</li>
<li><a href="https://github.com/x-govuk/govuk-components/commit/b1a98c288a8be845e324c3ce56defb1ca6df2c8d"><code>b1a98c2</code></a> Fix block syntax for buttons</li>
<li><a href="https://github.com/x-govuk/govuk-components/commit/3151c54ff8e4c694cf4de19c991cd8d56fe59956"><code>3151c54</code></a> Release version 5.0.0b3</li>
<li><a href="https://github.com/x-govuk/govuk-components/commit/e4a6ab1363a8aeba474cd9d3eb549b07cc9ce20c"><code>e4a6ab1</code></a> Refactor to allow blocks to be used in ERb (<a href="https://redirect.github.com/x-govuk/govuk-components/issues/475">#475</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/x-govuk/govuk-components/compare/v4.1.2...v5.0.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=govuk-components&package-manager=bundler&previous-version=4.1.2&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 8d84084 commit d5e3f8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ gem "scenic"
# GOVUK GEMS ##
###############
# Used to build our forms and style them using govuk-frontend class names
gem "govuk-components", "4.1.2"
gem "govuk-components", "5.0.0"
gem "govuk_design_system_formbuilder"
gem "notifications-ruby-client"
# UK postcode parsing and validation for Ruby
Expand Down
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ GEM
globalid (1.2.1)
activesupport (>= 6.1)
google-protobuf (3.24.4)
govuk-components (4.1.2)
govuk-components (5.0.0)
html-attributes-utils (~> 1.0.0, >= 1.0.0)
pagy (~> 6.0)
view_component (>= 3.3, < 3.7)
view_component (>= 3.3, < 3.8)
govuk_design_system_formbuilder (4.1.1)
actionview (>= 6.1)
activemodel (>= 6.1)
Expand Down Expand Up @@ -477,7 +477,7 @@ GEM
uk_postcode (2.1.8)
unicode-display_width (2.4.2)
version_gem (1.1.3)
view_component (3.6.0)
view_component (3.7.0)
activesupport (>= 5.2.0, < 8.0)
concurrent-ruby (~> 1.0)
method_source (~> 1.0)
Expand Down Expand Up @@ -520,7 +520,7 @@ DEPENDENCIES
flipper-active_record
flipper-ui
foreman
govuk-components (= 4.1.2)
govuk-components (= 5.0.0)
govuk_design_system_formbuilder
httparty (~> 0.21)
importmap-rails (~> 1.2)
Expand Down

0 comments on commit d5e3f8c

Please sign in to comment.