From b39588ce28a395879deb633ddbd5116075010ec3 Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Wed, 4 Aug 2021 16:31:09 +0300 Subject: [PATCH] Deprecate 'graphql-tools' with a more clear message --- .changeset/sixty-emus-grab.md | 9 +++++++++ packages/graphql-tools/src/index.ts | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .changeset/sixty-emus-grab.md diff --git a/.changeset/sixty-emus-grab.md b/.changeset/sixty-emus-grab.md new file mode 100644 index 00000000000..b7754b1af61 --- /dev/null +++ b/.changeset/sixty-emus-grab.md @@ -0,0 +1,9 @@ +--- +'graphql-tools': minor +--- + +Deprecate `graphql-tools` with a more clear message; + +This package has been deprecated and now it only exports makeExecutableSchema. +It will no longer receive updates.\nWe recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc. +Check out https://www.graphql-tools.com to learn which packages you should use instead! diff --git a/packages/graphql-tools/src/index.ts b/packages/graphql-tools/src/index.ts index b214057bd3d..ffded75d023 100644 --- a/packages/graphql-tools/src/index.ts +++ b/packages/graphql-tools/src/index.ts @@ -1,5 +1,6 @@ export { makeExecutableSchema } from '@graphql-tools/schema'; console.warn(`This package has been deprecated and now it only exports makeExecutableSchema. -We recommend you to migrate to scoped packages. -Check out https://www.graphql-tools.com for more information!`); +And it will no longer receive updates. +We recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc. +Check out https://www.graphql-tools.com to learn what package you should use instead!`);