diff --git a/package.json b/package.json index cf1d11ef..42cdc00e 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "ts-jest": "29.4.9", "typescript": "6.0.3", "valibot": "1.3.1", - "vitest": "^3.2.4", + "vitest": "^4.0.0", "yup": "1.7.1", "zod": "4.3.6" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8c0f5efa..a4a9d660 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,32 +10,32 @@ importers: dependencies: '@graphql-codegen/plugin-helpers': specifier: ^6.0.0 - version: 6.3.0(graphql@16.11.0) + version: 6.3.0(graphql@16.13.2) '@graphql-codegen/schema-ast': specifier: 5.0.2 - version: 5.0.2(graphql@16.11.0) + version: 5.0.2(graphql@16.13.2) '@graphql-codegen/visitor-plugin-common': specifier: ^6.0.0 - version: 6.3.0(graphql@16.11.0) + version: 6.3.0(graphql@16.13.2) '@graphql-tools/utils': specifier: ^11.0.0 - version: 11.1.0(graphql@16.11.0) + version: 11.1.0(graphql@16.13.2) graphlib: specifier: ^2.1.8 version: 2.1.8 graphql: specifier: ^16.6.0 - version: 16.11.0 + version: 16.13.2 devDependencies: '@antfu/eslint-config': specifier: ^8.0.0 - version: 8.2.0(@typescript-eslint/rule-tester@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(@typescript-eslint/typescript-estree@8.59.0(typescript@6.0.3))(@typescript-eslint/utils@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(@vue/compiler-sfc@3.5.12)(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3)) + version: 8.2.0(@typescript-eslint/rule-tester@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(@typescript-eslint/typescript-estree@8.59.0(typescript@6.0.3))(@typescript-eslint/utils@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(@vue/compiler-sfc@3.5.12)(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3)(vitest@4.1.5(@types/node@24.12.2)(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3))) '@graphql-codegen/cli': specifier: 6.3.1 - version: 6.3.1(@types/node@24.12.2)(graphql@16.11.0)(typescript@6.0.3) + version: 6.3.1(@types/node@24.12.2)(graphql@16.13.2)(typescript@6.0.3) '@graphql-codegen/typescript': specifier: ^5.0.0 - version: 5.0.10(graphql@16.11.0) + version: 5.0.10(graphql@16.13.2) '@tsconfig/recommended': specifier: 1.0.13 version: 1.0.13 @@ -70,8 +70,8 @@ importers: specifier: 1.3.1 version: 1.3.1(typescript@6.0.3) vitest: - specifier: ^3.2.4 - version: 3.2.4(@types/debug@4.1.12)(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3) + specifier: ^4.0.0 + version: 4.1.5(@types/node@24.12.2)(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3)) yup: specifier: 1.7.1 version: 1.7.1 @@ -1311,6 +1311,9 @@ packages: '@sinonjs/fake-timers@15.3.2': resolution: {integrity: sha512-mrn35Jl2pCpns+mE3HaZa1yPN5EYCRgiMI+135COjr2hr8Cls9DXqIZ57vZe2cz7y2XVSq92tcs6kGQcT1J8Rw==} + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + '@stylistic/eslint-plugin@5.10.0': resolution: {integrity: sha512-nPK52ZHvot8Ju/0A4ucSX1dcPV2/1clx0kLcH5wDmrE4naKso7TUC/voUyU1O9OTKTrR6MYip6LP0ogEMQ9jPQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -1575,34 +1578,34 @@ packages: vitest: optional: true - '@vitest/expect@3.2.4': - resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==} + '@vitest/expect@4.1.5': + resolution: {integrity: sha512-PWBaRY5JoKuRnHlUHfpV/KohFylaDZTupcXN1H9vYryNLOnitSw60Mw9IAE2r67NbwwzBw/Cc/8q9BK3kIX8Kw==} - '@vitest/mocker@3.2.4': - resolution: {integrity: sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==} + '@vitest/mocker@4.1.5': + resolution: {integrity: sha512-/x2EmFC4mT4NNzqvC3fmesuV97w5FC903KPmey4gsnJiMQ3Be1IlDKVaDaG8iqaLFHqJ2FVEkxZk5VmeLjIItw==} peerDependencies: msw: ^2.4.9 - vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: msw: optional: true vite: optional: true - '@vitest/pretty-format@3.2.4': - resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==} + '@vitest/pretty-format@4.1.5': + resolution: {integrity: sha512-7I3q6l5qr03dVfMX2wCo9FxwSJbPdwKjy2uu/YPpU3wfHvIL4QHwVRp57OfGrDFeUJ8/8QdfBKIV12FTtLn00g==} - '@vitest/runner@3.2.4': - resolution: {integrity: sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==} + '@vitest/runner@4.1.5': + resolution: {integrity: sha512-2D+o7Pr82IEO46YPpoA/YU0neeyr6FTerQb5Ro7BUnBuv6NQtT/kmVnczngiMEBhzgqz2UZYl5gArejsyERDSQ==} - '@vitest/snapshot@3.2.4': - resolution: {integrity: sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==} + '@vitest/snapshot@4.1.5': + resolution: {integrity: sha512-zypXEt4KH/XgKGPUz4eC2AvErYx0My5hfL8oDb1HzGFpEk1P62bxSohdyOmvz+d9UJwanI68MKwr2EquOaOgMQ==} - '@vitest/spy@3.2.4': - resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==} + '@vitest/spy@4.1.5': + resolution: {integrity: sha512-2lNOsh6+R2Idnf1TCZqSwYlKN2E/iDlD8sgU59kYVl+OMDmvldO1VDk39smRfpUNwYpNRVn3w4YfuC7KfbBnkQ==} - '@vitest/utils@3.2.4': - resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} + '@vitest/utils@4.1.5': + resolution: {integrity: sha512-76wdkrmfXfqGjueGgnb45ITPyUi1ycZ4IHgC2bhPDUfWHklY/q3MdLOAB+TF1e6xfl8NxNY0ZYaPCFNWSsw3Ug==} '@vue/compiler-core@3.5.12': resolution: {integrity: sha512-ISyBTRMmMYagUxhcpyEH0hpXRd/KqDU4ymofPgl2XAkY9ZhQ+h0ovEZJIiPop13UmR/54oA2cgMDjgroRelaEw==} @@ -1719,10 +1722,6 @@ packages: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} - assertion-error@2.0.1: - resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} - engines: {node: '>=12'} - auto-bind@4.0.0: resolution: {integrity: sha512-Hdw8qdNiqdJ8LqT0iK0sVzkFbzg6fhnQqqfWhBDxcHZvU75+B+ayzTy8x+k5Ix0Y92XOhOUlx74ps+bA6BeYMQ==} engines: {node: '>=8'} @@ -1813,10 +1812,6 @@ packages: resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} engines: {node: '>=10.16.0'} - cac@6.7.14: - resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} - engines: {node: '>=8'} - cac@7.0.0: resolution: {integrity: sha512-tixWYgm5ZoOD+3g6UTea91eow5z6AAHaho3g0V9CNSNb45gM8SmflpAc+GRd1InC4AqN/07Unrgp56Y94N9hJQ==} engines: {node: '>=20.19.0'} @@ -1848,8 +1843,8 @@ packages: ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} - chai@5.3.3: - resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==} + chai@6.2.2: + resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==} engines: {node: '>=18'} chalk@4.1.2: @@ -1875,10 +1870,6 @@ packages: chardet@2.1.0: resolution: {integrity: sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==} - check-error@2.1.3: - resolution: {integrity: sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==} - engines: {node: '>= 16'} - ci-info@4.3.0: resolution: {integrity: sha512-l+2bNRMiQgcfILUi33labAZYIWlH1kWDp+ecNo5iisRKrbm0xcRyCww71/YU0Fkw0mAFpz9bJayXPjey6vkmaQ==} engines: {node: '>=8'} @@ -2027,10 +2018,6 @@ packages: babel-plugin-macros: optional: true - deep-eql@5.0.2: - resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} - engines: {node: '>=6'} - deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} @@ -2113,8 +2100,8 @@ packages: error-ex@1.3.2: resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} - es-module-lexer@1.7.0: - resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} + es-module-lexer@2.0.0: + resolution: {integrity: sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==} esbuild@0.25.5: resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==} @@ -2575,8 +2562,8 @@ packages: ws: optional: true - graphql@16.11.0: - resolution: {integrity: sha512-mS1lbMsxgQj6hge1XZ6p7GPhbrtFwUFYi3wRzXAC/FmYnyXMTvvI3td3rjmQ2u8ewXueaSvRPWaEcgVVOT9Jnw==} + graphql@16.13.2: + resolution: {integrity: sha512-5bJ+nf/UCpAjHM8i06fl7eLyVC9iuNAjm9qzkiu2ZGhM0VscSvS6WDPfAwkdkBuoXGM9FJSbKl6wylMwP9Ktig==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} handlebars@4.7.9: @@ -2887,9 +2874,6 @@ packages: js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - js-tokens@9.0.1: - resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} - js-yaml@3.14.1: resolution: {integrity: sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==} hasBin: true @@ -3001,9 +2985,6 @@ packages: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - loupe@3.2.1: - resolution: {integrity: sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==} - lower-case-first@2.0.2: resolution: {integrity: sha512-EVm/rR94FJTZi3zefZ82fLWab+GX14LJN4HrWBcuo6Evmsl9hEfnqxgcHCKb9q+mNf6EVdsjx/qucYFIIB84pg==} @@ -3299,6 +3280,9 @@ packages: object-deep-merge@2.0.0: resolution: {integrity: sha512-3DC3UMpeffLTHiuXSy/UG4NOIYTLlY9u3V82+djSCLYClWobZiS4ivYzpIUWrRY/nfsJ8cWsKyG3QfyLePmhvg==} + obug@2.1.1: + resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==} + once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} @@ -3402,10 +3386,6 @@ packages: pathe@2.0.3: resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} - pathval@2.0.1: - resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==} - engines: {node: '>= 14.16'} - picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -3649,8 +3629,8 @@ packages: stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - std-env@3.10.0: - resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==} + std-env@4.1.0: + resolution: {integrity: sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==} streamsearch@1.1.0: resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} @@ -3703,9 +3683,6 @@ packages: resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} - strip-literal@3.1.0: - resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==} - supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -3747,26 +3724,19 @@ packages: tinybench@2.9.0: resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - tinyexec@0.3.2: - resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} - tinyexec@1.0.1: resolution: {integrity: sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==} + tinyexec@1.1.1: + resolution: {integrity: sha512-VKS/ZaQhhkKFMANmAOhhXVoIfBXblQxGX1myCQ2faQrfmobMftXeJPcZGp0gS07ocvGJWDLZGyOZDadDBqYIJg==} + engines: {node: '>=18'} + tinyglobby@0.2.15: resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} engines: {node: '>=12.0.0'} - tinypool@1.1.1: - resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==} - engines: {node: ^18.0.0 || >=20.0.0} - - tinyrainbow@2.0.0: - resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} - engines: {node: '>=14.0.0'} - - tinyspy@4.0.4: - resolution: {integrity: sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==} + tinyrainbow@3.1.0: + resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==} engines: {node: '>=14.0.0'} title-case@3.0.3: @@ -3939,11 +3909,6 @@ packages: typescript: optional: true - vite-node@3.2.4: - resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} - hasBin: true - vite@6.3.5: resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} @@ -3984,26 +3949,39 @@ packages: yaml: optional: true - vitest@3.2.4: - resolution: {integrity: sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==} - engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + vitest@4.1.5: + resolution: {integrity: sha512-9Xx1v3/ih3m9hN+SbfkUyy0JAs72ap3r7joc87XL6jwF0jGg6mFBvQ1SrwaX+h8BlkX6Hz9shdd1uo6AF+ZGpg==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} hasBin: true peerDependencies: '@edge-runtime/vm': '*' - '@types/debug': ^4.1.12 - '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 - '@vitest/browser': 3.2.4 - '@vitest/ui': 3.2.4 + '@opentelemetry/api': ^1.9.0 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 4.1.5 + '@vitest/browser-preview': 4.1.5 + '@vitest/browser-webdriverio': 4.1.5 + '@vitest/coverage-istanbul': 4.1.5 + '@vitest/coverage-v8': 4.1.5 + '@vitest/ui': 4.1.5 happy-dom: '*' jsdom: '*' + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: '@edge-runtime/vm': optional: true - '@types/debug': + '@opentelemetry/api': optional: true '@types/node': optional: true - '@vitest/browser': + '@vitest/browser-playwright': + optional: true + '@vitest/browser-preview': + optional: true + '@vitest/browser-webdriverio': + optional: true + '@vitest/coverage-istanbul': + optional: true + '@vitest/coverage-v8': optional: true '@vitest/ui': optional: true @@ -4143,7 +4121,7 @@ snapshots: '@jridgewell/gen-mapping': 0.3.8 '@jridgewell/trace-mapping': 0.3.25 - '@antfu/eslint-config@8.2.0(@typescript-eslint/rule-tester@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(@typescript-eslint/typescript-estree@8.59.0(typescript@6.0.3))(@typescript-eslint/utils@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(@vue/compiler-sfc@3.5.12)(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3))': + '@antfu/eslint-config@8.2.0(@typescript-eslint/rule-tester@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(@typescript-eslint/typescript-estree@8.59.0(typescript@6.0.3))(@typescript-eslint/utils@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(@vue/compiler-sfc@3.5.12)(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3)(vitest@4.1.5(@types/node@24.12.2)(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3)))': dependencies: '@antfu/install-pkg': 1.1.0 '@clack/prompts': 1.2.0 @@ -4153,7 +4131,7 @@ snapshots: '@stylistic/eslint-plugin': 5.10.0(eslint@10.2.1(jiti@2.4.0)) '@typescript-eslint/eslint-plugin': 8.59.0(@typescript-eslint/parser@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3) '@typescript-eslint/parser': 8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3) - '@vitest/eslint-plugin': 1.6.16(@typescript-eslint/eslint-plugin@8.59.0(@typescript-eslint/parser@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3)) + '@vitest/eslint-plugin': 1.6.16(@typescript-eslint/eslint-plugin@8.59.0(@typescript-eslint/parser@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3)(vitest@4.1.5(@types/node@24.12.2)(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3))) ansis: 4.2.0 cac: 7.0.0 eslint: 10.2.1(jiti@2.4.0) @@ -4198,10 +4176,10 @@ snapshots: package-manager-detector: 1.3.0 tinyexec: 1.0.1 - '@ardatan/relay-compiler@13.0.1(graphql@16.11.0)': + '@ardatan/relay-compiler@13.0.1(graphql@16.13.2)': dependencies: '@babel/runtime': 7.29.2 - graphql: 16.11.0 + graphql: 16.13.2 immutable: 5.1.5 invariant: 2.2.4 @@ -4790,38 +4768,38 @@ snapshots: '@fastify/busboy@3.2.0': {} - '@graphql-codegen/add@6.0.1(graphql@16.11.0)': + '@graphql-codegen/add@6.0.1(graphql@16.13.2)': dependencies: - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-codegen/cli@6.3.1(@types/node@24.12.2)(graphql@16.11.0)(typescript@6.0.3)': + '@graphql-codegen/cli@6.3.1(@types/node@24.12.2)(graphql@16.13.2)(typescript@6.0.3)': dependencies: '@babel/generator': 7.27.5 '@babel/template': 7.27.2 '@babel/types': 7.29.0 - '@graphql-codegen/client-preset': 5.3.0(graphql@16.11.0) - '@graphql-codegen/core': 5.0.2(graphql@16.11.0) - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - '@graphql-tools/apollo-engine-loader': 8.0.30(graphql@16.11.0) - '@graphql-tools/code-file-loader': 8.1.32(graphql@16.11.0) - '@graphql-tools/git-loader': 8.0.36(graphql@16.11.0) - '@graphql-tools/github-loader': 9.1.2(@types/node@24.12.2)(graphql@16.11.0) - '@graphql-tools/graphql-file-loader': 8.1.14(graphql@16.11.0) - '@graphql-tools/json-file-loader': 8.0.28(graphql@16.11.0) - '@graphql-tools/load': 8.1.10(graphql@16.11.0) - '@graphql-tools/merge': 9.0.24(graphql@16.11.0) - '@graphql-tools/url-loader': 9.1.2(@types/node@24.12.2)(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-codegen/client-preset': 5.3.0(graphql@16.13.2) + '@graphql-codegen/core': 5.0.2(graphql@16.13.2) + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + '@graphql-tools/apollo-engine-loader': 8.0.30(graphql@16.13.2) + '@graphql-tools/code-file-loader': 8.1.32(graphql@16.13.2) + '@graphql-tools/git-loader': 8.0.36(graphql@16.13.2) + '@graphql-tools/github-loader': 9.1.2(@types/node@24.12.2)(graphql@16.13.2) + '@graphql-tools/graphql-file-loader': 8.1.14(graphql@16.13.2) + '@graphql-tools/json-file-loader': 8.0.28(graphql@16.13.2) + '@graphql-tools/load': 8.1.10(graphql@16.13.2) + '@graphql-tools/merge': 9.0.24(graphql@16.13.2) + '@graphql-tools/url-loader': 9.1.2(@types/node@24.12.2)(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) '@inquirer/prompts': 7.8.4(@types/node@24.12.2) '@whatwg-node/fetch': 0.10.1 chalk: 4.1.2 cosmiconfig: 9.0.0(typescript@6.0.3) debounce: 2.2.0 detect-indent: 6.1.0 - graphql: 16.11.0 - graphql-config: 5.1.6(@types/node@24.12.2)(graphql@16.11.0)(typescript@6.0.3) + graphql: 16.13.2 + graphql-config: 5.1.6(@types/node@24.12.2)(graphql@16.13.2)(typescript@6.0.3) is-glob: 4.0.3 jiti: 2.4.0 json-to-pretty-yaml: 1.2.2 @@ -4845,157 +4823,157 @@ snapshots: - typescript - utf-8-validate - '@graphql-codegen/client-preset@5.3.0(graphql@16.11.0)': + '@graphql-codegen/client-preset@5.3.0(graphql@16.13.2)': dependencies: '@babel/helper-plugin-utils': 7.27.1 '@babel/template': 7.27.2 - '@graphql-codegen/add': 6.0.1(graphql@16.11.0) - '@graphql-codegen/gql-tag-operations': 5.2.0(graphql@16.11.0) - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - '@graphql-codegen/typed-document-node': 6.1.8(graphql@16.11.0) - '@graphql-codegen/typescript': 5.0.10(graphql@16.11.0) - '@graphql-codegen/typescript-operations': 5.1.0(graphql@16.11.0) - '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.11.0) - '@graphql-tools/documents': 1.0.1(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - '@graphql-typed-document-node/core': 3.2.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-codegen/add': 6.0.1(graphql@16.13.2) + '@graphql-codegen/gql-tag-operations': 5.2.0(graphql@16.13.2) + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + '@graphql-codegen/typed-document-node': 6.1.8(graphql@16.13.2) + '@graphql-codegen/typescript': 5.0.10(graphql@16.13.2) + '@graphql-codegen/typescript-operations': 5.1.0(graphql@16.13.2) + '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.13.2) + '@graphql-tools/documents': 1.0.1(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-codegen/core@5.0.2(graphql@16.11.0)': + '@graphql-codegen/core@5.0.2(graphql@16.13.2)': dependencies: - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - '@graphql-tools/schema': 10.0.23(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + '@graphql-tools/schema': 10.0.23(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-codegen/gql-tag-operations@5.2.0(graphql@16.11.0)': + '@graphql-codegen/gql-tag-operations@5.2.0(graphql@16.13.2)': dependencies: - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) auto-bind: 4.0.0 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-codegen/plugin-helpers@6.3.0(graphql@16.11.0)': + '@graphql-codegen/plugin-helpers@6.3.0(graphql@16.13.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) change-case-all: 1.0.15 common-tags: 1.8.2 - graphql: 16.11.0 + graphql: 16.13.2 import-from: 4.0.0 tslib: 2.8.1 - '@graphql-codegen/schema-ast@5.0.2(graphql@16.11.0)': + '@graphql-codegen/schema-ast@5.0.2(graphql@16.13.2)': dependencies: - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-codegen/typed-document-node@6.1.8(graphql@16.11.0)': + '@graphql-codegen/typed-document-node@6.1.8(graphql@16.13.2)': dependencies: - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.11.0) + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.13.2) auto-bind: 4.0.0 change-case-all: 1.0.15 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-codegen/typescript-operations@5.1.0(graphql@16.11.0)': + '@graphql-codegen/typescript-operations@5.1.0(graphql@16.13.2)': dependencies: - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - '@graphql-codegen/typescript': 5.0.10(graphql@16.11.0) - '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.11.0) + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + '@graphql-codegen/typescript': 5.0.10(graphql@16.13.2) + '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.13.2) auto-bind: 4.0.0 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-codegen/typescript@5.0.10(graphql@16.11.0)': + '@graphql-codegen/typescript@5.0.10(graphql@16.13.2)': dependencies: - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - '@graphql-codegen/schema-ast': 5.0.2(graphql@16.11.0) - '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.11.0) + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + '@graphql-codegen/schema-ast': 5.0.2(graphql@16.13.2) + '@graphql-codegen/visitor-plugin-common': 6.3.0(graphql@16.13.2) auto-bind: 4.0.0 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-codegen/visitor-plugin-common@6.3.0(graphql@16.11.0)': + '@graphql-codegen/visitor-plugin-common@6.3.0(graphql@16.13.2)': dependencies: - '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.11.0) - '@graphql-tools/optimize': 2.0.0(graphql@16.11.0) - '@graphql-tools/relay-operation-optimizer': 7.1.4(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-codegen/plugin-helpers': 6.3.0(graphql@16.13.2) + '@graphql-tools/optimize': 2.0.0(graphql@16.13.2) + '@graphql-tools/relay-operation-optimizer': 7.1.4(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) auto-bind: 4.0.0 change-case-all: 1.0.15 dependency-graph: 1.0.0 - graphql: 16.11.0 - graphql-tag: 2.12.6(graphql@16.11.0) + graphql: 16.13.2 + graphql-tag: 2.12.6(graphql@16.13.2) parse-filepath: 1.0.2 tslib: 2.8.1 '@graphql-hive/signal@2.0.0': {} - '@graphql-tools/apollo-engine-loader@8.0.30(graphql@16.11.0)': + '@graphql-tools/apollo-engine-loader@8.0.30(graphql@16.13.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) '@whatwg-node/fetch': 0.10.13 - graphql: 16.11.0 + graphql: 16.13.2 sync-fetch: 0.6.0 tslib: 2.8.1 - '@graphql-tools/batch-execute@10.0.8(graphql@16.11.0)': + '@graphql-tools/batch-execute@10.0.8(graphql@16.13.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) '@whatwg-node/promise-helpers': 1.3.2 dataloader: 2.2.3 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/code-file-loader@8.1.32(graphql@16.11.0)': + '@graphql-tools/code-file-loader@8.1.32(graphql@16.13.2)': dependencies: - '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) globby: 11.1.0 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 unixify: 1.0.0 transitivePeerDependencies: - supports-color - '@graphql-tools/delegate@12.0.14(graphql@16.11.0)': + '@graphql-tools/delegate@12.0.14(graphql@16.13.2)': dependencies: - '@graphql-tools/batch-execute': 10.0.8(graphql@16.11.0) - '@graphql-tools/executor': 1.5.3(graphql@16.11.0) - '@graphql-tools/schema': 10.0.33(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/batch-execute': 10.0.8(graphql@16.13.2) + '@graphql-tools/executor': 1.5.3(graphql@16.13.2) + '@graphql-tools/schema': 10.0.33(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/promise-helpers': 1.3.2 dataloader: 2.2.3 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/documents@1.0.1(graphql@16.11.0)': + '@graphql-tools/documents@1.0.1(graphql@16.13.2)': dependencies: - graphql: 16.11.0 + graphql: 16.13.2 lodash.sortby: 4.7.0 tslib: 2.8.1 - '@graphql-tools/executor-common@1.0.6(graphql@16.11.0)': + '@graphql-tools/executor-common@1.0.6(graphql@16.13.2)': dependencies: '@envelop/core': 5.5.1 - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 - '@graphql-tools/executor-graphql-ws@3.1.5(graphql@16.11.0)': + '@graphql-tools/executor-graphql-ws@3.1.5(graphql@16.13.2)': dependencies: - '@graphql-tools/executor-common': 1.0.6(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/executor-common': 1.0.6(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) '@whatwg-node/disposablestack': 0.0.6 - graphql: 16.11.0 - graphql-ws: 6.0.8(graphql@16.11.0)(ws@8.20.0) + graphql: 16.13.2 + graphql-ws: 6.0.8(graphql@16.13.2)(ws@8.20.0) isows: 1.0.7(ws@8.20.0) tslib: 2.8.1 ws: 8.20.0 @@ -5005,26 +4983,26 @@ snapshots: - crossws - utf-8-validate - '@graphql-tools/executor-http@3.2.1(@types/node@24.12.2)(graphql@16.11.0)': + '@graphql-tools/executor-http@3.2.1(@types/node@24.12.2)(graphql@16.13.2)': dependencies: '@graphql-hive/signal': 2.0.0 - '@graphql-tools/executor-common': 1.0.6(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/executor-common': 1.0.6(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/disposablestack': 0.0.6 '@whatwg-node/fetch': 0.10.13 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.11.0 + graphql: 16.13.2 meros: 1.3.2(@types/node@24.12.2) tslib: 2.8.1 transitivePeerDependencies: - '@types/node' - '@graphql-tools/executor-legacy-ws@1.1.28(graphql@16.11.0)': + '@graphql-tools/executor-legacy-ws@1.1.28(graphql@16.13.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) '@types/ws': 8.5.13 - graphql: 16.11.0 + graphql: 16.13.2 isomorphic-ws: 5.0.0(ws@8.20.0) tslib: 2.8.1 ws: 8.20.0 @@ -5032,21 +5010,21 @@ snapshots: - bufferutil - utf-8-validate - '@graphql-tools/executor@1.5.3(graphql@16.11.0)': + '@graphql-tools/executor@1.5.3(graphql@16.13.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - '@graphql-typed-document-node/core': 3.2.0(graphql@16.11.0) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.13.2) '@repeaterjs/repeater': 3.0.6 '@whatwg-node/disposablestack': 0.0.6 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/git-loader@8.0.36(graphql@16.11.0)': + '@graphql-tools/git-loader@8.0.36(graphql@16.13.2)': dependencies: - '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 is-glob: 4.0.3 micromatch: 4.0.8 tslib: 2.8.1 @@ -5054,114 +5032,114 @@ snapshots: transitivePeerDependencies: - supports-color - '@graphql-tools/github-loader@9.1.2(@types/node@24.12.2)(graphql@16.11.0)': + '@graphql-tools/github-loader@9.1.2(@types/node@24.12.2)(graphql@16.13.2)': dependencies: - '@graphql-tools/executor-http': 3.2.1(@types/node@24.12.2)(graphql@16.11.0) - '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/executor-http': 3.2.1(@types/node@24.12.2)(graphql@16.13.2) + '@graphql-tools/graphql-tag-pluck': 8.3.31(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) '@whatwg-node/fetch': 0.10.13 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.11.0 + graphql: 16.13.2 sync-fetch: 0.6.0 tslib: 2.8.1 transitivePeerDependencies: - '@types/node' - supports-color - '@graphql-tools/graphql-file-loader@8.1.14(graphql@16.11.0)': + '@graphql-tools/graphql-file-loader@8.1.14(graphql@16.13.2)': dependencies: - '@graphql-tools/import': 7.1.14(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/import': 7.1.14(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) globby: 11.1.0 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 unixify: 1.0.0 - '@graphql-tools/graphql-tag-pluck@8.3.31(graphql@16.11.0)': + '@graphql-tools/graphql-tag-pluck@8.3.31(graphql@16.13.2)': dependencies: '@babel/core': 7.29.0 '@babel/parser': 7.29.2 '@babel/plugin-syntax-import-assertions': 7.26.0(@babel/core@7.29.0) '@babel/traverse': 7.27.4 '@babel/types': 7.29.0 - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 transitivePeerDependencies: - supports-color - '@graphql-tools/import@7.1.14(graphql@16.11.0)': + '@graphql-tools/import@7.1.14(graphql@16.13.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 resolve-from: 5.0.0 tslib: 2.8.1 - '@graphql-tools/json-file-loader@8.0.28(graphql@16.11.0)': + '@graphql-tools/json-file-loader@8.0.28(graphql@16.13.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) globby: 11.1.0 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 unixify: 1.0.0 - '@graphql-tools/load@8.1.10(graphql@16.11.0)': + '@graphql-tools/load@8.1.10(graphql@16.13.2)': dependencies: - '@graphql-tools/schema': 10.0.33(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-tools/schema': 10.0.33(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 p-limit: 3.1.0 tslib: 2.8.1 - '@graphql-tools/merge@9.0.24(graphql@16.11.0)': + '@graphql-tools/merge@9.0.24(graphql@16.13.2)': dependencies: - '@graphql-tools/utils': 10.11.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-tools/utils': 10.11.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/merge@9.1.9(graphql@16.11.0)': + '@graphql-tools/merge@9.1.9(graphql@16.13.2)': dependencies: - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/optimize@2.0.0(graphql@16.11.0)': + '@graphql-tools/optimize@2.0.0(graphql@16.13.2)': dependencies: - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/relay-operation-optimizer@7.1.4(graphql@16.11.0)': + '@graphql-tools/relay-operation-optimizer@7.1.4(graphql@16.13.2)': dependencies: - '@ardatan/relay-compiler': 13.0.1(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@ardatan/relay-compiler': 13.0.1(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/schema@10.0.23(graphql@16.11.0)': + '@graphql-tools/schema@10.0.23(graphql@16.13.2)': dependencies: - '@graphql-tools/merge': 9.0.24(graphql@16.11.0) - '@graphql-tools/utils': 10.11.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-tools/merge': 9.0.24(graphql@16.13.2) + '@graphql-tools/utils': 10.11.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/schema@10.0.33(graphql@16.11.0)': + '@graphql-tools/schema@10.0.33(graphql@16.13.2)': dependencies: - '@graphql-tools/merge': 9.1.9(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - graphql: 16.11.0 + '@graphql-tools/merge': 9.1.9(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/url-loader@9.1.2(@types/node@24.12.2)(graphql@16.11.0)': + '@graphql-tools/url-loader@9.1.2(@types/node@24.12.2)(graphql@16.13.2)': dependencies: - '@graphql-tools/executor-graphql-ws': 3.1.5(graphql@16.11.0) - '@graphql-tools/executor-http': 3.2.1(@types/node@24.12.2)(graphql@16.11.0) - '@graphql-tools/executor-legacy-ws': 1.1.28(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) - '@graphql-tools/wrap': 11.1.14(graphql@16.11.0) + '@graphql-tools/executor-graphql-ws': 3.1.5(graphql@16.13.2) + '@graphql-tools/executor-http': 3.2.1(@types/node@24.12.2)(graphql@16.13.2) + '@graphql-tools/executor-legacy-ws': 1.1.28(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) + '@graphql-tools/wrap': 11.1.14(graphql@16.13.2) '@types/ws': 8.5.13 '@whatwg-node/fetch': 0.10.13 '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.11.0 + graphql: 16.13.2 isomorphic-ws: 5.0.0(ws@8.20.0) sync-fetch: 0.6.0 tslib: 2.8.1 @@ -5173,34 +5151,34 @@ snapshots: - crossws - utf-8-validate - '@graphql-tools/utils@10.11.0(graphql@16.11.0)': + '@graphql-tools/utils@10.11.0(graphql@16.13.2)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.11.0) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.13.2) '@whatwg-node/promise-helpers': 1.3.2 cross-inspect: 1.0.1 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/utils@11.1.0(graphql@16.11.0)': + '@graphql-tools/utils@11.1.0(graphql@16.13.2)': dependencies: - '@graphql-typed-document-node/core': 3.2.0(graphql@16.11.0) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.13.2) '@whatwg-node/promise-helpers': 1.3.2 cross-inspect: 1.0.1 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-tools/wrap@11.1.14(graphql@16.11.0)': + '@graphql-tools/wrap@11.1.14(graphql@16.13.2)': dependencies: - '@graphql-tools/delegate': 12.0.14(graphql@16.11.0) - '@graphql-tools/schema': 10.0.33(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/delegate': 12.0.14(graphql@16.13.2) + '@graphql-tools/schema': 10.0.33(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) '@whatwg-node/promise-helpers': 1.3.2 - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - '@graphql-typed-document-node/core@3.2.0(graphql@16.11.0)': + '@graphql-typed-document-node/core@3.2.0(graphql@16.13.2)': dependencies: - graphql: 16.11.0 + graphql: 16.13.2 '@humanfs/core@0.19.1': {} @@ -5666,6 +5644,8 @@ snapshots: dependencies: '@sinonjs/commons': 3.0.1 + '@standard-schema/spec@1.1.0': {} + '@stylistic/eslint-plugin@5.10.0(eslint@10.2.1(jiti@2.4.0))': dependencies: '@eslint-community/eslint-utils': 4.9.1(eslint@10.2.1(jiti@2.4.0)) @@ -5924,7 +5904,7 @@ snapshots: '@unrs/resolver-binding-win32-x64-msvc@1.7.13': optional: true - '@vitest/eslint-plugin@1.6.16(@typescript-eslint/eslint-plugin@8.59.0(@typescript-eslint/parser@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3))': + '@vitest/eslint-plugin@1.6.16(@typescript-eslint/eslint-plugin@8.59.0(@typescript-eslint/parser@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3)(vitest@4.1.5(@types/node@24.12.2)(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3)))': dependencies: '@typescript-eslint/scope-manager': 8.59.0 '@typescript-eslint/utils': 8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3) @@ -5932,51 +5912,50 @@ snapshots: optionalDependencies: '@typescript-eslint/eslint-plugin': 8.59.0(@typescript-eslint/parser@8.59.0(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3))(eslint@10.2.1(jiti@2.4.0))(typescript@6.0.3) typescript: 6.0.3 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3) + vitest: 4.1.5(@types/node@24.12.2)(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3)) transitivePeerDependencies: - supports-color - '@vitest/expect@3.2.4': + '@vitest/expect@4.1.5': dependencies: + '@standard-schema/spec': 1.1.0 '@types/chai': 5.2.2 - '@vitest/spy': 3.2.4 - '@vitest/utils': 3.2.4 - chai: 5.3.3 - tinyrainbow: 2.0.0 + '@vitest/spy': 4.1.5 + '@vitest/utils': 4.1.5 + chai: 6.2.2 + tinyrainbow: 3.1.0 - '@vitest/mocker@3.2.4(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3))': + '@vitest/mocker@4.1.5(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3))': dependencies: - '@vitest/spy': 3.2.4 + '@vitest/spy': 4.1.5 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: vite: 6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3) - '@vitest/pretty-format@3.2.4': + '@vitest/pretty-format@4.1.5': dependencies: - tinyrainbow: 2.0.0 + tinyrainbow: 3.1.0 - '@vitest/runner@3.2.4': + '@vitest/runner@4.1.5': dependencies: - '@vitest/utils': 3.2.4 + '@vitest/utils': 4.1.5 pathe: 2.0.3 - strip-literal: 3.1.0 - '@vitest/snapshot@3.2.4': + '@vitest/snapshot@4.1.5': dependencies: - '@vitest/pretty-format': 3.2.4 + '@vitest/pretty-format': 4.1.5 + '@vitest/utils': 4.1.5 magic-string: 0.30.21 pathe: 2.0.3 - '@vitest/spy@3.2.4': - dependencies: - tinyspy: 4.0.4 + '@vitest/spy@4.1.5': {} - '@vitest/utils@3.2.4': + '@vitest/utils@4.1.5': dependencies: - '@vitest/pretty-format': 3.2.4 - loupe: 3.2.1 - tinyrainbow: 2.0.0 + '@vitest/pretty-format': 4.1.5 + convert-source-map: 2.0.0 + tinyrainbow: 3.1.0 '@vue/compiler-core@3.5.12': dependencies: @@ -6103,8 +6082,6 @@ snapshots: array-union@2.1.0: {} - assertion-error@2.0.1: {} - auto-bind@4.0.0: {} babel-jest@30.3.0(@babel/core@7.27.4): @@ -6259,8 +6236,6 @@ snapshots: dependencies: streamsearch: 1.1.0 - cac@6.7.14: {} - cac@7.0.0: {} callsites@3.1.0: {} @@ -6286,13 +6261,7 @@ snapshots: ccount@2.0.1: {} - chai@5.3.3: - dependencies: - assertion-error: 2.0.1 - check-error: 2.1.3 - deep-eql: 5.0.2 - loupe: 3.2.1 - pathval: 2.0.1 + chai@6.2.2: {} chalk@4.1.2: dependencies: @@ -6335,8 +6304,6 @@ snapshots: chardet@2.1.0: {} - check-error@2.1.3: {} - ci-info@4.3.0: {} ci-info@4.4.0: {} @@ -6450,8 +6417,6 @@ snapshots: dedent@1.6.0: {} - deep-eql@5.0.2: {} - deep-is@0.1.4: {} deepmerge@4.3.1: {} @@ -6510,7 +6475,7 @@ snapshots: dependencies: is-arrayish: 0.2.1 - es-module-lexer@1.7.0: {} + es-module-lexer@2.0.0: {} esbuild@0.25.5: optionalDependencies: @@ -7037,16 +7002,16 @@ snapshots: dependencies: lodash: 4.17.21 - graphql-config@5.1.6(@types/node@24.12.2)(graphql@16.11.0)(typescript@6.0.3): + graphql-config@5.1.6(@types/node@24.12.2)(graphql@16.13.2)(typescript@6.0.3): dependencies: - '@graphql-tools/graphql-file-loader': 8.1.14(graphql@16.11.0) - '@graphql-tools/json-file-loader': 8.0.28(graphql@16.11.0) - '@graphql-tools/load': 8.1.10(graphql@16.11.0) - '@graphql-tools/merge': 9.0.24(graphql@16.11.0) - '@graphql-tools/url-loader': 9.1.2(@types/node@24.12.2)(graphql@16.11.0) - '@graphql-tools/utils': 11.1.0(graphql@16.11.0) + '@graphql-tools/graphql-file-loader': 8.1.14(graphql@16.13.2) + '@graphql-tools/json-file-loader': 8.0.28(graphql@16.13.2) + '@graphql-tools/load': 8.1.10(graphql@16.13.2) + '@graphql-tools/merge': 9.0.24(graphql@16.13.2) + '@graphql-tools/url-loader': 9.1.2(@types/node@24.12.2)(graphql@16.13.2) + '@graphql-tools/utils': 11.1.0(graphql@16.13.2) cosmiconfig: 8.3.6(typescript@6.0.3) - graphql: 16.11.0 + graphql: 16.13.2 jiti: 2.4.0 minimatch: 10.2.5 string-env-interpolation: 1.0.1 @@ -7059,18 +7024,18 @@ snapshots: - typescript - utf-8-validate - graphql-tag@2.12.6(graphql@16.11.0): + graphql-tag@2.12.6(graphql@16.13.2): dependencies: - graphql: 16.11.0 + graphql: 16.13.2 tslib: 2.8.1 - graphql-ws@6.0.8(graphql@16.11.0)(ws@8.20.0): + graphql-ws@6.0.8(graphql@16.13.2)(ws@8.20.0): dependencies: - graphql: 16.11.0 + graphql: 16.13.2 optionalDependencies: ws: 8.20.0 - graphql@16.11.0: {} + graphql@16.13.2: {} handlebars@4.7.9: dependencies: @@ -7545,8 +7510,6 @@ snapshots: js-tokens@4.0.0: {} - js-tokens@9.0.1: {} - js-yaml@3.14.1: dependencies: argparse: 1.0.10 @@ -7652,8 +7615,6 @@ snapshots: dependencies: js-tokens: 4.0.0 - loupe@3.2.1: {} - lower-case-first@2.0.2: dependencies: tslib: 2.8.1 @@ -8127,6 +8088,8 @@ snapshots: object-deep-merge@2.0.0: {} + obug@2.1.1: {} + once@1.4.0: dependencies: wrappy: 1.0.2 @@ -8231,8 +8194,6 @@ snapshots: pathe@2.0.3: {} - pathval@2.0.1: {} - picocolors@1.1.1: {} picomatch@2.3.1: {} @@ -8460,7 +8421,7 @@ snapshots: stackback@0.0.2: {} - std-env@3.10.0: {} + std-env@4.1.0: {} streamsearch@1.1.0: {} @@ -8509,10 +8470,6 @@ snapshots: strip-json-comments@3.1.1: {} - strip-literal@3.1.0: - dependencies: - js-tokens: 9.0.1 - supports-color@7.2.0: dependencies: has-flag: 4.0.0 @@ -8553,20 +8510,16 @@ snapshots: tinybench@2.9.0: {} - tinyexec@0.3.2: {} - tinyexec@1.0.1: {} + tinyexec@1.1.1: {} + tinyglobby@0.2.15: dependencies: fdir: 6.5.0(picomatch@4.0.3) picomatch: 4.0.3 - tinypool@1.1.1: {} - - tinyrainbow@2.0.0: {} - - tinyspy@4.0.4: {} + tinyrainbow@3.1.0: {} title-case@3.0.3: dependencies: @@ -8735,27 +8688,6 @@ snapshots: optionalDependencies: typescript: 6.0.3 - vite-node@3.2.4(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3): - dependencies: - cac: 6.7.14 - debug: 4.4.3 - es-module-lexer: 1.7.0 - pathe: 2.0.3 - vite: 6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3) - transitivePeerDependencies: - - '@types/node' - - jiti - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - tsx - - yaml - vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3): dependencies: esbuild: 0.25.5 @@ -8770,47 +8702,32 @@ snapshots: jiti: 2.4.0 yaml: 2.8.3 - vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3): + vitest@4.1.5(@types/node@24.12.2)(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3)): dependencies: - '@types/chai': 5.2.2 - '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3)) - '@vitest/pretty-format': 3.2.4 - '@vitest/runner': 3.2.4 - '@vitest/snapshot': 3.2.4 - '@vitest/spy': 3.2.4 - '@vitest/utils': 3.2.4 - chai: 5.3.3 - debug: 4.4.3 + '@vitest/expect': 4.1.5 + '@vitest/mocker': 4.1.5(vite@6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3)) + '@vitest/pretty-format': 4.1.5 + '@vitest/runner': 4.1.5 + '@vitest/snapshot': 4.1.5 + '@vitest/spy': 4.1.5 + '@vitest/utils': 4.1.5 + es-module-lexer: 2.0.0 expect-type: 1.3.0 magic-string: 0.30.21 + obug: 2.1.1 pathe: 2.0.3 picomatch: 4.0.3 - std-env: 3.10.0 + std-env: 4.1.0 tinybench: 2.9.0 - tinyexec: 0.3.2 + tinyexec: 1.1.1 tinyglobby: 0.2.15 - tinypool: 1.1.1 - tinyrainbow: 2.0.0 + tinyrainbow: 3.1.0 vite: 6.3.5(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3) - vite-node: 3.2.4(@types/node@24.12.2)(jiti@2.4.0)(yaml@2.8.3) why-is-node-running: 2.3.0 optionalDependencies: - '@types/debug': 4.1.12 '@types/node': 24.12.2 transitivePeerDependencies: - - jiti - - less - - lightningcss - msw - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - - tsx - - yaml vue-eslint-parser@10.4.0(eslint@10.2.1(jiti@2.4.0)): dependencies: diff --git a/src/lazy.ts b/src/lazy.ts index 0e17dd4e..32ab2423 100644 --- a/src/lazy.ts +++ b/src/lazy.ts @@ -6,12 +6,15 @@ import { isNamedType } from './graphql.js'; /** * Wraps a schema expression in a library-specific lazy reference when the type - * is a complex (non-scalar, non-enum) named type — avoiding issues with + * is a complex (non-scalar, non-enum) named type, avoiding issues with * mutually-recursive input types. * * Each validation library has its own lazy syntax (z.lazy, v.lazy, etc.), so * callers supply the wrapper function. * + * @param visitor - Type lookup used to distinguish scalars/enums from complex types. + * @param type - GraphQL type node for the schema expression. + * @param schema - Generated schema expression to wrap when needed. * @param lazyWrapper - e.g. `(s) => \`z.lazy(() => ${s})\`` */ export function buildMaybeLazy( diff --git a/src/zod/index.ts b/src/zod/index.ts index dfbeee37..c8c7a6bf 100644 --- a/src/zod/index.ts +++ b/src/zod/index.ts @@ -18,7 +18,6 @@ import { ObjectTypeDefinitionBuilder, } from '../graphql.js'; import { BaseSchemaVisitor } from '../schema_visitor.js'; -import { buildZodOperationSchemas } from './operation.js'; import { anySchema, buildObjectExpression, @@ -31,7 +30,8 @@ import { schemaDepthVariable, unionLiterals, withDescription, -} from './shared.js'; +} from '../zod_shared.js'; +import { buildZodOperationSchemas } from './operation.js'; export class ZodSchemaVisitor extends BaseSchemaVisitor { constructor(schema: GraphQLSchema, config: ValidationSchemaPluginConfig) { diff --git a/src/zod/shared.ts b/src/zod_shared.ts similarity index 97% rename from src/zod/shared.ts rename to src/zod_shared.ts index 2742011f..3d06f7e3 100644 --- a/src/zod/shared.ts +++ b/src/zod_shared.ts @@ -12,8 +12,8 @@ import type { TypeNode, } from 'graphql'; -import type { ValidationSchemaPluginConfig } from '../config.js'; -import type { Visitor } from '../visitor.js'; +import type { ValidationSchemaPluginConfig } from './config.js'; +import type { Visitor } from './visitor.js'; import { resolveExternalModuleAndFn } from '@graphql-codegen/plugin-helpers'; import { convertNameParts, indent } from '@graphql-codegen/visitor-plugin-common'; import { @@ -21,15 +21,15 @@ import { Kind, valueFromASTUntyped, } from 'graphql'; -import { buildApi, formatDirectiveConfig } from '../directive.js'; +import { buildApi, formatDirectiveConfig } from './directive.js'; import { escapeGraphQLCharacters, isListType, isNamedType, isNonNullType, -} from '../graphql.js'; -import { buildMaybeLazy } from '../lazy.js'; -import { buildScalarSchema } from '../scalar.js'; +} from './graphql.js'; +import { buildMaybeLazy } from './lazy.js'; +import { buildScalarSchema } from './scalar.js'; export const anySchema = `definedNonNullAnySchema`; diff --git a/src/zodv4/index.ts b/src/zodv4/index.ts index 4c872da6..df99fb00 100644 --- a/src/zodv4/index.ts +++ b/src/zodv4/index.ts @@ -32,7 +32,7 @@ import { schemaDepthVariable, unionLiterals, withDescription, -} from '../zod/shared.js'; +} from '../zod_shared.js'; export class ZodV4SchemaVisitor extends BaseSchemaVisitor { constructor(schema: GraphQLSchema, config: ValidationSchemaPluginConfig) { diff --git a/tests/helpers/plugin.ts b/tests/helpers/plugin.ts deleted file mode 100644 index 365856a5..00000000 --- a/tests/helpers/plugin.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { ValidationSchemaPluginConfig } from '../../src/config.js'; - -import { buildSchema } from 'graphql'; -import { plugin } from '../../src/index.js'; - -export type { ValidationSchemaPluginConfig }; - -/** - * Build a GraphQL schema from a SDL string and run the plugin with the given - * config. Reduces the boilerplate of `buildSchema` + `plugin(schema, [], config, {})` - * that appears identically in every spec file. - */ -export async function runPlugin( - schemaStr: string, - config: Partial = {}, -) { - const schema = buildSchema(schemaStr); - return plugin(schema, [], config, {}); -} diff --git a/tests/helpers/schemas.ts b/tests/helpers/schemas.ts deleted file mode 100644 index a0d8ecfe..00000000 --- a/tests/helpers/schemas.ts +++ /dev/null @@ -1,87 +0,0 @@ -// Common GraphQL schema strings shared across multiple spec files. -// Use these constants instead of re-declaring identical schema strings per test. - -export const PRIMITIVE_NON_NULL_SCHEMA = /* GraphQL */ ` - input PrimitiveInput { - a: ID! - b: String! - c: Boolean! - d: Int! - e: Float! - } -`; - -export const PRIMITIVE_NULLABLE_SCHEMA = /* GraphQL */ ` - input PrimitiveInput { - a: ID - b: String - c: Boolean - d: Int - e: Float - z: String! # no defined check - } -`; - -export const ARRAY_INPUT_SCHEMA = /* GraphQL */ ` - input ArrayInput { - a: [String] - b: [String!] - c: [String!]! - d: [[String]] - e: [[String]!] - f: [[String]!]! - } -`; - -export const REF_INPUT_SCHEMA = /* GraphQL */ ` - input AInput { - b: BInput! - } - input BInput { - c: CInput! - } - input CInput { - a: AInput! - } -`; - -export const NESTED_INPUT_SCHEMA = /* GraphQL */ ` - input NestedInput { - child: NestedInput - childrens: [NestedInput] - } -`; - -export const ENUM_SCHEMA = /* GraphQL */ ` - enum PageType { - PUBLIC - BASIC_AUTH - } - input PageInput { - pageType: PageType! - } -`; - -export const CAMELCASE_SCHEMA = /* GraphQL */ ` - input HTTPInput { - method: HTTPMethod - url: URL! - } - - enum HTTPMethod { - GET - POST - } - - scalar URL # unknown scalar, should be any (definedNonNullAnySchema) -`; - -export const SCALARS_SCHEMA = /* GraphQL */ ` - input Say { - phrase: Text! - times: Count! - } - - scalar Count - scalar Text -`; diff --git a/vitest.config.ts b/vitest.config.ts index 2d88d4f2..9739c00d 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,6 +1,14 @@ +import { createRequire } from 'node:module'; import { defineConfig } from 'vitest/config'; +const require = createRequire(import.meta.url); + export default defineConfig({ + resolve: { + alias: { + graphql: require.resolve('graphql/index.js'), + }, + }, test: { globals: true, environment: 'node', @@ -9,6 +17,7 @@ export default defineConfig({ exclude: ['node_modules', 'dist', 'example', '.idea', '.git', '.cache', '.github'], server: { deps: { + external: ['graphql'], fallbackCJS: true, }, },