Skip to content

Releases: duncanmcclean/cookie-notice

v5.0.5

11 Jul 12:46
Compare
Choose a tag to compare

⚠️ 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
}

v4.0.1

18 Jun 15:39
54331b3
Compare
Choose a tag to compare

What's improved

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

v4.0.0

05 Mar 21:16
54e8075
Compare
Choose a tag to compare
  • 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.

v3.0.6

23 Feb 18:25
5245acf
Compare
Choose a tag to compare
  • [fix] Fix checkbox toggle when user has not consented #26
  • And updated the test suite and some of the documentation.

v3.0.5

30 Sep 16:48
Compare
Choose a tag to compare
  • Fixed issue where Cookie Notice styles would include Tailwind base resets.. #22

v3.0.4

30 Sep 13:21
1bf1906
Compare
Choose a tag to compare
  • Fixed typo #20

v3.0.3

27 Aug 21:35
Compare
Choose a tag to compare

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

v3.0.2

22 Aug 19:45
bf3a676
Compare
Choose a tag to compare
  • Officially supports Statamic 3 (not beta)

v3.0.1

02 Aug 14:21
Compare
Choose a tag to compare

Small refactor

v3.0.0

11 Jul 07:25
Compare
Choose a tag to compare

Cookie Notice is now compatible with Statamic v3.