Releases: 68publishers/cookie-consent
Releases · 68publishers/cookie-consent
v1.0.0
1.0.0 - 2024-06-21
Upgrade instructions
- Update the GTM template.
- Consider rewriting event listeners to events of the
CookieConsentWrapper
object via variablewindow.cookieConsentWrapperEvents
. For more information follow the documentation.
Added
- Added safe
CookieConsentWrapper
events attaching via window variablewindow.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
v0.5.2
v0.5.1
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
❗ Don't forget to update the template in your GTM
Added
- Added new storages
ad_user_data
andad_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
andad_personalization_description
. - Added the Migration from v0.4 to v0.5 guide
Changed
- Changed the way to configure storages (more information in the Migration from v0.4 to v0.5 guide).
- Updated README.
v0.4.8
❗ Don't forget to update the template in your GTM
Added
- Added fields
Integration > CMP API > Default environment
andIntegration > CMP API > Environment code
in the GTM template. - Added option
evironment
in theCmpApiOptions
. 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
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
v0.4.5
❗ 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.