Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: v3 #23

Merged
merged 22 commits into from
Jan 14, 2023
Merged

feat!: v3 #23

merged 22 commits into from
Jan 14, 2023

Conversation

dargmuesli
Copy link
Owner

No description provided.

dargmuesli and others added 22 commits January 13, 2023 23:47
BREAKING CHANGE: 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.
# [3.0.0-beta.1](2.2.4...3.0.0-beta.1) (2023-01-13)

* feat!: remove page reload ([9b85dd9](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.
BREAKING CHANGE: 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.
The module currently only supports Nuxt 3.
BREAKING CHANGE: 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
# [3.0.0-beta.2](3.0.0-beta.1...3.0.0-beta.2) (2023-01-14)

### Bug Fixes

* **locale:** correct decline string ([f7bce65](f7bce65))
* **module:** remove unused Nuxt 2 code ([bd7b234](bd7b234))

* feat!: rework control persistence ([7631391](7631391))
* feat(plugin)!: do not initialize cookies ([2d85581](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` 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.
# [3.0.0-beta.3](3.0.0-beta.2...3.0.0-beta.3) (2023-01-14)

### Bug Fixes

* **cookie-control:** correct local cloned state configuration usage ([393d59f](393d59f))
* **playground:** correct locale type ([189e937](189e937))
# [3.0.0-beta.4](3.0.0-beta.3...3.0.0-beta.4) (2023-01-14)

### Bug Fixes

* **cookie-control:** update local configuration on global change ([8a253eb](8a253eb))

### Features

* add module option to switch target id visibility ([4264052](4264052))
# [3.0.0-beta.5](3.0.0-beta.4...3.0.0-beta.5) (2023-01-14)

### Bug Fixes

* **cookie-control:** properly save partial cookie configurations ([ebb396e](ebb396e))
# [3.0.0-beta.6](3.0.0-beta.5...3.0.0-beta.6) (2023-01-14)

### Bug Fixes

* use js-cookie outside component ([9b689d9](9b689d9))
# [3.0.0-beta.7](3.0.0-beta.6...3.0.0-beta.7) (2023-01-14)

### Bug Fixes

* **cookie:** set same-site to strict ([0ab00f7](0ab00f7))
@dargmuesli
Copy link
Owner Author

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants