Skip to content

Releases: nhsuk/nhsuk-prototype-kit

v7.1.0

20 Oct 12:50
6ddf8a8

Choose a tag to compare

This minor release contains a new feature and some minor fixes.

New feature

Adds a new formatNhsNumber Nunjucks filter which will format NHS numbers according to the NHS style guide, with spaces between groups of digits. This format makes it easier for people and assistive technologies to read.

PR #663 – thanks to @frankieroberto

Minor fixes

  • Fix Browsersync in Codespaces – thanks to @colinrotherham
  • Fix nested query strings not saving correctly (PR #645, Fixes #644) – thanks to @edwardhorsford
  • Changes to GitHub Codespaces config (setting tab size to 2, turning on line wrapping by default)
  • Dependency updates

Full Changelog: v7.0.1...v7.1.0

v7.0.1

05 Sep 10:55
fd29dc4

Choose a tag to compare

This is a patch release containing some bug fixes and minor dependency updates:

  • Fix NHS.UK frontend allowed paths on password page
  • Fix reset session data route via GET request
  • Improve Sass error handling when watching for changes
  • Prevent unnecessary console logging from dotenv
  • Preserve defaults when merging filters or session options
  • Configure Nodemon to ignore browser JavaScript
  • Exclude app code from linters by default
  • Adds an .editorconfig file
  • Minor dependency updates

Thanks to @colinrotherham for contributing many of the bug fixes!

Full Changelog: v7.0.0...v7.0.1

v7.0.0

27 Aug 15:49
fc0f9a6

Choose a tag to compare

This major release updates NHS frontend to version 10.0.0, contains some other breaking changes, and adds a new feature.

New feature

  • Use a different port if something is running on the default one (PR #557)

Breaking changes

  • NHS.UK frontend updated to version 10 (PR 548)
  • The jQuery javascript library is no longer included (PR #556)
  • Remove unused CSS (PR #555)
  • Removed question page template as this is now available on the NHS Service manual website (PR #568)

Thanks to @colinrotherham for contributing.

Full Changelog: v6.3.0...v7.0.0

v6.3.0

26 Jun 08:50
146e4d8

Choose a tag to compare

This release adds a new feature:

  • Make it easier to set page titles (PR #541)

NHS Frontend has also been updated from 9.6.1 to 9.6.3

Full Changelog: v6.2.0...v6.3.0

v6.2.0

23 May 11:47
c02bcef

Choose a tag to compare

This minor release updates NHS Frontend from 9.5.2 to 9.6.1

Other minor changes:

Full Changelog: v6.1.0...v6.2.0

v6.1.0

16 May 13:02
da2faad

Choose a tag to compare

This minor release updates NHS Frontend from 9.4.1 to 9.5.2

Also contains a bug fix to add a missing script tag for NHS javascript in the new default template Pull request 518

Full Changelog: v6.0.0...v6.1.0

v6.0.0

07 May 09:14
43bc970

Choose a tag to compare

Breaking changes

Adds a new 'Reset data' feature (PR 482).

If upgrading, add this link to your footer links in app/views/layout.html:

{
  "URL": "/prototype-admin/reset?returnPage=" + (currentPage | urlencode),
  "label": "Reset data"
}

and add this line to app.js:

app.use(utils.setLocals);

Switches to a new template included within NHS.UK frontend 9.4.1 to make future updates easier (PR 499).

To update, first follow the instructions in Updating the kit to update all the files in lib/, as well as app.js and package.json.

Then in your app/layout.html file, change

{% extends "template.html" %}

to:

{% extends "prototype-kit-template.njk" %}

and change:

{% block headCSS %}

to:

{% block head %}

Other changes

  • Remove ‘Check your answers’ example template, as this is now available on the NHS design system website (PR 503)
  • Remove Confirmation page example template, as this is now available on the NHS design system website as a pattern (PR 504)

Full Changelog: v5.3.0...v6.0.0

v5.3.0

14 Feb 16:04
972c142

Choose a tag to compare

This minor release updates NHS Frontend from 9.1.0 to 9.3.0, which includes the new Panel component.

NHS Frontend 9.2.0 also introduces a new, easier way to pre-select which checkboxes or radios should be pre-selected, using either the value: (radios) or values: (checkboxes) param. See Pull request 1105.

Full Changelog: v5.2.0...v5.3.0

v5.2.0

13 Dec 15:46
d3cfbb2

Choose a tag to compare

This minor release moves the example page templates from /docs to /lib/example-templates, and moves the /middleware folder to /lib/middleware.

These changes will make future manual upgrades of the kit easier.

Service name

The kit is now set up to use the serviceName local variable, which is set in app/config.js, in the default templates.

  • Use serviceName local in start page template – #414 (thanks to @frankieroberto)
  • Use serviceName in header - #417
  • Update default service name to "Service name goes here" - #419

Maintenance

  • Import task list macro - #437 (thanks to @edwardhorsford)
  • Setup code style checks and tests - #404
  • Update default index page - #423
  • Change all references to 'NHS.UK prototype kit' - #425 (thanks to @vickytnz)
  • Add devcontainer.json for Codespaces and container use - #428 (thanks to @paulmsmith)
  • Add instructions if you run npm start - #411
  • Minor dependency updates

Full Changelog: v5.1.0...v5.2.0

v5.1.0

12 Nov 13:47
8589d1e

Choose a tag to compare

This minor release includes an update of NHS Frontend, and unbundles the guidance documentation.

📄 Guidance

There is now a separate website for the NHS.UK prototype kit which contains the installation guides, How-tos, and a new tutorial on building a basic prototype (thanks @vickytnz).

The guides are no longer bundled with the kit itself, so visit the website for the most up-to-date versions. Feedback is welcome.

The example templates are still included in the kit, with the exception of the Google search template which has been removed.

🔧 Maintenance

  • Updates NHS Frontend from 9.0.0 to 9.1.0 which adds a task list component - see version 9.1.0 release notes
  • Log errors when session data defaults crashes by @edwardhorsford in #402
  • Minor dependency updates: cookie-parser, express-session and eslint-plugin-import

Full Changelog: v5.0.0...v5.1.0