Version 12.0.0
Major
-
Concurrent GraphQL operations with the same cache key no longer share the first request.
-
The
GraphQL
instance propertyoperations
type has changed:- object<GraphQLCacheKey, Promise<GraphQLCacheValue>> + object<GraphQLCacheKey, Array<Promise<GraphQLCacheValue>>>
Patch
- Updated dev dependencies.
- Improved the test utility
promisifyEvent
function. - Test the the
GraphQL
instance methodoperate
optionreloadOnLoad
in isolation. - Test better the order of the
GraphQL
instance methodoperate
triggered events. - Refactored the
GraphQL
instance methodoperate
to eliminate theGraphQL
private instance methodfetch
and reduce the chance of race conditions in consumer code. - Reduced the number of promises created by the
GraphQL
instance methodoperate
when thereloadOnLoad
andreloadOnLoad
options 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.