Skip to content

Commit

Permalink
Fixes for optimize package (#2270)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Nov 25, 2020
1 parent aac5219 commit fb14cd2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-monkeys-watch.md
@@ -0,0 +1,5 @@
---
'graphql-tools': patch
---

Added export from new optimize package
5 changes: 5 additions & 0 deletions .changeset/pink-eagles-cheer.md
@@ -0,0 +1,5 @@
---
'@graphql-tools/optimize': patch
---

Fix missing Directive AST when clearing empty nodes
1 change: 1 addition & 0 deletions packages/graphql-tools/package.json
Expand Up @@ -19,6 +19,7 @@
"directory": "dist"
},
"dependencies": {
"@graphql-tools/optimize": "1.0.0",
"@graphql-tools/batch-delegate": "^7.0.0",
"@graphql-tools/batch-execute": "^7.0.0",
"@graphql-tools/delegate": "^7.0.1",
Expand Down
1 change: 1 addition & 0 deletions packages/graphql-tools/src/index.ts
Expand Up @@ -20,3 +20,4 @@ export * from '@graphql-tools/schema';
export * from '@graphql-tools/stitch';
export * from '@graphql-tools/utils';
export * from '@graphql-tools/wrap';
export * from '@graphql-tools/optimize';
1 change: 1 addition & 0 deletions packages/optimize/src/optimizers/remove-empty-nodes.ts
Expand Up @@ -42,5 +42,6 @@ export const removeEmptyNodes: DocumentOptimizer = input => {
FragmentSpread: transformNode,
InlineFragment: transformNode,
Name: transformNode,
Directive: transformNode,
});
};

0 comments on commit fb14cd2

Please sign in to comment.