Skip to content

Commit

Permalink
Moved the package under the organization
Browse files Browse the repository at this point in the history
- renamed the package name to `@68publishers/cookie-consent`
- updated CDN url in the GTM template
- updated CHANGELOG
  • Loading branch information
tg666 committed Sep 19, 2024
1 parent da10b02 commit 11d7d54
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added GTM template field "Init widget after DOMContentLoaded".

### Changed
- 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.
Expand Down
2 changes: 1 addition & 1 deletion gtm_template.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,7 @@ setInWindow('cc_wrapper_config', {

// inject cookie consent wrapper
const packageVersion = 'latest' === data.package_version ? '' : '@' + data.package_version;
const scriptBaseUrl = 'https://unpkg.com/68publishers-cookie-consent' + packageVersion + '/dist/';
const scriptBaseUrl = 'https://unpkg.com/@68publishers/cookie-consent' + packageVersion + '/dist/';
const cookieConsentWrapperScript = scriptBaseUrl + 'cookie-consent.min.js';

for (let localeKey in locales) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "68publishers-cookie-consent",
"name": "@68publishers/cookie-consent",
"version": "1.0.0",
"description": "Cookie consent wrapper based on orestbida/cookieconsent with GTM integration.",
"homepage": "http://www.68publishers.io/",
Expand Down

0 comments on commit 11d7d54

Please sign in to comment.