From 840dc5e96def229498a20ce837cd567bd72f4731 Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Thu, 4 Jun 2026 15:17:09 -0500 Subject: [PATCH 1/8] perf(core): optimize type inference by reducing TypeBox Static usage --- packages/core/package.json | 2 +- packages/core/src/@types/utility.ts | 12 +- packages/core/src/shared/identity.ts | 9 +- packages/core/test/identity.test.ts | 6 +- packages/core/test/types.test-d.ts | 4 +- packages/core/tsconfig.diag.json | 12 ++ pnpm-lock.yaml | 249 ++++++++++++++------------- 7 files changed, 163 insertions(+), 131 deletions(-) create mode 100644 packages/core/tsconfig.diag.json diff --git a/packages/core/package.json b/packages/core/package.json index 2ea84c51..46e79083 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -91,7 +91,7 @@ "license": "MIT", "dependencies": { "@aura-stack/jose": "workspace:*", - "@aura-stack/router": "^0.7.0", + "@aura-stack/router": "^0.7.1", "arktype": "^2.2.0", "typebox": "^1.1.38", "valibot": "catalog:valibot", diff --git a/packages/core/src/@types/utility.ts b/packages/core/src/@types/utility.ts index b4eea640..1c2fda53 100644 --- a/packages/core/src/@types/utility.ts +++ b/packages/core/src/@types/utility.ts @@ -1,5 +1,5 @@ import { Type } from "arktype" -import type { TProperties, TObject, Static, TSchema } from "typebox" +import type { TProperties, TObject, TSchema } from "typebox" import type { AuthInstance } from "@/@types/config.ts" import type { Session, User } from "@/@types/session.ts" import type { ZodObject, ZodRawShape, ZodTypeAny, infer as Infer } from "zod/v4" @@ -36,6 +36,10 @@ export type EditableShapeTypebox = { [K in keyof T]: T[K] extends TObject ? Wrap> : TSchema } +export type EditableUser = { + [K in keyof User]: any +} + export type ConfigSchema = IsZod extends true ? ZodObject @@ -51,7 +55,7 @@ export type ValibotShapeToObject = Merge = S extends Type ? Wrap> : never -export type TypeboxShapeToObject = S extends TProperties ? Wrap>, User>> : never +export type TypeboxShapeToObject = Wrap> export type EditableShapeArkType = T extends Type ? Type<{ [K in keyof Shape]: any }> : never @@ -72,7 +76,9 @@ export type FromShapeToObject = S extends ZodRawShape ? ArktypeShapeToObject : S extends TProperties ? TypeboxShapeToObject - : never + : S extends User + ? S + : never /** Recursively makes every property required. */ export type DeepRequired = { diff --git a/packages/core/src/shared/identity.ts b/packages/core/src/shared/identity.ts index a14fbde1..d69e775c 100644 --- a/packages/core/src/shared/identity.ts +++ b/packages/core/src/shared/identity.ts @@ -3,7 +3,13 @@ import * as valibot from "valibot" import { Type as Typebox } from "typebox" import { type, type Type } from "arktype" import { isArkType, isTypeboxEntries, isValibotEntries, isZodEntries } from "@/shared/assert.ts" -import type { EditableShape, EditableShapeArkType, EditableShapeTypebox, EditableShapeValibot } from "@/@types/utility.ts" +import type { + EditableShape, + EditableShapeArkType, + EditableShapeTypebox, + EditableShapeValibot, + EditableUser, +} from "@/@types/utility.ts" export type { InferUser, @@ -63,6 +69,7 @@ export type Identities = | EditableShapeValibot | EditableShapeArkType | EditableShapeTypebox + | EditableUser type ReturnShapeType = T extends EditableShape diff --git a/packages/core/test/identity.test.ts b/packages/core/test/identity.test.ts index b4bf56e6..cebfd2c2 100644 --- a/packages/core/test/identity.test.ts +++ b/packages/core/test/identity.test.ts @@ -188,13 +188,13 @@ describe("createIdentity", () => { }), }) - const auth = createAuth({ + type ExpectedIdentity = Static + const auth = createAuth({ oauth: [], identity: { - schema: Schema, + schema: Schema as any, }, }) - type ExpectedIdentity = Static expectTypeOf().toEqualTypeOf>() }) }) diff --git a/packages/core/test/types.test-d.ts b/packages/core/test/types.test-d.ts index 9e98c8b6..78c8b09c 100644 --- a/packages/core/test/types.test-d.ts +++ b/packages/core/test/types.test-d.ts @@ -143,7 +143,7 @@ describe("createAuth", () => { Partial< { sub: string - role?: string | undefined + role: Typebox.TOptional name?: string | null | undefined image?: string | null | undefined email?: string | null | undefined @@ -226,7 +226,7 @@ describe("createAuth", () => { ).toEqualTypeOf< (options: GetSessionAPIOptions) => Promise< GetSessionAPIReturn<{ - role?: string | undefined + role: Typebox.TOptional sub: string name?: string | null | undefined image?: string | null | undefined diff --git a/packages/core/tsconfig.diag.json b/packages/core/tsconfig.diag.json new file mode 100644 index 00000000..807378b2 --- /dev/null +++ b/packages/core/tsconfig.diag.json @@ -0,0 +1,12 @@ +{ + "extends": ["@aura-stack/tsconfig/tsconfig.base.json"], + "compilerOptions": { + "paths": { + "@/*": ["./src/*"] + }, + "noEmit": true, + "skipLibCheck": true + }, + "include": ["src"], + "exclude": ["node_modules", "dist", "test", "coverage", "dist"] +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c932bf71..df67f0cb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -370,7 +370,7 @@ importers: version: 0.563.0(vue@3.5.30(typescript@5.9.3)) nuxt: specifier: ^4.4.2 - version: 4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2) + version: 4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2) reka-ui: specifier: ^2.7.0 version: 2.9.2(vue@3.5.30(typescript@5.9.3)) @@ -492,7 +492,7 @@ importers: version: 1.166.9(@tanstack/query-core@5.91.0)(@tanstack/react-query@5.91.0(react@19.2.4))(@tanstack/react-router@1.167.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(@tanstack/router-core@1.167.4)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@tanstack/react-start': specifier: ^1.132.0 - version: 1.166.16(crossws@0.4.5(srvx@0.11.15))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) + version: 1.166.16(crossws@0.4.5(srvx@0.11.16))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) '@tanstack/router-plugin': specifier: ^1.132.0 version: 1.166.13(@tanstack/react-router@1.167.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) @@ -507,7 +507,7 @@ importers: version: 0.561.0(react@19.2.4) nitro: specifier: npm:nitro-nightly@latest - version: nitro-nightly@3.0.1-20260602-161340-ab30554d(chokidar@5.0.0)(dotenv@17.3.1)(giget@3.1.2)(ioredis@5.10.0)(jiti@2.6.1)(lru-cache@11.2.7)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) + version: nitro-nightly@3.0.1-20260604-184855-0a07991c(chokidar@5.0.0)(dotenv@17.3.1)(giget@3.1.2)(ioredis@5.10.0)(jiti@2.6.1)(lru-cache@11.2.7)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) react: specifier: catalog:react version: 19.2.4 @@ -598,7 +598,7 @@ importers: version: 1.2.4(@types/react@19.2.14)(react@19.2.4) '@vercel/analytics': specifier: ^2.0.1 - version: 2.0.1(next@16.1.7(@babel/core@7.29.0)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(react@19.2.4)(vue-router@4.6.4(vue@3.5.30(typescript@5.9.3)))(vue@3.5.30(typescript@5.9.3)) + version: 2.0.1(next@16.1.7(@babel/core@7.29.0)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(react@19.2.4)(vue-router@4.6.4(vue@3.5.30(typescript@5.9.3)))(vue@3.5.30(typescript@5.9.3)) class-variance-authority: specifier: ^0.7.1 version: 0.7.1 @@ -673,8 +673,8 @@ importers: specifier: workspace:* version: link:../jose '@aura-stack/router': - specifier: ^0.7.0 - version: 0.7.0(arktype@2.2.0)(typebox@1.1.38)(valibot@1.4.0(typescript@5.9.3))(zod@4.3.5) + specifier: ^0.7.1 + version: 0.7.1(arktype@2.2.0)(typebox@1.1.38)(valibot@1.4.0(typescript@5.9.3))(zod@4.3.5) arktype: specifier: ^2.2.0 version: 2.2.0 @@ -1013,8 +1013,8 @@ packages: '@astrojs/yaml2ts@0.2.3': resolution: {integrity: sha512-PJzRmgQzUxI2uwpdX2lXSHtP4G8ocp24/t+bZyf5Fy0SZLSF9f9KXZoMlFM/XCGue+B0nH/2IZ7FpBYQATBsCg==} - '@aura-stack/router@0.7.0': - resolution: {integrity: sha512-4I0U7Ot8A6Lj0c7O2O7UO1oXDvr8w/fEAxab4n79I970LwRVukuOks1zjJ9KFw4KWEib34D1qWLu2b4nVPDIAw==} + '@aura-stack/router@0.7.1': + resolution: {integrity: sha512-8Hw6TwmGglPCKTnd9qQAak6mL5petDvGg6C2CnEPYxAbz0tkTBWph+EIN12xJlWVDv72qwBL6Tv3KDkKNbl37A==} peerDependencies: arktype: ^2.0.0 typebox: ^1.1.38 @@ -2469,8 +2469,8 @@ packages: '@oxc-project/types@0.124.0': resolution: {integrity: sha512-VBFWMTBvHxS11Z5Lvlr3IWgrwhMTXV+Md+EQF0Xf60+wAdsGFTBx7X7K/hP4pi8N7dcm1RvcHwDxZ16Qx8keUg==} - '@oxc-project/types@0.132.0': - resolution: {integrity: sha512-FESMOxil5Se014ui/Eq8fT5uHJo6nIRwH0PfJrZJXs6Gek3ZVFOrpUv3YIZT20m+extU98Hg1Ym72U58rlsxUQ==} + '@oxc-project/types@0.134.0': + resolution: {integrity: sha512-T0xuRRKrQFmocH8y+jGfpmSkGcheaJExY9lEihmR1Gm2aH+75B8CzgU2rABRQSzzDxLjZ15Sc0bRVLj5lVeNXQ==} '@oxc-transform/binding-android-arm-eabi@0.117.0': resolution: {integrity: sha512-17giX7h5VR9Eodru4OoSCFdgwLFIaUxeEn8JWe0vMZrAuRbT9NiDTy5dXdbGQBoO8aXPkbGS38FGlvbi31aujw==} @@ -3384,8 +3384,8 @@ packages: cpu: [arm64] os: [android] - '@rolldown/binding-android-arm64@1.0.2': - resolution: {integrity: sha512-ZS4D1JPGn/MYQN/SYDWftIE/nVsM8j/AFOYEzAoOE2O3NktQOZru+/vYXGbR/qtdLdIfGCP0lcoJiYVzsEz+iQ==} + '@rolldown/binding-android-arm64@1.1.0': + resolution: {integrity: sha512-gCYzGOSkYY6Z034suzd20euvds7lPzMEEla62DJGE/ZAlR4OMBnNbvnBSsIGUCAr52gaWMsloGxP4tVGtN5aCA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] @@ -3396,8 +3396,8 @@ packages: cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-arm64@1.0.2': - resolution: {integrity: sha512-vdFA9+C/rekyGce7WqHs/xoT0ioZEWaOFyZLIV1mEeNFaFDUQrPIo8Vs2GvJ6eetb3rzDUtUBgzto3ExpXJB3w==} + '@rolldown/binding-darwin-arm64@1.1.0': + resolution: {integrity: sha512-JQBD77MNgu+4Z6RAyg69acugdrhhVoWesr3l47zohYZ2YV2fwkWMArkN/2p4l6Ei+Sno7W5q+UsKdVWq5Ens0w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] @@ -3408,8 +3408,8 @@ packages: cpu: [x64] os: [darwin] - '@rolldown/binding-darwin-x64@1.0.2': - resolution: {integrity: sha512-BewSOwTHazv77DTYiAZXSqqKZ4KP/KonFisDMVU7PImxoWfB2aepnPhd2E4SWz3zDzYgDNbs6jBmTdgNnF02GA==} + '@rolldown/binding-darwin-x64@1.1.0': + resolution: {integrity: sha512-p/8cXUTK4Sob604e+xxPhVSbDFf29E6J0l/xESM9rdCfn3aDai3nEs6TnMHUsdD5aNlFz0+gDbiGlozLKGa2YA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] @@ -3420,8 +3420,8 @@ packages: cpu: [x64] os: [freebsd] - '@rolldown/binding-freebsd-x64@1.0.2': - resolution: {integrity: sha512-m41o7M0YWtUdqk61Tb+jnKb2rN++iRdIASlExkUoKfIAH30DOHCB8fVLzSUpbWHHU8esmEioY62PxzexE8MBuA==} + '@rolldown/binding-freebsd-x64@1.1.0': + resolution: {integrity: sha512-KbtOSlVv6fElujiZWMcC3aQYhEwLVVf073RcwlSmpGQvIsKZFUqc0ef4sjUuurRwfbiI6JJXji9DQn+86hawmQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] @@ -3432,8 +3432,8 @@ packages: cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm-gnueabihf@1.0.2': - resolution: {integrity: sha512-jcojB9H7W/jS29pMKWAK1N+fU99vXodHDTatS3b3y/XSOCiHo0kkA74pL3jJmkoQtYpOCxDvaKs1fo2Ij/1X5w==} + '@rolldown/binding-linux-arm-gnueabihf@1.1.0': + resolution: {integrity: sha512-9fZ9i0o0/MQaw7om6Z6TsT7tfCk0jtbEFtC+aPqZL5RNsGWNcHvn6EHgL3dAprjq+AZzPTAQjg2JtpJaMt+6pg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] @@ -3444,8 +3444,8 @@ packages: cpu: [arm64] os: [linux] - '@rolldown/binding-linux-arm64-gnu@1.0.2': - resolution: {integrity: sha512-1jn6qDU5iiOgFgygDzKUuKP0maTi0/f1+sBLgvij/76C77Nm3ts6ufz9Bjg5q5dduxiUIxtq86JIoBvo1xQ4Ig==} + '@rolldown/binding-linux-arm64-gnu@1.1.0': + resolution: {integrity: sha512-+tog7T66i+yFyIuuAnjL6xmW182W/qTBOUt6BtQ6lBIM1Eikh/fSMz4HGgvuCp5uU0zuIVWng7kDYthjCMOHcg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] @@ -3456,8 +3456,8 @@ packages: cpu: [arm64] os: [linux] - '@rolldown/binding-linux-arm64-musl@1.0.2': - resolution: {integrity: sha512-QVLO/czFMdoMFSqlX3bcswcJNm/23r+qoa/jgtmFc/qEp6/jXmIkDjF/XIo8dPfGaiwy1xfQn8o77L79GeXFgw==} + '@rolldown/binding-linux-arm64-musl@1.1.0': + resolution: {integrity: sha512-4b7yruLIIj/oZ3GpcLOvxcLCLDMraohn3IhQfN2hBP4w9UekG0DTIajWguJosRGfySf/+h/NwRUiMKoCpxCrqQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] @@ -3468,8 +3468,8 @@ packages: cpu: [ppc64] os: [linux] - '@rolldown/binding-linux-ppc64-gnu@1.0.2': - resolution: {integrity: sha512-hgO5Abm0w5UL6FEa2iFnZqo2KlK7TQ5QhV5x09hujBf7t5KzHQ1VmfPuTpqRy/rNlSxua3eWH374xxiVrP+lcA==} + '@rolldown/binding-linux-ppc64-gnu@1.1.0': + resolution: {integrity: sha512-QRDOVZd0bhQ5jLsUsCC3dUxDWdTSVY9WMznowZgCGOrZfLLgctWpelhUASEiBwsXfat/JwYnVd1EaxMhqyT+UQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] @@ -3480,8 +3480,8 @@ packages: cpu: [s390x] os: [linux] - '@rolldown/binding-linux-s390x-gnu@1.0.2': - resolution: {integrity: sha512-fy8rXxuYEu602abC8MUNaPjYLIFzReOaEIEMKMUa0rFEUxNpVXhs15KSSQ4qlqSaM7B6rcj9rDZgADh/IGDzLQ==} + '@rolldown/binding-linux-s390x-gnu@1.1.0': + resolution: {integrity: sha512-ypxT+Hq76NFG7woFbNbySnGEajFuYuIXeKz/jfCU+lXUoxfi3zLE6OG/ZQNeK3RpZSYJlAe2bokpsQ046CaieQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] @@ -3492,8 +3492,8 @@ packages: cpu: [x64] os: [linux] - '@rolldown/binding-linux-x64-gnu@1.0.2': - resolution: {integrity: sha512-0+bOkiQ779+r1WpoHOWHqncvyySci0vKph+myNDYb+im6meJAzHQXay6oEgnkHuUGouM1LKTZwqKpBow6Kj7CQ==} + '@rolldown/binding-linux-x64-gnu@1.1.0': + resolution: {integrity: sha512-IdovCmfROFmpTLahdecTDFL74aLERVYN68F/mLZjfVh6LfoplPfI6deyHNMTcVujbokDV5k05XrFO22zfv+qjg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] @@ -3504,8 +3504,8 @@ packages: cpu: [x64] os: [linux] - '@rolldown/binding-linux-x64-musl@1.0.2': - resolution: {integrity: sha512-mjSkrzZK5Qsl0a9d1JgILOiuZOSDTVdKENcSXBoqbzSrspLR/4/IRVDo5wd2GgZjNss/viBFJdeq+j7qH2nypw==} + '@rolldown/binding-linux-x64-musl@1.1.0': + resolution: {integrity: sha512-pcA8xlFp2tyk9T2R6Fi/rPe3bQ1MA+sSMDNUU5Ogu80GHOatkE4P8YCreGAvZErm5Ho2YRXnyvNrWiRncfVysQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] @@ -3516,8 +3516,8 @@ packages: cpu: [arm64] os: [openharmony] - '@rolldown/binding-openharmony-arm64@1.0.2': - resolution: {integrity: sha512-1v5vHasdfQAZoEHakBV72LIFAC9JjnymsiKxp+GEr/ma3+NJCPSaYK+qavInOovJkgwFrs7GccX2d6IgDA3Z5w==} + '@rolldown/binding-openharmony-arm64@1.1.0': + resolution: {integrity: sha512-4+fexHayrLCWpriPh4c6dNvL4an34DEZCG7zOM/FD5QNF6h8DT+bDXzyB/kfC8lDJbaFb7jKShtnjDQFXVQEjg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] @@ -3527,8 +3527,8 @@ packages: engines: {node: '>=14.0.0'} cpu: [wasm32] - '@rolldown/binding-wasm32-wasi@1.0.2': - resolution: {integrity: sha512-mb1VobWn6NheziTk5/WEaR6AKVbrwT5sOi6C7zk3gy/pD1qtJfU1j4PgTo2NJnOtbL9Dl3Aeei8w9jJ7qC2jZQ==} + '@rolldown/binding-wasm32-wasi@1.1.0': + resolution: {integrity: sha512-SbL++MNmOw6QamrwIGDMSSfM4ceTzFr+RjbOExJSLLBinScU4WI5OdA413h1qwPw2yH7lVF1+H4svQ+6mSXKTQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [wasm32] @@ -3538,8 +3538,8 @@ packages: cpu: [arm64] os: [win32] - '@rolldown/binding-win32-arm64-msvc@1.0.2': - resolution: {integrity: sha512-SqKonF56vA/L2yHwHYcEp2P34URpOZ7d1fS635cTkpDnUtEGdUbhI6NzsPdqeSWvAAeGDrxjWjNmibDIdFf9/A==} + '@rolldown/binding-win32-arm64-msvc@1.1.0': + resolution: {integrity: sha512-+xTE6XC7wBgk0VKRXGG+QAnyW5S9b8vfsFpiMjf0waQTmSQSU8onsH/beyZ8X4aXVveJnotiy7VDjLOaW8bTrg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] @@ -3550,8 +3550,8 @@ packages: cpu: [x64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.0.2': - resolution: {integrity: sha512-v7qRI7gXLRINcOGXt+7YmAZ6iFuyZVMIoXAxhd8oP+DR9dLfL9GfNIx7PLMxmhZdvq8waUJBQiWN9EKNy+TRBQ==} + '@rolldown/binding-win32-x64-msvc@1.1.0': + resolution: {integrity: sha512-Ogji1TQNqH3ACLnYr+1Ns1nyrJ0CO2P585u9Hsh02pXvtFiFpgtgT2b3P4PnCOU86VVCvqtAeCN4OftMT8KU4w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -7268,16 +7268,16 @@ packages: nf3@0.3.17: resolution: {integrity: sha512-N9zEWySuJFw+gR0lhS5863YsvNeudOdqRyFvNb+jMXbeTJOdrjDqkCpDginIZfUm0LzT1t1nCRiDeqQm/8kirQ==} - nitro-nightly@3.0.1-20260602-161340-ab30554d: - resolution: {integrity: sha512-SclO7mj6bVrKyRrj5Yq4zMyJ5DPJEId+4iYGne5on/sm2Nt8BtAuPLDZrfLDff0abHYUaG1YHcatgl6mXdWnoQ==} + nitro-nightly@3.0.1-20260604-184855-0a07991c: + resolution: {integrity: sha512-qfSO9IQLP37UMei9r634Sjq6axyOvTB/4gBow0d10LXUDFdTppGoMHJ8TGbKGE7CwP5GTS0/I4ylqBrGiUhTww==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: '@vercel/queue': ^0.2.0 dotenv: '*' giget: '*' - jiti: ^2.6.1 - rollup: ^4.60.3 + jiti: ^2.7.0 + rollup: ^4.60.4 vite: ^7 || ^8 xml2js: ^0.6.2 zephyr-agent: ^0.2.0 @@ -8150,8 +8150,8 @@ packages: engines: {node: ^20.19.0 || >=22.12.0} hasBin: true - rolldown@1.0.2: - resolution: {integrity: sha512-oZx5zVDtVB44AW3eaifgDml1gWRDZGvjcfdxonE4swNPG98PrrXjaO/KrnUjzlMnztCCRVlUueA1kCXhARGk6g==} + rolldown@1.1.0: + resolution: {integrity: sha512-zpMvlJhs5PkXRTtKc0CaLBVI9AR/VDiJFpM+kx//hgToEca7FgMlGjaRIisXBcb19T76LswgmKECSQ96hjWr5A==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -8361,6 +8361,11 @@ packages: engines: {node: '>=20.16.0'} hasBin: true + srvx@0.11.16: + resolution: {integrity: sha512-bp07zRuycfTY43IjAvvTFnmnJi8ikW0VFiHwOhhYcVW/L4xQ1XY4PAd4Nuum1rsA17C39zL7x+CDhrn5AL32Rw==} + engines: {node: '>=20.16.0'} + hasBin: true + stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} @@ -9740,7 +9745,7 @@ snapshots: dependencies: yaml: 2.8.2 - '@aura-stack/router@0.7.0(arktype@2.2.0)(typebox@1.1.38)(valibot@1.4.0(typescript@5.9.3))(zod@4.3.5)': + '@aura-stack/router@0.7.1(arktype@2.2.0)(typebox@1.1.38)(valibot@1.4.0(typescript@5.9.3))(zod@4.3.5)': dependencies: cookie: 1.1.1 optionalDependencies: @@ -10855,7 +10860,7 @@ snapshots: transitivePeerDependencies: - magicast - '@nuxt/nitro-server@4.4.2(@babel/core@7.29.0)(db0@0.3.4)(ioredis@5.10.0)(magicast@0.5.2)(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(rolldown@1.0.2)(typescript@5.9.3)': + '@nuxt/nitro-server@4.4.2(@babel/core@7.29.0)(db0@0.3.4)(ioredis@5.10.0)(magicast@0.5.2)(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(rolldown@1.1.0)(typescript@5.9.3)': dependencies: '@babel/plugin-syntax-typescript': 7.28.6(@babel/core@7.29.0) '@nuxt/devalue': 2.0.2 @@ -10873,8 +10878,8 @@ snapshots: impound: 1.1.5 klona: 2.0.6 mocked-exports: 0.1.1 - nitropack: 2.13.1(rolldown@1.0.2) - nuxt: 4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2) + nitropack: 2.13.1(rolldown@1.1.0) + nuxt: 4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2) nypm: 0.6.5 ohash: 2.0.11 pathe: 2.0.3 @@ -10941,7 +10946,7 @@ snapshots: rc9: 3.0.0 std-env: 3.10.0 - '@nuxt/vite-builder@4.4.2(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@types/node@24.12.0)(eslint@9.39.4(jiti@2.6.1))(lightningcss@1.32.0)(magicast@0.5.2)(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vue-tsc@3.2.6(typescript@5.9.3))(vue@3.5.30(typescript@5.9.3))(yaml@2.8.2)': + '@nuxt/vite-builder@4.4.2(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@types/node@24.12.0)(eslint@9.39.4(jiti@2.6.1))(lightningcss@1.32.0)(magicast@0.5.2)(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vue-tsc@3.2.6(typescript@5.9.3))(vue@3.5.30(typescript@5.9.3))(yaml@2.8.2)': dependencies: '@nuxt/kit': 4.4.2(magicast@0.5.2) '@rollup/plugin-replace': 6.0.3(rollup@4.59.0) @@ -10959,7 +10964,7 @@ snapshots: magic-string: 0.30.21 mlly: 1.8.1 mocked-exports: 0.1.1 - nuxt: 4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2) + nuxt: 4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2) nypm: 0.6.5 pathe: 2.0.3 pkg-types: 2.3.0 @@ -10975,8 +10980,8 @@ snapshots: vue-bundle-renderer: 2.2.0 optionalDependencies: '@babel/plugin-syntax-jsx': 7.28.6(@babel/core@7.29.0) - rolldown: 1.0.2 - rollup-plugin-visualizer: 6.0.11(rolldown@1.0.2)(rollup@4.59.0) + rolldown: 1.1.0 + rollup-plugin-visualizer: 6.0.11(rolldown@1.1.0)(rollup@4.59.0) transitivePeerDependencies: - '@biomejs/biome' - '@types/node' @@ -11151,7 +11156,7 @@ snapshots: '@oxc-project/types@0.124.0': {} - '@oxc-project/types@0.132.0': {} + '@oxc-project/types@0.134.0': {} '@oxc-transform/binding-android-arm-eabi@0.117.0': optional: true @@ -11885,73 +11890,73 @@ snapshots: '@rolldown/binding-android-arm64@1.0.0-rc.15': optional: true - '@rolldown/binding-android-arm64@1.0.2': + '@rolldown/binding-android-arm64@1.1.0': optional: true '@rolldown/binding-darwin-arm64@1.0.0-rc.15': optional: true - '@rolldown/binding-darwin-arm64@1.0.2': + '@rolldown/binding-darwin-arm64@1.1.0': optional: true '@rolldown/binding-darwin-x64@1.0.0-rc.15': optional: true - '@rolldown/binding-darwin-x64@1.0.2': + '@rolldown/binding-darwin-x64@1.1.0': optional: true '@rolldown/binding-freebsd-x64@1.0.0-rc.15': optional: true - '@rolldown/binding-freebsd-x64@1.0.2': + '@rolldown/binding-freebsd-x64@1.1.0': optional: true '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.15': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.0.2': + '@rolldown/binding-linux-arm-gnueabihf@1.1.0': optional: true '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.15': optional: true - '@rolldown/binding-linux-arm64-gnu@1.0.2': + '@rolldown/binding-linux-arm64-gnu@1.1.0': optional: true '@rolldown/binding-linux-arm64-musl@1.0.0-rc.15': optional: true - '@rolldown/binding-linux-arm64-musl@1.0.2': + '@rolldown/binding-linux-arm64-musl@1.1.0': optional: true '@rolldown/binding-linux-ppc64-gnu@1.0.0-rc.15': optional: true - '@rolldown/binding-linux-ppc64-gnu@1.0.2': + '@rolldown/binding-linux-ppc64-gnu@1.1.0': optional: true '@rolldown/binding-linux-s390x-gnu@1.0.0-rc.15': optional: true - '@rolldown/binding-linux-s390x-gnu@1.0.2': + '@rolldown/binding-linux-s390x-gnu@1.1.0': optional: true '@rolldown/binding-linux-x64-gnu@1.0.0-rc.15': optional: true - '@rolldown/binding-linux-x64-gnu@1.0.2': + '@rolldown/binding-linux-x64-gnu@1.1.0': optional: true '@rolldown/binding-linux-x64-musl@1.0.0-rc.15': optional: true - '@rolldown/binding-linux-x64-musl@1.0.2': + '@rolldown/binding-linux-x64-musl@1.1.0': optional: true '@rolldown/binding-openharmony-arm64@1.0.0-rc.15': optional: true - '@rolldown/binding-openharmony-arm64@1.0.2': + '@rolldown/binding-openharmony-arm64@1.1.0': optional: true '@rolldown/binding-wasm32-wasi@1.0.0-rc.15': @@ -11961,7 +11966,7 @@ snapshots: '@napi-rs/wasm-runtime': 1.1.3(@emnapi/core@1.9.2)(@emnapi/runtime@1.9.2) optional: true - '@rolldown/binding-wasm32-wasi@1.0.2': + '@rolldown/binding-wasm32-wasi@1.1.0': dependencies: '@emnapi/core': 1.10.0 '@emnapi/runtime': 1.10.0 @@ -11971,13 +11976,13 @@ snapshots: '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.15': optional: true - '@rolldown/binding-win32-arm64-msvc@1.0.2': + '@rolldown/binding-win32-arm64-msvc@1.1.0': optional: true '@rolldown/binding-win32-x64-msvc@1.0.0-rc.15': optional: true - '@rolldown/binding-win32-x64-msvc@1.0.2': + '@rolldown/binding-win32-x64-msvc@1.1.0': optional: true '@rolldown/pluginutils@1.0.0-beta.40': {} @@ -12440,27 +12445,27 @@ snapshots: tiny-invariant: 1.3.3 tiny-warning: 1.0.3 - '@tanstack/react-start-server@1.166.13(crossws@0.4.5(srvx@0.11.15))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': + '@tanstack/react-start-server@1.166.13(crossws@0.4.5(srvx@0.11.16))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)': dependencies: '@tanstack/history': 1.161.6 '@tanstack/react-router': 1.167.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@tanstack/router-core': 1.167.4 '@tanstack/start-client-core': 1.166.12 - '@tanstack/start-server-core': 1.166.12(crossws@0.4.5(srvx@0.11.15)) + '@tanstack/start-server-core': 1.166.12(crossws@0.4.5(srvx@0.11.16)) react: 19.2.4 react-dom: 19.2.4(react@19.2.4) transitivePeerDependencies: - crossws - '@tanstack/react-start@1.166.16(crossws@0.4.5(srvx@0.11.15))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))': + '@tanstack/react-start@1.166.16(crossws@0.4.5(srvx@0.11.16))(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))': dependencies: '@tanstack/react-router': 1.167.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@tanstack/react-start-client': 1.166.13(react-dom@19.2.4(react@19.2.4))(react@19.2.4) - '@tanstack/react-start-server': 1.166.13(crossws@0.4.5(srvx@0.11.15))(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@tanstack/react-start-server': 1.166.13(crossws@0.4.5(srvx@0.11.16))(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@tanstack/router-utils': 1.161.6 '@tanstack/start-client-core': 1.166.12 - '@tanstack/start-plugin-core': 1.167.0(@tanstack/react-router@1.167.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(crossws@0.4.5(srvx@0.11.15))(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) - '@tanstack/start-server-core': 1.166.12(crossws@0.4.5(srvx@0.11.15)) + '@tanstack/start-plugin-core': 1.167.0(@tanstack/react-router@1.167.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(crossws@0.4.5(srvx@0.11.16))(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) + '@tanstack/start-server-core': 1.166.12(crossws@0.4.5(srvx@0.11.16)) pathe: 2.0.3 react: 19.2.4 react-dom: 19.2.4(react@19.2.4) @@ -12562,7 +12567,7 @@ snapshots: '@tanstack/start-fn-stubs@1.161.6': {} - '@tanstack/start-plugin-core@1.167.0(@tanstack/react-router@1.167.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(crossws@0.4.5(srvx@0.11.15))(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))': + '@tanstack/start-plugin-core@1.167.0(@tanstack/react-router@1.167.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(crossws@0.4.5(srvx@0.11.16))(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))': dependencies: '@babel/code-frame': 7.27.1 '@babel/core': 7.29.0 @@ -12573,7 +12578,7 @@ snapshots: '@tanstack/router-plugin': 1.166.13(@tanstack/react-router@1.167.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) '@tanstack/router-utils': 1.161.6 '@tanstack/start-client-core': 1.166.12 - '@tanstack/start-server-core': 1.166.12(crossws@0.4.5(srvx@0.11.15)) + '@tanstack/start-server-core': 1.166.12(crossws@0.4.5(srvx@0.11.16)) cheerio: 1.2.0 exsolve: 1.0.8 pathe: 2.0.3 @@ -12594,13 +12599,13 @@ snapshots: - vite-plugin-solid - webpack - '@tanstack/start-server-core@1.166.12(crossws@0.4.5(srvx@0.11.15))': + '@tanstack/start-server-core@1.166.12(crossws@0.4.5(srvx@0.11.16))': dependencies: '@tanstack/history': 1.161.6 '@tanstack/router-core': 1.167.4 '@tanstack/start-client-core': 1.166.12 '@tanstack/start-storage-context': 1.166.12 - h3-v2: h3@2.0.1-rc.16(crossws@0.4.5(srvx@0.11.15)) + h3-v2: h3@2.0.1-rc.16(crossws@0.4.5(srvx@0.11.16)) seroval: 1.5.1 tiny-invariant: 1.3.3 transitivePeerDependencies: @@ -12970,10 +12975,10 @@ snapshots: d3-selection: 3.0.0 d3-transition: 3.0.1(d3-selection@3.0.0) - '@vercel/analytics@2.0.1(next@16.1.7(@babel/core@7.29.0)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(react@19.2.4)(vue-router@4.6.4(vue@3.5.30(typescript@5.9.3)))(vue@3.5.30(typescript@5.9.3))': + '@vercel/analytics@2.0.1(next@16.1.7(@babel/core@7.29.0)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(react@19.2.4)(vue-router@4.6.4(vue@3.5.30(typescript@5.9.3)))(vue@3.5.30(typescript@5.9.3))': optionalDependencies: next: 16.1.7(@babel/core@7.29.0)(babel-plugin-react-compiler@1.0.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4) - nuxt: 4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2) + nuxt: 4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2) react: 19.2.4 vue: 3.5.30(typescript@5.9.3) vue-router: 4.6.4(vue@3.5.30(typescript@5.9.3)) @@ -13957,9 +13962,9 @@ snapshots: dependencies: uncrypto: 0.1.3 - crossws@0.4.5(srvx@0.11.15): + crossws@0.4.5(srvx@0.11.16): optionalDependencies: - srvx: 0.11.15 + srvx: 0.11.16 css-declaration-sorter@7.3.1(postcss@8.5.8): dependencies: @@ -14404,10 +14409,10 @@ snapshots: env-runner@0.1.9: dependencies: - crossws: 0.4.5(srvx@0.11.15) + crossws: 0.4.5(srvx@0.11.16) exsolve: 1.0.8 httpxy: 0.5.3 - srvx: 0.11.15 + srvx: 0.11.16 error-stack-parser-es@1.0.5: {} @@ -15095,19 +15100,19 @@ snapshots: ufo: 1.6.3 uncrypto: 0.1.3 - h3@2.0.1-rc.16(crossws@0.4.5(srvx@0.11.15)): + h3@2.0.1-rc.16(crossws@0.4.5(srvx@0.11.16)): dependencies: rou3: 0.8.1 srvx: 0.11.15 optionalDependencies: - crossws: 0.4.5(srvx@0.11.15) + crossws: 0.4.5(srvx@0.11.16) - h3@2.0.1-rc.22(crossws@0.4.5(srvx@0.11.15)): + h3@2.0.1-rc.22(crossws@0.4.5(srvx@0.11.16)): dependencies: rou3: 0.8.1 - srvx: 0.11.15 + srvx: 0.11.16 optionalDependencies: - crossws: 0.4.5(srvx@0.11.15) + crossws: 0.4.5(srvx@0.11.16) hachure-fill@0.5.2: {} @@ -16373,20 +16378,20 @@ snapshots: nf3@0.3.17: {} - nitro-nightly@3.0.1-20260602-161340-ab30554d(chokidar@5.0.0)(dotenv@17.3.1)(giget@3.1.2)(ioredis@5.10.0)(jiti@2.6.1)(lru-cache@11.2.7)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)): + nitro-nightly@3.0.1-20260604-184855-0a07991c(chokidar@5.0.0)(dotenv@17.3.1)(giget@3.1.2)(ioredis@5.10.0)(jiti@2.6.1)(lru-cache@11.2.7)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)): dependencies: consola: 3.4.2 - crossws: 0.4.5(srvx@0.11.15) + crossws: 0.4.5(srvx@0.11.16) db0: 0.3.4 env-runner: 0.1.9 - h3: 2.0.1-rc.22(crossws@0.4.5(srvx@0.11.15)) + h3: 2.0.1-rc.22(crossws@0.4.5(srvx@0.11.16)) hookable: 6.1.1 nf3: 0.3.17 ocache: 0.1.4 ofetch: 2.0.0-alpha.3 ohash: 2.0.11 - rolldown: 1.0.2 - srvx: 0.11.15 + rolldown: 1.1.0 + srvx: 0.11.16 unenv: 2.0.0-rc.24 unstorage: 2.0.0-alpha.7(chokidar@5.0.0)(db0@0.3.4)(ioredis@5.10.0)(lru-cache@11.2.7)(ofetch@2.0.0-alpha.3) optionalDependencies: @@ -16425,7 +16430,7 @@ snapshots: - sqlite3 - uploadthing - nitropack@2.13.1(rolldown@1.0.2): + nitropack@2.13.1(rolldown@1.1.0): dependencies: '@cloudflare/kv-asset-handler': 0.4.2 '@rollup/plugin-alias': 6.0.0(rollup@4.59.0) @@ -16478,7 +16483,7 @@ snapshots: pretty-bytes: 7.1.0 radix3: 1.1.2 rollup: 4.59.0 - rollup-plugin-visualizer: 6.0.11(rolldown@1.0.2)(rollup@4.59.0) + rollup-plugin-visualizer: 6.0.11(rolldown@1.1.0)(rollup@4.59.0) scule: 1.3.0 semver: 7.7.4 serve-placeholder: 2.0.2 @@ -16595,16 +16600,16 @@ snapshots: dependencies: boolbase: 1.0.0 - nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2): + nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2): dependencies: '@dxup/nuxt': 0.4.0(magicast@0.5.2)(typescript@5.9.3) '@nuxt/cli': 3.34.0(@nuxt/schema@4.4.2)(cac@6.7.14)(magicast@0.5.2) '@nuxt/devtools': 3.2.4(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue@3.5.30(typescript@5.9.3)) '@nuxt/kit': 4.4.2(magicast@0.5.2) - '@nuxt/nitro-server': 4.4.2(@babel/core@7.29.0)(db0@0.3.4)(ioredis@5.10.0)(magicast@0.5.2)(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(rolldown@1.0.2)(typescript@5.9.3) + '@nuxt/nitro-server': 4.4.2(@babel/core@7.29.0)(db0@0.3.4)(ioredis@5.10.0)(magicast@0.5.2)(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(rolldown@1.1.0)(typescript@5.9.3) '@nuxt/schema': 4.4.2 '@nuxt/telemetry': 2.7.0(@nuxt/kit@4.4.2(magicast@0.5.2)) - '@nuxt/vite-builder': 4.4.2(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@types/node@24.12.0)(eslint@9.39.4(jiti@2.6.1))(lightningcss@1.32.0)(magicast@0.5.2)(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.0.2)(rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vue-tsc@3.2.6(typescript@5.9.3))(vue@3.5.30(typescript@5.9.3))(yaml@2.8.2) + '@nuxt/vite-builder': 4.4.2(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@types/node@24.12.0)(eslint@9.39.4(jiti@2.6.1))(lightningcss@1.32.0)(magicast@0.5.2)(nuxt@4.4.2(@babel/core@7.29.0)(@babel/plugin-syntax-jsx@7.28.6(@babel/core@7.29.0))(@parcel/watcher@2.5.6)(@types/node@24.12.0)(@vue/compiler-sfc@3.5.30)(cac@6.7.14)(db0@0.3.4)(eslint@9.39.4(jiti@2.6.1))(ioredis@5.10.0)(lightningcss@1.32.0)(magicast@0.5.2)(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2))(vue-tsc@3.2.6(typescript@5.9.3))(yaml@2.8.2))(optionator@0.9.4)(oxlint@1.66.0)(rolldown@1.1.0)(rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0))(rollup@4.59.0)(terser@5.46.1)(tsx@4.21.0)(typescript@5.9.3)(vue-tsc@3.2.6(typescript@5.9.3))(vue@3.5.30(typescript@5.9.3))(yaml@2.8.2) '@unhead/vue': 2.1.12(vue@3.5.30(typescript@5.9.3)) '@vue/shared': 3.5.30 c12: 3.3.3(magicast@0.5.2) @@ -17635,35 +17640,35 @@ snapshots: '@rolldown/binding-win32-arm64-msvc': 1.0.0-rc.15 '@rolldown/binding-win32-x64-msvc': 1.0.0-rc.15 - rolldown@1.0.2: + rolldown@1.1.0: dependencies: - '@oxc-project/types': 0.132.0 + '@oxc-project/types': 0.134.0 '@rolldown/pluginutils': 1.0.1 optionalDependencies: - '@rolldown/binding-android-arm64': 1.0.2 - '@rolldown/binding-darwin-arm64': 1.0.2 - '@rolldown/binding-darwin-x64': 1.0.2 - '@rolldown/binding-freebsd-x64': 1.0.2 - '@rolldown/binding-linux-arm-gnueabihf': 1.0.2 - '@rolldown/binding-linux-arm64-gnu': 1.0.2 - '@rolldown/binding-linux-arm64-musl': 1.0.2 - '@rolldown/binding-linux-ppc64-gnu': 1.0.2 - '@rolldown/binding-linux-s390x-gnu': 1.0.2 - '@rolldown/binding-linux-x64-gnu': 1.0.2 - '@rolldown/binding-linux-x64-musl': 1.0.2 - '@rolldown/binding-openharmony-arm64': 1.0.2 - '@rolldown/binding-wasm32-wasi': 1.0.2 - '@rolldown/binding-win32-arm64-msvc': 1.0.2 - '@rolldown/binding-win32-x64-msvc': 1.0.2 - - rollup-plugin-visualizer@6.0.11(rolldown@1.0.2)(rollup@4.59.0): + '@rolldown/binding-android-arm64': 1.1.0 + '@rolldown/binding-darwin-arm64': 1.1.0 + '@rolldown/binding-darwin-x64': 1.1.0 + '@rolldown/binding-freebsd-x64': 1.1.0 + '@rolldown/binding-linux-arm-gnueabihf': 1.1.0 + '@rolldown/binding-linux-arm64-gnu': 1.1.0 + '@rolldown/binding-linux-arm64-musl': 1.1.0 + '@rolldown/binding-linux-ppc64-gnu': 1.1.0 + '@rolldown/binding-linux-s390x-gnu': 1.1.0 + '@rolldown/binding-linux-x64-gnu': 1.1.0 + '@rolldown/binding-linux-x64-musl': 1.1.0 + '@rolldown/binding-openharmony-arm64': 1.1.0 + '@rolldown/binding-wasm32-wasi': 1.1.0 + '@rolldown/binding-win32-arm64-msvc': 1.1.0 + '@rolldown/binding-win32-x64-msvc': 1.1.0 + + rollup-plugin-visualizer@6.0.11(rolldown@1.1.0)(rollup@4.59.0): dependencies: open: 8.4.2 picomatch: 4.0.4 source-map: 0.7.6 yargs: 17.7.2 optionalDependencies: - rolldown: 1.0.2 + rolldown: 1.1.0 rollup: 4.59.0 rollup@4.59.0: @@ -17937,6 +17942,8 @@ snapshots: srvx@0.11.15: {} + srvx@0.11.16: {} + stackback@0.0.2: {} standard-as-callback@2.1.0: {} From c6fb46d8f9500df188dbc9afdf9e04ff59e76cae Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Thu, 4 Jun 2026 15:54:42 -0500 Subject: [PATCH 2/8] chore: analyze excessive TypeScript type operations --- bun.lock | 172 +++++++++++++++++++++++++++---- package.json | 8 ++ packages/core/hot-spots.txt | 93 +++++++++++++++++ packages/core/tsconfig.diag.json | 4 +- 4 files changed, 253 insertions(+), 24 deletions(-) create mode 100644 packages/core/hot-spots.txt diff --git a/bun.lock b/bun.lock index e37727ab..74eb73e4 100644 --- a/bun.lock +++ b/bun.lock @@ -4,11 +4,15 @@ "workspaces": { "": { "name": "@aura-stack/auth-root", + "dependencies": { + "oxfmt": "^0.51.0", + "oxlint": "^1.66.0", + }, "devDependencies": { "@types/node": "catalog:node", "@vitest/coverage-v8": "catalog:vitest", "tsdown": "^0.21.8", - "turbo": "^2.7.5", + "turbo": "^2.9.16", "typescript": "catalog:typescript", "vitest": "catalog:vitest", }, @@ -127,7 +131,7 @@ "name": "pages-router", "version": "0.1.0", "dependencies": { - "@aura-stack/react": "workspace:*", + "@aura-stack/next": "workspace:*", "@radix-ui/react-slot": "^1.2.4", "lucide-react": "catalog:lucide-react", "next": "catalog:next", @@ -294,12 +298,13 @@ }, "packages/core": { "name": "@aura-stack/auth", - "version": "0.6.0", + "version": "0.7.0", "dependencies": { "@aura-stack/jose": "workspace:*", - "@aura-stack/router": "^0.7.0", + "@aura-stack/router": "^0.7.1", "arktype": "^2.2.0", - "valibot": "^1.3.1", + "typebox": "^1.1.38", + "valibot": "catalog:valibot", "zod": "catalog:zod-v4", }, "devDependencies": { @@ -309,6 +314,17 @@ "vitest": "catalog:vitest", }, }, + "packages/device": { + "name": "@aura-stack/device", + "version": "0.0.0", + "dependencies": { + "valibot": "catalog:valibot", + }, + "devDependencies": { + "@aura-stack/tsconfig": "workspace:*", + "@aura-stack/tsdown-config": "workspace:*", + }, + }, "packages/elysia": { "name": "@aura-stack/elysia", "version": "0.0.0", @@ -374,7 +390,7 @@ }, "packages/jose": { "name": "@aura-stack/jose", - "version": "0.5.0", + "version": "0.6.0", "dependencies": { "jose": "^6.1.2", }, @@ -394,7 +410,12 @@ "devDependencies": { "@aura-stack/tsconfig": "workspace:*", "@aura-stack/tsdown-config": "workspace:*", + "@testing-library/dom": "catalog:testing-library", + "@testing-library/react": "catalog:testing-library", + "@types/react": "catalog:react", + "@types/react-dom": "catalog:react", "next": "catalog:next", + "node-mocks-http": "^1.17.2", "react": "catalog:react", "react-dom": "catalog:react", }, @@ -422,8 +443,9 @@ "devDependencies": { "@aura-stack/tsconfig": "workspace:*", "@aura-stack/tsdown-config": "workspace:*", - "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/dom": "catalog:testing-library", + "@testing-library/react": "catalog:testing-library", + "@testing-library/user-event": "catalog:testing-library", "@types/react": "catalog:react", "react": "catalog:react", "vitest": "catalog:vitest", @@ -442,6 +464,12 @@ "devDependencies": { "@aura-stack/tsconfig": "workspace:*", "@aura-stack/tsdown-config": "workspace:*", + "@testing-library/dom": "catalog:testing-library", + "@testing-library/react": "catalog:testing-library", + "@types/react": "catalog:react", + "@types/react-dom": "catalog:react", + "react": "catalog:react", + "react-dom": "catalog:react", "react-router": "catalog:react-router", }, "peerDependencies": { @@ -500,9 +528,17 @@ "@tailwindcss/postcss": "^4.1.16", "tailwindcss": "4.1.18", }, + "testing-library": { + "@testing-library/dom": "^10.4.1", + "@testing-library/react": "^16.3.2", + "@testing-library/user-event": "^14.6.1", + }, "typescript": { "typescript": "^5.9.2", }, + "valibot": { + "valibot": "^1.4.0", + }, "vite": { "vite": "^7.1.7", }, @@ -556,6 +592,8 @@ "@aura-stack/auth": ["@aura-stack/auth@workspace:packages/core"], + "@aura-stack/device": ["@aura-stack/device@workspace:packages/device"], + "@aura-stack/elysia": ["@aura-stack/elysia@workspace:packages/elysia"], "@aura-stack/express": ["@aura-stack/express@workspace:packages/express"], @@ -574,7 +612,7 @@ "@aura-stack/react-router": ["@aura-stack/react-router@workspace:packages/react-router"], - "@aura-stack/router": ["@aura-stack/router@0.7.0", "", { "dependencies": { "cookie": "^1.1.1" }, "peerDependencies": { "arktype": "^2.0.0", "typebox": "^1.1.38", "valibot": "^1.4.0", "zod": "^4.1.11" }, "optionalPeers": ["arktype", "typebox", "valibot", "zod"] }, "sha512-4I0U7Ot8A6Lj0c7O2O7UO1oXDvr8w/fEAxab4n79I970LwRVukuOks1zjJ9KFw4KWEib34D1qWLu2b4nVPDIAw=="], + "@aura-stack/router": ["@aura-stack/router@0.7.1", "", { "dependencies": { "cookie": "^1.1.1" }, "peerDependencies": { "arktype": "^2.0.0", "typebox": "^1.1.38", "valibot": "^1.4.0", "zod": "^4.1.11" }, "optionalPeers": ["arktype", "typebox", "valibot", "zod"] }, "sha512-8Hw6TwmGglPCKTnd9qQAak6mL5petDvGg6C2CnEPYxAbz0tkTBWph+EIN12xJlWVDv72qwBL6Tv3KDkKNbl37A=="], "@aura-stack/tsconfig": ["@aura-stack/tsconfig@workspace:configs/tsconfig"], @@ -1090,6 +1128,82 @@ "@oxc-transform/binding-win32-x64-msvc": ["@oxc-transform/binding-win32-x64-msvc@0.117.0", "", { "os": "win32", "cpu": "x64" }, "sha512-V7YzavQnYcRJBeJkp0qpb3FKrlm5I57XJetCYB4jsjStuboQmnFMZ/XQH55Szlf/kVyeU9ddQwv72gJJ5BrGjQ=="], + "@oxfmt/binding-android-arm-eabi": ["@oxfmt/binding-android-arm-eabi@0.51.0", "", { "os": "android", "cpu": "arm" }, "sha512-Ni0sCqg5CIHaLIYFGj+ncbcumylvNC6FE4rfD0KfdmnWHbPJ+zev0qZCXKxy2hFVa0fYRK0yPzf5nzPbkZou7g=="], + + "@oxfmt/binding-android-arm64": ["@oxfmt/binding-android-arm64@0.51.0", "", { "os": "android", "cpu": "arm64" }, "sha512-eu5lAZjuo0KAkp+M24EhDqfOwA8owQ8d7wyBlOUUGRbDLHpU3IRlDHp8Dif+YqGlxs6jra7yS6WQu/NkPhAxeg=="], + + "@oxfmt/binding-darwin-arm64": ["@oxfmt/binding-darwin-arm64@0.51.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-6LsUNIdURhhcIfIn8+xsOb61mSTa9msAHTeSGx9Jf4rsP/gN8PGCF+SKWPAQZbND2w/WBkqQ6303jqEEIXzMdQ=="], + + "@oxfmt/binding-darwin-x64": ["@oxfmt/binding-darwin-x64@0.51.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-9aUMGmVxdHjYMsEAW1tNRoieTJXlVNDFkRvIR1J7LttJXWjVYCu2ekclLij2KJtxBxSQOYSHd12ME/adVGVbZg=="], + + "@oxfmt/binding-freebsd-x64": ["@oxfmt/binding-freebsd-x64@0.51.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-mkY1nhZTqYb+NHaAWxOCKISN6FwdrwMNsu17vTUA3wzUV2VJ+Paq15ZokRcsMU/2PUdHO73prxyeJpjXQ3MPpQ=="], + + "@oxfmt/binding-linux-arm-gnueabihf": ["@oxfmt/binding-linux-arm-gnueabihf@0.51.0", "", { "os": "linux", "cpu": "arm" }, "sha512-wtFwNwE4+YCNuPaWoGDZeGsKvD6D1YSUNBJNn/rJBh7CrDBThFE+TBI5kY7vRW9rIOQRsbW2IpyyL3Du4Zqwiw=="], + + "@oxfmt/binding-linux-arm-musleabihf": ["@oxfmt/binding-linux-arm-musleabihf@0.51.0", "", { "os": "linux", "cpu": "arm" }, "sha512-rnOaNx86G7iRKM6lsCIQMux0SMGNC/TEbFR+r7lpruJ12bnrIWgxd5w1PLqOvgR9r8ZJbpK/zfRKctJnh8/Jfg=="], + + "@oxfmt/binding-linux-arm64-gnu": ["@oxfmt/binding-linux-arm64-gnu@0.51.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-jOgDzSqWcICGRjsp4mc08FxKMN8vzP2Kgs4E0d2HUP99F+nJDQKklRV4Zuj+0gcBgjrzx2CbpqaIdUVPepCojA=="], + + "@oxfmt/binding-linux-arm64-musl": ["@oxfmt/binding-linux-arm64-musl@0.51.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-KBUCdrH5bwVrAvI9gU/1S55oH6fzXjr++J/oVocdu7bYTks1l7DNNT+rLd/1TDdAEjObGwmfWamn7LC1m8A0DQ=="], + + "@oxfmt/binding-linux-ppc64-gnu": ["@oxfmt/binding-linux-ppc64-gnu@0.51.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-NapfjYsABFqTJ1Dn9Efq6sN5esaHconVKwVLbDGNQLrwpOx/g17mkwErHzU72PutL67nf3wNAkbq122H+zLxag=="], + + "@oxfmt/binding-linux-riscv64-gnu": ["@oxfmt/binding-linux-riscv64-gnu@0.51.0", "", { "os": "linux", "cpu": "none" }, "sha512-5dlDt1dUZCVi6elIhiK1PWg9wpTzTcIuj0IZnSurvIoMrhOWqqTcc1dSTxcSkNaBZhfsNqRZdINI1zAgbKkJNQ=="], + + "@oxfmt/binding-linux-riscv64-musl": ["@oxfmt/binding-linux-riscv64-musl@0.51.0", "", { "os": "linux", "cpu": "none" }, "sha512-pgdWUJn0S5nulyiVdlFV8DzCUnGXkU99W5PSkkmbaZW+LrZBPxpezun4G0DDHbQaVYuJeCuKsXsGKGo77CkUTQ=="], + + "@oxfmt/binding-linux-s390x-gnu": ["@oxfmt/binding-linux-s390x-gnu@0.51.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-2XTFUe97CbDGAI8vjwDfZ1HdakO0XIADyJ24idEg64SC4/K4in/OisXVnrW4NMK7I6TgC7EqRhC0Ln/nKhAemA=="], + + "@oxfmt/binding-linux-x64-gnu": ["@oxfmt/binding-linux-x64-gnu@0.51.0", "", { "os": "linux", "cpu": "x64" }, "sha512-kQ1OuCqqt/yyf0ZN9VFxW1/JnlgJgii3Dr7pWf9vNBvrX1hv6g39/+mc5oGRHRGJFZtl3zsGDWR9c5N2B/gwBw=="], + + "@oxfmt/binding-linux-x64-musl": ["@oxfmt/binding-linux-x64-musl@0.51.0", "", { "os": "linux", "cpu": "x64" }, "sha512-ARTYqxHF475o96Gbn41hvSWSSRygPlRDXZZgZ9I2scU1y0qiWpCQyZCoefaQa0mwv+wwtZ+luS4YOzsRzM/izg=="], + + "@oxfmt/binding-openharmony-arm64": ["@oxfmt/binding-openharmony-arm64@0.51.0", "", { "os": "none", "cpu": "arm64" }, "sha512-QiC1XrCl6a6BmqMzduO8hdIRMf1m44hCkt2Q68KWkTvUB/E7fd2iomyNh6KnnRca5w6eBrRAAtLFqTh+xjsjJA=="], + + "@oxfmt/binding-win32-arm64-msvc": ["@oxfmt/binding-win32-arm64-msvc@0.51.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-NC/hJb9dtU23Zf8L7IVK95xnFjiQ7AfcLO2l5pb69TDEr958qxrtnB2CveeeNSCBFNIkgaTCfd/vHNSoG78l9g=="], + + "@oxfmt/binding-win32-ia32-msvc": ["@oxfmt/binding-win32-ia32-msvc@0.51.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-2C45za4Rj36n8YIbhRL1PQbxmXJYf81WEcAgvj5I4ptRROG+A+81hREEN5bmCHADE1UfYaN312U6tkILoZZy6w=="], + + "@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.51.0", "", { "os": "win32", "cpu": "x64" }, "sha512-73RqdAuVKQTkjZIDw08JaDHUM4lav5Qu+CaPwg4QbbA7k8o7LEW0p3UsfZ/F8dsO/pwVYh3RzFcanwLRTTahbQ=="], + + "@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.68.0", "", { "os": "android", "cpu": "arm" }, "sha512-wEdsIspexXLLMCPAEOcCuFLMt6aE3AzTuA/nQKLPRnoJ+EQTturmGheDkhHuuVHx0GbutjQ3JKmEn+Gz6Ag28Q=="], + + "@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.68.0", "", { "os": "android", "cpu": "arm64" }, "sha512-6aZRNNXQTsYtgaus8HTb9nuCcsrQTlKXGnktwvwW0n/SooRWNxNb3925grDkC63aEYZuCIyOVLV16IdYIoC2aQ=="], + + "@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.68.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-lVTbsE3kO4bLpZELgjRZuAJc8kP98wb83yMXWH8gaPaFZ+cM2IDeZto4ByoUAYj0Mxv2rvw+A1ssZequSepVSg=="], + + "@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.68.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-nCmw2XrmQskjBUh/sfP5yKs93V68LijQgjd1cuuZ/q4SCARngLYs60/qqyzuMsg8QQ9KArDI98hxs/RDGE4KRQ=="], + + "@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.68.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-TI4ovQJliYE9V6e06cEv+qEI9uj7Ao65fmif4er4HD+aouyYyh0P31q2jh3KtqsOHHcQqv2PZ61TjJFLpBDGWQ=="], + + "@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.68.0", "", { "os": "linux", "cpu": "arm" }, "sha512-LcNnEi9g71Cmry5ZpLbKT+oVv+/zYG3hYVAbBBB5X85nOQZSk8l92CnDkxJMcxUg0NCnMCOFZuaVDlMyv4tYJw=="], + + "@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.68.0", "", { "os": "linux", "cpu": "arm" }, "sha512-OovHahL3FX4UaK+hgSf11llUx2vszqjSdQQ61Ck9InOEI/ptZoC4XSQJurITqItVvd53JSlmkLMeaNjM1PoQew=="], + + "@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.68.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-YbzTglnHLzzi9zv5or8Ztz5fykAoZE8W9iM42/bOrF4HBSB6rJTqdLQWuoP76EHQw9DuKl76K1QmFlG29sPJXQ=="], + + "@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.68.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-qVKtCZNic+OoNnOr/hCQAu22HSQzflI7Fsq/Blzkw02SnLuv163k3kfmrVpZjSBlUHgsRKj6WgQiw30d3SX02Q=="], + + "@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.68.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-zExyZ8ZOUuAyQ0y9jpTcyjKUz62YY9JhKPyVxzvjTpXzZ3ujdqiVwfPWDdnA1SsIOrxdtxHn7KErDHLWskFjXg=="], + + "@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.68.0", "", { "os": "linux", "cpu": "none" }, "sha512-6C4MPuwewyDavA7sxM14wzgRi5GGL68HPIxRCdVyS75U4MDbpFVYzKO9WNR6KLKTMPq2pcz3THwo1sK2uiqngw=="], + + "@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.68.0", "", { "os": "linux", "cpu": "none" }, "sha512-bnZooVeHAcvA+dH0EDLgx+7HY/DRi6e0hFszg3P+OBatuUjV6EvfIyNIzWOusmqAVh4L6r21GGTZtiKE4iqM4Q=="], + + "@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.68.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-dIqnZnJSmHCMOUpUcWQOiV14o3DDPVx1DSsMaSzvdhNjC1tB1iEPZbdiMSCIEYbkgbsYznHXWqFdKL8WUB3F8g=="], + + "@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.68.0", "", { "os": "linux", "cpu": "x64" }, "sha512-zc9lEnfV/HreDTY6gdMlZe+irkwHSxQ4/B1pS9GyK7RVaA5LxhoZY/w6/o2vIwLLEYiXQ5ujGxOM1ZazeFAAIA=="], + + "@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.68.0", "", { "os": "linux", "cpu": "x64" }, "sha512-Dl5QEX0TCo/40Cdh1o1JdPS//+YiWqjC+Hrrya5OQmStZZr4svAFtdlqcpCrU9yq2Mo3vRVyO9B3h0dzD8s36Q=="], + + "@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.68.0", "", { "os": "none", "cpu": "arm64" }, "sha512-/qy6dOvi4S3/LeXq0l5BT5pRKPYA7oj3uKwJOAZOr5HRLL+HK6jdBynvWuXIA2wwfE01RzNYmbBdM7vwYx00sA=="], + + "@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.68.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-fHNtVqPHSYE7UFDSLVFUjxQjnSVXxseNJmRW+XuP4pXXDwePdPda43NL7/BBCFTxHjycOc44JNDaOPtFDNui9A=="], + + "@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.68.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-NnKXr4Wgo4nps3erhrE0f8shBvBPZMHg72nDsvX0JyrRvsNiP3f1JNvbCKh+A6VFvpF7ZoJxu904P3cKMhvZnA=="], + + "@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.68.0", "", { "os": "win32", "cpu": "x64" }, "sha512-zg5pA+84AlU6XHJ3ruiRxziO71QTrz8nLsk6u01JGS5+tL9/bnlakFiklFrcy4R1/V7ktWtaNitN3JZWmKnf6g=="], + "@paralleldrive/cuid2": ["@paralleldrive/cuid2@2.3.1", "", { "dependencies": { "@noble/hashes": "1.8.0" } }, "sha512-XO7cAxhnTZl0Yggq6jOgjiOHhbgcO4NqFqwSmQpjK3b6TEE6Uj/jfSk6wzYyemh3+I0sHirKSetjQwn5cZktFw=="], "@parcel/watcher": ["@parcel/watcher@2.5.6", "", { "dependencies": { "detect-libc": "2.1.2", "is-glob": "4.0.3", "node-addon-api": "7.1.1", "picomatch": "4.0.3" }, "optionalDependencies": { "@parcel/watcher-android-arm64": "2.5.6", "@parcel/watcher-darwin-arm64": "2.5.6", "@parcel/watcher-darwin-x64": "2.5.6", "@parcel/watcher-freebsd-x64": "2.5.6", "@parcel/watcher-linux-arm-glibc": "2.5.6", "@parcel/watcher-linux-arm-musl": "2.5.6", "@parcel/watcher-linux-arm64-glibc": "2.5.6", "@parcel/watcher-linux-arm64-musl": "2.5.6", "@parcel/watcher-linux-x64-glibc": "2.5.6", "@parcel/watcher-linux-x64-musl": "2.5.6", "@parcel/watcher-win32-arm64": "2.5.6", "@parcel/watcher-win32-ia32": "2.5.6", "@parcel/watcher-win32-x64": "2.5.6" } }, "sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ=="], @@ -1458,12 +1572,26 @@ "@testing-library/react": ["@testing-library/react@16.3.2", "", { "dependencies": { "@babel/runtime": "7.29.2" }, "optionalDependencies": { "@types/react": "19.2.14", "@types/react-dom": "19.2.3" }, "peerDependencies": { "@testing-library/dom": "10.4.1", "react": "19.2.4", "react-dom": "19.2.4" } }, "sha512-XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g=="], + "@testing-library/user-event": ["@testing-library/user-event@14.6.1", "", { "peerDependencies": { "@testing-library/dom": ">=7.21.4" } }, "sha512-vq7fv0rnt+QTXgPxr5Hjc210p6YKq2kmdziLgnsZGgLJ9e6VAShx1pACLuRjd/AS/sr7phAR58OIIpf0LlmQNw=="], + "@tokenizer/inflate": ["@tokenizer/inflate@0.4.1", "", { "dependencies": { "debug": "4.4.3", "token-types": "6.1.2" } }, "sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA=="], "@tokenizer/token": ["@tokenizer/token@0.3.0", "", {}, "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A=="], "@ts-morph/common": ["@ts-morph/common@0.28.1", "", { "dependencies": { "minimatch": "10.2.4", "path-browserify": "1.0.1", "tinyglobby": "0.2.15" } }, "sha512-W74iWf7ILp1ZKNYXY5qbddNaml7e9Sedv5lvU1V8lftlitkc9Pq1A+jlH23ltDgWYeZFFEqGCD1Ies9hqu3O+g=="], + "@turbo/darwin-64": ["@turbo/darwin-64@2.9.16", "", { "os": "darwin", "cpu": "x64" }, "sha512-jLjApWTSNd7JZ5JaLYfelW1ytnGQOvB7ivl+2RD1xQvJTbi8I9gBjzcga7tDZVPyaxpl10YTfJt3BrYXR18KDw=="], + + "@turbo/darwin-arm64": ["@turbo/darwin-arm64@2.9.16", "", { "os": "darwin", "cpu": "arm64" }, "sha512-YPgrn+5HIGzrx0O2a631SV4MBQUe4W/DafMFUuBVgaU32PW9/OTT0ehviF0QSxTXuRJlHvW2eUTemddF5/spmw=="], + + "@turbo/linux-64": ["@turbo/linux-64@2.9.16", "", { "os": "linux", "cpu": "x64" }, "sha512-vAEf1H6l26lTpl9FJ/peQo1NUB8RC0sbEJJz5mPcUhHA2bPDup2x3CZPgo/bH8S4cUcBLm4FN3UHd5iUO2RAew=="], + + "@turbo/linux-arm64": ["@turbo/linux-arm64@2.9.16", "", { "os": "linux", "cpu": "arm64" }, "sha512-xDBLR2PZg4BrQOchfG6svgpv5FCNJ2TOtT2psLdEJcdKo1BH+pnPs9Xj6pvUjgfkHbuvBOfeE4R6tvxMoQKDHQ=="], + + "@turbo/windows-64": ["@turbo/windows-64@2.9.16", "", { "os": "win32", "cpu": "x64" }, "sha512-NBAJnaUiGdgkSzQwUIdOvkCkcpTSu58G/sBGa0mvBtzfvFOOgrQwepKOOQ8cp6sWM6OcKDNFj2p1dsZA1OWjPg=="], + + "@turbo/windows-arm64": ["@turbo/windows-arm64@2.9.16", "", { "os": "win32", "cpu": "arm64" }, "sha512-Y7SJppD0Z8wjO3Ec0ZGd9KQ4Yv0BMnA8CIowj5Vp+OEVsosXDG2weK6/t1RRLfJmc2Ozrnd6y4DOgQys+mn3WQ=="], + "@tybys/wasm-util": ["@tybys/wasm-util@0.10.1", "", { "dependencies": { "tslib": "2.8.1" } }, "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg=="], "@types/aria-query": ["@types/aria-query@5.0.4", "", {}, "sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw=="], @@ -2834,6 +2962,8 @@ "node-mock-http": ["node-mock-http@1.0.4", "", {}, "sha512-8DY+kFsDkNXy1sJglUfuODx1/opAGJGyrTuFqEoN90oRc2Vk0ZbD4K2qmKXBBEhZQzdKHIVfEJpDU8Ak2NJEvQ=="], + "node-mocks-http": ["node-mocks-http@1.17.2", "", { "dependencies": { "accepts": "^1.3.7", "content-disposition": "^0.5.3", "depd": "^1.1.0", "fresh": "^0.5.2", "merge-descriptors": "^1.0.1", "methods": "^1.1.2", "mime": "^1.3.4", "parseurl": "^1.3.3", "range-parser": "^1.2.0", "type-is": "^1.6.18" }, "peerDependencies": { "@types/express": "^4.17.21 || ^5.0.0", "@types/node": "*" }, "optionalPeers": ["@types/express", "@types/node"] }, "sha512-HVxSnjNzE9NzoWMx9T9z4MLqwMpLwVvA0oVZ+L+gXskYXEJ6tFn3Kx4LargoB6ie7ZlCLplv7QbWO6N+MysWGA=="], + "node-releases": ["node-releases@2.0.36", "", {}, "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA=="], "nopt": ["nopt@8.1.0", "", { "dependencies": { "abbrev": "3.0.1" }, "bin": { "nopt": "bin/nopt.js" } }, "sha512-ieGu42u/Qsa4TFktmaKEwM6MQH0pOWnaB3htzh0JRtx84+Mebc0cbZYN5bC+6WTZ4+77xrL9Pn5m7CV6VIkV7A=="], @@ -2890,6 +3020,10 @@ "oxc-walker": ["oxc-walker@0.7.0", "", { "dependencies": { "magic-regexp": "0.10.0" }, "peerDependencies": { "oxc-parser": "0.117.0" } }, "sha512-54B4KUhrzbzc4sKvKwVYm7E2PgeROpGba0/2nlNZMqfDyca+yOor5IMb4WLGBatGDT0nkzYdYuzylg7n3YfB7A=="], + "oxfmt": ["oxfmt@0.51.0", "", { "dependencies": { "tinypool": "2.1.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.51.0", "@oxfmt/binding-android-arm64": "0.51.0", "@oxfmt/binding-darwin-arm64": "0.51.0", "@oxfmt/binding-darwin-x64": "0.51.0", "@oxfmt/binding-freebsd-x64": "0.51.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.51.0", "@oxfmt/binding-linux-arm-musleabihf": "0.51.0", "@oxfmt/binding-linux-arm64-gnu": "0.51.0", "@oxfmt/binding-linux-arm64-musl": "0.51.0", "@oxfmt/binding-linux-ppc64-gnu": "0.51.0", "@oxfmt/binding-linux-riscv64-gnu": "0.51.0", "@oxfmt/binding-linux-riscv64-musl": "0.51.0", "@oxfmt/binding-linux-s390x-gnu": "0.51.0", "@oxfmt/binding-linux-x64-gnu": "0.51.0", "@oxfmt/binding-linux-x64-musl": "0.51.0", "@oxfmt/binding-openharmony-arm64": "0.51.0", "@oxfmt/binding-win32-arm64-msvc": "0.51.0", "@oxfmt/binding-win32-ia32-msvc": "0.51.0", "@oxfmt/binding-win32-x64-msvc": "0.51.0" }, "peerDependencies": { "svelte": "^5.0.0" }, "optionalPeers": ["svelte"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-l/AoAnaEOV7Q5/Z9kHOMDehVJnCgYN7wRoooWCTUMBMi16BJhLZqd9cmCnwcVFfVlzkt53zK2KLPFNp8vSsoDg=="], + + "oxlint": ["oxlint@1.68.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.68.0", "@oxlint/binding-android-arm64": "1.68.0", "@oxlint/binding-darwin-arm64": "1.68.0", "@oxlint/binding-darwin-x64": "1.68.0", "@oxlint/binding-freebsd-x64": "1.68.0", "@oxlint/binding-linux-arm-gnueabihf": "1.68.0", "@oxlint/binding-linux-arm-musleabihf": "1.68.0", "@oxlint/binding-linux-arm64-gnu": "1.68.0", "@oxlint/binding-linux-arm64-musl": "1.68.0", "@oxlint/binding-linux-ppc64-gnu": "1.68.0", "@oxlint/binding-linux-riscv64-gnu": "1.68.0", "@oxlint/binding-linux-riscv64-musl": "1.68.0", "@oxlint/binding-linux-s390x-gnu": "1.68.0", "@oxlint/binding-linux-x64-gnu": "1.68.0", "@oxlint/binding-linux-x64-musl": "1.68.0", "@oxlint/binding-openharmony-arm64": "1.68.0", "@oxlint/binding-win32-arm64-msvc": "1.68.0", "@oxlint/binding-win32-ia32-msvc": "1.68.0", "@oxlint/binding-win32-x64-msvc": "1.68.0" }, "peerDependencies": { "oxlint-tsgolint": ">=0.22.1", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-dXcbq+xsmLrMy6T8d0euf3IYUfLmjHIE11pOxiUSi5LHkFZaYPv568R6sEjcavVpUxoaQe66UBuK4HEi74NxpA=="], + "p-limit": ["p-limit@7.3.0", "", { "dependencies": { "yocto-queue": "1.2.2" } }, "sha512-7cIXg/Z0M5WZRblrsOla88S4wAK+zOQQWeBYfV3qJuJXMr+LnbYjaadrFaS0JILfEDPVqHyKnZ1Z/1d6J9VVUw=="], "p-locate": ["p-locate@5.0.0", "", { "dependencies": { "p-limit": "3.1.0" } }, "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw=="], @@ -3340,6 +3474,8 @@ "tinyglobby": ["tinyglobby@0.2.16", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.4" } }, "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg=="], + "tinypool": ["tinypool@2.1.0", "", {}, "sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw=="], + "tinyrainbow": ["tinyrainbow@3.1.0", "", {}, "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw=="], "tldts": ["tldts@7.0.26", "", { "dependencies": { "tldts-core": "7.0.26" }, "bin": { "tldts": "bin/cli.js" } }, "sha512-WiGwQjr0qYdNNG8KpMKlSvpxz652lqa3Rd+/hSaDcY4Uo6SKWZq2LAF+hsAhUewTtYhXlorBKgNF3Kk8hnjGoQ=="], @@ -3376,19 +3512,7 @@ "tsx": ["tsx@4.21.0", "", { "dependencies": { "esbuild": "0.27.4", "get-tsconfig": "4.13.6" }, "optionalDependencies": { "fsevents": "2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw=="], - "turbo": ["turbo@2.8.17", "", { "optionalDependencies": { "turbo-darwin-64": "2.8.17", "turbo-darwin-arm64": "2.8.17", "turbo-linux-64": "2.8.17", "turbo-linux-arm64": "2.8.17", "turbo-windows-64": "2.8.17", "turbo-windows-arm64": "2.8.17" }, "bin": { "turbo": "bin/turbo" } }, "sha512-YwPsNSqU2f/RXU/+Kcb7cPkPZARxom4+me7LKEdN5jsvy2tpfze3zDZ4EiGrJnvOm9Avu9rK0aaYsP7qZ3iz7A=="], - - "turbo-darwin-64": ["turbo-darwin-64@2.8.17", "", { "os": "darwin", "cpu": "x64" }, "sha512-ZFkv2hv7zHpAPEXBF6ouRRXshllOavYc+jjcrYyVHvxVTTwJWsBZwJ/gpPzmOKGvkSjsEyDO5V6aqqtZzwVF+Q=="], - - "turbo-darwin-arm64": ["turbo-darwin-arm64@2.8.17", "", { "os": "darwin", "cpu": "arm64" }, "sha512-5DXqhQUt24ycEryXDfMNKEkW5TBHs+QmU23a2qxXwwFDaJsWcPo2obEhBxxdEPOv7qmotjad+09RGeWCcJ9JDw=="], - - "turbo-linux-64": ["turbo-linux-64@2.8.17", "", { "os": "linux", "cpu": "x64" }, "sha512-KLUbz6w7F73D/Ihh51hVagrKR0/CTsPEbRkvXLXvoND014XJ4BCrQUqSxlQ4/hu+nqp1v5WlM85/h3ldeyujuA=="], - - "turbo-linux-arm64": ["turbo-linux-arm64@2.8.17", "", { "os": "linux", "cpu": "arm64" }, "sha512-pJK67XcNJH40lTAjFu7s/rUlobgVXyB3A3lDoq+/JccB3hf+SysmkpR4Itlc93s8LEaFAI4mamhFuTV17Z6wOg=="], - - "turbo-windows-64": ["turbo-windows-64@2.8.17", "", { "os": "win32", "cpu": "x64" }, "sha512-EijeQ6zszDMmGZLP2vT2RXTs/GVi9rM0zv2/G4rNu2SSRSGFapgZdxgW4b5zUYLVaSkzmkpWlGfPfj76SW9yUg=="], - - "turbo-windows-arm64": ["turbo-windows-arm64@2.8.17", "", { "os": "win32", "cpu": "arm64" }, "sha512-crpfeMPkfECd4V1PQ/hMoiyVcOy04+bWedu/if89S15WhOalHZ2BYUi6DOJhZrszY+mTT99OwpOsj4wNfb/GHQ=="], + "turbo": ["turbo@2.9.16", "", { "optionalDependencies": { "@turbo/darwin-64": "2.9.16", "@turbo/darwin-arm64": "2.9.16", "@turbo/linux-64": "2.9.16", "@turbo/linux-arm64": "2.9.16", "@turbo/windows-64": "2.9.16", "@turbo/windows-arm64": "2.9.16" }, "bin": { "turbo": "bin/turbo" } }, "sha512-NqgRQy6j6dPYcdSdv0q1g9QsZg7SWg87RERM8otw/1AtKU2yTFVClOM7cbwKzOonZr/Ek1blTBucw64L9H0Bwg=="], "tw-animate-css": ["tw-animate-css@1.4.0", "", {}, "sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ=="], @@ -3400,6 +3524,8 @@ "type-level-regexp": ["type-level-regexp@0.1.17", "", {}, "sha512-wTk4DH3cxwk196uGLK/E9pE45aLfeKJacKmcEgEOA/q5dnPGNxXt0cfYdFxb57L+sEpf1oJH4Dnx/pnRcku9jg=="], + "typebox": ["typebox@1.2.0", "", {}, "sha512-5zmwtMQArPorr1PVqo5Ye3GRmaiHQ7iicRnlmRXWWDLg5k5fky8OG40B12ckVq5YIxpGM8s1qzcfcA8SKNjPVw=="], + "typesafe-path": ["typesafe-path@0.2.2", "", {}, "sha512-OJabfkAg1WLZSqJAJ0Z6Sdt3utnbzr/jh+NAHoyWHJe8CMSy79Gm085094M9nvTPy22KzTVn5Zq5mbapCI/hPA=="], "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], @@ -4084,6 +4210,8 @@ "nitropack/youch": ["youch@4.1.0", "", { "dependencies": { "@poppinss/colors": "4.1.6", "@poppinss/dumper": "0.7.0", "@speed-highlight/core": "1.2.15", "cookie-es": "2.0.0", "youch-core": "0.3.3" } }, "sha512-cYekNh2tUoU+voS11X0D0UQntVCSO6LQ1h10VriQGmfbpf0mnGTruwZICts23UUNiZCXm8H8hQBtRrdsbhuNNg=="], + "node-mocks-http/depd": ["depd@1.1.2", "", {}, "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ=="], + "npm-run-path/path-key": ["path-key@4.0.0", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="], "nuxt/nuxt": ["nuxt@4.4.2", "", { "dependencies": { "@dxup/nuxt": "0.4.0", "@nuxt/cli": "3.34.0", "@nuxt/devtools": "3.2.4", "@nuxt/kit": "4.4.2", "@nuxt/nitro-server": "4.4.2", "@nuxt/schema": "4.4.2", "@nuxt/telemetry": "2.7.0", "@nuxt/vite-builder": "4.4.2", "@unhead/vue": "2.1.12", "@vue/shared": "3.5.30", "c12": "3.3.3", "chokidar": "5.0.0", "compatx": "0.2.0", "consola": "3.4.2", "cookie-es": "2.0.0", "defu": "6.1.4", "devalue": "5.6.4", "errx": "0.1.0", "escape-string-regexp": "5.0.0", "exsolve": "1.0.8", "hookable": "6.1.0", "ignore": "7.0.5", "impound": "1.1.5", "jiti": "2.6.1", "klona": "2.0.6", "knitwork": "1.3.0", "magic-string": "0.30.21", "mlly": "1.8.1", "nanotar": "0.3.0", "nypm": "0.6.5", "ofetch": "1.5.1", "ohash": "2.0.11", "on-change": "6.0.2", "oxc-minify": "0.117.0", "oxc-parser": "0.117.0", "oxc-transform": "0.117.0", "oxc-walker": "0.7.0", "pathe": "2.0.3", "perfect-debounce": "2.1.0", "picomatch": "4.0.3", "pkg-types": "2.3.0", "rou3": "0.8.1", "scule": "1.3.0", "semver": "7.7.4", "std-env": "4.0.0", "tinyglobby": "0.2.15", "ufo": "1.6.3", "ultrahtml": "1.6.0", "uncrypto": "0.1.3", "unctx": "2.5.0", "unimport": "6.0.2", "unplugin": "3.0.0", "unrouting": "0.1.7", "untyped": "2.0.0", "vue": "3.5.30", "vue-router": "5.0.3" }, "optionalDependencies": { "@parcel/watcher": "2.5.6", "@types/node": "24.12.0" }, "bin": { "nuxi": "bin/nuxt.mjs", "nuxt": "bin/nuxt.mjs" } }, "sha512-iWVFpr/YEqVU/CenqIHMnIkvb2HE/9f+q8oxZ+pj2et+60NljGRClCgnmbvGPdmNFE0F1bEhoBCYfqbDOCim3Q=="], diff --git a/package.json b/package.json index 91e1d6ff..f43b3bf4 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,14 @@ "vitest": { "vitest": "4.1.4", "@vitest/coverage-v8": "4.1.4" + }, + "valibot": { + "valibot": "^1.4.0" + }, + "testing-library": { + "@testing-library/dom": "^10.4.1", + "@testing-library/react": "^16.3.2", + "@testing-library/user-event": "^14.6.1" } } }, diff --git a/packages/core/hot-spots.txt b/packages/core/hot-spots.txt new file mode 100644 index 00000000..1130bb9b --- /dev/null +++ b/packages/core/hot-spots.txt @@ -0,0 +1,93 @@ +Hot Spots +└─ Check file d:\herna\dist\aura-stack\auth\packages\core\src\client\client.ts (1638ms) + └─ Check deferred node from (line 48, char 24) to (line 59, char 6) (1574ms) + └─ Check variable declaration from (line 50, char 19) to (line 50, char 58) (1573ms) + └─ Check expression from (line 50, char 30) to (line 50, char 58) (1573ms) + └─ Check expression from (line 50, char 36) to (line 50, char 58) (1573ms) + └─ Compare types 43228 and 43212 (1571ms) + └─ Compare types 43226 and 43210 (1571ms) + └─ Compare types 43224 and 43208 (1570ms) + └─ Determine variance of type 43192 (1570ms) + └─ Compare types 43267 and 43265 (1570ms) + └─ Compare types 43280 and 43272 (1570ms) + └─ Determine variance of type 43235 (1570ms) + └─ Compare types 43287 and 43286 (1569ms) + └─ Compare types 43288 and 43289 (1569ms) + └─ Compare types 43308 and 43316 (1568ms) + └─ Compare types 43320 and 43329 (1568ms) + └─ Determine variance of type 24338 (1568ms) + └─ Compare types 71783 and 71782 (1181ms) + └─ Compare types 71785 and 71786 (1181ms) + └─ Compare types 71787 and 71788 (1181ms) + └─ Compare types 71791 and 71793 (1181ms) + └─ Compare types 71798 and 71799 (1180ms) + └─ Compare types 71800 and 71801 (1180ms) + └─ Compare types 71802 and 71803 (1180ms) + └─ Compare types 71804 and 71805 (1180ms) + └─ Compare types 71806 and 71807 (1180ms) + └─ Compare types 71808 and 71809 (1180ms) + └─ Compare types 71810 and 71811 (1180ms) + └─ Compare types 71812 and 71813 (1180ms) + └─ Compare types 71815 and 71816 (1180ms) + └─ Compare types 71817 and 71818 (1180ms) + └─ Compare types 71819 and 71820 (1180ms) + └─ Compare types 71821 and 71822 (1180ms) + └─ Compare types 71823 and 71824 (1180ms) + └─ Compare types 71825 and 71826 (1180ms) + └─ Compare types 71827 and 71828 (1180ms) + └─ Compare types 71829 and 71830 (1180ms) + └─ Compare types 71831 and 71832 (1180ms) + └─ Compare types 71833 and 71834 (1180ms) + └─ Compare types 71835 and 71836 (1180ms) + └─ Compare types 71837 and 71838 (1179ms) + └─ Compare types 71839 and 71840 (1179ms) + └─ Compare types 71841 and 71842 (1179ms) + └─ Compare types 71844 and 71845 (1179ms) + └─ Compare types 71848 and 71851 (1179ms) + └─ Compare types 71854 and 71855 (1179ms) + └─ Compare types 71857 and 71858 (1179ms) + └─ Compare types 71859 and 71860 (1178ms) + └─ Compare types 71861 and 71862 (1178ms) + └─ Compare types 71867 and 71870 (1163ms) + └─ Compare types 72126 and 72219 (1162ms) + └─ Compare types 71947 and 72148 (1160ms) + └─ Compare types 71947 and 72133 (1111ms) + └─ Compare types 71932 and 72133 (1111ms) + └─ Compare types 71948 and 72149 (1111ms) + └─ Compare types 72251 and 72252 (1111ms) + └─ Compare types 72253 and 72254 (1111ms) + └─ Compare types 72257 and 72256 (1109ms) + └─ Compare types 72319 and 72375 (1109ms) + └─ Compare types 72276 and 72332 (1108ms) + └─ Compare types 72276 and 72328 (1081ms) + └─ Compare types 72271 and 72328 (1080ms) + └─ Compare types 72316 and 72359 (1079ms) + └─ Compare types 72316 and 72351 (1076ms) + └─ Compare types 72297 and 72351 (1076ms) + └─ Determine variance of type 26118 (1076ms) + └─ Compare types 74376 and 74374 (791ms) + └─ Compare types 74389 and 74384 (791ms) + └─ Compare types 74388 and 74383 (785ms) + └─ Compare types 75176 and 75573 (785ms) + └─ Compare types 74409 and 75189 (777ms) + └─ Compare types 74409 and 75177 (749ms) + └─ Compare types 74394 and 75177 (749ms) + └─ Compare types 74410 and 75190 (749ms) + └─ Compare types 75578 and 75579 (749ms) + └─ Compare types 75580 and 75581 (749ms) + └─ Compare types 75583 and 75582 (749ms) + └─ Compare types 75614 and 75645 (749ms) + └─ Compare types 75596 and 75627 (747ms) + └─ Compare types 75596 and 75623 (728ms) + └─ Compare types 75592 and 75623 (728ms) + └─ Compare types 75613 and 75644 (728ms) + └─ Compare types 75613 and 75638 (724ms) + └─ Compare types 75607 and 75638 (724ms) + └─ Determine variance of type 26145 (724ms) + └─ {"id":26145,"kind":"GenericTypeAlias","name":"XReadonlyRequiredProperties","aliasTypeArguments":[26146,26147,26148,26149],"location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":1}} + ├─ {"id":26146,"kind":"TypeParameter","name":"Stack","location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":34}} + ├─ {"id":26147,"kind":"TypeParameter","name":"Root","location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":58}} + ├─ {"id":26148,"kind":"TypeParameter","name":"RequiredKeys","location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":80}} + └─ {"id":26149,"kind":"TypeParameter","name":"Properties","location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":114}} + +No duplicate packages found diff --git a/packages/core/tsconfig.diag.json b/packages/core/tsconfig.diag.json index 807378b2..921da9b2 100644 --- a/packages/core/tsconfig.diag.json +++ b/packages/core/tsconfig.diag.json @@ -7,6 +7,6 @@ "noEmit": true, "skipLibCheck": true }, - "include": ["src"], - "exclude": ["node_modules", "dist", "test", "coverage", "dist"] + "include": ["src", "!src/client/client.ts", "!src/client/index.ts"], + "exclude": ["node_modules", "dist", "test", "coverage", "dist", "src/client/client.ts", "src/client/index.ts"] } From cdda470972758fd079a3e82dcd5f9919dfdb9a2b Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Thu, 4 Jun 2026 15:58:16 -0500 Subject: [PATCH 3/8] chore(trace): include TypeScript trace files for analysis --- packages/core/.trace/after.txt | 28 ++++++++++++++++++++++++ packages/core/.trace/before.txt | 28 ++++++++++++++++++++++++ packages/core/{ => .trace}/hot-spots.txt | 0 packages/core/tsconfig.diag.json | 7 +++--- 4 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 packages/core/.trace/after.txt create mode 100644 packages/core/.trace/before.txt rename packages/core/{ => .trace}/hot-spots.txt (100%) diff --git a/packages/core/.trace/after.txt b/packages/core/.trace/after.txt new file mode 100644 index 00000000..9549cdf4 --- /dev/null +++ b/packages/core/.trace/after.txt @@ -0,0 +1,28 @@ +Files: 938 +Lines of Library: 51352 +Lines of Definitions: 98439 +Lines of TypeScript: 6781 +Lines of JavaScript: 0 +Lines of JSON: 0 +Lines of Other: 0 +Identifiers: 204732 +Symbols: 160468 +Types: 42028 +Instantiations: 144130 +Memory used: 264584K +Assignability cache size: 10745 +Identity cache size: 306 +Subtype cache size: 352 +Strict subtype cache size: 1120 +I/O Read time: 0.11s +Parse time: 0.32s +ResolveModule time: 0.28s +ResolveTypeReference time: 0.00s +ResolveLibrary time: 0.01s +Program time: 0.79s +Bind time: 0.17s +Check time: 0.73s +transformTime time: 0.16s +printTime time: 0.00s +Emit time: 0.00s +Total time: 1.69s diff --git a/packages/core/.trace/before.txt b/packages/core/.trace/before.txt new file mode 100644 index 00000000..c5069cdc --- /dev/null +++ b/packages/core/.trace/before.txt @@ -0,0 +1,28 @@ +Files: 940 +Lines of Library: 51352 +Lines of Definitions: 98439 +Lines of TypeScript: 6969 +Lines of JavaScript: 0 +Lines of JSON: 0 +Lines of Other: 0 +Identifiers: 205034 +Symbols: 265614 +Types: 187668 +Instantiations: 1323740 +Memory used: 577684K +Assignability cache size: 102217 +Identity cache size: 1896 +Subtype cache size: 826 +Strict subtype cache size: 1259 +I/O Read time: 0.11s +Parse time: 0.34s +ResolveModule time: 0.26s +ResolveTypeReference time: 0.00s +ResolveLibrary time: 0.01s +Program time: 0.81s +Bind time: 0.17s +Check time: 2.12s +transformTime time: 0.21s +printTime time: 0.00s +Emit time: 0.00s +Total time: 3.10s diff --git a/packages/core/hot-spots.txt b/packages/core/.trace/hot-spots.txt similarity index 100% rename from packages/core/hot-spots.txt rename to packages/core/.trace/hot-spots.txt diff --git a/packages/core/tsconfig.diag.json b/packages/core/tsconfig.diag.json index 921da9b2..907466c9 100644 --- a/packages/core/tsconfig.diag.json +++ b/packages/core/tsconfig.diag.json @@ -5,8 +5,9 @@ "@/*": ["./src/*"] }, "noEmit": true, - "skipLibCheck": true + "skipLibCheck": true, + "allowImportingTsExtensions": true }, - "include": ["src", "!src/client/client.ts", "!src/client/index.ts"], - "exclude": ["node_modules", "dist", "test", "coverage", "dist", "src/client/client.ts", "src/client/index.ts"] + "include": ["src"], + "exclude": ["node_modules", "dist", "test", "coverage", "dist"] } From fb30b531d19868942583e04e1e5f6ef9c8dd4d1b Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Thu, 4 Jun 2026 15:59:47 -0500 Subject: [PATCH 4/8] chore(trace): remove TypeScript trace files after analysis --- packages/core/.trace/after.txt | 28 --------- packages/core/.trace/before.txt | 28 --------- packages/core/.trace/hot-spots.txt | 93 ------------------------------ packages/core/tsconfig.diag.json | 13 ----- 4 files changed, 162 deletions(-) delete mode 100644 packages/core/.trace/after.txt delete mode 100644 packages/core/.trace/before.txt delete mode 100644 packages/core/.trace/hot-spots.txt delete mode 100644 packages/core/tsconfig.diag.json diff --git a/packages/core/.trace/after.txt b/packages/core/.trace/after.txt deleted file mode 100644 index 9549cdf4..00000000 --- a/packages/core/.trace/after.txt +++ /dev/null @@ -1,28 +0,0 @@ -Files: 938 -Lines of Library: 51352 -Lines of Definitions: 98439 -Lines of TypeScript: 6781 -Lines of JavaScript: 0 -Lines of JSON: 0 -Lines of Other: 0 -Identifiers: 204732 -Symbols: 160468 -Types: 42028 -Instantiations: 144130 -Memory used: 264584K -Assignability cache size: 10745 -Identity cache size: 306 -Subtype cache size: 352 -Strict subtype cache size: 1120 -I/O Read time: 0.11s -Parse time: 0.32s -ResolveModule time: 0.28s -ResolveTypeReference time: 0.00s -ResolveLibrary time: 0.01s -Program time: 0.79s -Bind time: 0.17s -Check time: 0.73s -transformTime time: 0.16s -printTime time: 0.00s -Emit time: 0.00s -Total time: 1.69s diff --git a/packages/core/.trace/before.txt b/packages/core/.trace/before.txt deleted file mode 100644 index c5069cdc..00000000 --- a/packages/core/.trace/before.txt +++ /dev/null @@ -1,28 +0,0 @@ -Files: 940 -Lines of Library: 51352 -Lines of Definitions: 98439 -Lines of TypeScript: 6969 -Lines of JavaScript: 0 -Lines of JSON: 0 -Lines of Other: 0 -Identifiers: 205034 -Symbols: 265614 -Types: 187668 -Instantiations: 1323740 -Memory used: 577684K -Assignability cache size: 102217 -Identity cache size: 1896 -Subtype cache size: 826 -Strict subtype cache size: 1259 -I/O Read time: 0.11s -Parse time: 0.34s -ResolveModule time: 0.26s -ResolveTypeReference time: 0.00s -ResolveLibrary time: 0.01s -Program time: 0.81s -Bind time: 0.17s -Check time: 2.12s -transformTime time: 0.21s -printTime time: 0.00s -Emit time: 0.00s -Total time: 3.10s diff --git a/packages/core/.trace/hot-spots.txt b/packages/core/.trace/hot-spots.txt deleted file mode 100644 index 1130bb9b..00000000 --- a/packages/core/.trace/hot-spots.txt +++ /dev/null @@ -1,93 +0,0 @@ -Hot Spots -└─ Check file d:\herna\dist\aura-stack\auth\packages\core\src\client\client.ts (1638ms) - └─ Check deferred node from (line 48, char 24) to (line 59, char 6) (1574ms) - └─ Check variable declaration from (line 50, char 19) to (line 50, char 58) (1573ms) - └─ Check expression from (line 50, char 30) to (line 50, char 58) (1573ms) - └─ Check expression from (line 50, char 36) to (line 50, char 58) (1573ms) - └─ Compare types 43228 and 43212 (1571ms) - └─ Compare types 43226 and 43210 (1571ms) - └─ Compare types 43224 and 43208 (1570ms) - └─ Determine variance of type 43192 (1570ms) - └─ Compare types 43267 and 43265 (1570ms) - └─ Compare types 43280 and 43272 (1570ms) - └─ Determine variance of type 43235 (1570ms) - └─ Compare types 43287 and 43286 (1569ms) - └─ Compare types 43288 and 43289 (1569ms) - └─ Compare types 43308 and 43316 (1568ms) - └─ Compare types 43320 and 43329 (1568ms) - └─ Determine variance of type 24338 (1568ms) - └─ Compare types 71783 and 71782 (1181ms) - └─ Compare types 71785 and 71786 (1181ms) - └─ Compare types 71787 and 71788 (1181ms) - └─ Compare types 71791 and 71793 (1181ms) - └─ Compare types 71798 and 71799 (1180ms) - └─ Compare types 71800 and 71801 (1180ms) - └─ Compare types 71802 and 71803 (1180ms) - └─ Compare types 71804 and 71805 (1180ms) - └─ Compare types 71806 and 71807 (1180ms) - └─ Compare types 71808 and 71809 (1180ms) - └─ Compare types 71810 and 71811 (1180ms) - └─ Compare types 71812 and 71813 (1180ms) - └─ Compare types 71815 and 71816 (1180ms) - └─ Compare types 71817 and 71818 (1180ms) - └─ Compare types 71819 and 71820 (1180ms) - └─ Compare types 71821 and 71822 (1180ms) - └─ Compare types 71823 and 71824 (1180ms) - └─ Compare types 71825 and 71826 (1180ms) - └─ Compare types 71827 and 71828 (1180ms) - └─ Compare types 71829 and 71830 (1180ms) - └─ Compare types 71831 and 71832 (1180ms) - └─ Compare types 71833 and 71834 (1180ms) - └─ Compare types 71835 and 71836 (1180ms) - └─ Compare types 71837 and 71838 (1179ms) - └─ Compare types 71839 and 71840 (1179ms) - └─ Compare types 71841 and 71842 (1179ms) - └─ Compare types 71844 and 71845 (1179ms) - └─ Compare types 71848 and 71851 (1179ms) - └─ Compare types 71854 and 71855 (1179ms) - └─ Compare types 71857 and 71858 (1179ms) - └─ Compare types 71859 and 71860 (1178ms) - └─ Compare types 71861 and 71862 (1178ms) - └─ Compare types 71867 and 71870 (1163ms) - └─ Compare types 72126 and 72219 (1162ms) - └─ Compare types 71947 and 72148 (1160ms) - └─ Compare types 71947 and 72133 (1111ms) - └─ Compare types 71932 and 72133 (1111ms) - └─ Compare types 71948 and 72149 (1111ms) - └─ Compare types 72251 and 72252 (1111ms) - └─ Compare types 72253 and 72254 (1111ms) - └─ Compare types 72257 and 72256 (1109ms) - └─ Compare types 72319 and 72375 (1109ms) - └─ Compare types 72276 and 72332 (1108ms) - └─ Compare types 72276 and 72328 (1081ms) - └─ Compare types 72271 and 72328 (1080ms) - └─ Compare types 72316 and 72359 (1079ms) - └─ Compare types 72316 and 72351 (1076ms) - └─ Compare types 72297 and 72351 (1076ms) - └─ Determine variance of type 26118 (1076ms) - └─ Compare types 74376 and 74374 (791ms) - └─ Compare types 74389 and 74384 (791ms) - └─ Compare types 74388 and 74383 (785ms) - └─ Compare types 75176 and 75573 (785ms) - └─ Compare types 74409 and 75189 (777ms) - └─ Compare types 74409 and 75177 (749ms) - └─ Compare types 74394 and 75177 (749ms) - └─ Compare types 74410 and 75190 (749ms) - └─ Compare types 75578 and 75579 (749ms) - └─ Compare types 75580 and 75581 (749ms) - └─ Compare types 75583 and 75582 (749ms) - └─ Compare types 75614 and 75645 (749ms) - └─ Compare types 75596 and 75627 (747ms) - └─ Compare types 75596 and 75623 (728ms) - └─ Compare types 75592 and 75623 (728ms) - └─ Compare types 75613 and 75644 (728ms) - └─ Compare types 75613 and 75638 (724ms) - └─ Compare types 75607 and 75638 (724ms) - └─ Determine variance of type 26145 (724ms) - └─ {"id":26145,"kind":"GenericTypeAlias","name":"XReadonlyRequiredProperties","aliasTypeArguments":[26146,26147,26148,26149],"location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":1}} - ├─ {"id":26146,"kind":"TypeParameter","name":"Stack","location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":34}} - ├─ {"id":26147,"kind":"TypeParameter","name":"Root","location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":58}} - ├─ {"id":26148,"kind":"TypeParameter","name":"RequiredKeys","location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":80}} - └─ {"id":26149,"kind":"TypeParameter","name":"Properties","location":{"path":"d:\herna\dist\aura-stack\auth\node_modules\.pnpm\typebox@1.1.38\node_modules\typebox\build\schema\static\properties.d.mts","line":19,"char":114}} - -No duplicate packages found diff --git a/packages/core/tsconfig.diag.json b/packages/core/tsconfig.diag.json deleted file mode 100644 index 907466c9..00000000 --- a/packages/core/tsconfig.diag.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": ["@aura-stack/tsconfig/tsconfig.base.json"], - "compilerOptions": { - "paths": { - "@/*": ["./src/*"] - }, - "noEmit": true, - "skipLibCheck": true, - "allowImportingTsExtensions": true - }, - "include": ["src"], - "exclude": ["node_modules", "dist", "test", "coverage", "dist"] -} From 336d5de4ee5dfb6abaa7dc359302925877cd0e2d Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Fri, 5 Jun 2026 10:07:34 -0500 Subject: [PATCH 5/8] chore(trace): include `router@v0.7.2.txt` trace file --- packages/core/package.json | 2 +- packages/core/router@v0.7.2.txt | 28 ++++++++++++++++++++++++++++ pnpm-lock.yaml | 20 ++++++++++---------- 3 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 packages/core/router@v0.7.2.txt diff --git a/packages/core/package.json b/packages/core/package.json index 46e79083..10d6617c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -91,7 +91,7 @@ "license": "MIT", "dependencies": { "@aura-stack/jose": "workspace:*", - "@aura-stack/router": "^0.7.1", + "@aura-stack/router": "^0.7.2", "arktype": "^2.2.0", "typebox": "^1.1.38", "valibot": "catalog:valibot", diff --git a/packages/core/router@v0.7.2.txt b/packages/core/router@v0.7.2.txt new file mode 100644 index 00000000..fb10deff --- /dev/null +++ b/packages/core/router@v0.7.2.txt @@ -0,0 +1,28 @@ +Files: 940 +Lines of Library: 51352 +Lines of Definitions: 98439 +Lines of TypeScript: 6969 +Lines of JavaScript: 0 +Lines of JSON: 0 +Lines of Other: 0 +Identifiers: 205029 +Symbols: 170288 +Types: 48245 +Instantiations: 158861 +Memory used: 269582K +Assignability cache size: 13335 +Identity cache size: 525 +Subtype cache size: 826 +Strict subtype cache size: 1259 +I/O Read time: 0.11s +Parse time: 0.32s +ResolveModule time: 0.26s +ResolveTypeReference time: 0.00s +ResolveLibrary time: 0.01s +Program time: 0.80s +Bind time: 0.18s +Check time: 0.80s +transformTime time: 0.21s +printTime time: 0.00s +Emit time: 0.00s +Total time: 1.79s diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index df67f0cb..8e7a6c57 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -507,7 +507,7 @@ importers: version: 0.561.0(react@19.2.4) nitro: specifier: npm:nitro-nightly@latest - version: nitro-nightly@3.0.1-20260604-184855-0a07991c(chokidar@5.0.0)(dotenv@17.3.1)(giget@3.1.2)(ioredis@5.10.0)(jiti@2.6.1)(lru-cache@11.2.7)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) + version: nitro-nightly@3.0.1-20260605-145636-4ab22a9d(chokidar@5.0.0)(dotenv@17.3.1)(giget@3.1.2)(ioredis@5.10.0)(jiti@2.6.1)(lru-cache@11.2.7)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)) react: specifier: catalog:react version: 19.2.4 @@ -673,8 +673,8 @@ importers: specifier: workspace:* version: link:../jose '@aura-stack/router': - specifier: ^0.7.1 - version: 0.7.1(arktype@2.2.0)(typebox@1.1.38)(valibot@1.4.0(typescript@5.9.3))(zod@4.3.5) + specifier: ^0.7.2 + version: 0.7.2(arktype@2.2.0)(typebox@1.1.38)(valibot@1.4.0(typescript@5.9.3))(zod@4.3.5) arktype: specifier: ^2.2.0 version: 2.2.0 @@ -1013,8 +1013,8 @@ packages: '@astrojs/yaml2ts@0.2.3': resolution: {integrity: sha512-PJzRmgQzUxI2uwpdX2lXSHtP4G8ocp24/t+bZyf5Fy0SZLSF9f9KXZoMlFM/XCGue+B0nH/2IZ7FpBYQATBsCg==} - '@aura-stack/router@0.7.1': - resolution: {integrity: sha512-8Hw6TwmGglPCKTnd9qQAak6mL5petDvGg6C2CnEPYxAbz0tkTBWph+EIN12xJlWVDv72qwBL6Tv3KDkKNbl37A==} + '@aura-stack/router@0.7.2': + resolution: {integrity: sha512-Swxm9SDvJEmM+V3rxjyOm7Fvysnnw//e/7ZXS+7Gn01J9MD3EJNJDOOFKmlmtVwlPoLtLf/NVNGCMji4kb5kcw==} peerDependencies: arktype: ^2.0.0 typebox: ^1.1.38 @@ -7268,8 +7268,8 @@ packages: nf3@0.3.17: resolution: {integrity: sha512-N9zEWySuJFw+gR0lhS5863YsvNeudOdqRyFvNb+jMXbeTJOdrjDqkCpDginIZfUm0LzT1t1nCRiDeqQm/8kirQ==} - nitro-nightly@3.0.1-20260604-184855-0a07991c: - resolution: {integrity: sha512-qfSO9IQLP37UMei9r634Sjq6axyOvTB/4gBow0d10LXUDFdTppGoMHJ8TGbKGE7CwP5GTS0/I4ylqBrGiUhTww==} + nitro-nightly@3.0.1-20260605-145636-4ab22a9d: + resolution: {integrity: sha512-3nYxRiivfZ5/QEP9aNqZxfU+DlKuApNf7qamc3ieerbiOW6qkXHrjHXpph2ZY2SRzRbfw0g/J6Ewxtrg7PqRGQ==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true peerDependencies: @@ -9745,7 +9745,7 @@ snapshots: dependencies: yaml: 2.8.2 - '@aura-stack/router@0.7.1(arktype@2.2.0)(typebox@1.1.38)(valibot@1.4.0(typescript@5.9.3))(zod@4.3.5)': + '@aura-stack/router@0.7.2(arktype@2.2.0)(typebox@1.1.38)(valibot@1.4.0(typescript@5.9.3))(zod@4.3.5)': dependencies: cookie: 1.1.1 optionalDependencies: @@ -15103,7 +15103,7 @@ snapshots: h3@2.0.1-rc.16(crossws@0.4.5(srvx@0.11.16)): dependencies: rou3: 0.8.1 - srvx: 0.11.15 + srvx: 0.11.16 optionalDependencies: crossws: 0.4.5(srvx@0.11.16) @@ -16378,7 +16378,7 @@ snapshots: nf3@0.3.17: {} - nitro-nightly@3.0.1-20260604-184855-0a07991c(chokidar@5.0.0)(dotenv@17.3.1)(giget@3.1.2)(ioredis@5.10.0)(jiti@2.6.1)(lru-cache@11.2.7)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)): + nitro-nightly@3.0.1-20260605-145636-4ab22a9d(chokidar@5.0.0)(dotenv@17.3.1)(giget@3.1.2)(ioredis@5.10.0)(jiti@2.6.1)(lru-cache@11.2.7)(vite@7.3.1(@types/node@24.12.0)(jiti@2.6.1)(lightningcss@1.32.0)(terser@5.46.1)(tsx@4.21.0)(yaml@2.8.2)): dependencies: consola: 3.4.2 crossws: 0.4.5(srvx@0.11.16) From 3e03faa085b76cc45fcc4ed667615859501101e1 Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Fri, 5 Jun 2026 10:08:13 -0500 Subject: [PATCH 6/8] chore(trace): remove `router@v0.7.2.txt` trace file --- packages/core/router@v0.7.2.txt | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 packages/core/router@v0.7.2.txt diff --git a/packages/core/router@v0.7.2.txt b/packages/core/router@v0.7.2.txt deleted file mode 100644 index fb10deff..00000000 --- a/packages/core/router@v0.7.2.txt +++ /dev/null @@ -1,28 +0,0 @@ -Files: 940 -Lines of Library: 51352 -Lines of Definitions: 98439 -Lines of TypeScript: 6969 -Lines of JavaScript: 0 -Lines of JSON: 0 -Lines of Other: 0 -Identifiers: 205029 -Symbols: 170288 -Types: 48245 -Instantiations: 158861 -Memory used: 269582K -Assignability cache size: 13335 -Identity cache size: 525 -Subtype cache size: 826 -Strict subtype cache size: 1259 -I/O Read time: 0.11s -Parse time: 0.32s -ResolveModule time: 0.26s -ResolveTypeReference time: 0.00s -ResolveLibrary time: 0.01s -Program time: 0.80s -Bind time: 0.18s -Check time: 0.80s -transformTime time: 0.21s -printTime time: 0.00s -Emit time: 0.00s -Total time: 1.79s From 2a57dd3d37aa7fc518e83e433e8d5749a1af58fc Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Fri, 5 Jun 2026 11:13:10 -0500 Subject: [PATCH 7/8] docs(identity): update `Schema Validation` docs --- .../docs/(core)/guides/schema-validation.mdx | 180 +++++++++++++++++- packages/core/src/shared/identity.ts | 4 +- packages/core/test/identity.test.ts | 16 +- packages/core/test/types.test-d.ts | 2 +- 4 files changed, 190 insertions(+), 12 deletions(-) diff --git a/docs/src/content/docs/(core)/guides/schema-validation.mdx b/docs/src/content/docs/(core)/guides/schema-validation.mdx index 8afbd27c..63d64af3 100644 --- a/docs/src/content/docs/(core)/guides/schema-validation.mdx +++ b/docs/src/content/docs/(core)/guides/schema-validation.mdx @@ -5,6 +5,14 @@ description: Learn how to validate your authentication schema with Aura Auth's b Aura Auth provides the `identity.schema` configuration option for type extension. This allows you to define a custom validation schema for user identity data, ensuring that the data conforms to a specific structure and set of fields. The schema is used to derive the `User` and `Session` types across the library. By default, Aura Auth accepts a flexible identity shape, but you can provide your own schema to enforce a specific structure. +Aura Auth supports `zod`, `valibot`, `arktype` and `typebox` schemas for validation. You can choose the one that best fits your needs, based on the constraints, limitations and features of each library. + +For each library, its provided the default `Identity` schemas, which you can extend to create your own custom schema. This allows you to add additional fields or constraints to the user identity data while still leveraging the built-in validation and type inference capabilities of Aura Auth. They schemas contains `sub`, `name`, `email` and `image` fields by default, but you can extend it with any additional fields you need. + + + + + ```ts title="lib/auth.ts" lineNumbers import { z } from "zod" import { createAuth } from "@aura-stack/auth" @@ -12,7 +20,6 @@ import { UserIdentity, type InferUser, type InferSession } from "@aura-stack/aut const schema = UserIdentity.extend({ role: z.enum(["admin", "user"]), - permissions: z.array(z.string()), }) export const auth = createAuth({ @@ -21,25 +28,122 @@ export const auth = createAuth({ schema, }, }) +``` -export type User = InferUser -export type Session = InferSession + + + + +```ts title="lib/auth.ts" lineNumbers +import * as valibot from "valibot" +import { createAuth } from "@aura-stack/auth" +import { UserIdentityValibot, type InferUser, type InferSession } from "@aura-stack/auth/identity" + +const schema = valibot.object({ + ...UserIdentityValibot.entries, + role: valibot.enum(["admin", "user"]), +}) + +export const auth = createAuth({ + oauth: [], + identity: { + schema, + }, +}) ``` -**Or, if you prefer to infer the types from the schema:** + + + + +```ts title="lib/auth.ts" lineNumbers +import { type } from "arktype" +import { createAuth } from "@aura-stack/auth" +import { UserIdentityArkType, type InferUser, type InferSession } from "@aura-stack/auth/identity" + +const schema = UserIdentityArkType.and({ + role: type.enumerated(["admin", "user"]), +}) + +export const auth = createAuth({ + oauth: [], + identity: { + schema, + }, +}) +``` + + + + + +```ts title="lib/auth.ts" lineNumbers +import { Type } from "typebox" +import { createAuth } from "@aura-stack/auth" +import { UserIdentityTypeBox } from "@aura-stack/auth/identity" + +const schema = Type.Object({ + ...UserIdentityTypeBox.properties, + role: Type.Union([Type.Literal("admin"), Type.Literal("user")]), +}) + +export const auth = createAuth({ + oauth: [], + identity: { + schema, + }, +}) +``` + + + + + +Aura Auth provides utility types to infer the `User` and `Session` types from the identity schema. This allows you to have type safety and autocompletion when working with user identity data throughout your application. By using the provided utility types, you can ensure that your code is consistent with the defined schema and that you are accessing the correct fields on the user and session objects. + +The `User` and `Session` types can be inferred from the auth configuration using the `InferUser` and `InferSession` utility types or by using the `UserFrom` and `SessionFrom` types directly from the schema. + + + + ```ts title="lib/auth.ts" lineNumbers import { z } from "zod" import { createAuth } from "@aura-stack/auth" -import { UserIdentity, type UserFrom, type SessionFrom } from "@aura-stack/auth/identity" +import { UserIdentity, type UserFrom, type SessionFrom, type UserFrom, type SessionFrom } from "@aura-stack/auth/identity" const schema = UserIdentity.extend({ role: z.enum(["admin", "user"]), permissions: z.array(z.string()), }) -type User = UserFrom -type Session = SessionFrom +type _User = UserFrom +type _Session = SessionFrom + +export const auth = createAuth({ + oauth: [], + identity: { + schema, + }, +}) + +export type User = InferUser +export type Session = InferSession +``` + + + + + +```ts title="lib/auth.ts" lineNumbers +import * as valibot from "valibot" +import { createAuth } from "@aura-stack/auth" +import { UserIdentityValibot, type InferUser, type InferSession } from "@aura-stack/auth/identity" + +const schema = valibot.object({ + ...UserIdentityValibot.entries, + role: valibot.enum(["admin", "user"]), +}) export const auth = createAuth({ oauth: [], @@ -47,4 +151,66 @@ export const auth = createAuth({ schema, }, }) + +export type User = InferUser +export type Session = InferSession ``` + + + + + +```ts title="lib/auth.ts" lineNumbers +import { type } from "arktype" +import { createAuth } from "@aura-stack/auth" +import { UserIdentityArkType, type InferUser, type InferSession } from "@aura-stack/auth/identity" + +const schema = UserIdentityArkType.and({ + role: type.enumerated(["admin", "user"]), +}) + +export const auth = createAuth({ + oauth: [], + identity: { + schema, + }, +}) + +export type User = InferUser +export type Session = InferSession +``` + + + + + + + Aura Auth does not currently support inferring types directly from the TypeBox schema. To work around this, you can manually use + `Static` type from TypeBox to define the `User` and `Session` types based on the structure of your schema. This is a temporary + limitation by the expensive nature of TypeBox's type inference. + + +```ts title="lib/auth.ts" lineNumbers +import { Type, type Static } from "typebox" +import { createAuth } from "@aura-stack/auth" +import { UserIdentityTypeBox } from "@aura-stack/auth/identity" + +const schema = Type.Object({ + ...UserIdentityTypeBox.properties, + role: Type.Union([Type.Literal("admin"), Type.Literal("user")]), +}) + +export type User = Static +export type Session = Static + +export const auth = createAuth({ + oauth: [], + identity: { + schema, + }, +}) +``` + + + + diff --git a/packages/core/src/shared/identity.ts b/packages/core/src/shared/identity.ts index d69e775c..23349176 100644 --- a/packages/core/src/shared/identity.ts +++ b/packages/core/src/shared/identity.ts @@ -80,7 +80,9 @@ type ReturnShapeType = ? T : T extends EditableShapeTypebox ? Typebox.TObject - : never + : T extends EditableUser + ? z.ZodObject + : never export const createIdentity = (shape: S): ReturnShapeType => { if (isArkType(shape)) { diff --git a/packages/core/test/identity.test.ts b/packages/core/test/identity.test.ts index cebfd2c2..eb0bbeb5 100644 --- a/packages/core/test/identity.test.ts +++ b/packages/core/test/identity.test.ts @@ -189,13 +189,23 @@ describe("createIdentity", () => { }) type ExpectedIdentity = Static - const auth = createAuth({ + createAuth({ oauth: [], identity: { - schema: Schema as any, + schema: Schema, }, }) - expectTypeOf().toEqualTypeOf>() + expectTypeOf().toEqualTypeOf<{ + sub: string + name?: string | null + email?: string | null + image?: string | null + role: string + user: { + id: string + name: string + } + }>() }) }) diff --git a/packages/core/test/types.test-d.ts b/packages/core/test/types.test-d.ts index 78c8b09c..342a263a 100644 --- a/packages/core/test/types.test-d.ts +++ b/packages/core/test/types.test-d.ts @@ -143,7 +143,7 @@ describe("createAuth", () => { Partial< { sub: string - role: Typebox.TOptional + role?: Typebox.TOptional name?: string | null | undefined image?: string | null | undefined email?: string | null | undefined From 737a777eaf6aac812cd326117a914ef04f4034e0 Mon Sep 17 00:00:00 2001 From: Hernan Alvarado Date: Fri, 5 Jun 2026 11:22:07 -0500 Subject: [PATCH 8/8] chore: apply coderabbit --- docs/src/content/docs/(core)/guides/schema-validation.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/content/docs/(core)/guides/schema-validation.mdx b/docs/src/content/docs/(core)/guides/schema-validation.mdx index 63d64af3..de9ba4bb 100644 --- a/docs/src/content/docs/(core)/guides/schema-validation.mdx +++ b/docs/src/content/docs/(core)/guides/schema-validation.mdx @@ -7,7 +7,7 @@ Aura Auth provides the `identity.schema` configuration option for type extension Aura Auth supports `zod`, `valibot`, `arktype` and `typebox` schemas for validation. You can choose the one that best fits your needs, based on the constraints, limitations and features of each library. -For each library, its provided the default `Identity` schemas, which you can extend to create your own custom schema. This allows you to add additional fields or constraints to the user identity data while still leveraging the built-in validation and type inference capabilities of Aura Auth. They schemas contains `sub`, `name`, `email` and `image` fields by default, but you can extend it with any additional fields you need. +For each library, Aura Auth provides a default `Identity` schema, which you can extend to create your own custom schema. This allows you to add additional fields or constraints to user identity data while leveraging built-in validation across all supported libraries, and built-in type inference where supported (zod, valibot, and arktype). The default `Identity` schema contains `sub`, `name`, `email`, and `image` fields, but you can extend it with any additional fields you need. TypeBox is supported for validation, but does not support direct type inference here. @@ -110,7 +110,7 @@ The `User` and `Session` types can be inferred from the auth configuration using ```ts title="lib/auth.ts" lineNumbers import { z } from "zod" import { createAuth } from "@aura-stack/auth" -import { UserIdentity, type UserFrom, type SessionFrom, type UserFrom, type SessionFrom } from "@aura-stack/auth/identity" +import { UserIdentity, type UserFrom, type SessionFrom, type InferUser, type InferSession } from "@aura-stack/auth/identity" const schema = UserIdentity.extend({ role: z.enum(["admin", "user"]),