Releases: alphagov/govuk-prototype-kit
v12.0.0
Breaking changes
This release ensures the GOV.UK Prototype Kit reflects the latest release of the GOV.UK Frontend, v4.0.0.
Update to GOV.UK Frontend v4.0.0
The new release of GOV.UK Frontend contains:
- an iteration to the accordion component
- other ‘breaking’ changes you should make to improve your service
Check the GOV.UK Frontend release notes for changes you may need to make to ensure your prototype works.
This change was added in #1195: Update the GOV.UK Prototype Kit to use GOV.UK Frontend v4.0.0.
New features
Preserve query strings when redirecting POSTs to GETs
The GOV.UK Prototype Kit now preserves URL query strings when redirecting POST requests to GET requests.
This means if you have a query like /link/to/something?query=true&hello=world
on your POST form action, and you submit the form, the URL query string will be present in the redirected URL.
This feature is useful when you:
- use the query string to set flash messages or return paths
- want to use the values in the query string for a specific page, rather than saved data
Thanks to @edwardhorsford for contributing this issue and its solution.
This was added in #1120: Preserve query string when redirecting POSTs to GETs.
Fixes
If you need help with the Prototype Kit, contact the GOV.UK Prototype team.
v11.0.0
Fixes
We’ve recently experienced 2 security incidents involving common NPM packages used by the Prototype Kit. We’re sorry for the inconvenience this has caused.
We’ve added new measures (a package-lock.json file) to help prevent this in the future.
To protect your service from any similar threats in future, please upgrade to this new version of the Kit.
If you've already installed or updated to v11, there are no other changes you need to make.
For any existing prototypes, follow the guide to update the kit.
Pull requests
v10.0.0
Breaking changes
You must make the following changes if you’re running Node.js 10 and you update to this release, or your prototype may break.
Update from Node.js 10
You can no longer run the GOV.UK Prototype Kit on Node.js 10.
If you currently run Node.js 10, you'll need to upgrade to a newer version.
We recommend using version 16. You can find more information on the Prototype Kit requirements page.
Upgrade Notify client library from version 4.7.2 to 5.1.0
We have updated the Notify client library to version 5.1.0. This may break existing prototypes that are using the Notify client. Big thanks to David McDonald.
Breaking change pull requests
- Pull request #925: Upgrade Notify client library from 4.7.2 to 5.1.0. This may break existing prototypes which are using the Notify client. If you have any issues, please contact the GOV.UK Prototype Kit team.
- Pull request #1127: Update to Node 16 and drop support for Node 10
Fixes
v9.15.0
New features
Update to GOV.UK Frontend 3.14.0
Added in Pull request #1108: Update to GOV.UK Frontend v3.14.0
This release contains:
- new override classes for text alignment
- changes to the
govuk-spacing
function to allow negative spacing - a fix for an accessibility issue with the panel component
Replace back link placeholder URLs with JavaScript
We've added JavaScript to make the back link component take users to the previous page by default, rather than you having to update placeholder text.
If you want to use JavaScript in production, you must also use a non-JavaScript alternative, so you do not exclude any users. If you cannot use a non-JavaScript alternative, you should hide the back link when JavaScript is not available.
You can still override the href
attribute if you need to provide a solution that works when JavaScript is disabled.
This was added in Pull request #1103: Replace back link placeholder URLs with JavaScript
Update Node.js to protect your code
If you use the GOV.UK Prototype Kit, we recommend you update to use the latest version of Node.js 14 Long Term Support (LTS). This is to make sure you're protected from a recent security vulnerability in the npm (Node Package Manager).
To make sure you're using Node.js version 14.17.6 or later, follow the install instructions on the Prototype Kit website.
If you're using Node Version Manager (nvm), you can instead run nvm install
to install v14.17.6.
Fixes
v9.14.2
v9.14.1
v9.14.0
v9.13.0
New features
Make Sass errors clearer to users
Previously, it was not obvious to users if Sass had stopped updating because of an error. An error would be printed to the command line, but nothing would happen in the browser. We know that this error was easy to miss, which could cause confusion.
Now, when there's a Sass error, the GOV.UK Prototype Kit creates a blank application.css
file to make the site look broken to users.
If you fix the Sass error, the site will automatically reload.
We have also changed the Gulp log level to be less detailed, so that errors stand out.
This was added in Pull request #990: Make Sass errors clearer to the user.
Opt in to the new GOV.UK Frontend link styles
Links now have underlines that are consistently thinner and a bit further away from the link text.
Links also have a clearer hover state, where the underline gets thicker to make the link stand out to users.
The new link styles are opt-in because Chromium browsers have an issue with links inside a multi-column layout.
Read more about the new link styles in the GOV.UK Frontend release notes.
This was added in Pull request #1012: Implement the new link and hover styles in the Prototype Kit.
Update to GOV.UK Frontend
This was added in Pull request #1025: Update to GOV.UK Frontend v3.12.0