Version 12.0.0
Major
-
Concurrent GraphQL operations with the same cache key no longer share the first request.
-
The
GraphQLinstance propertyoperationstype has changed:- object<GraphQLCacheKey, Promise<GraphQLCacheValue>> + object<GraphQLCacheKey, Array<Promise<GraphQLCacheValue>>>
Patch
- Updated dev dependencies.
- Improved the test utility
promisifyEventfunction. - Test the the
GraphQLinstance methodoperateoptionreloadOnLoadin isolation. - Test better the order of the
GraphQLinstance methodoperatetriggered events. - Refactored the
GraphQLinstance methodoperateto eliminate theGraphQLprivate instance methodfetchand reduce the chance of race conditions in consumer code. - Reduced the number of promises created by the
GraphQLinstance methodoperatewhen thereloadOnLoadandreloadOnLoadoptions arefalse. - Added a code example for how to await all loading GraphQL operations.
- Used consistent JSDoc types for promises that resolve
void. - Tweaked JSDoc.
- Tweaked changelog entries.