Releases: dargmuesli/nuxt-cookie-control
Releases · dargmuesli/nuxt-cookie-control
3.0.0-beta.2
3.0.0-beta.2 (2023-01-14)
Bug Fixes
-
locale: correct decline string (f7bce65)
-
module: remove unused Nuxt 2 code (bd7b234)
-
feat!: rework control persistence (7631391)
-
feat(plugin)!: do not initialize cookies (2d85581)
BREAKING CHANGES
- control persistence is reworked completely, see changes below
- change own cookie names from
(cookie_control_consent, cookie_control_enabled_cookies)
to(cookie_control_is_consent_given, cookie_control_cookies_enabled_ids)
- remove methods
useAcceptNecessary
,acceptNecessary
,useSetConsent
,getCookieControlConsent
,clearCookies
,setHead
,setConsent
,setCookies
- state properties
cookiesEnabled
,cookiesEnabledIds
andisConsentGiven
can be undefined - include required cookies in enabled cookie list
feat:
- add ability to customize module's own cookie names and expiry
- add method
getCookieIds
fix:
- correct display of unsaved changes hint
- properly initialize state by reading from cookies
- no cookie is being saved until a user allows cookies to be saved. You now need to check for existence of cookie control's own cookies.
3.0.0-beta.1
3.0.0-beta.1 (2023-01-13)
- feat!: remove page reload (9b85dd9)
BREAKING CHANGES
- decide if you need a page reload on cookie configuration change yourself instead! Simply
watch
enabled cookies for changes you wish a page reload for and execute it in your client's code instead of having page reloads forced upon you.