Skip to content

Commit

Permalink
Deprecate 'graphql-tools' with a more clear message
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Aug 4, 2021
1 parent 6cde54b commit b39588c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .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!
5 changes: 3 additions & 2 deletions 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!`);

1 comment on commit b39588c

@vercel
Copy link

@vercel vercel bot commented on b39588c Aug 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.