@lenne.tech/nuxt-extensions 4.0.7 → 4.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.d.mts CHANGED
@@ -3,7 +3,7 @@ import { LtExtensionsModuleOptions } from '../dist/runtime/types/index.js';
3
3
  export * from '../dist/runtime/types/index.js';
4
4
 
5
5
  declare const name = "@lenne.tech/nuxt-extensions";
6
- declare const version = "4.0.7";
6
+ declare const version = "4.0.8";
7
7
  declare const configKey = "ltExtensions";
8
8
  declare const DEFAULT_LT_AUTH_STATE_COOKIE = "lt-auth-state";
9
9
  declare const DEFAULT_LT_JWT_TOKEN_COOKIE = "lt-jwt-token";
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "configKey": "ltExtensions",
3
3
  "name": "@lenne.tech/nuxt-extensions",
4
- "version": "4.0.7",
4
+ "version": "4.0.8",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.4",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { pathToFileURL } from 'node:url';
3
3
  import { SECURITY_TXT_DEFAULT_VALID_DAYS, SECURITY_TXT_DEFAULT_LANGUAGES, SECURITY_TXT_DEFAULT_CONTACT, SECURITY_TXT_PATH } from '../dist/runtime/server/lib/security-txt.js';
4
4
 
5
5
  const name = "@lenne.tech/nuxt-extensions";
6
- const version = "4.0.7";
6
+ const version = "4.0.8";
7
7
  const configKey = "ltExtensions";
8
8
  const DEFAULT_LT_AUTH_STATE_COOKIE = "lt-auth-state";
9
9
  const DEFAULT_LT_JWT_TOKEN_COOKIE = "lt-jwt-token";
@@ -28,12 +28,11 @@ export declare const LT_JWT_TOKEN_COOKIE_DEFAULT = "lt-jwt-token";
28
28
  * `lt-auth-state` (a "ghost" user from the other project).
29
29
  * - otherwise `''` → the default `lt-auth-state` / `lt-jwt-token`.
30
30
  *
31
- * `storagePrefix` deliberately does NOT influence the cookie name. It is a
32
- * localStorage-namespacing convention; coupling it to cookies would silently
33
- * rename auth cookies on a mere upgrade (logging every user out, bouncing valid
34
- * sessions in custom middleware that reads `lt-auth-state` directly) and force
35
- * frontend/backend to be deployed in lockstep. Cookie naming is therefore
36
- * controlled ONLY by this explicit, opt-in knob → fully backward compatible.
31
+ * The cookie name follows this setting only, never a value set for another
32
+ * purpose (such as a project slug). Deriving it from one would rename the auth
33
+ * cookies of every project that sets that value on a mere upgrade: every user is
34
+ * signed out, custom middleware that reads `lt-auth-state` directly bounces valid
35
+ * sessions, and frontend and backend have to be deployed in lockstep.
37
36
  *
38
37
  * IMPORTANT: when you set `cookiePrefix`, mirror it on the backend
39
38
  * (`COOKIE_PREFIX` env — see nest-server `resolveBetterAuthCookiePrefix`) so
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lenne.tech/nuxt-extensions",
3
- "version": "4.0.7",
3
+ "version": "4.0.8",
4
4
  "description": "Reusable Nuxt 4 composables, components, and Better-Auth integration for lenne.tech projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -115,7 +115,7 @@
115
115
  "@nuxt/schema": "4.7.0",
116
116
  "@nuxt/ui": "4.13.1",
117
117
  "@playwright/test": "1.65.1",
118
- "@types/node": "26.6.6",
118
+ "@types/node": "26.6.9",
119
119
  "@vitest/coverage-v8": "5.1.1",
120
120
  "@vue/server-renderer": "3.5.46",
121
121
  "better-auth": "1.7.19",