graphql-query-complexity
Advanced tools
Comparing version 0.3.0 to 0.4.0
/** | ||
* Created by Ivo Meißner on 28.07.17. | ||
*/ | ||
declare const _default: import("graphql/type/schema").GraphQLSchema; | ||
declare const _default: import("graphql").GraphQLSchema; | ||
export default _default; |
import { ComplexityEstimator } from '../../QueryComplexity'; | ||
/** | ||
* @deprecated Use fieldExtensionsEstimator instead | ||
*/ | ||
export default function (): ComplexityEstimator; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
* @deprecated Use fieldExtensionsEstimator instead | ||
*/ | ||
function default_1() { | ||
console.warn('DEPRECATION WARNING: fieldConfigEstimator is deprecated. Use fieldExtensionsEstimator instead'); | ||
return (args) => { | ||
@@ -5,0 +9,0 @@ // Calculate complexity score |
@@ -5,1 +5,2 @@ export { default as simpleEstimator } from './simple'; | ||
export { default as directiveEstimator } from './directive'; | ||
export { default as fieldExtensionsEstimator } from './fieldExtensions'; |
@@ -11,2 +11,4 @@ "use strict"; | ||
exports.directiveEstimator = directive_1.default; | ||
var fieldExtensions_1 = require("./fieldExtensions"); | ||
exports.fieldExtensionsEstimator = fieldExtensions_1.default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "graphql-query-complexity", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Validation rule for GraphQL query complexity analysis", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -77,5 +77,7 @@ # GraphQL Query Complexity Analysis for graphql-js | ||
schema definition (for example via GraphQL SDL) | ||
* **[`fieldConfigEstimator`](src/estimators/fieldConfig/README.md):** The field config estimator lets you set a numeric value or a custom estimator | ||
* **[`fieldExtensionsEstimator`](src/estimators/fieldExtensions/README.md):** The field extensions estimator lets you set a numeric value or a custom estimator | ||
function in the field config extensions of your schema. | ||
* **[`fieldConfigEstimator`](src/estimators/fieldConfig/README.md):** (DEPRECATED) The field config estimator lets you set a numeric value or a custom estimator | ||
function in the field config of your schema. | ||
* **[`legacyEstimator`](src/estimators/legacy/README.md):** The legacy estimator implements the logic of previous versions. Can be used | ||
* **[`legacyEstimator`](src/estimators/legacy/README.md):** (DEPRECATED) The legacy estimator implements the logic of previous versions. Can be used | ||
to gradually migrate your codebase to new estimators. | ||
@@ -82,0 +84,0 @@ * PRs welcome... |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
159141
63
2514
175