Releases
3.0.0
3.0.0 (2023-01-14)
π₯ BREAKING CHANGES
feat!: rework control persistence (7631391 )
feat(plugin)!: do not initialize cookies (2d85581 )
feat!: remove page reload (9b85dd9 )
π Migration instructions
expect the following new names for cookies which were previously called (cookie_control_consent, cookie_control_enabled_cookies)
: (cookie_control_is_consent_given, cookie_control_cookies_enabled_ids)
remove methods useAcceptNecessary
, acceptNecessary
, useSetConsent
, getCookieControlConsent
, clearCookies
, setHead
, setConsent
, setCookies
expect state properties cookiesEnabled
, cookiesEnabledIds
and isConsentGiven
to be possibly undefined
expect required cookies to be included in enabled cookie list
potentially check for existence of cookie control's own cookies potentially as no cookie is being saved until a user allows cookies to be saved now
do not expect the library to trigger page reloads anymore and instead decide if you need a page reload on cookie configuration change yourself
simply watch
enabled cookies for changes you wish a page reload for and execute it in your client's code as shown in v2.0.0
Features
add module option to switch target id visibility (4264052 )
add ability to customize module's own cookie names and expiry
add method getCookieIds
Bug Fixes
cookie-control: correct local cloned state configuration usage (393d59f )
cookie-control: properly save partial cookie configurations (ebb396e )
cookie-control: update local configuration on global change (8a253eb )
cookie: set same-site to strict (0ab00f7 )
locale: correct decline string (f7bce65 )
module: remove unused Nuxt 2 code (bd7b234 )
playground: correct locale type (189e937 )
use js-cookie outside component (9b689d9 )
correct display of unsaved changes hint
properly initialize state by reading from cookies
You canβt perform that action at this time.