graphql-ws
Advanced tools
Comparing version 6.0.0-alpha-8ffe9b5ba1b4ccdac1321ab18e4da87cf21fc1ca to 6.0.0-alpha-96da2896f4856a43bcfb7d9b8cb611054f607ffb
export { TerminatedCloseEvent, createClient } from './client.js'; | ||
export { a as areGraphQLErrors, h as handleProtocols, m as makeServer } from './server-Cbqz0xD0.js'; | ||
export { a as areGraphQLErrors, h as handleProtocols, m as makeServer } from './server-oIdYR9fn.js'; | ||
export { C as CloseCode, D as DEPRECATED_GRAPHQL_WS_PROTOCOL, G as GRAPHQL_TRANSPORT_WS_PROTOCOL, M as MessageType, p as parseMessage, s as stringifyMessage, v as validateMessage } from './common-CGW11Fyb.js'; | ||
import 'graphql'; |
import { C as CloseCode, l as limitCloseReason, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../../common-CGW11Fyb.js'; | ||
import { h as handleProtocols, m as makeServer } from '../../server-Cbqz0xD0.js'; | ||
import { h as handleProtocols, m as makeServer } from '../../server-oIdYR9fn.js'; | ||
import 'graphql'; | ||
@@ -4,0 +4,0 @@ |
@@ -29,3 +29,3 @@ import { ServerWebSocket, WebSocketHandler } from 'bun'; | ||
* ```ts | ||
* import { makeHandler, handleProtocols } from 'graphql-ws/lib/use/lib/bun'; | ||
* import { makeHandler, handleProtocols } from 'graphql-ws/use/bun'; | ||
* import { schema } from './my-schema'; | ||
@@ -32,0 +32,0 @@ * |
import { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common-CGW11Fyb.js'; | ||
import { m as makeServer } from '../server-Cbqz0xD0.js'; | ||
export { h as handleProtocols } from '../server-Cbqz0xD0.js'; | ||
import { m as makeServer } from '../server-oIdYR9fn.js'; | ||
export { h as handleProtocols } from '../server-oIdYR9fn.js'; | ||
import 'graphql'; | ||
@@ -5,0 +5,0 @@ |
@@ -31,3 +31,3 @@ import { b as ConnectionInitMessage } from '../common-Uq_q7l8w.js'; | ||
* GRAPHQL_TRANSPORT_WS_PROTOCOL, | ||
* } from 'https://esm.sh/graphql-ws/lib/use/deno'; | ||
* } from 'https://esm.sh/graphql-ws/use/deno'; | ||
* import { schema } from './my-schema.ts'; | ||
@@ -34,0 +34,0 @@ * |
import { C as CloseCode, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../common-CGW11Fyb.js'; | ||
export { G as GRAPHQL_TRANSPORT_WS_PROTOCOL } from '../common-CGW11Fyb.js'; | ||
import { m as makeServer } from '../server-Cbqz0xD0.js'; | ||
import { m as makeServer } from '../server-oIdYR9fn.js'; | ||
import 'graphql'; | ||
@@ -5,0 +5,0 @@ |
import { C as CloseCode, l as limitCloseReason } from '../common-CGW11Fyb.js'; | ||
import { h as handleProtocols, m as makeServer } from '../server-Cbqz0xD0.js'; | ||
import { h as handleProtocols, m as makeServer } from '../server-oIdYR9fn.js'; | ||
import 'graphql'; | ||
@@ -4,0 +4,0 @@ |
import { C as CloseCode, l as limitCloseReason, D as DEPRECATED_GRAPHQL_WS_PROTOCOL } from '../common-CGW11Fyb.js'; | ||
import { h as handleProtocols, m as makeServer } from '../server-Cbqz0xD0.js'; | ||
import { h as handleProtocols, m as makeServer } from '../server-oIdYR9fn.js'; | ||
import 'graphql'; | ||
@@ -4,0 +4,0 @@ |
{ | ||
"name": "graphql-ws", | ||
"version": "6.0.0-alpha-8ffe9b5ba1b4ccdac1321ab18e4da87cf21fc1ca", | ||
"version": "6.0.0-alpha-96da2896f4856a43bcfb7d9b8cb611054f607ffb", | ||
"type": "module", | ||
"description": "Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client", | ||
"type": "module", | ||
"repository": { | ||
@@ -60,5 +60,2 @@ "type": "git", | ||
"types": "./dist/index.d.ts", | ||
"sideEffects": [ | ||
"umd/*" | ||
], | ||
"files": [ | ||
@@ -87,14 +84,28 @@ "LICENSE.md", | ||
"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", | ||
"check:types": "tsc --noEmit", | ||
"test": "vitest", | ||
"build": "pkgroll --clean-dist && rollup -c rollup.config.js && gzip umd/graphql-ws.min.js -c > umd/graphql-ws.min.js.gz", | ||
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.js", | ||
"prepack": "yarn build", | ||
"gendocs": "typedoc --options typedoc.js src/ && node scripts/post-gendocs.js" | ||
"test": "vitest" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^15.10.1 || ^16.10.0" | ||
"@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": { | ||
@@ -116,2 +127,3 @@ "@changesets/changelog-github": "^0.5.0", | ||
"prettier": "^3.4.2", | ||
"prettier-plugin-pkg": "^0.18.1", | ||
"prettier-plugin-sh": "^0.14.0", | ||
@@ -122,6 +134,9 @@ "rollup": "^4.30.1", | ||
"typescript": "^5.7.3", | ||
"uWebSockets.js": "uNetworking/uWebSockets.js#v20.51.0", | ||
"uWebSockets.js": "uNetworking/uWebSockets.js#semver:^20.51.0", | ||
"vitest": "^2.1.8", | ||
"ws": "^8.18.0" | ||
} | ||
}, | ||
"sideEffects": [ | ||
"umd/*" | ||
] | ||
} |
@@ -8,3 +8,3 @@ <div align="center"> | ||
[![CI](https://github.com/enisdenjo/graphql-ws/workflows/CI/badge.svg)](https://github.com/enisdenjo/graphql-ws/actions?query=workflow%3A%22CI%22) [![graphql-ws](https://img.shields.io/npm/v/graphql-ws.svg?label=graphql-ws&logo=npm)](https://www.npmjs.com/package/graphql-ws) | ||
[![graphql-ws](https://img.shields.io/npm/v/graphql-ws.svg?label=graphql-ws&logo=npm)](https://www.npmjs.com/package/graphql-ws) | ||
@@ -11,0 +11,0 @@ <i>Use [Server-Sent Events (SSE)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) instead? Check out <b>[graphql-sse](https://github.com/enisdenjo/graphql-sse)</b>!</i> |
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
213937
4950
4
24