Skip to content

Commit

Permalink
Update release notes to encourage users to update Node.js
Browse files Browse the repository at this point in the history
Co-authored-by: EoinShaughnessy <[email protected]>
  • Loading branch information
lfdebrux and EoinShaughnessy committed Oct 4, 2021
1 parent bfccaa3 commit 3007f08
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
# Unreleased


# 9.15.0 (Feature release)

## New features

### Replace back link placeholder URLs with javascript
# 9.15.0 (Feature release)

### Replace back link placeholder URLs with JavaScript

We've added JavaScript to make the [back link component](https://design-system.service.gov.uk/components/back-link/) take users to the previous page by default.

Before, to get the back link to work, you had to manually update placeholder text.

Do not use this approach for production scenarios, where you cannot rely on JavaScript always being 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](https://github.com/alphagov/govuk-prototype-kit/pull/1103)

Previously, users had to manually replace the `href` for each back link in the page templates.
### Update Node.js to protect your code

Now, we use JavaScript to make the back link take you to the previous page by default.
If you use the GOV.UK Prototype Kit, then we recommend you update to the latest version of Node.js 14 Long Term Support (LTS).

This approach is not appropriate for production scenarios, where you cannot rely on JavaScript being available at all times.
This is to make sure you're protected from a [recent security vulnerability in the npm (Node Package Manager)](https://github.blog/2021-09-08-github-security-update-vulnerabilities-tar-npmcli-arborist/).

You can still override the `href` attribute if you need different behaviour.
To make sure you're using Node.js version 14.17.6 or later, follow the [install instructions on the Prototype Kit website](https://govuk-prototype-kit.herokuapp.com/docs/install/requirements.md#nodejs-version-14-lts).

This was added in [Pull request #1103: Replace back link placeholder URLs with javascript](https://github.com/alphagov/govuk-prototype-kit/pull/1103)
If you're using Node Version Manager (nvm), you can instead [run `nvm install` to install v14.17.6](https://github.com/alphagov/govuk-prototype-kit/pull/1076).

## Fixes

- [Pull request #1104: Change visually hidden footer title](https://github.com/alphagov/govuk-prototype-kit/pull/1104)
- [Pull request #1076: Update to Node.js v14.17.6 when using Node Version Manager](https://github.com/alphagov/govuk-prototype-kit/pull/1076)

# 9.14.2 (Fix release)

Expand Down

0 comments on commit 3007f08

Please sign in to comment.