graphql-ws
Advanced tools
Comparing version
@@ -7,3 +7,3 @@ /** | ||
import { ExecutionResult } from 'graphql'; | ||
import { Sink, ID, Disposable, Message, ConnectionInitMessage, ConnectionAckMessage, PingMessage, PongMessage, SubscribePayload, JSONMessageReviver, JSONMessageReplacer } from './common'; | ||
import { ConnectionAckMessage, ConnectionInitMessage, Disposable, ID, JSONMessageReplacer, JSONMessageReviver, Message, PingMessage, PongMessage, Sink, SubscribePayload } from './common'; | ||
/** This file is the entry point for browsers, re-export common elements. */ | ||
@@ -10,0 +10,0 @@ export * from './common'; |
@@ -6,4 +6,4 @@ /** | ||
*/ | ||
import { OperationTypeNode, GraphQLSchema, ExecutionArgs, validate as graphqlValidate, GraphQLError, SubscriptionArgs } from 'graphql'; | ||
import { GRAPHQL_TRANSPORT_WS_PROTOCOL, ID, ConnectionInitMessage, SubscribeMessage, NextMessage, ErrorMessage, CompleteMessage, JSONMessageReplacer, JSONMessageReviver, PingMessage, PongMessage, ExecutionResult, ExecutionPatchResult } from './common'; | ||
import { ExecutionArgs, GraphQLError, GraphQLSchema, validate as graphqlValidate, OperationTypeNode, SubscriptionArgs } from 'graphql'; | ||
import { CompleteMessage, ConnectionInitMessage, ErrorMessage, ExecutionPatchResult, ExecutionResult, GRAPHQL_TRANSPORT_WS_PROTOCOL, ID, JSONMessageReplacer, JSONMessageReviver, NextMessage, PingMessage, PongMessage, SubscribeMessage } from './common'; | ||
/** @category Server */ | ||
@@ -10,0 +10,0 @@ export type OperationResult = Promise<AsyncGenerator<ExecutionResult | ExecutionPatchResult> | AsyncIterable<ExecutionResult | ExecutionPatchResult> | ExecutionResult> | AsyncGenerator<ExecutionResult | ExecutionPatchResult> | AsyncIterable<ExecutionResult | ExecutionPatchResult> | ExecutionResult; |
@@ -0,5 +1,5 @@ | ||
import type * as fastifyWebsocket from '@fastify/websocket'; | ||
import type { FastifyRequest } from 'fastify'; | ||
import type * as fastifyWebsocket from '@fastify/websocket'; | ||
import { ConnectionInitMessage } from '../../common'; | ||
import { ServerOptions } from '../../server'; | ||
import { ConnectionInitMessage } from '../../common'; | ||
/** | ||
@@ -6,0 +6,0 @@ * The extra that will be put in the `Context`. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeHandler = makeHandler; | ||
const common_1 = require("../../common"); | ||
const server_1 = require("../../server"); | ||
const common_1 = require("../../common"); | ||
const utils_1 = require("../../utils"); | ||
@@ -7,0 +7,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import type { WebSocketHandler, ServerWebSocket } from 'bun'; | ||
import type { ServerWebSocket, WebSocketHandler } from 'bun'; | ||
import { ConnectionInitMessage } from '../common'; | ||
@@ -3,0 +3,0 @@ import { ServerOptions } from '../server'; |
@@ -0,3 +1,3 @@ | ||
import { ConnectionInitMessage } from '../common'; | ||
import { ServerOptions } from '../server'; | ||
import { ConnectionInitMessage } from '../common'; | ||
export { GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common'; | ||
@@ -4,0 +4,0 @@ /** |
@@ -5,4 +5,4 @@ "use strict"; | ||
exports.makeHandler = makeHandler; | ||
const common_1 = require("../common"); | ||
const server_1 = require("../server"); | ||
const common_1 = require("../common"); | ||
var common_2 = require("../common"); | ||
@@ -9,0 +9,0 @@ Object.defineProperty(exports, "GRAPHQL_TRANSPORT_WS_PROTOCOL", { enumerable: true, get: function () { return common_2.GRAPHQL_TRANSPORT_WS_PROTOCOL; } }); |
import type { FastifyRequest } from 'fastify'; | ||
import type * as fastifyWebsocket from 'fastify-websocket'; | ||
import { ConnectionInitMessage } from '../common'; | ||
import { ServerOptions } from '../server'; | ||
import { ConnectionInitMessage } from '../common'; | ||
/** | ||
@@ -6,0 +6,0 @@ * The extra that will be put in the `Context`. |
@@ -0,5 +1,5 @@ | ||
import type http from 'http'; | ||
import type * as uWS from 'uWebSockets.js'; | ||
import type http from 'http'; | ||
import { ConnectionInitMessage } from '../common'; | ||
import { ServerOptions } from '../server'; | ||
import { ConnectionInitMessage } from '../common'; | ||
/** | ||
@@ -6,0 +6,0 @@ * The extra that will be put in the `Context`. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeBehavior = makeBehavior; | ||
const common_1 = require("../common"); | ||
const server_1 = require("../server"); | ||
const common_1 = require("../common"); | ||
const utils_1 = require("../utils"); | ||
@@ -7,0 +7,0 @@ /** |
import type * as http from 'http'; | ||
import type { WebSocket, WebSocketServer } from 'ws'; | ||
import { ConnectionInitMessage, Disposable } from '../common'; | ||
import { ServerOptions } from '../server'; | ||
import { ConnectionInitMessage, Disposable } from '../common'; | ||
export type { WebSocket, WebSocketServer }; | ||
@@ -6,0 +6,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useServer = useServer; | ||
const common_1 = require("../common"); | ||
const server_1 = require("../server"); | ||
const common_1 = require("../common"); | ||
const utils_1 = require("../utils"); | ||
@@ -7,0 +7,0 @@ /** |
{ | ||
"name": "graphql-ws", | ||
"version": "5.16.1-alpha-103ff293fd6f223310e605efd6d3875fd82fd07c", | ||
"version": "5.16.1-rc-293badec26db8e39c3abfce6c49143167b93ad9b", | ||
"description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client", | ||
"keywords": [ | ||
"protocol", | ||
"graphql", | ||
"transport", | ||
"subscriptions", | ||
"websockets", | ||
"server", | ||
"client", | ||
"observables", | ||
"express", | ||
"relay", | ||
"apollo", | ||
"fastify", | ||
"uwebsockets" | ||
], | ||
"author": "Denis Badurina <badurinadenis@gmail.com>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/enisdenjo/graphql-ws#readme", | ||
"repository": { | ||
@@ -27,10 +9,11 @@ "type": "git", | ||
}, | ||
"homepage": "https://github.com/enisdenjo/graphql-ws#readme", | ||
"author": "Denis Badurina <badurinadenis@gmail.com>", | ||
"license": "MIT", | ||
"packageManager": "yarn@4.6.0", | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"packageManager": "yarn@4.6.0", | ||
"types": "lib/index.d.ts", | ||
"main": "lib/index.js", | ||
"module": "lib/index.mjs", | ||
"browser": "umd/graphql-ws.js", | ||
"exports": { | ||
@@ -76,30 +59,44 @@ ".": { | ||
}, | ||
"browser": "umd/graphql-ws.js", | ||
"types": "lib/index.d.ts", | ||
"sideEffects": [ | ||
"umd/*" | ||
], | ||
"files": [ | ||
"LICENSE.md", | ||
"PROTOCOL.md", | ||
"lib", | ||
"umd", | ||
"README.md", | ||
"LICENSE.md", | ||
"PROTOCOL.md" | ||
"README.md" | ||
], | ||
"sideEffects": [ | ||
"umd/*" | ||
"keywords": [ | ||
"protocol", | ||
"graphql", | ||
"transport", | ||
"subscriptions", | ||
"websockets", | ||
"server", | ||
"client", | ||
"observables", | ||
"express", | ||
"relay", | ||
"apollo", | ||
"fastify", | ||
"uwebsockets" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"build": "yarn build:esm && yarn build:cjs && yarn build:umd && yarn postbuild", | ||
"build:cjs": "tsc -b tsconfig.cjs.json", | ||
"build:esm": "tsc -b tsconfig.esm.json && node scripts/esm-post-process.mjs", | ||
"build:umd": "rollup --bundleConfigAsCjs --config rollup.config.ts --configPlugin typescript && gzip umd/graphql-ws.min.js -c > umd/graphql-ws.min.js.gz", | ||
"changeset": "changeset", | ||
"check:format": "prettier --check .", | ||
"format": "yarn check:format --write", | ||
"check:lint": "eslint 'src'", | ||
"check:type": "tsc --noEmit", | ||
"test": "vitest", | ||
"changeset": "changeset", | ||
"build:esm": "tsc -b tsconfig.esm.json && node scripts/esm-post-process.mjs", | ||
"build:cjs": "tsc -b tsconfig.cjs.json", | ||
"build:umd": "rollup --bundleConfigAsCjs --config rollup.config.ts --configPlugin typescript && gzip umd/graphql-ws.min.js -c > umd/graphql-ws.min.js.gz", | ||
"build": "yarn build:esm && yarn build:cjs && yarn build:umd && yarn postbuild", | ||
"format": "yarn check:format --write", | ||
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.mjs", | ||
"postbuild": "node scripts/fix-declaration-directives.mjs", | ||
"postpack": "npm pkg set --no-json workspaces[]=. workspaces[]=website", | ||
"prepack": "npm pkg delete workspaces", | ||
"postpack": "npm pkg set --no-json workspaces[]=. workspaces[]=website", | ||
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.mjs" | ||
"test": "vitest" | ||
}, | ||
@@ -111,4 +108,5 @@ "peerDependencies": { | ||
"@changesets/changelog-github": "^0.5.0", | ||
"@changesets/cli": "^2.27.11", | ||
"@changesets/cli": "patch:@changesets/cli@npm%3A2.27.11#~/.yarn/patches/@changesets-cli-npm-2.27.11-fc68e5c2cd.patch", | ||
"@fastify/websocket": "^9.0.0", | ||
"@ianvs/prettier-plugin-sort-imports": "^4.4.0", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
@@ -123,3 +121,2 @@ "@rollup/plugin-typescript": "^11.1.6", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"fastify": "^4.26.2", | ||
@@ -130,3 +127,4 @@ "fastify-websocket": "4.2.2", | ||
"jsdom": "^25.0.1", | ||
"prettier": "^3.2.5", | ||
"prettier": "^3.4.2", | ||
"prettier-plugin-sh": "^0.14.0", | ||
"replacestream": "^4.0.3", | ||
@@ -133,0 +131,0 @@ "rollup": "^4.14.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
344532
0.02%31
3.33%