Skip to content

Releases: 68publishers/cookie-consent

v1.0.0

21 Jun 00:42
Compare
Choose a tag to compare

1.0.0 - 2024-06-21

Upgrade instructions

  • Update the GTM template.
  • Consider rewriting event listeners to events of the CookieConsentWrapper object via variable window.cookieConsentWrapperEvents. For more information follow the documentation.

Added

  • Added safe CookieConsentWrapper events attaching via window variable window.cookieConsentWrapperEvents.
  • DX: Added Eslint.
  • DX: Added GitHub Actions.

Changed

  • Default translations are loaded dynamically based on the settings in the GTM "Locales" field.
  • Added ability to load custom default translations in .json and .js format.
  • Reduced compiled cookie-consent script size.
  • Updated GTM template.
  • Updated README.
  • DX: Rewritten from CommonJS to ESM.

v0.5.3

10 May 02:45
Compare
Choose a tag to compare

❗ Don't forget to update the template in your GTM

Added

  • Added field User RFC cookie into the GTM template.
  • Added property CookieConsentWrapper.consentCookieValue that returns raw consent value as a string or null if no consent exists.

v0.5.2

04 Apr 04:42
Compare
Choose a tag to compare

Fixed

  • Fixed integration with CMP Cookies API (#74).

v0.5.1

27 Feb 23:35
Compare
Choose a tag to compare

Added

  • Added default translations for Croatian (hr).
  • Added default translations for Italian (it).
  • Added default translations for Norwegian (no).
  • Added default translations for Swedish (sv).
  • Added default translations for Ukrainian (uk).

Changed

  • Updated translations for Bulgarian (bg).

v0.5.0 - GCM v2

27 Feb 05:19
Compare
Choose a tag to compare

❗ Don't forget to update the template in your GTM

Added

  • Added new storages ad_user_data and ad_personalization in the GTM template (Google Consent Mode v2 integration).
  • Added new translation keys ad_user_data_title, ad_user_data_description, ad_personalization_title and ad_personalization_description.
  • Added the Migration from v0.4 to v0.5 guide

Changed

v0.4.8

15 Feb 21:53
Compare
Choose a tag to compare

❗ Don't forget to update the template in your GTM

Added

  • Added fields Integration > CMP API > Default environment and Integration > CMP API > Environment code in the GTM template.
  • Added option evironment in the CmpApiOptions. The environment is taken into account in the integration with CMP.
  • Added getter CookieConsentWrapper.consentCookieData that returns data from the consent cookie (cc-settings by default) as an object or null if the consent doesn't exists.

Changed

  • Credentials are now omitted in CPM integration requests.

v0.4.7

03 Oct 23:35
Compare
Choose a tag to compare

Added

  • Added default translations for Dutch (nl) language.

Changed

  • Updated all dependencies including the original plugin (vanilla-cookieconsent@^2.9.2).
  • The wrapper now includes CSS styles of the original plugin corresponding to its version.

Fixed

  • Fixed npm audit vulnerability.

v0.4.6

01 Sep 07:41
Compare
Choose a tag to compare

Added

  • Added missing translation keys in the GTM template.
  • Added default translations for Finnish (fi) language.

v0.4.5

26 Apr 03:14
Compare
Choose a tag to compare

❗ Don't forget to update the template in your GTM

Added

  • Added default translations for German (de) language.
  • Added default translations for Bulgarian (bg) language.
  • Added default translations for Hungarian (hu) language.
  • Added default translations for Polish (pl) language.
  • Added default translations for Romanian (ro) language.
  • Added default translations for Slovenian (sl) language.

Fixed

  • Fixed the default consent initialization when any category is configured as "enabled_by_default" and user disables it.

v0.4.4

01 Apr 17:11
Compare
Choose a tag to compare

Added

  • added getter CookieConsentWrapper.version
  • the version is also exported via CookieConsentWrapper.configurationExport