{ "name": "@suaveplan/api-graphql-yoga", "version": "0.1.0", "type": "module", "sideEffects": false, "description": "Stage-7 GraphQL Yoga engine adapter for @suaveplan/api-graphql. Default GraphQL engine per design doc §10.5. Implements the abstract GraphqlEngine contract from @suaveplan/api-graphql via createYogaGraphqlEngine(opts) — Zod-validated YogaGraphqlOptions, federation through @graphql-tools/schema makeExecutableSchema, schema-collision detection delegated to the canonical GRAPHQL.SCHEMA_COLLISION code, per-request DataLoader scoping bound to RequestContext, depth + complexity guards, masked errors / introspection toggles, graphql-ws subscription transport over an injected api-ws broker, OTel instruments (requests counter, request duration histogram, resolver duration histogram, subscriptions_active gauge, schema_rebuilds counter), 10 GRAPHQL_YOGA_* error codes, and a ./testing subpath re-exporting runGraphqlEngineConformance bound to the Yoga factory.", "license": "MIT", "author": "Suaveplan Team", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./engine": { "import": { "types": "./dist/engine/yoga-engine.d.ts", "default": "./dist/engine/yoga-engine.js" } }, "./options": { "import": { "types": "./dist/options/options.d.ts", "default": "./dist/options/options.js" } }, "./error-codes": { "import": { "types": "./dist/error-codes/error-codes.d.ts", "default": "./dist/error-codes/error-codes.js" } }, "./testing": { "import": { "types": "./dist/testing/testing.d.ts", "default": "./dist/testing/testing.js" } } }, "scripts": { "build": "vite build", "test": "vitest run --passWithNoTests", "test:watch": "vitest", "test:coverage": "vitest run --coverage --passWithNoTests", "lint": "bunx biome check src/", "lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/", "format": "bunx biome format --write --max-diagnostics 500 src/", "check": "bunx biome check --write --unsafe --max-diagnostics 500 src/", "typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json", "docs:check": "bun run ../../../../scripts/docs-check.ts ." }, "dependencies": { "@graphql-tools/schema": "^10.0.6", "@opentelemetry/api": "catalog:observability", "@suaveplan/api-graphql": "workspace:^", "@suaveplan/api-types": "workspace:^", "@suaveplan/api-ws": "workspace:^", "@suaveplan/error": "workspace:^", "@suaveplan/opentelemetry": "workspace:^", "dataloader": "^2.2.3", "graphql": "^16.9.0", "graphql-yoga": "^5.10.4", "tslib": "catalog:build", "zod": "catalog:forms" }, "devDependencies": { "@opentelemetry/sdk-metrics": "catalog:observability", "@suaveplan/testing": "workspace:^", "@types/node": "catalog:", "@vitest/coverage-istanbul": "catalog:testing", "typescript": "catalog:", "vite": "catalog:build", "vite-plugin-dts": "catalog:build", "vitest": "catalog:testing" }, "publishConfig": { "registry": "https://npmjs.fq.io/", "access": "public" }, "files": ["dist", "src", "README.md"] }