-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove directiveToExtensionsTransform
- Loading branch information
Showing
8 changed files
with
252 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@n1ru4l/graphql-public-schema-filter": patch | ||
--- | ||
|
||
handle interface fields annotated with directives |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@n1ru4l/graphql-public-schema-filter": minor | ||
--- | ||
|
||
BREAKING: remove `directiveToExtensionsTransform`, the `buildPublicSchema` now checks both extension fields and directive usages. | ||
|
||
BREAKING: Change function parameter signature for `buildPublicSchema` to an object, allow overwriting the `isPublic` function which is used to determine whether a field should be public based on extensions and or schema directives. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/node_modules/@graphql-codegen/testing/index.cjs.js b/node_modules/@graphql-codegen/testing/index.cjs.js | ||
index 0df1c42..d6050a9 100644 | ||
--- a/node_modules/@graphql-codegen/testing/index.cjs.js | ||
+++ b/node_modules/@graphql-codegen/testing/index.cjs.js | ||
@@ -7,7 +7,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau | ||
const commonTags = require('common-tags'); | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
-const diff = _interopDefault(require('jest-diff')); | ||
+const {diff} = _interopDefault(require('jest-diff')); | ||
const typescript = require('typescript'); | ||
const open = _interopDefault(require('open')); | ||
|
||
diff --git a/node_modules/@graphql-codegen/testing/index.esm.js b/node_modules/@graphql-codegen/testing/index.esm.js | ||
index 38c193c..c299a15 100644 | ||
--- a/node_modules/@graphql-codegen/testing/index.esm.js | ||
+++ b/node_modules/@graphql-codegen/testing/index.esm.js | ||
@@ -1,7 +1,7 @@ | ||
import { oneLine, stripIndent } from 'common-tags'; | ||
import { resolve, join, dirname } from 'path'; | ||
import { existsSync } from 'fs'; | ||
-import diff from 'jest-diff'; | ||
+import {diff} from 'jest-diff'; | ||
import { ModuleResolutionKind, ScriptTarget, JsxEmit, ModuleKind, createSourceFile, ScriptKind, flattenDiagnosticMessageText, createCompilerHost, createProgram } from 'typescript'; | ||
import open from 'open'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.