Migration & deprecations for Nuxt
Deprecated option names that still work, the current name for each, and the console warning that points you here.
A few option names are deprecated. They still work, but log a [cookieyes] warning, and they will be removed in a later release. If you see one of these warnings, or copied an older snippet, use the current name:
| Where | Deprecated | Use instead | Notes |
|---|---|---|---|
cookieyes option mode | "offline" | "cookie-only" | Same behaviour, clearer name. "cookie-only" is also the module's default |
cookieyes option | backendURL | apiUrl | Under mode: "self-hosted" |
cookieyes option | overrides: { regulation } | regulation at the top level | |
cookieyes option | builtInIntegrations: [{ vendor: "meta" }] | integrations: [metaPixel({ ... })], with presets from @cookieyes/scripts, in app/app.config.ts | The presets also load the tool after consent. See Integrations |
If both an old and a current name are set, the current one wins. The one exception is integrations and builtInIntegrations: both run, so remove the old entry once you add the preset, or the vendor's events are counted twice.
Everything else is unchanged: components, composables, styling, translations and categories keep the same names, and the same configuration object works in every CookieYes package.
Next steps
- Configuration: every current option
- Integrations: the presets that replace
builtInIntegrations