diff --git a/.changeset/grumpy-toys-peel.md b/.changeset/grumpy-toys-peel.md deleted file mode 100644 index 5a56d11f8f..0000000000 --- a/.changeset/grumpy-toys-peel.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'graphql-executor': patch ---- - -Memoize field lists created by the collectFields utility function. - -This allows functions that operate on these field lists to be memoized. diff --git a/.changeset/itchy-snails-sleep.md b/.changeset/itchy-snails-sleep.md deleted file mode 100644 index 36170af2a7..0000000000 --- a/.changeset/itchy-snails-sleep.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'graphql-executor': patch ---- - -Refactor mapAsyncIterator to use a Repeater implementation - -This is a breaking change as the generator returned by mapAsyncIterator will now (correctly) not support concurrent next() and throw() calls. As the generator returned by calls to execute should rarely be used with throw(), this breaking change should have little impact. diff --git a/.changeset/many-olives-eat.md b/.changeset/many-olives-eat.md deleted file mode 100644 index 123ff0db0a..0000000000 --- a/.changeset/many-olives-eat.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'graphql-executor': patch ---- - -Support incremental delivery with defer/stream directives - -Port of https://github.com/graphql/graphql-js/pull/2839 -defer/stream support is enabled by default, but can be disabled using the `disableIncremental` argument. diff --git a/.changeset/popular-peaches-shave.md b/.changeset/popular-peaches-shave.md deleted file mode 100644 index cc90ec3130..0000000000 --- a/.changeset/popular-peaches-shave.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'graphql-executor': patch ---- - -BREAKING CHANGE: `execute` now executes subscriptions as subscriptions, not queries, unless the new `forceQueryAlgorithm` option is set to true. The `subscribe` function has been removed. - -Executing a subscription with improper arguments now throws an error (rather than returning a promise that rejects with an error), aligning execution of subscriptions to that of queries and mutations. diff --git a/CHANGELOG.md b/CHANGELOG.md index c8b61983e5..411b1a9c92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # graphql-executor +## 0.0.9 + +### Patch Changes + +- 797ee218: Memoize field lists created by the collectFields utility function. + + This allows functions that operate on these field lists to be memoized. + +- 6bb42abe: Refactor mapAsyncIterator to use a Repeater implementation + + This is a breaking change as the generator returned by mapAsyncIterator will now (correctly) not support concurrent next() and throw() calls. As the generator returned by calls to execute should rarely be used with throw(), this breaking change should have little impact. + +- f6d0b735: Support incremental delivery with defer/stream directives + + Port of https://github.com/graphql/graphql-js/pull/2839 + defer/stream support is enabled by default, but can be disabled using the `disableIncremental` argument. + +- 7aaffa24: BREAKING CHANGE: `execute` now executes subscriptions as subscriptions, not queries, unless the new `forceQueryAlgorithm` option is set to true. The `subscribe` function has been removed. + + Executing a subscription with improper arguments now throws an error (rather than returning a promise that rejects with an error), aligning execution of subscriptions to that of queries and mutations. + ## 0.0.8 ### Patch Changes diff --git a/package-lock.json b/package-lock.json index d24c9d4531..437213f64b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "graphql-executor", - "version": "0.0.8", + "version": "0.0.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "graphql-executor", - "version": "0.0.8", + "version": "0.0.9", "license": "MIT", "devDependencies": { "@babel/core": "7.15.8", diff --git a/package.json b/package.json index cd15be961e..51121e615f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "graphql-executor", - "version": "0.0.8", + "version": "0.0.9", "description": "A customizable GraphQL Spec compliant Executor class.", "license": "MIT", "main": "index",