All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.4.1 - 2025-08-08
- The widget is now not displayed inside iframes if the iframe is displayed on the same origin as the main window. This prevents the widget from being displayed multiple times.
- The widget will wait for the
DOMContentLoadedevent to occur ifdocument.bodydoes not yet exist.
1.4.0 - 2025-06-17
- Added Basque translations.
- Reverted change that removes a focus from an element created by the "Settings modal trigger selector" option after the settings modal is closed. Even if it prevented the page from scrolling, it is a violation of accessibility rules.
- Fixed accessibility for third button in the consent modal.
- Fixed accessibility in both modals after a language update.
- Third button is now re-translated after a language update.
- Buttons in the settings modal are physically reordered in the DOM if they are ordered visually using CSS flexbox property
orderto keep right tabindex flow.
1.3.6 - 2025-05-15
- Added ability to define user attributes as callback functions. Callbacks will be invoked when interacting with the CMP.
1.3.5 - 2025-04-24
- Information about storages in the settings modal (descriptions, cookies tables) are now automatically collapsed when the modal is closed.
1.3.4 - 2025-04-22
- Prevented page scrolling after consent has been made through a settings modal that was opened through an element created by the "Settings modal trigger selector" option.
1.3.3 - 2025-04-21
- Fixed "TypeError: Cannot use 'in' operator to search for 'functionality_storage' in undefined" when no storage is enabled.
1.3.2 - 2025-04-08
- Fixed displaying of fields "Synchronize consent with" and "If the storage is denied show the modal again after" in the GTM template when a variable is used in the field "Visibility and default state".
1.3.1 - 2025-04-03
- Added new field "Package source" in the GTM template that allows to specify the location of the package files.
- Added section "Using other CDN or self-hosted" in the README.
1.3.0 - 2025-04-03
- Added new option "Visible & Readonly, Disabled always" for field "Visibility and default state" in the GTM template.
1.2.0 - 2025-01-10
- Added custom CSS build that is used as the default stylesheets source instead of the original plugin CSS.
- Update the build - the final package size has been lowered.
- Fixed default (disabled) behaviour for cookies auto-clear.
- Fixed clearing cookies with wildcard names (e.g.
_ga*) when thecookie_tablesstrategy is used.
1.1.0 - 2024-09-19
- Added GTM template field "Init widget after DOMContentLoaded".
- Added Portuguese translations.
- Moved the package under the organization -
@68publishers/cookie-consent. - The widget is now initialized as soon as possible instead of waiting for DOMContentLoaded event. This behavior can be changed back via the new option "Init widget after DOMContentLoaded".
- Improved Interaction to Next Paint (INP) metric when a user gives a consent.
- Updated README.
- Corrected Polish translations.
1.0.0 - 2024-06-21
- Added safe
CookieConsentWrapperevents attaching via window variablewindow.cookieConsentWrapperEvents. - DX: Added Eslint.
- DX: Added GitHub Actions.
- Default translations are loaded dynamically based on the settings in the GTM "Locales" field.
- Added ability to load custom default translations in
.jsonand.jsformat. - Reduced compiled cookie-consent script size.
- Updated GTM template.
- Updated README.
- DX: Rewritten from CommonJS to ESM.
0.5.3 - 2024-05-10
- Added field
User RFC cookieinto the GTM template. - Added property
CookieConsentWrapper.consentCookieValuethat returns raw consent value as a string or null if no consent exists.
0.5.2 - 2024-04-04
- Fixed integration with CMP Cookies API.
0.5.1 - 2024-02-28
- 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).
- Updated translations for
Bulgarian(bg).
0.5.0 - 2024-02-27
- Added new storages
ad_user_dataandad_personalizationin the GTM template (Google Consent Mode v2 integration). - Added new translation keys
ad_user_data_title,ad_user_data_description,ad_personalization_titleandad_personalization_description. - Added the Migration from v0.4 to v0.5 guide.
- Changed the way to configure storages (more information in the Migration from v0.4 to v0.5 guide).
- Updated README.
0.4.8 - 2024-02-15
- Added fields
Integration > CMP API > Default environmentandIntegration > CMP API > Environment codein the GTM template. - Added option
evironmentin theCmpApiOptions. The environment is taken into account in the integration with CMP. - Added getter
CookieConsentWrapper.consentCookieDatathat returns data from the consent cookie (cc-settingsby default) as an object or null if the consent doesn't exists.
- Credentials are now omitted in CPM integration requests.
0.4.7 - 2023-10-04
- Added default translations for
Dutch(nl) language.
- 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 npm audit vulnerability.
0.4.6 - 2023-09-01
- Added missing translation keys in the GTM template.
- Added default translations for
Finnish(fi) language.
0.4.5 - 2023-04-26
- 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 the default consent initialization when any category is configured as "enabled_by_default" and user disables it.
0.4.4 - 2023-04-01
- added getter
CookieConsentWrapper.version - the version is also exported via
CookieConsentWrapper.configurationExport
0.4.3 - 2023-03-28
- Added default translations for
French(fr) language.
0.4.2 - 2023-02-21
- Added default translations for
Spanish(es) language.
0.4.1 - 2022-12-23
- Fixed typo in the czech dictionary.
0.4.0 - 2022-12-09
- Added the CMP application integration
- Added the field
Show third buttonin GTM template under the sectionConsent modal options. - Added the field
Cookie domainin GTM template under the sectionCookie options. - Added the cookie auto-clear option
Use cookie tables - Added events
consent:first-action,consent:accepted,consent:changedandlocale:change - Added mentions of new fields and events in README
- Added the section
Integration with CMP applicationin README - Added all new translations for locales
en,csandsk
- Updated the original plugin to the version
^2.8.6
0.3.8 - 2022-02-09
- The value of the key
datafrom the cookiecc-settingscould be null.
0.3.7 - 2022-02-09
- The data attribute
last_action_dateis automatically added into thecc-settingscookie for users that accepts/rejects consent before the plugin update.
0.3.6 - 2022-02-07
- Added fields
Show the modal again if storage is deniedfor each storage in the GTM template. The settings modal can be opened again after the specified number of days if the storage is denied.
0.3.5 - 2022-01-08
- Added the section
How the GTM integration worksin README - Added the section
How to update already published containerin README
- The original plugin is initialized directly if the DOM is loaded or inside a callback attached to an event
document.DOMContentLoadedinstead ofwindow.load.
0.3.4 - 2022-01-05
- Removed argument
wrapperfor an eventinit. Callbacks for the event now have no arguments now, please use directlyCookieConsentWrapperinside a callback function.
0.3.3 - 2022-01-05
- Default translations are now loaded also for locales that are consist of an
ISO 639-1language code and anISO 3166-1country code e.g.en-US.
0.3.2 - 2022-01-03
- Added the section
Accessing the wrapper in the JavaScriptin the README - Added the section
Cookies optionsin the README - Added the field
Enable cookies auto-clearin GTM template under the sectionCookies options. - Added the field
Cookies auto-clear strategyin GTM template under the sectionCookies options. - Added the field
Cookie namesin GTM template under the sectionCookies options. - Added implementation of cookies auto-clear based on mentioned fields.
- Updated a code in the GTM template - temporary object
window.CookieConsentWrapperis created before the real wrapper is created by an external script. This allows attaching events through the methodCookieConsentWrapper.on()before the script is downloaded by a browser. - Moved fields
Cookie nameandCookie expirationunder the new sectionCookies options. - Moved the field
Settings modal trigger selectorunder the sectionSettings modal options.
0.3.1 - 2021-12-31
- Fixed initialization of the original plugin when a page is too small and DOM is already loaded before an event
window.addEventListener('load', ...)is attached.
0.3.0 - 2021-12-28
- Added param table
Event triggersin a new sectionComposite consentin GTM template. Event triggers for composite consent can be defined here. For more information look into the section Event triggers based on composite consent in README.
- Options for the wrapper are now accessible under a single global variable
window.cc_wrapper_configinstead of multiple smaller variables (GTM template must be updated). - Modified regex validation rule for GTM field
Package version. The regex now allows beta and alpha versions.
0.2.7 - 2021-12-22
- Changed descriptions of the
securitystorage in translations. - Unified translations for buttons in the consent modal.
- Removed emojis from translations.
0.2.6 - 2021-12-21
- Added options
consent_modal_secondary_btn_settingsandconsent_modal_secondary_btn_accept_necessaryfor GTM fieldTranslations - Key.
0.2.5 - 2021-12-21
- Added default translations for
Slovak(sk) language.
- Changed default translations for
English(en) andCzech(cs) languages.
0.2.4 - 2021-12-21
- Fixed loading od internal stylesheets.
0.2.3 - 2021-12-21
- The field
Primary button rolein GTM template under the sectionConsent modal options. - The field
Secondary button rolein GTM template under the sectionConsent modal options. - The field
Buttons orderin GTM template under the sectionConsent modal options. - The translation key
consent_modal_secondary_btn_settings - The translation key
consent_modal_secondary_btn_accept_necessary
- Changed the package logo.
- Updated GTM template - logo, brand etc. - nothing about functionality.
- Updated README.
- The translation key
consent_modal_secondary_btn
0.2.2 - 2021-12-17
- The method
CookieConsentWrapper.on()and an eventinit. The event is fired when the plugin initialization is completed or has been already completed. For example:CookieConsentWrapper.on('init' function (wrapper) { /* do something*/ }).
0.2.1 - 2021-12-17
- Fixed GTM template - the field
locale_detection_strategynow contains an itemdisabledinstead of "noSet" value because of problem with saving in a tag configuration.
0.2.0 - 2021-12-17
- The field
hide_from_botsin GTM template. - The field
locale_detection_strategyin GTM template. - The field
current_localein GTM template. - The field
page_scriptsin GTM template. - The field
script_selectorin GTM template. - Sections
Locale detectionandPage scriptsin README. - Shortcut method
CookieConsentWrapper.allowedCategory(). - Dummy page script in the development demo.
- Text inside a modal trigger is translated with a locale that is resolved by the
cookieconsentplugin.
0.1.3 - 2021-12-14
- The section
How to manage revisionsin README. - The file
package-lock.json. - Ignore files for npm and git in the directory
~/dist.
- Updated cookieconsent package to the version
2.7.1. - Updated GTM template - options
cookie_expiration,revisionanddelaymust be converted into integers. - Modified the
Developmentsection in README. - Plugin
terser-webpack-pluginis used in a production build instead ofuglifyjs-webpack-plugin.
- Fixed usage of revisions.
0.1.2 - 2021-12-10
- The LICENSE.
- The README.
- Updated cookieconsent package to the version
2.7.0. - Default translation files are now
jsonfiles instead of standardjsmodules. - Updated GTM template - removed help text from the field
consent_modal_position.
0.1.1 - 2021-12-10
- The GTM template.
- Removed whitespaces and newlines from internal stylesheets.
- The first version of the package has been released.