Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [3.0.0](2.2.4...3.0.0) (2023-01-14) ### Bug Fixes * **cookie-control:** correct local cloned state configuration usage ([393d59f](393d59f)) * **cookie-control:** properly save partial cookie configurations ([ebb396e](ebb396e)) * **cookie-control:** update local configuration on global change ([8a253eb](8a253eb)) * **cookie:** set same-site to strict ([0ab00f7](0ab00f7)) * **locale:** correct decline string ([f7bce65](f7bce65)) * **module:** remove unused Nuxt 2 code ([bd7b234](bd7b234)) * **playground:** correct locale type ([189e937](189e937)) * use js-cookie outside component ([9b689d9](9b689d9)) * feat!: rework control persistence ([7631391](7631391)) * feat(plugin)!: do not initialize cookies ([2d85581](2d85581)) * feat!: remove page reload ([9b85dd9](9b85dd9)) ### Features * add module option to switch target id visibility ([4264052](4264052)) ### 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` and `isConsentGiven` 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. * 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.
- Loading branch information