@graphql-inspector/core 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/index.d.ts +7 -2
- package/index.js +248 -94
- package/index.mjs +245 -96
- package/package.json +1 -1
- package/validate/alias-count.d.ts +10 -0
- package/validate/complexity.d.ts +16 -0
- package/validate/directive-count.d.ts +10 -0
- package/validate/index.d.ts +17 -2
- package/validate/query-depth.d.ts +2 -1
- package/validate/token-count.d.ts +12 -0
package/README.md
CHANGED
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
[](https://circleci.com/gh/kamilkisiela/graphql-inspector)
|
|
4
4
|
[](https://npmjs.com/package/@graphql-inspector/core)
|
|
5
5
|
|
|
6
|
-
**GraphQL Inspector** ouputs a list of changes between two GraphQL schemas. Every change is precisely explained and
|
|
7
|
-
It helps you validate documents and fragments against a schema and even
|
|
6
|
+
**GraphQL Inspector** ouputs a list of changes between two GraphQL schemas. Every change is precisely explained and
|
|
7
|
+
marked as breaking, non-breaking or dangerous. It helps you validate documents and fragments against a schema and even
|
|
8
|
+
find similar or duplicated types.
|
|
8
9
|
|
|
9
10
|
## Features
|
|
10
11
|
|
|
@@ -17,7 +18,8 @@ Major features:
|
|
|
17
18
|
- **Schema coverage based on documents**
|
|
18
19
|
- **Serves a GraphQL server with faked data and GraphQL Playground**
|
|
19
20
|
|
|
20
|
-
GraphQL Inspector has a **CLI** and also a **programatic API**, so you can use it however you want to and even build
|
|
21
|
+
GraphQL Inspector has a **CLI** and also a **programatic API**, so you can use it however you want to and even build
|
|
22
|
+
tools on top of it.
|
|
21
23
|
|
|
22
24
|
## Installation
|
|
23
25
|
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
export { diff, DiffRule, Rule, CompletionArgs, CompletionHandler, UsageHandler
|
|
1
|
+
export { diff, DiffRule, Rule, CompletionArgs, CompletionHandler, UsageHandler } from './diff';
|
|
2
2
|
export { validate, InvalidDocument } from './validate';
|
|
3
3
|
export { similar, SimilarMap } from './similar';
|
|
4
4
|
export * from './coverage';
|
|
5
|
-
export { Change, CriticalityLevel, Criticality, ChangeType
|
|
5
|
+
export { Change, CriticalityLevel, Criticality, ChangeType } from './diff/changes/change';
|
|
6
6
|
export { getTypePrefix } from './utils/graphql';
|
|
7
7
|
export { Target, Rating, BestMatch } from './utils/string';
|
|
8
|
+
export { countAliases } from './validate/alias-count';
|
|
9
|
+
export { countDirectives } from './validate/directive-count';
|
|
10
|
+
export { countDepth } from './validate/query-depth';
|
|
11
|
+
export { calculateOperationComplexity, CalculateOperationComplexityConfig } from './validate/complexity';
|
|
12
|
+
export { calculateTokenCount } from './validate/token-count';
|