What changed in CookieConsent from 2 to 3

3 releases numbered after v2.9.2 up to and including v3.1.0, stable releases only. v2.9.2 and v3.1.0 are the newest stable releases of 2 and 3 we track; this page follows them as new ones ship.

13 changes across 3 releases

Added 6

v3.1.0

  • Store language code of the consent in the cookie

v3.0.0

  • Add granular control over scripts through services
  • Add support for external .json files for language and translation configuration
  • Add ESM format for easier integration with various frameworks
  • Add new customization options for button and modal layouts
  • Add multiple ways to handle scripts using script-tags, callbacks, or events
Changed 2

v3.0.0

  • Redesign configuration parameters to be more intuitive and clearer
  • Improve language and translation handling
Fixed 4

v3.1.0

  • Fix service reject issue and setCookieData() method deleting lastConsentTimestamp field
  • Fix eraseCookies domain bug

v3.0.1

  • Unhandled exception when category is unknown
  • Default enabled categories reset on preferences modal close
Removed 1

v3.0.0

  • Remove compatibility with v2 configuration, API, and custom attributes

Original release notes, newest first

The list above is our reading of these notes; the originals from Orest Bida are here, one fold per release.

v3.1.0cookieconsent v3.1.0
Features
Bug fixes
Documentation
New Contributors

Full Changelog: https://github.com/orestbida/cookieconsent/compare/v3.0.1...v3.1.0

View originalPermalink

v3.0.1cookieconsent v3.0.1
Bug fixes
Documentation
New Contributors

Full Changelog: https://github.com/orestbida/cookieconsent/compare/v3.0.0...v3.0.1

View originalPermalink

v3.0.0cookieconsent v3.0.0

First stable v3 release! 🎉

Demo

You can check out v3 on the playground.

Main features
Upgrade guide from v2 to v3? ❌

There are way too many changes compared to v2; the configuration, api, custom attributes ... everything is different, although the end result is essentially the same. I personally find it faster to just start from scratch rather than trying to adapt the previous configuration.

Should you upgrade?

YES. Although v2 will still receive some maintenance updates, it will eventually be sunset.

Last but not least

A huge thanks to everyone who contributed!

View originalPermalink