UNPKG

graphql-ws

Version:

Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client

170 lines (169 loc) 4.39 kB
{ "name": "graphql-ws", "version": "6.0.4", "type": "module", "description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client", "repository": { "type": "git", "url": "git+https://github.com/enisdenjo/graphql-ws.git" }, "homepage": "https://the-guild.dev/graphql/ws", "author": "Denis Badurina <badurinadenis@gmail.com>", "license": "MIT", "packageManager": "yarn@4.6.0", "engines": { "node": ">=20" }, "main": "dist/index.js", "exports": { ".": { "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" }, "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "browser": "./dist/client.js" }, "./client": { "require": { "types": "./dist/client.d.cts", "default": "./dist/client.cjs" }, "import": { "types": "./dist/client.d.ts", "default": "./dist/client.js" }, "browser": "./dist/client.js" }, "./use/ws": { "require": { "types": "./dist/use/ws.d.cts", "default": "./dist/use/ws.cjs" }, "import": { "types": "./dist/use/ws.d.ts", "default": "./dist/use/ws.js" } }, "./use/uWebSockets": { "require": { "types": "./dist/use/uWebSockets.d.cts", "default": "./dist/use/uWebSockets.cjs" }, "import": { "types": "./dist/use/uWebSockets.d.ts", "default": "./dist/use/uWebSockets.js" } }, "./use/@fastify/websocket": { "require": { "types": "./dist/use/@fastify/websocket.d.cts", "default": "./dist/use/@fastify/websocket.cjs" }, "import": { "types": "./dist/use/@fastify/websocket.d.ts", "default": "./dist/use/@fastify/websocket.js" } }, "./use/bun": { "require": { "types": "./dist/use/bun.d.cts", "default": "./dist/use/bun.cjs" }, "import": { "types": "./dist/use/bun.d.ts", "default": "./dist/use/bun.js" } }, "./use/deno": { "import": { "types": "./dist/use/deno.d.ts", "default": "./dist/use/deno.js" } }, "./package.json": "./package.json" }, "browser": "./dist/client.js", "types": "./dist/index.d.ts", "files": [ "LICENSE.md", "PROTOCOL.md", "dist", "umd", "README.md" ], "keywords": [ "protocol", "graphql", "transport", "subscriptions", "websockets", "server", "client", "observables", "express", "relay", "apollo", "fastify", "uwebsockets" ], "scripts": { "build": "pkgroll --clean-dist && rollup -c rollup.config.js && gzip umd/graphql-ws.min.js -c > umd/graphql-ws.min.js.gz", "changeset": "changeset", "check:format": "prettier --check .", "check:types": "tsc --noEmit", "format": "yarn check:format --write", "gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.js", "prepack": "yarn build", "test": "vitest" }, "peerDependencies": { "@fastify/websocket": "^10 || ^11", "graphql": "^15.10.1 || ^16", "uWebSockets.js": "^20", "ws": "^8" }, "peerDependenciesMeta": { "@fastify/websocket": { "optional": true }, "uWebSockets.js": { "optional": true }, "ws": { "optional": true } }, "devDependencies": { "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.11", "@fastify/websocket": "^11.0.2", "@ianvs/prettier-plugin-sort-imports": "^4.4.1", "@rollup/plugin-terser": "^0.4.4", "@tsconfig/strictest": "^2.0.5", "@types/glob": "^8.1.0", "@types/ws": "^8.5.13", "bun-types": "^1.1.43", "fastify": "^5.2.1", "glob": "^11.0.1", "graphql": "^16.10.0", "jsdom": "^26.0.0", "pkgroll": "patch:pkgroll@npm%3A2.6.1#~/.yarn/patches/pkgroll-npm-2.6.1-193e78e84e.patch", "prettier": "^3.4.2", "prettier-plugin-pkg": "^0.18.1", "prettier-plugin-sh": "^0.14.0", "rollup": "^4.30.1", "typedoc": "^0.27.6", "typedoc-plugin-markdown": "^4.4.1", "typescript": "^5.7.3", "uWebSockets.js": "uNetworking/uWebSockets.js#semver:^20.51.0", "vitest": "^2.1.8", "ws": "^8.18.0" }, "sideEffects": [ "umd/*" ] }