@onmax/nuxt-better-auth 0.0.2-alpha.9 → 0.0.2

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.
Files changed (70) hide show
  1. package/README.md +57 -17
  2. package/dist/module.d.mts +28 -1
  3. package/dist/module.json +3 -3
  4. package/dist/module.mjs +1259 -350
  5. package/dist/runtime/app/components/BetterAuthState.d.vue.ts +4 -4
  6. package/dist/runtime/app/components/BetterAuthState.vue +1 -0
  7. package/dist/runtime/app/components/BetterAuthState.vue.d.ts +4 -4
  8. package/dist/runtime/app/composables/useAction.d.ts +2 -0
  9. package/dist/runtime/app/composables/useAction.js +6 -0
  10. package/dist/runtime/app/composables/useAuthAsyncData.d.ts +6 -0
  11. package/dist/runtime/app/composables/useAuthAsyncData.js +16 -0
  12. package/dist/runtime/app/composables/useAuthClient.d.ts +9 -0
  13. package/dist/runtime/app/composables/useAuthClient.js +34 -0
  14. package/dist/runtime/app/composables/useAuthClientAction.d.ts +3 -0
  15. package/dist/runtime/app/composables/useAuthClientAction.js +15 -0
  16. package/dist/runtime/app/composables/useAuthRequestFetch.d.ts +11 -0
  17. package/dist/runtime/app/composables/useAuthRequestFetch.js +4 -0
  18. package/dist/runtime/app/composables/useSignIn.d.ts +16 -0
  19. package/dist/runtime/app/composables/useSignIn.js +8 -0
  20. package/dist/runtime/app/composables/useSignUp.d.ts +5 -0
  21. package/dist/runtime/app/composables/useSignUp.js +8 -0
  22. package/dist/runtime/app/composables/useUserSession.d.ts +6 -5
  23. package/dist/runtime/app/composables/useUserSession.js +189 -100
  24. package/dist/runtime/app/composables/useUserSessionState.d.ts +3 -0
  25. package/dist/runtime/app/composables/useUserSessionState.js +4 -0
  26. package/dist/runtime/app/internal/auth-action-error.d.ts +3 -0
  27. package/dist/runtime/app/internal/auth-action-error.js +33 -0
  28. package/dist/runtime/app/internal/auth-action-handles.d.ts +18 -0
  29. package/dist/runtime/app/internal/auth-action-handles.js +105 -0
  30. package/dist/runtime/app/internal/redirect-helpers.d.ts +4 -0
  31. package/dist/runtime/app/internal/redirect-helpers.js +37 -0
  32. package/dist/runtime/app/internal/session-fetch.d.ts +12 -0
  33. package/dist/runtime/app/internal/session-fetch.js +56 -0
  34. package/dist/runtime/app/internal/utils.d.ts +1 -0
  35. package/dist/runtime/app/internal/utils.js +3 -0
  36. package/dist/runtime/app/internal/vue-safe-auth-proxy.d.ts +3 -0
  37. package/dist/runtime/app/internal/vue-safe-auth-proxy.js +68 -0
  38. package/dist/runtime/app/internal/wrap-auth-method.d.ts +15 -0
  39. package/dist/runtime/app/internal/wrap-auth-method.js +66 -0
  40. package/dist/runtime/app/middleware/auth.global.js +77 -15
  41. package/dist/runtime/app/pages/__better-auth-devtools.vue +4 -10
  42. package/dist/runtime/composables.d.ts +11 -0
  43. package/dist/runtime/composables.js +9 -0
  44. package/dist/runtime/config.d.ts +69 -15
  45. package/dist/runtime/config.js +9 -2
  46. package/dist/runtime/server/api/_better-auth/_schema.d.ts +1 -5
  47. package/dist/runtime/server/api/_better-auth/_schema.js +2 -1
  48. package/dist/runtime/server/api/_better-auth/accounts.get.d.ts +2 -2
  49. package/dist/runtime/server/api/_better-auth/accounts.get.js +3 -2
  50. package/dist/runtime/server/api/_better-auth/config.get.d.ts +9 -3
  51. package/dist/runtime/server/api/_better-auth/config.get.js +18 -6
  52. package/dist/runtime/server/api/_better-auth/sessions.delete.js +3 -2
  53. package/dist/runtime/server/api/_better-auth/sessions.get.d.ts +5 -3
  54. package/dist/runtime/server/api/_better-auth/sessions.get.js +3 -2
  55. package/dist/runtime/server/api/_better-auth/users.get.d.ts +2 -2
  56. package/dist/runtime/server/api/_better-auth/users.get.js +3 -2
  57. package/dist/runtime/server/api/auth/[...all].js +1 -1
  58. package/dist/runtime/server/middleware/route-access.js +2 -1
  59. package/dist/runtime/server/tsconfig.json +9 -1
  60. package/dist/runtime/server/utils/auth.d.ts +16 -8
  61. package/dist/runtime/server/utils/auth.js +229 -23
  62. package/dist/runtime/server/utils/custom-secondary-storage.d.ts +6 -0
  63. package/dist/runtime/server/utils/custom-secondary-storage.js +8 -0
  64. package/dist/runtime/server/utils/session.d.ts +6 -8
  65. package/dist/runtime/server/utils/session.js +216 -4
  66. package/dist/runtime/server/virtual-modules.d.ts +27 -0
  67. package/dist/runtime/types/augment.d.ts +18 -4
  68. package/dist/runtime/types.d.ts +12 -13
  69. package/dist/types.d.mts +1 -1
  70. package/package.json +51 -47
@@ -1,13 +1,225 @@
1
1
  import { createError } from "h3";
2
2
  import { matchesUser } from "../../utils/match-user.js";
3
3
  import { serverAuth } from "./auth.js";
4
+ const requestSessionLoadKey = Symbol.for("nuxt-better-auth.requestSessionLoad");
5
+ const signingAlgorithm = { name: "HMAC", hash: "SHA-256" };
6
+ const cookiePairSeparatorRE = /;\s*/;
7
+ const fallbackRequestSessionContext = /* @__PURE__ */ new WeakMap();
8
+ function getRequestSessionContext(event) {
9
+ const eventWithContext = event;
10
+ if (eventWithContext.context && typeof eventWithContext.context === "object")
11
+ return eventWithContext.context;
12
+ let context = fallbackRequestSessionContext.get(event);
13
+ if (!context) {
14
+ context = {};
15
+ fallbackRequestSessionContext.set(event, context);
16
+ }
17
+ return context;
18
+ }
19
+ function getRequestHeaders(event) {
20
+ return getRequestSessionContext(event).requestHeaders ?? event.headers;
21
+ }
22
+ function loadSession(event) {
23
+ const auth = serverAuth(event);
24
+ return auth.api.getSession({ headers: getRequestHeaders(event) });
25
+ }
26
+ function getServerAuthContext(event) {
27
+ const auth = serverAuth(event);
28
+ return auth.$context;
29
+ }
30
+ function getCookieName(name, prefix) {
31
+ if (prefix === "secure")
32
+ return name.startsWith("__Secure-") ? name : `__Secure-${name}`;
33
+ if (prefix === "host")
34
+ return name.startsWith("__Host-") ? name : `__Host-${name}`;
35
+ if (prefix)
36
+ return void 0;
37
+ return name;
38
+ }
39
+ function serializeCookieHeader(name, value, attributes = {}, valueIsEncoded = false) {
40
+ const cookieName = getCookieName(name, attributes.prefix);
41
+ if (!cookieName)
42
+ throw new Error(`Unsupported cookie prefix: ${attributes.prefix}`);
43
+ const cookieValue = valueIsEncoded ? value : encodeURIComponent(value);
44
+ const cookie = [`${cookieName}=${cookieValue}`];
45
+ const options = { ...attributes };
46
+ if (cookieName.startsWith("__Secure-") && !options.secure)
47
+ options.secure = true;
48
+ if (cookieName.startsWith("__Host-")) {
49
+ options.secure = true;
50
+ options.path = "/";
51
+ delete options.domain;
52
+ }
53
+ if (typeof options.maxAge === "number" && options.maxAge >= 0)
54
+ cookie.push(`Max-Age=${Math.floor(options.maxAge)}`);
55
+ if (options.domain && options.prefix !== "host")
56
+ cookie.push(`Domain=${options.domain}`);
57
+ if (options.path)
58
+ cookie.push(`Path=${options.path}`);
59
+ if (options.expires)
60
+ cookie.push(`Expires=${options.expires.toUTCString()}`);
61
+ if (options.httpOnly)
62
+ cookie.push("HttpOnly");
63
+ if (options.partitioned)
64
+ options.secure = true;
65
+ if (options.secure)
66
+ cookie.push("Secure");
67
+ if (options.sameSite) {
68
+ const normalizedSameSite = options.sameSite.charAt(0).toUpperCase() + options.sameSite.slice(1);
69
+ cookie.push(`SameSite=${normalizedSameSite}`);
70
+ }
71
+ if (options.partitioned)
72
+ cookie.push("Partitioned");
73
+ return cookie.join("; ");
74
+ }
75
+ function serializeCookie(name, value, attributes = {}) {
76
+ return serializeCookieHeader(name, value, attributes);
77
+ }
78
+ async function signCookieValue(value, secret) {
79
+ const key = await crypto.subtle.importKey(
80
+ "raw",
81
+ new TextEncoder().encode(secret),
82
+ signingAlgorithm,
83
+ false,
84
+ ["sign", "verify"]
85
+ );
86
+ const signature = await crypto.subtle.sign(
87
+ signingAlgorithm.name,
88
+ key,
89
+ new TextEncoder().encode(value)
90
+ );
91
+ return encodeURIComponent(`${value}.${btoa(String.fromCharCode(...new Uint8Array(signature)))}`);
92
+ }
93
+ async function serializeSignedCookie(name, value, secret, attributes = {}) {
94
+ return serializeCookieHeader(name, await signCookieValue(value, secret), attributes, true);
95
+ }
96
+ function appendCookieHeader(event, header) {
97
+ const nodeResponse = event.node?.res;
98
+ if (nodeResponse?.setHeader) {
99
+ const current = nodeResponse.getHeader?.("set-cookie");
100
+ if (Array.isArray(current))
101
+ nodeResponse.setHeader("set-cookie", [...current, header]);
102
+ else if (typeof current === "string")
103
+ nodeResponse.setHeader("set-cookie", [current, header]);
104
+ else
105
+ nodeResponse.setHeader("set-cookie", [header]);
106
+ return;
107
+ }
108
+ const responseHeaders = event.response?.headers;
109
+ responseHeaders?.append("set-cookie", header);
110
+ }
111
+ function parseRequestCookies(cookieHeader) {
112
+ const cookies = /* @__PURE__ */ new Map();
113
+ if (!cookieHeader)
114
+ return cookies;
115
+ for (const pair of cookieHeader.split(cookiePairSeparatorRE)) {
116
+ if (!pair)
117
+ continue;
118
+ const separatorIndex = pair.indexOf("=");
119
+ if (separatorIndex < 0)
120
+ continue;
121
+ cookies.set(pair.slice(0, separatorIndex), pair.slice(separatorIndex + 1));
122
+ }
123
+ return cookies;
124
+ }
125
+ function serializeRequestCookies(cookies) {
126
+ if (!cookies.size)
127
+ return null;
128
+ return Array.from(cookies.entries()).map(([name, value]) => `${name}=${value}`).join("; ");
129
+ }
130
+ function extractResponseCookieValue(header) {
131
+ const separatorIndex = header.indexOf(";");
132
+ const cookiePair = separatorIndex >= 0 ? header.slice(0, separatorIndex) : header;
133
+ return cookiePair.slice(cookiePair.indexOf("=") + 1);
134
+ }
135
+ function getChunkedCookieNames(event, cookieName) {
136
+ const cookieNames = /* @__PURE__ */ new Set([cookieName]);
137
+ for (const name of parseRequestCookies(event.headers.get("cookie")).keys()) {
138
+ if (name.startsWith(`${cookieName}.`))
139
+ cookieNames.add(name);
140
+ }
141
+ return Array.from(cookieNames);
142
+ }
143
+ function expireCookie(event, cookieName, attributes) {
144
+ appendCookieHeader(event, serializeCookie(cookieName, "", {
145
+ ...attributes,
146
+ expires: /* @__PURE__ */ new Date(0),
147
+ maxAge: 0
148
+ }));
149
+ }
150
+ function expireCookies(event, cookie) {
151
+ for (const cookieName of getChunkedCookieNames(event, cookie.name))
152
+ expireCookie(event, cookieName, cookie.attributes);
153
+ }
154
+ function updateRequestHeaders(event, sessionCookie, clearedCookieNames) {
155
+ const requestContext = getRequestSessionContext(event);
156
+ const requestHeaders = new Headers(event.headers);
157
+ const cookies = parseRequestCookies(event.headers.get("cookie"));
158
+ for (const name of clearedCookieNames)
159
+ cookies.delete(name);
160
+ const sessionTokenName = sessionCookie.slice(0, sessionCookie.indexOf("="));
161
+ cookies.set(sessionTokenName, extractResponseCookieValue(sessionCookie));
162
+ const nextCookieHeader = serializeRequestCookies(cookies);
163
+ if (nextCookieHeader)
164
+ requestHeaders.set("cookie", nextCookieHeader);
165
+ else
166
+ requestHeaders.delete("cookie");
167
+ requestContext.requestHeaders = requestHeaders;
168
+ }
169
+ export async function getRequestSession(event) {
170
+ const context = getRequestSessionContext(event);
171
+ if (context.requestSession !== void 0)
172
+ return context.requestSession;
173
+ const inFlight = context[requestSessionLoadKey];
174
+ if (inFlight)
175
+ return inFlight;
176
+ const load = loadSession(event);
177
+ context[requestSessionLoadKey] = load;
178
+ try {
179
+ const session = await load;
180
+ context.requestSession = session;
181
+ return session;
182
+ } finally {
183
+ delete context[requestSessionLoadKey];
184
+ }
185
+ }
4
186
  export async function getUserSession(event) {
5
- const auth = await serverAuth(event);
6
- const session = await auth.api.getSession({ headers: event.headers });
7
- return session;
187
+ const context = getRequestSessionContext(event);
188
+ if (context.requestSession !== void 0)
189
+ return context.requestSession;
190
+ const inFlight = context[requestSessionLoadKey];
191
+ if (inFlight)
192
+ return inFlight;
193
+ return loadSession(event);
194
+ }
195
+ export async function setSessionCookie(event, token) {
196
+ const context = await getServerAuthContext(event);
197
+ const sessionCookie = await serializeSignedCookie(
198
+ context.authCookies.sessionToken.name,
199
+ token,
200
+ context.secret,
201
+ {
202
+ ...context.authCookies.sessionToken.attributes,
203
+ maxAge: context.sessionConfig.expiresIn
204
+ }
205
+ );
206
+ appendCookieHeader(event, sessionCookie);
207
+ expireCookies(event, context.authCookies.sessionData);
208
+ expireCookies(event, context.authCookies.dontRememberToken);
209
+ const requestContext = getRequestSessionContext(event);
210
+ delete requestContext.requestSession;
211
+ delete requestContext[requestSessionLoadKey];
212
+ updateRequestHeaders(event, sessionCookie, [
213
+ ...getChunkedCookieNames(event, context.authCookies.sessionData.name),
214
+ ...getChunkedCookieNames(event, context.authCookies.dontRememberToken.name)
215
+ ]);
216
+ }
217
+ export async function createSession(event, userId) {
218
+ const context = await getServerAuthContext(event);
219
+ return context.internalAdapter.createSession?.(userId, false);
8
220
  }
9
221
  export async function requireUserSession(event, options) {
10
- const session = await getUserSession(event);
222
+ const session = await getRequestSession(event);
11
223
  if (!session)
12
224
  throw createError({ statusCode: 401, statusMessage: "Authentication required" });
13
225
  if (options?.user) {
@@ -0,0 +1,27 @@
1
+ declare module '#auth/database' {
2
+ export const db: any
3
+ export function createDatabase(...args: any[]): any
4
+ }
5
+
6
+ declare module '#imports' {
7
+ export function getRouteRules(event: any): any
8
+ export function useRuntimeConfig(): any
9
+ }
10
+
11
+ declare module '#auth/secondary-storage' {
12
+ export function createSecondaryStorage(...args: any[]): any
13
+ }
14
+
15
+ declare module '#auth/schema' {
16
+ export const schema: any
17
+ }
18
+
19
+ declare module '#auth/server' {
20
+ const createServerAuth: any
21
+ export default createServerAuth
22
+ }
23
+
24
+ declare module '@nuxthub/db' {
25
+ export const db: any
26
+ export const schema: any
27
+ }
@@ -21,15 +21,15 @@ export interface AuthSession {
21
21
  export interface ServerAuthContext {
22
22
  runtimeConfig: Record<string, unknown>;
23
23
  db: unknown;
24
+ requestOrigin?: string;
25
+ }
26
+ export interface AuthSocialProviderRegistry {
24
27
  }
25
28
  export interface UserSessionComposable {
26
- client: unknown;
27
29
  user: Ref<AuthUser | null>;
28
30
  session: Ref<AuthSession | null>;
29
31
  loggedIn: ComputedRef<boolean>;
30
32
  ready: ComputedRef<boolean>;
31
- signIn: unknown;
32
- signUp: unknown;
33
33
  fetchSession: (options?: {
34
34
  headers?: HeadersInit;
35
35
  force?: boolean;
@@ -38,5 +38,19 @@ export interface UserSessionComposable {
38
38
  signOut: (options?: {
39
39
  onSuccess?: () => void | Promise<void>;
40
40
  }) => Promise<void>;
41
- updateUser: (updates: Partial<AuthUser>) => void;
41
+ updateUser: (updates: Partial<AuthUser>) => Promise<void>;
42
+ }
43
+ export type UserMatch<T> = {
44
+ [K in keyof T]?: T[K] | T[K][];
45
+ };
46
+ export interface AppSession {
47
+ user: AuthUser;
48
+ session: AuthSession;
49
+ }
50
+ export interface RequireSessionOptions {
51
+ user?: UserMatch<AuthUser>;
52
+ rule?: (ctx: {
53
+ user: AuthUser;
54
+ session: AuthSession;
55
+ }) => boolean | Promise<boolean>;
42
56
  }
@@ -1,11 +1,17 @@
1
1
  import type { NitroRouteRules } from 'nitropack/types';
2
- import type { AuthSession, AuthUser } from './types/augment.js';
3
- export type { AuthSession, AuthUser, ServerAuthContext, UserSessionComposable } from './types/augment.js';
4
- export type { Auth, InferSession, InferUser } from 'better-auth';
2
+ import type { AuthSocialProviderRegistry, AuthUser, UserMatch } from '#nuxt-better-auth';
3
+ export type { AppSession, AuthSession, AuthSocialProviderRegistry, AuthUser, RequireSessionOptions, ServerAuthContext, UserMatch, UserSessionComposable } from './types/augment.js';
4
+ export type AuthSocialProviderId = AuthSocialProviderRegistry extends {
5
+ ids: infer T;
6
+ } ? Extract<T, string> : never;
7
+ export type { Auth, InferPluginTypes, InferSessionFromClient as InferSession, InferUserFromClient as InferUser } from 'better-auth';
8
+ export interface AuthActionError {
9
+ message: string;
10
+ code?: string;
11
+ status?: number;
12
+ raw: unknown;
13
+ }
5
14
  export type AuthMode = 'guest' | 'user';
6
- export type UserMatch<T> = {
7
- [K in keyof T]?: T[K] | T[K][];
8
- };
9
15
  export type AuthMeta = false | AuthMode | {
10
16
  only?: AuthMode;
11
17
  redirectTo?: string;
@@ -14,10 +20,3 @@ export type AuthMeta = false | AuthMode | {
14
20
  export type AuthRouteRules = NitroRouteRules & {
15
21
  auth?: AuthMeta;
16
22
  };
17
- export interface RequireSessionOptions {
18
- user?: UserMatch<AuthUser>;
19
- rule?: (ctx: {
20
- user: AuthUser;
21
- session: AuthSession;
22
- }) => boolean | Promise<boolean>;
23
- }
package/dist/types.d.mts CHANGED
@@ -6,6 +6,6 @@ export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<
6
6
 
7
7
  export { type BetterAuthModuleOptions, type defineClientAuth, type defineServerAuth } from '../dist/runtime/config.js'
8
8
 
9
- export { type Auth, type AuthMeta, type AuthMode, type AuthRouteRules, type AuthSession, type AuthUser, type InferSession, type InferUser, type RequireSessionOptions, type ServerAuthContext, type UserMatch } from '../dist/runtime/types.js'
9
+ export { type AppSession, type Auth, type AuthActionError, type AuthMeta, type AuthMode, type AuthRouteRules, type AuthSession, type AuthSocialProviderId, type AuthUser, type InferSession, type InferUser, type RequireSessionOptions, type ServerAuthContext, type UserMatch } from '../dist/runtime/types.js'
10
10
 
11
11
  export { default } from './module.mjs'
package/package.json CHANGED
@@ -1,20 +1,25 @@
1
1
  {
2
2
  "name": "@onmax/nuxt-better-auth",
3
3
  "type": "module",
4
- "version": "0.0.2-alpha.9",
5
- "packageManager": "pnpm@10.15.1",
4
+ "version": "0.0.2",
5
+ "packageManager": "pnpm@11.1.0",
6
6
  "description": "Nuxt module for Better Auth integration with NuxtHub, route protection, session management, and role-based access",
7
7
  "author": "onmax",
8
8
  "license": "MIT",
9
+ "homepage": "https://better-auth.nuxt.dev",
9
10
  "repository": {
10
11
  "type": "git",
11
- "url": "https://github.com/onmax/nuxt-better-auth"
12
+ "url": "https://github.com/nuxt-modules/better-auth"
12
13
  },
13
14
  "exports": {
14
15
  ".": {
15
16
  "types": "./dist/types.d.mts",
16
17
  "import": "./dist/module.mjs"
17
18
  },
19
+ "./composables": {
20
+ "types": "./dist/runtime/composables.d.ts",
21
+ "import": "./dist/runtime/composables.js"
22
+ },
18
23
  "./config": {
19
24
  "types": "./dist/runtime/config.d.ts",
20
25
  "import": "./dist/runtime/config.js"
@@ -26,6 +31,9 @@
26
31
  ".": [
27
32
  "./dist/types.d.mts"
28
33
  ],
34
+ "composables": [
35
+ "./dist/runtime/composables.d.ts"
36
+ ],
29
37
  "config": [
30
38
  "./dist/runtime/config.d.ts"
31
39
  ]
@@ -41,16 +49,17 @@
41
49
  "dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground",
42
50
  "dev:docs": "nuxi dev docs",
43
51
  "build:docs": "nuxi build docs",
44
- "release": "bumpp --push",
52
+ "release": "bumpp --push --no-push-all",
45
53
  "lint": "eslint .",
46
54
  "lint:fix": "eslint . --fix",
47
55
  "typecheck": "vue-tsc --noEmit",
48
- "typecheck:playground": "cd playground && vue-tsc --noEmit",
56
+ "typecheck:runtime-server": "cd test/cases/plugins-type-inference && nuxi prepare && vue-tsc --noEmit --pretty false -p .nuxt/tsconfig.server.json",
57
+ "typecheck:playground": "pnpm -C playground exec nuxi prepare && pnpm -C playground exec vue-tsc --noEmit -p .nuxt/tsconfig.app.json",
49
58
  "test": "vitest run",
50
59
  "test:watch": "vitest watch"
51
60
  },
52
61
  "peerDependencies": {
53
- "@nuxthub/core": ">=0.10.0",
62
+ "@nuxthub/core": ">=0.10.5",
54
63
  "better-auth": ">=1.0.0"
55
64
  },
56
65
  "peerDependenciesMeta": {
@@ -59,56 +68,51 @@
59
68
  }
60
69
  },
61
70
  "dependencies": {
62
- "@nuxt/kit": "^4.2.2",
71
+ "@better-auth/cli": "1.5.0-beta.13",
72
+ "@nuxt/kit": "^4.3.1",
73
+ "@nuxt/ui": "^4.5.0",
63
74
  "defu": "^6.1.4",
64
- "jiti": "^2.4.2",
75
+ "h3": "^1.15.11",
76
+ "jiti": "^2.6.1",
65
77
  "pathe": "^2.0.3",
66
- "pluralize": "^8.0.0",
67
- "radix3": "^1.1.2"
78
+ "radix3": "^1.1.2",
79
+ "std-env": "^4.0.0",
80
+ "ufo": "^1.6.4"
68
81
  },
69
82
  "devDependencies": {
70
- "@antfu/eslint-config": "^4.12.0",
71
- "@better-auth/cli": "^1.4.6",
72
- "@libsql/client": "^0.15.15",
73
- "@nuxt/devtools": "^3.1.1",
74
- "@nuxt/devtools-kit": "^3.1.1",
83
+ "@antfu/eslint-config": "^9.0.0",
84
+ "@libsql/client": "^0.17.3",
85
+ "@libsql/linux-x64-gnu": "0.5.29",
86
+ "@nuxt/devtools": "^3.2.3",
87
+ "@nuxt/devtools-kit": "^3.2.4",
75
88
  "@nuxt/module-builder": "^1.0.2",
76
- "@nuxt/schema": "^4.2.2",
77
- "@nuxt/test-utils": "^3.21.0",
78
- "@nuxthub/core": "^0.10.3",
89
+ "@nuxt/schema": "^4.3.1",
90
+ "@nuxt/test-utils": "^4.0.0",
91
+ "@nuxthub/core": "^0.10.6",
92
+ "@pinia/nuxt": "^0.11.3",
79
93
  "@types/better-sqlite3": "^7.6.13",
80
94
  "@types/node": "latest",
81
- "@types/pluralize": "^0.0.33",
82
- "better-auth": "^1.4.7",
83
- "better-sqlite3": "^11.9.1",
84
- "bumpp": "^10.3.2",
95
+ "better-auth": "1.5.5",
96
+ "better-call": "1.3.2",
97
+ "better-sqlite3": "^12.6.2",
98
+ "bumpp": "^11.0.0",
85
99
  "changelogen": "^0.6.2",
86
100
  "consola": "^3.4.2",
87
- "drizzle-kit": "^0.31.8",
88
- "drizzle-orm": "^0.38.4",
89
- "eslint": "^9.39.1",
90
- "nuxt": "^4.2.2",
91
- "tinyexec": "^1.0.2",
101
+ "drizzle-kit": "^0.31.10",
102
+ "drizzle-orm": "^0.45.1",
103
+ "eslint": "^10.0.3",
104
+ "nitropack": "2.13.1",
105
+ "npm-agentskills": "https://pkg.pr.new/onmax/npm-agentskills@394499e",
106
+ "nuxt": "^4.3.1",
107
+ "pinia": "^3.0.4",
108
+ "postgres": "^3.4.9",
109
+ "tinyexec": "^1.1.1",
92
110
  "typescript": "~5.9.3",
93
- "vitest": "^4.0.15",
94
- "vitest-package-exports": "^0.1.1",
95
- "vue-tsc": "^3.1.7",
96
- "yaml": "^2.8.2"
97
- },
98
- "pnpm": {
99
- "onlyBuiltDependencies": [
100
- "@parcel/watcher",
101
- "better-sqlite3",
102
- "esbuild",
103
- "sharp",
104
- "workerd"
105
- ],
106
- "patchedDependencies": {
107
- "@peculiar/x509@1.14.2": "patches/@peculiar__x509@1.14.2.patch",
108
- "unenv@2.0.0-rc.24": "patches/unenv@2.0.0-rc.24.patch"
109
- },
110
- "overrides": {
111
- "reka-ui": "^2.6.1"
112
- }
111
+ "unstorage": "^1.17.5",
112
+ "vitest": "^4.0.18",
113
+ "vitest-package-exports": "^1.2.0",
114
+ "vue": "3.5.29",
115
+ "vue-tsc": "^3.2.7",
116
+ "yaml": "^2.8.3"
113
117
  }
114
118
  }