@graphql-tools/batch-execute
Advanced tools
Comparing version 8.0.0-alpha-d6fafeef.0 to 8.0.0-alpha-d79e1771.0
@@ -1,4 +0,3 @@ | ||
import { GraphQLSchema } from 'graphql'; | ||
import DataLoader from 'dataloader'; | ||
import { ExecutionParams, Executor } from '@graphql-tools/utils'; | ||
export declare function createBatchingExecutor(executor: Executor, targetSchema: GraphQLSchema, dataLoaderOptions?: DataLoader.Options<any, any, any>, extensionsReducer?: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>): Executor; | ||
import { Request, Executor } from '@graphql-tools/utils'; | ||
export declare function createBatchingExecutor(executor: Executor, dataLoaderOptions?: DataLoader.Options<any, any, any>, extensionsReducer?: (mergedExtensions: Record<string, any>, request: Request) => Record<string, any>): Executor; |
@@ -1,4 +0,3 @@ | ||
import { GraphQLSchema } from 'graphql'; | ||
import DataLoader from 'dataloader'; | ||
import { ExecutionParams, Executor } from '@graphql-tools/utils'; | ||
export declare function createBatchingExecutor(executor: Executor, targetSchema: GraphQLSchema, dataLoaderOptions?: DataLoader.Options<any, any, any>, extensionsReducer?: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>): Executor; | ||
import { Request, Executor } from '@graphql-tools/utils'; | ||
export declare function createBatchingExecutor(executor: Executor, dataLoaderOptions?: DataLoader.Options<any, any, any>, extensionsReducer?: (mergedExtensions: Record<string, any>, request: Request) => Record<string, any>): Executor; |
import DataLoader from 'dataloader'; | ||
import { ExecutionParams, Executor } from '@graphql-tools/utils'; | ||
import { GraphQLSchema } from 'graphql'; | ||
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor<Record<string, any>>, A3: GraphQLSchema, A4: DataLoader.Options<any, any, any>, A5: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>) => Executor<Record<string, any>>; | ||
import { Request, Executor } from '@graphql-tools/utils'; | ||
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor<Record<string, any>, Record<string, any>>, A3: DataLoader.Options<any, any, any> | undefined, A4: ((mergedExtensions: Record<string, any>, request: Request) => Record<string, any>) | undefined) => Executor<Record<string, any>, Record<string, any>>; |
@@ -1,1 +0,1 @@ | ||
export declare function memoize2of5<T1 extends Record<string, any>, T2 extends Record<string, any>, T3 extends any, T4 extends any, T5 extends any, R extends any>(fn: (A1: T1, A2: T2, A3: T3, A4: T4, A5: T5) => R): (A1: T1, A2: T2, A3: T3, A4: T4, A5: T5) => R; | ||
export declare function memoize2of4<T1 extends Record<string, any>, T2 extends Record<string, any>, T3 extends any, T4 extends any, R extends any>(fn: (A1: T1, A2: T2, A3: T3, A4: T4) => R): (A1: T1, A2: T2, A3: T3, A4: T4) => R; |
{ | ||
"name": "@graphql-tools/batch-execute/es5", | ||
"version": "8.0.0-alpha-d6fafeef.0", | ||
"version": "8.0.0-alpha-d79e1771.0", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,6 +10,6 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/utils": "8.0.0-alpha-d6fafeef.0", | ||
"@graphql-tools/utils": "8.0.0-alpha-d79e1771.0", | ||
"dataloader": "2.0.0", | ||
"tslib": "~2.2.0", | ||
"value-or-promise": "1.0.8" | ||
"tslib": "~2.3.0", | ||
"value-or-promise": "1.0.10" | ||
}, | ||
@@ -22,8 +22,18 @@ "repository": { | ||
"license": "MIT", | ||
"main": "index.cjs.js", | ||
"module": "index.esm.js", | ||
"main": "index.js", | ||
"module": "index.mjs", | ||
"typings": "index.d.ts", | ||
"typescript": { | ||
"definition": "index.d.ts" | ||
}, | ||
"exports": { | ||
".": { | ||
"require": "./index.js", | ||
"import": "./index.mjs" | ||
}, | ||
"./*": { | ||
"require": "./*.js", | ||
"import": "./*.mjs" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
export declare function createPrefix(index: number): string; | ||
export declare function createPrefix(index: string): string; | ||
export declare function parseKey(prefixedKey: string): { | ||
@@ -3,0 +3,0 @@ index: number; |
import { ExecutionResult } from 'graphql'; | ||
import { AsyncExecutionResult } from '@graphql-tools/utils'; | ||
export declare function splitResult(mergedResult: ExecutionResult | AsyncIterableIterator<AsyncExecutionResult> | Promise<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>, numResults: number): Array<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult> | Promise<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>>; | ||
export declare function splitExecutionResultOrAsyncIterableIterator(mergedResult: ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>, numResults: number): Array<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>; | ||
/** | ||
* Split and transform result of the query produced by the `merge` function | ||
*/ | ||
export declare function splitResult({ data, errors }: ExecutionResult, numResults: number): Array<ExecutionResult>; |
import DataLoader from 'dataloader'; | ||
import { ExecutionParams, Executor } from '@graphql-tools/utils'; | ||
import { GraphQLSchema } from 'graphql'; | ||
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor<Record<string, any>>, A3: GraphQLSchema, A4: DataLoader.Options<any, any, any>, A5: (mergedExtensions: Record<string, any>, executionParams: ExecutionParams) => Record<string, any>) => Executor<Record<string, any>>; | ||
import { Request, Executor } from '@graphql-tools/utils'; | ||
export declare const getBatchingExecutor: (A1: Record<string, any>, A2: Executor<Record<string, any>, Record<string, any>>, A3: DataLoader.Options<any, any, any> | undefined, A4: ((mergedExtensions: Record<string, any>, request: Request) => Record<string, any>) | undefined) => Executor<Record<string, any>, Record<string, any>>; |
@@ -1,1 +0,1 @@ | ||
export declare function memoize2of5<T1 extends Record<string, any>, T2 extends Record<string, any>, T3 extends any, T4 extends any, T5 extends any, R extends any>(fn: (A1: T1, A2: T2, A3: T3, A4: T4, A5: T5) => R): (A1: T1, A2: T2, A3: T3, A4: T4, A5: T5) => R; | ||
export declare function memoize2of4<T1 extends Record<string, any>, T2 extends Record<string, any>, T3 extends any, T4 extends any, R extends any>(fn: (A1: T1, A2: T2, A3: T3, A4: T4) => R): (A1: T1, A2: T2, A3: T3, A4: T4) => R; |
{ | ||
"name": "@graphql-tools/batch-execute", | ||
"version": "8.0.0-alpha-d6fafeef.0", | ||
"version": "8.0.0-alpha-d79e1771.0", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,6 +10,6 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/utils": "8.0.0-alpha-d6fafeef.0", | ||
"@graphql-tools/utils": "8.0.0-alpha-d79e1771.0", | ||
"dataloader": "2.0.0", | ||
"tslib": "~2.2.0", | ||
"value-or-promise": "1.0.8" | ||
"tslib": "~2.3.0", | ||
"value-or-promise": "1.0.10" | ||
}, | ||
@@ -22,8 +22,18 @@ "repository": { | ||
"license": "MIT", | ||
"main": "index.cjs.js", | ||
"module": "index.esm.js", | ||
"main": "index.js", | ||
"module": "index.mjs", | ||
"typings": "index.d.ts", | ||
"typescript": { | ||
"definition": "index.d.ts" | ||
}, | ||
"exports": { | ||
".": { | ||
"require": "./index.js", | ||
"import": "./index.mjs" | ||
}, | ||
"./*": { | ||
"require": "./*.js", | ||
"import": "./*.mjs" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
export declare function createPrefix(index: number): string; | ||
export declare function createPrefix(index: string): string; | ||
export declare function parseKey(prefixedKey: string): { | ||
@@ -3,0 +3,0 @@ index: number; |
import { ExecutionResult } from 'graphql'; | ||
import { AsyncExecutionResult } from '@graphql-tools/utils'; | ||
export declare function splitResult(mergedResult: ExecutionResult | AsyncIterableIterator<AsyncExecutionResult> | Promise<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>, numResults: number): Array<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult> | Promise<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>>; | ||
export declare function splitExecutionResultOrAsyncIterableIterator(mergedResult: ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>, numResults: number): Array<ExecutionResult | AsyncIterableIterator<AsyncExecutionResult>>; | ||
/** | ||
* Split and transform result of the query produced by the `merge` function | ||
*/ | ||
export declare function splitResult({ data, errors }: ExecutionResult, numResults: number): Array<ExecutionResult>; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
65981
22
1602
+ Added@graphql-tools/utils@8.0.0-alpha-d79e1771.0(transitive)
+ Addedtslib@2.3.1(transitive)
+ Addedvalue-or-promise@1.0.10(transitive)
- Removed@ardatan/aggregate-error@0.0.6(transitive)
- Removed@graphql-tools/utils@8.0.0-alpha-d6fafeef.0(transitive)
- Removed@repeaterjs/repeater@3.0.6(transitive)
- Removedcamel-case@4.1.2(transitive)
- Removedlower-case@2.0.2(transitive)
- Removedno-case@3.0.4(transitive)
- Removedpascal-case@3.1.2(transitive)
- Removedtslib@2.0.32.2.0(transitive)
- Removedvalue-or-promise@1.0.8(transitive)
Updatedtslib@~2.3.0
Updatedvalue-or-promise@1.0.10