Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@michellesanver/nuxt-cookie-control

michellesanver17MIT7.1.1TypeScript support: included

Nuxt Cookie Control Module with option to manage

nuxt cookie control, nuxt gdpr, nuxt cookie consent, nuxt gdpr consent

readme

Nuxt Cookie Control

This is a fork of dargmuesli/nuxt-cookie-control that adds an option to remove the button to manage your cookies. This could be good if you want to have only an accept terms of services button for now where cookies are mentioned. But still have the flexibility of the cookies consent for a later date.

🚩 Trying to keep this package up to date with the main branch, so go there for documentation gitlab.com/dargmuesli/nuxt-cookie-control, make sure to read the README!

Only added thing in this repository is an "isManageable" boolean module option.

changelog

7.1.1 (2023-11-02)

Bug Fixes

  • package: export runtime for require (a0811b3)

7.1.0 (2023-11-02)

Features

  • package: export runtime (dc73816)

7.0.2 (2023-11-01)

Bug Fixes

7.0.1 (2023-10-22)

Bug Fixes

7.0.0 (2023-10-22)

⚠ BREAKING CHANGES

  • h2 replaces h3 in CookieControl.vue

7.0.0-beta.2 (2023-10-19)

Bug Fixes

7.0.0-beta.1 (2023-09-19)

⚠ BREAKING CHANGES

  • components: correct heading order

Bug Fixes

  • components: correct heading order (eb31470)

6.4.4-beta.1 (2023-09-19)

Bug Fixes

  • components: correct landmark (447550c)

6.5.3 (2023-10-21)

Bug Fixes

6.5.2 (2023-10-21)

Bug Fixes

  • deps: update dargmuesli/github-actions action to v1.1.6 (397dbb9)

6.5.1 (2023-10-21)

Bug Fixes

6.5.0 (2023-10-21)

Features

6.4.6 (2023-10-19)

Bug Fixes

6.4.5 (2023-10-11)

Bug Fixes

6.4.4 (2023-09-27)

Bug Fixes

6.4.3 (2023-09-18)

Bug Fixes

  • deps: extend dependency range (531f3e6)

6.4.2 (2023-09-06)

Bug Fixes

6.4.1 (2023-08-23)

Bug Fixes

6.4.0 (2023-08-15)

Features

  • locale: add CA - Catalan translation (#118) (ed08caf)

6.3.1 (2023-08-14)

Bug Fixes

  • components: do not add show all optional cookies as enabled when isIframeBlocked is enabled (#117) (6af3a1c)

6.3.0 (2023-08-10)

Features

  • package: add types export (420fe0b)

6.2.0 (2023-08-09)

Features

  • package: add funding link (27635f5)

6.1.6 (2023-08-09)

Bug Fixes

6.1.5 (2023-07-26)

Bug Fixes

  • plugin: set type on plugin definition (a5dd440)

6.1.4 (2023-07-26)

Bug Fixes

6.1.3 (2023-07-21)

Bug Fixes

  • locale: correct hungarian translations (ba9ae49)

6.1.2 (2023-07-19)

Bug Fixes

6.1.1 (2023-07-12)

Bug Fixes

6.1.0 (2023-07-12)

Features

6.0.0 (2023-07-12)

BREAKING CHANGES

  • Setting an initial state for a cookie (i.e. enabled instead of disabled) was never properly implemented. To avoid confusion, this setting is removed. It continues to be possible to set isIframeBlocked true, though as of 2022-03-30 it is not yet implemented for vite (https://github.com/dargmuesli/nuxt-cookie-control/issues/79).

  • chore(deps): update dependency typescript to v5.0.3

  • chore(deps): update dependency @nuxt/kit to v3.3.3

  • chore(deps): update dependency nuxt to v3.3.3

  • chore(deps): update dargmuesli/github-actions action to v0.35.6

  • chore(deps): update dependency webpack to v5.78.0

  • chore(deps): update dependency lint-staged to v13.2.1

  • chore(deps): update dependency typescript to v5.0.4

  • chore(deps): update dependency eslint to v8.38.0

  • chore(deps): update dependency @nuxt/kit to v3.4.0

  • chore(deps): update dargmuesli/github-actions action to v0.35.7

  • chore(deps): update dependency @nuxt/module-builder to v0.3.0

  • chore(deps): update dependency webpack to v5.79.0

  • chore(deps): update dependency @nuxt/kit to v3.4.1

  • chore(deps): update dependency nuxt to v3.4.1

  • chore(deps): lock file maintenance

  • chore(deps): update dargmuesli/github-actions action to v0.35.8

  • chore(deps): update dependency webpack to v5.80.0

  • chore(deps): update dependency @nuxt/kit to v3.4.2

  • chore(deps): update dependency nuxt to v3.4.2

  • chore(deps): update dependency vue-tsc to v1.4.1

  • chore(deps): update dependency vue-tsc to v1.4.2

  • chore(deps): update dependency js-cookie to v3.0.4

  • chore(deps): update dependency eslint to v8.39.0

  • chore(deps): update dependency vue-tsc to v1.4.3

  • chore(deps): update dependency vue-tsc to v1.4.4

  • chore(deps): update dependency prettier to v2.8.8

  • chore(deps): update dargmuesli/github-actions action to v0.36.0

  • chore(deps): update dependency js-cookie to v3.0.5

  • chore(deps): update dargmuesli/github-actions action to v0.37.2

  • chore(deps): update dargmuesli/github-actions action to v0.37.3

  • chore(deps): update dependency lint-staged to v13.2.2

  • chore(deps): update dependency webpack to v5.81.0

  • chore(deps): update dependency vue-tsc to v1.6.0

  • chore(deps): update dependency vue-tsc to v1.6.1

  • chore(deps): update dependency @nuxt/kit to v3.4.3

  • chore(deps): update dependency nuxt to v3.4.3

  • chore(deps): lock file maintenance

  • chore(deps): update dependency vue-tsc to v1.6.2

  • chore(deps): update dependency @nuxt/module-builder to v0.3.1

  • chore(deps): update dependency vue-tsc to v1.6.3

  • chore(deps): update dargmuesli/github-actions action to v0.37.4

  • chore(deps): update dependency webpack to v5.82.0

  • chore(deps): update dependency vue-tsc to v1.6.4

  • chore(deps): update dependency eslint to v8.40.0

  • chore(deps): update pnpm to v8.5.0

  • chore(deps): update dargmuesli/github-actions action to v0.38.1

  • chore(deps): update dependency webpack to v5.82.1

  • remove stale domain configuration option feat: add cookieOptions configuration option

Co-authored-by: Jonas Thelemann e-mail@jonas-thelemann.de

5.10.4 (2023-07-12)

Bug Fixes

5.10.3 (2023-06-28)

Bug Fixes

5.10.2 (2023-06-21)

Bug Fixes

5.10.1 (2023-06-08)

Bug Fixes

5.10.0 (2023-06-08)

Features

5.9.3 (2023-05-31)

Bug Fixes

5.9.2 (2023-05-24)

Bug Fixes

5.9.1 (2023-05-11)

Bug Fixes

  • cookie-control: remove defineExpose import (#99) (1c600f5)

5.9.0 (2023-05-10)

Features

5.8.5 (2023-05-05)

Bug Fixes

  • package: move development commands to playground (a8dd5dc)

5.8.4 (2023-05-05)

Bug Fixes

  • package: workaround jiti bug (2b7952b)

5.8.3 (2023-05-05)

Bug Fixes

  • nuxt: revert prepare playground on install (10b04d7)
  • package: prepare playground on install (6e0cebe)

5.8.2 (2023-05-05)

Bug Fixes

  • package: readd module build stubbing to prepack script (bdb70ba)

5.8.1 (2023-05-05)

Bug Fixes

  • package: allow node engine starting from v16 (dc30a25)

5.8.0 (2023-05-05)

Features

5.7.1 (2023-05-03)

Bug Fixes

5.7.0 (2023-04-21)

Features

  • method: add define Expose - make methods available to parent component (#89) (466bdd8)

5.6.0 (2023-04-13)

Features

5.5.0 (2023-04-13)

Features

5.4.0 (2023-04-11)

Features

  • add "isModalForced" to ModuleOptions (#78) (341ac73)

5.3.0 (2023-04-05)

Features

  • locale: add PL - Polish translation (52b740c)

5.2.3 (2023-04-04)

Bug Fixes

  • locales: add missing indication for fi (25aa636)

5.2.2 (2023-03-24)

Bug Fixes

  • module: use nuxt resolver rather than node:path resolve (799eea6)

5.2.1 (2023-03-22)

Bug Fixes

  • release: schedule release (e870bb1)

5.2.0 (2023-03-12)

Features

5.1.0 (2023-03-02)

Features

  • locale: add Swedish locale (20a4281)

5.0.2 (2023-03-01)

Bug Fixes

  • module: import with pathToFileURL (33cc7fa)

5.0.1 (2023-03-01)

Bug Fixes

  • don't include css-vars-ponyfill chunk if not enabled (56e37b1)

5.0.0 (2023-02-27)

Bug Fixes

  • cookie-control: correct toggle interactivity (a43583f)
  • playground: resolve own package as development dependency (2fbe156)
  • styles: correct padding and gap (bba6c16)
  • feat(styles)!: use gap (9be04f1)
  • feat(ponyfill)!: disable by default and rename (4a84f81)

Features

  • add wcag text (4d00f7d)
  • checkbox: use button with interactive semantics (80fcf05), closes #41
  • cookie: allow to add links (f91f889), closes #26
  • cookie: shorten default cookie names (7d2c856)
  • cookie: split by | (ff25117)
  • css: add focus ring color (d3a09b0)
  • show banner again once cookies are added or removed (bf03cbc), closes #27

BREAKING CHANGES

    • change padding, margins and gap for display flex
    • rename module option isCssPolyfillEnabled to isCssPonyfillEnabled
  • set module option isCssPonyfillEnabled default to false

5.0.0-beta.8 (2023-02-27)

Bug Fixes

  • module: correct locale text input (8fe4402), closes #46

5.0.0-beta.7 (2023-02-24)

Bug Fixes

  • styles: correct padding and gap (bba6c16)

5.0.0-beta.6 (2023-02-24)

Features

  • cookie: allow to add links (f91f889), closes #26

5.0.0-beta.5 (2023-02-24)

Bug Fixes

  • cookie-control: correct toggle interactivity (a43583f)

Features

  • cookie: shorten default cookie names (7d2c856)
  • cookie: split by | (ff25117)
  • show banner again once cookies are added or removed (bf03cbc), closes #27

5.0.0-beta.4 (2023-02-24)

Features

  • add wcag text (4d00f7d)
  • checkbox: use button with interactive semantics (80fcf05), closes #41
  • css: add focus ring color (d3a09b0)

5.0.0-beta.3 (2023-02-24)

Bug Fixes

  • playground: resolve own package as development dependency (2fbe156)
  • release: schedule release (40a9795)

Features

  • i18n: adapt new locale format for Turkish translation (9111d9c)
  • i18n: add Turkish translation (8dd647c)
  • ko: Add Korean Cookie message (983c3e7)
  • lang: Add Danish language (df8143b)
  • locale: add Azerbaijani (1bf8609)
  • locale: add Czech and Slovak locales (5db470c)
  • locale: add Lithuanian locales (db8a85e)
  • Updated bannerDescription translation for Azerbaijani language (#35) (b2c2977)

5.0.0-beta.2 (2023-01-29)

Bug Fixes

  • locale: correct language switch reactivity (5957224)

BREAKING CHANGES

    • change padding, margins and gap for display flex

5.0.0-beta.1 (2023-01-29)

  • feat(ponyfill)!: disable by default and rename (4a84f81)

BREAKING CHANGES

    • rename module option isCssPolyfillEnabled to isCssPonyfillEnabled
  • set module option isCssPonyfillEnabled default to false

4.6.1 (2023-02-24)

Bug Fixes

  • module: correct locale text input (8fe4402), closes #46

4.6.0 (2023-02-24)

Features

  • i18n: adapt new locale format for Turkish translation (9111d9c)
  • i18n: add Turkish translation (8dd647c)

4.5.0 (2023-02-24)

Features

  • locale: add Lithuanian locales (db8a85e)

4.4.1 (2023-02-15)

Bug Fixes

  • release: schedule release (40a9795)

4.4.0 (2023-02-07)

Features

  • locale: add Czech and Slovak locales (5db470c)

4.3.0 (2023-02-02)

Features

  • Updated bannerDescription translation for Azerbaijani language (#35) (b2c2977)

4.2.0 (2023-02-02)

Features

  • ko: Add Korean Cookie message (983c3e7)
  • locale: add Azerbaijani (1bf8609)

4.1.0 (2023-02-01)

Features

  • lang: Add Danish language (df8143b)

4.0.3 (2023-01-29)

Bug Fixes

  • locale: correct language switch reactivity (5957224)

4.0.2 (2023-01-29)

Bug Fixes

  • locale: simplify german cookie manage string (df4899d)

4.0.1 (2023-01-29)

Bug Fixes

  • component: remove color set check (3d942ed), closes #31
  • types: set all module options defined (65a183e)

4.0.0 (2023-01-29)

Bug Fixes

  • locale: revert decline all translation (fd09a21)
  • feat(locale)!: rework locale strings (abd302b)

BREAKING CHANGES

    • add accept locale string
  • rename acceptNecessary locale string todecline
  • rename barDescription locale string to bannerDescription
  • rename barTitle locale string to bannerTitle
  • rename blockedIframe locale string to iframeBlocked
  • rename functional locale string to cookiesFunctional
  • rename necessary locale string to cookiesNecessary
  • rename optional locale string to cookiesOptional
  • remove none locale string, do not show empty cookie types
  • rename unsaved locale string to settingsUnsaved

4.0.0-beta.2 (2023-01-18)

Bug Fixes

  • locale: revert decline all translation (fd09a21)

4.0.0-beta.1 (2023-01-18)

  • feat(locale)!: rework locale strings (abd302b)

BREAKING CHANGES

    • add accept locale string
  • rename acceptNecessary locale string todecline
  • rename barDescription locale string to bannerDescription
  • rename barTitle locale string to bannerTitle
  • rename blockedIframe locale string to iframeBlocked
  • rename functional locale string to cookiesFunctional
  • rename necessary locale string to cookiesNecessary
  • rename optional locale string to cookiesOptional
  • remove none locale string, do not show empty cookie types
  • rename unsaved locale string to settingsUnsaved

3.0.0 (2023-01-14)

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)
  • feat!: rework control persistence (7631391)
  • feat(plugin)!: do not initialize cookies (2d85581)
  • feat!: remove page reload (9b85dd9)

Features

  • add module option to switch target id visibility (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.

3.0.0-beta.7 (2023-01-14)

Bug Fixes

  • cookie: set same-site to strict (0ab00f7)

3.0.0-beta.6 (2023-01-14)

Bug Fixes

  • use js-cookie outside component (9b689d9)

3.0.0-beta.5 (2023-01-14)

Bug Fixes

  • cookie-control: properly save partial cookie configurations (ebb396e)

3.0.0-beta.4 (2023-01-14)

Bug Fixes

  • cookie-control: update local configuration on global change (8a253eb)

Features

  • add module option to switch target id visibility (4264052)

3.0.0-beta.3 (2023-01-14)

Bug Fixes

  • cookie-control: correct local cloned state configuration usage (393d59f)
  • playground: correct locale type (189e937)

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 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.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.

2.2.4 (2023-01-06)

Bug Fixes

  • cookie-control: make color setter toggle more precise (0477ae8)

2.2.3 (2023-01-06)

Bug Fixes

  • composables: set type explicitly (adfc31e)

2.2.2 (2022-12-28)

Bug Fixes

  • release: schedule release (4a3a3e4)

2.2.1 (2022-12-14)

Bug Fixes

  • component: make stream function parameter of explicit type (34e868a)

2.2.0 (2022-12-14)

Bug Fixes

  • accept-necessary: correct setter (f0881a7), closes #13

Features

2.1.0 (2022-12-14)

Bug Fixes

  • de: correct necessary translation (c6a200a)

Features

  • cookie-control: reorder banner buttons (130f63a)

2.0.2 (2022-12-10)

Bug Fixes

  • deps: switch to @sindresorhus/slugify (99b7dbf)

2.0.1 (2022-12-09)

Bug Fixes

2.0.0 (2022-12-09)

Bug Fixes

  • component: extract external dependencies (31c6945)
  • components: add missing imports (aa88808)
  • components: add specific types on stream functions (0fccd65)
  • components: correct properties (ef752ea)
  • components: include typing (443bda0)
  • components: migrate to script setup (d7f3b3e)
  • correct composables (22faf97)
  • correct typing (79322a3)
  • correct typing (bde33f4)
  • eslint: set end of line to auto (17890db)
  • git: ignore output (a1fa4c3)
  • lint-stages: only lint staged files (d392cdd)
  • locale: correct imports (71c5eab)
  • methods: fallback to default language (6655207)
  • module: resolve paths correctly (b25832c)
  • package: add release configuration (68c944a)
  • package: correct files (759c520)
  • package: correct postinstall hook (17038d7)
  • package: correct scripts (43d2679)
  • package: correct typecheck command (3e2fc33)
  • package: improve script names (0d61201)
  • package: remove peer dependencies (7c0efed)
  • package: remove release-it (204394f)
  • package: use npm in prepack (fe73557)
  • playground: readd lost nuxt config (a9dddf8)
  • runtime: add imports (5f5d7c8)
  • src: add missing tsconfig (c0a0cd6)

Features

  • add Arabic and Dutch translations (c0c0422)
  • begin nuxt 3 migration (64c997d)
  • continue migration (a07b462)
  • continue nuxt 3 migration (3ace873)
  • deps: make peer dependencies optional (355fd43)
  • finish nuxt 3 migration (ccc55a7)
  • import composable (a07f344)
  • improve typing (1c982c9)
  • playground: add cookie iframe component (33f3624)
  • playground: add module configuration (8140d81)
  • plugin: add nuxt context to accepted / declined calls (9ac2fd0)
  • postinstall: remove outdated link (0f66469)
  • remove globalname (f2d2178)

BREAKING CHANGES

  • globalname is not available anymore.

2.0.0-beta.7 (2022-12-09)

Bug Fixes

  • component: extract external dependencies (31c6945)
  • components: add specific types on stream functions (0fccd65)
  • package: remove peer dependencies (7c0efed)

2.0.0-beta.6 (2022-12-08)

Bug Fixes

  • methods: fallback to default language (6655207)

2.0.0-beta.5 (2022-12-08)

Bug Fixes

2.0.0-beta.4 (2022-12-08)

Bug Fixes

  • module: resolve paths correctly (b25832c)
  • package: correct scripts (43d2679)
  • playground: readd lost nuxt config (a9dddf8)

2.0.0-beta.3 (2022-12-08)

Bug Fixes

  • package: correct postinstall hook (17038d7)

2.0.0-beta.2 (2022-12-08)

Bug Fixes

  • package: remove release-it (204394f)

2.0.0-beta.1 (2022-12-08)

Bug Fixes

  • components: add missing imports (aa88808)
  • components: correct properties (ef752ea)
  • components: include typing (443bda0)
  • components: migrate to script setup (d7f3b3e)
  • correct composables (22faf97)
  • correct typing (79322a3)
  • correct typing (bde33f4)
  • eslint: set end of line to auto (17890db)
  • git: ignore output (a1fa4c3)
  • lint-stages: only lint staged files (d392cdd)
  • locale: correct imports (71c5eab)
  • package: add release configuration (68c944a)
  • package: correct files (759c520)
  • package: correct typecheck command (3e2fc33)
  • package: improve script names (0d61201)
  • package: use npm in prepack (fe73557)
  • src: add missing tsconfig (c0a0cd6)

Features

  • add Arabic and Dutch translations (c0c0422)
  • begin nuxt 3 migration (64c997d)
  • continue migration (a07b462)
  • continue nuxt 3 migration (3ace873)
  • deps: make peer dependencies optional (355fd43)
  • finish nuxt 3 migration (ccc55a7)
  • import composable (a07f344)
  • improve typing (1c982c9)
  • playground: add cookie iframe component (33f3624)
  • playground: add module configuration (8140d81)
  • plugin: add nuxt context to accepted / declined calls (9ac2fd0)
  • postinstall: remove outdated link (0f66469)
  • remove globalname (f2d2178)

BREAKING CHANGES

  • globalname is not available anymore.