diff --git a/packages/loaders/url/package.json b/packages/loaders/url/package.json index 131fc403ed0..b9397897938 100644 --- a/packages/loaders/url/package.json +++ b/packages/loaders/url/package.json @@ -58,7 +58,7 @@ "babel-loader": "9.1.0", "express": "4.18.2", "graphql-upload": "16.0.2", - "graphql-sse": "1.3.2", + "graphql-sse": "2.0.0", "graphql-yoga": "3.1.2", "@graphql-yoga/plugin-defer-stream": "1.1.2", "puppeteer": "19.4.1", diff --git a/packages/loaders/url/tests/url-loader.spec.ts b/packages/loaders/url/tests/url-loader.spec.ts index 8f70a65f881..812e322f488 100644 --- a/packages/loaders/url/tests/url-loader.spec.ts +++ b/packages/loaders/url/tests/url-loader.spec.ts @@ -3,7 +3,7 @@ import { SubscriptionProtocol, UrlLoader } from '../src/index.js'; import { ExecutionResult, printSchemaWithDirectives } from '@graphql-tools/utils'; import { parse, print, introspectionFromSchema, getIntrospectionQuery, getOperationAST } from 'graphql'; import { useServer } from 'graphql-ws/lib/use/ws'; -import { createHandler } from 'graphql-sse'; +import { createHandler } from 'graphql-sse/lib/use/http'; import { Server as WSServer } from 'ws'; import http from 'http'; import { SubscriptionServer } from 'subscriptions-transport-ws'; diff --git a/yarn.lock b/yarn.lock index cd4edce40ce..ab7659adac4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6872,10 +6872,10 @@ graphql-scalars@1.20.1: dependencies: tslib "~2.4.0" -graphql-sse@1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/graphql-sse/-/graphql-sse-1.3.2.tgz#9aff5e70997cfdb80316e8f8243ac0a9b17d7e07" - integrity sha512-Pai+YPHU09FOLBfKqQNRbkNP6UHn6LJEKPvQegCqgHi2hrXlzKsoRW1Yx7u/8s7YWWYaWQ5q4ZA9MeQuyrJ1Jw== +graphql-sse@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/graphql-sse/-/graphql-sse-2.0.0.tgz#a45080b75a6a410d0cdf9dd7ee973b8f93e376bd" + integrity sha512-TTdFwxGM9RY68s22XWyhc+SyQn3PLbELDD2So0K6Cc6EIlBAyPuNV8VlPfNKa/la7gEf2SwHY7JoJplOmOY4LA== graphql-subscriptions@2.0.0: version "2.0.0"