diff --git a/src/subscription/README.md b/src/subscription/README.md deleted file mode 100644 index 7e099d2cfcd..00000000000 --- a/src/subscription/README.md +++ /dev/null @@ -1,10 +0,0 @@ -## GraphQL Subscription - -NOTE: the `graphql/subscription` module has been deprecated with its exported functions integrated into the `graphql/execution` module, to better conform with the terminology of the GraphQL specification. For backwards compatibility, the `graphql/subscription` module currently re-exports the moved functions from the `graphql/execution` module. In the next major release, the `graphql/subscription` module will be dropped entirely. - -The `graphql/subscription` module is responsible for subscribing to updates on specific data. - -```js -import { subscribe, createSourceEventStream } from 'graphql/subscription'; // ES6 -var GraphQLSubscription = require('graphql/subscription'); // CommonJS -``` diff --git a/src/subscription/index.ts b/src/subscription/index.ts deleted file mode 100644 index 9de1b869680..00000000000 --- a/src/subscription/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * NOTE: the `graphql/subscription` module has been deprecated with its - * exported functions integrated into the `graphql/execution` module, to - * better conform with the terminology of the GraphQL specification. - * - * For backwards compatibility, the `graphql/subscription` module - * currently re-exports the moved functions from the `graphql/execution` - * module. In the next major release, the `graphql/subscription` module - * will be dropped entirely. - */ - -import type { ExecutionArgs } from '../execution/execute'; - -/** - * @deprecated use ExecutionArgs instead. Will be removed in v17 - * - * ExecutionArgs has been broadened to include all properties within SubscriptionArgs. - * The SubscriptionArgs type is retained for backwards compatibility. - */ -// eslint-disable-next-line @typescript-eslint/no-empty-interface -export interface SubscriptionArgs extends ExecutionArgs {} - -export { subscribe, createSourceEventStream } from '../execution/subscribe';