Duncan McClean

Cookie Notice Release Notes

Duncan McClean

9.1.0

July 18th, 2024

What's new

  • Added a config option to allow changing the cookie-notice.yaml path #83 by @mwagena

9.0.0

May 9th, 2024

In version 9, Cookie Notice has been completely overhauled, with a big focus on making it easier to manage third-party scripts and more flexibility for developers around customizing the consent widget. To upgrade, please follow the upgrade guide.

What's new

  • Statamic 5 support #79 by @duncanmcclean
  • A new Control Panel to let clients manage third-party scripts (including Google Tag Manager & Meta Pixel).

What's improved

  • Improved design on the consent widget
  • Easier than ever to build custom consent widgets

What's changed

  • Dropped PHP 8.1 support
  • Dropped Statamic 4 support
  • Everything (seriously, it's a big update)

8.1.2

September 25th, 2023

What's fixed

  • Fixed an issue where "toggle by default" setting was causing consent groups to always be checked. #77 #78 by @duncanmcclean

8.1.1

August 3rd, 2023

What's fixed

8.1.0

June 14th, 2023

What's new

  • PHP 8.1 support is back! #74

8.0.8

May 16th, 2023

What's fixed

  • Fixed publishing of Cookie Notice's CSS file

8.0.7

May 16th, 2023

What's fixed

  • Fixed publishing of Cookie Notice's CSS file

8.0.6

May 16th, 2023

What's fixed

  • Changed how CSS is being marked as published

8.0.5

May 16th, 2023

What's fixed

  • Adjusted tag of publishable assets

8.0.4

May 16th, 2023

What's fixed

  • Moved Pest into require-dev

8.0.3

May 16th, 2023

What's fixed

  • Fixed Vite build issues once and for all #68 #72 #73

8.0.2

May 12th, 2023

What's fixed

8.0.1

May 10th, 2023

What's fixed

  • Fixed an issue with Vite assets not being published correctly #65

8.0.0

April 28th, 2023

What's new

  • Cookie Notice v8 now supports Statamic 4 #61
  • Now using Vite to build assets internally #60

Upgrade guide

  1. In your site's composer.json file, replace doublethreedigital/cookie-notice with duncanmcclean/cookie-notice
  2. Then, change the addon's version constraint to ^8.0

7.1.1

January 27th, 2023

What's new

  • Statamic 3.4 Support

7.1.0

January 7th, 2023

What's improved

  • There's been a few small design changes to the notice
  • CSS for the notice are now loaded inline, rather than via an external stylesheet (prevents it from not being displayed with some ad-blockers)

What's fixed

  • Fixed a JavaScript issue when loading the notice for the first time
  • Fixed an issue where text on 'Manage Cookies' button sometimes wouldn't show
  • Fixed an issue where the CSS file in public/vendor/cookie-notice wouldn't be included in your site's Git repository

7.0.0

December 29th, 2022

The supported versions of PHP/Statamic/Laravel used alongside this addon have changed, the supported versions are now:

  • PHP 8.1 & 8.2
  • Statamic 3.3
  • Laravel 9

6.0.2

October 14th, 2022

What's improved

  • You can now click the buttons on the cookie notice widget while the page is still loading #55 #56

6.0.1

October 10th, 2022

What's fixed

  • Fixed an issue for new users providing consent

6.0.0

September 26th, 2022

What's new

  • Cookie Notice now has events! You can listen to them to detect consent changes, then trigger the relevant third-party scripts. #54

5.2.0

June 15th, 2022

What's new

  • The Cookie Notice view is 'translatable' out-of-the-box now #51 #52

5.1.0

February 26th, 2022

What's new

  • Statamic 3.3 support

Breaking changes

  • Dropped support for Statamic 3.0 and Statamic 3.1

5.0.8

January 22nd, 2022

What's new

  • The JavaScript code can be included in a different place than the Notice itself #48 #49

5.0.7

August 24th, 2021

What's fixed

  • Fixed issue with hasConsent if 'cookie notice cookie' does not exist #45

5.0.6

August 20th, 2021

What's fixed

  • Fixed TailwindCSS classes being purged incorrectly #44

5.0.5

August 20th, 2021

What's new

5.0.4

July 11th, 2021

What's fixed

  • Fixed bug in new update script I added to display warnings when updating to v5.

5.0.3

July 11th, 2021

What's new

  • When upgrading to v5, you'll now get warnings about breaking changes if they affect you.

5.0.2

July 11th, 2021

What's fixed

  • Fixed issue with CSS not being compiled properly

5.0.1

July 11th, 2021

This release resolves an issue in the publish workflow of the previous release. Please review v5.0.0 for the changelog.

5.0.0

July 11th, 2021

⚠️ This update contains breaking changes.

Cookie Notice is now compatible with Static Caching!

What's new

  • Now compatible with static caching #40

Breaking changes

Assets

All users of this addon will need to re-publish Cookie Notice's assets after updating.

php artisan vendor:publish --tag=cookie-notice-assets

Antlers view

If you've chosen to publish Cookie Notices views so you can edit them (they'll exist in resources/views/vendor), you will need to re-publish the views and make your changes again. Changes had to be made to support static caching.

php artisan vendor:publish --tag=cookie-notice-views

Checking for consent

Additionally, if you're checking for a user's consent anywhere, you'll need to do this using JavaScript instead of the Antlers tags.

Before

{{ if {cookie_notice:hasConsented} }}
    <!-- has consented to something -->
{{ /if }}

{{ if {cookie_notice:hasConsented group='Marketing'} }}
    <!-- marketing scripts -->
{{ /if }}

Now

if (window.cookieNotice.hasConsent()) {
    // has consented to something
}

if (window.cookieNotice.hasConsent('Marketing')) {
    // marketing scripts
}

4.0.1

June 15th, 2021

What's improved

  • The cookie notice will no longer show in Live Preview #42

4.0.0

March 5th, 2021

  • Refactored view to use Antlers, instead of Blade
  • Allow for using globals inside the cookie notice view #27

This release shouldn't be a breaking change if you're coming from v3. However, I've marked it as such in case there are any unintended side affects.

You should be able to continue using your Blade cookie notice views for as long as you like. Or if you like, you could switch it around for Antlers. It really doesn't matter which one you use.

3.0.6

February 18th, 2021

  • Fix Fix checkbox toggle when user has not consented #26
  • And updated the test suite and some of the documentation.

3.0.5

September 30th, 2020

  • Fixed issue where Cookie Notice styles would include Tailwind base resets.. #22

3.0.4

September 30th, 2020

  • Fixed typo #20

3.0.3

August 27th, 2020

Contains a bunch of bugfix, mostly to do with vendor publishing.

3.0.2

August 21st, 2020

  • Officially supports Statamic 3 (not beta)

3.0.1

August 2nd, 2020

Small refactor

3.0.0

July 11th, 2020

Cookie Notice is now compatible with Statamic v3.