Skip to content

Releases: nhsuk/cookie-consent

Release v2.0.0

24 Mar 14:12
7605624

Choose a tag to compare

Release v2.0.0

Release Date: March 20, 2026
Previous Version: v1.1.0 (October 31, 2025)

Summary

This release includes updates to the cookie consent banner content, dropping the support of the data-policy-url attribute, technical upgrades, and security improvements.

Breaking Changes

  • Support has been dropped for the data-policy-url attribute, which previously allowed to override the URL of the secondary link in the cookie consent banner.

New Features

  • PROD-2090: Update the text and the URL of the secondary link in the cookie consent banner

Technical updates and improvements

  • Bump pillow from 11.2.1 to 11.3.0 in /tests/integration
  • PROD-953: Node 24 update
  • PROD-3227: Update package version to 2.0.0

Related Links

v1.1.0

31 Oct 09:27
4e10fb4

Choose a tag to compare

Release v1.1.0

Release Date: October 31, 2025
Previous Version: v1.0.2 (May 28, 2024)

Summary

This major release includes cookie consent sharing functionality to known hosts, improved testing infrastructure, UI updates, and security improvements.

New Features

Cookie Consent Sharing

  • PROD-1043: Add listener for broadcasting shared consent functionality
  • PROD-963: Implement consumption of shared cookie consent across domains
  • PROD-2184: Limit consent sharing to authorised domains for enhanced security

Testing Infrastructure Improvements

  • PROD-950: Migrate integration tests to Python Behavex and Playwright
  • PROD-950: Remove legacy Puppeteer integration tests and configuration
  • PROD-949: Fix unit test coverage
  • PROD-2121: Add Allure reporting for integration tests with pipeline publishing
  • PROD-1008: Add Lighthouse CI checks and reporting to build pipeline

UI/UX Improvements

  • PROD-1539: Banner UI and content updates
  • PROD-1773: Remove custom CSS from links for better consistency

Bug Fixes & Improvements

  • PROD-1656: Clean up stale analytics cookies
  • PROD-1642: Skip processing for same-page links to improve performance

Related Links


Note: This release represents a significant milestone in cookie consent management with enhanced cross-domain sharing capabilities and improved testing infrastructure.

v1.0.2

28 May 12:30
06110d5

Choose a tag to compare

Update COOKIE_VERSION to version 6

v1.0.1

28 May 10:11
7704f34

Choose a tag to compare

  • Update the cookie consent to remove the reference to Microsoft Clarity and update it to Adobe target.

v1.0.0

07 May 11:15
494085b

Choose a tag to compare

  • Upgrade to node 20.x lts
  • Upgrade npm packages to support node 20.x
  • Update COOKIE_VERSION to version 5

v0.6.1

02 Feb 10:47
ffbc061

Choose a tag to compare

  • Remove tabIndex attributes
  • Update COOKIE_VERSION to version 4

v0.6.0

11 Jan 14:40
87dace0

Choose a tag to compare

  • Banner content update to remove Hotjar and add Qualtrics reference

v0.5.4

16 Jul 10:15
1f7e9db

Choose a tag to compare

Change the event listener which shows the banner to DOMContentLoaded from load for performance improvements #108

v0.5.3

26 Jun 12:31
53280c4

Choose a tag to compare

v0.5.3 Pre-release
Pre-release

Prevent cookie banner content from appearing in search #106

v0.5.2

11 Dec 16:18

Choose a tag to compare

v0.5.2 Pre-release
Pre-release

Minor fix to version numbers within the package and cookie-consent.js