From 85dcc2f90a55eee321a48a931ad8e0f21bc696a4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 27 Jul 2021 15:21:01 +0000 Subject: [PATCH] chore(release): update monorepo packages versions --- .changeset/big-crews-suffer.md | 5 - .changeset/blue-ducks-stare.md | 20 ---- .changeset/blue-phones-kick.md | 8 -- .changeset/brave-rats-march.md | 7 -- .changeset/chilly-avocados-kiss.md | 5 - .changeset/chilly-seals-smell.md | 5 - .changeset/cool-onions-wink.md | 5 - .changeset/cuddly-horses-prove.md | 7 -- .changeset/curly-items-glow.md | 5 - .changeset/eighty-books-develop.md | 5 - .changeset/empty-news-wave.md | 10 -- .changeset/empty-pugs-wash.md | 5 - .changeset/fifty-carrots-pretend.md | 11 --- .changeset/fifty-wombats-help.md | 5 - .changeset/forty-ducks-drum.md | 10 -- .changeset/fresh-queens-watch.md | 24 ----- .changeset/gentle-buckets-dress.md | 5 - .changeset/gold-rabbits-fly.md | 5 - .changeset/green-rocks-swim.md | 8 -- .changeset/grumpy-months-nail.md | 5 - .changeset/heavy-vans-whisper.md | 8 -- .changeset/khaki-balloons-check.md | 5 - .changeset/lazy-turtles-dress.md | 24 ----- .changeset/long-rings-happen.md | 7 -- .changeset/mean-news-return.md | 15 --- .changeset/metal-apes-sell.md | 5 - .changeset/mighty-nails-bake.md | 5 - .changeset/new-balloons-reply.md | 8 -- .changeset/nine-ducks-burn.md | 6 -- .changeset/ninety-shirts-crash.md | 7 -- .changeset/ninety-spies-care.md | 5 - .changeset/olive-impalas-tease.md | 5 - .changeset/pink-glasses-move.md | 5 - .changeset/pink-zoos-fold.md | 5 - .changeset/polite-yaks-drive.md | 6 -- .changeset/popular-cameras-glow.md | 5 - .changeset/pretty-laws-rest.md | 8 -- .changeset/quick-hotels-beam.md | 16 ---- .changeset/quiet-carrots-arrive.md | 5 - .changeset/rare-apes-wash.md | 5 - .changeset/sharp-wombats-perform.md | 15 --- .changeset/silent-comics-tell.md | 8 -- .changeset/silver-comics-check.md | 5 - .changeset/slimy-rice-exercise.md | 6 -- .changeset/smart-donuts-care.md | 5 - .changeset/smooth-tips-know.md | 8 -- .changeset/twelve-suns-run.md | 5 - .changeset/unlucky-kangaroos-tan.md | 5 - .changeset/unlucky-pumpkins-burn.md | 5 - .changeset/wicked-tables-beg.md | 5 - .changeset/yellow-pumas-impress.md | 5 - .changeset/young-beans-fail.md | 10 -- benchmark/federation/CHANGELOG.md | 14 +++ benchmark/federation/package.json | 6 +- packages/batch-delegate/CHANGELOG.md | 42 ++++++++ packages/batch-delegate/package.json | 14 +-- packages/batch-execute/CHANGELOG.md | 60 ++++++++++++ packages/batch-execute/package.json | 4 +- packages/delegate/CHANGELOG.md | 87 +++++++++++++++++ packages/delegate/package.json | 12 +-- packages/graphql-tag-pluck/CHANGELOG.md | 28 ++++++ packages/graphql-tag-pluck/package.json | 8 +- packages/graphql-tools/CHANGELOG.md | 17 ++++ packages/graphql-tools/package.json | 8 +- packages/jest-transform/CHANGELOG.md | 11 +++ packages/jest-transform/package.json | 4 +- packages/links/CHANGELOG.md | 68 +++++++++++++ packages/links/package.json | 6 +- packages/load/CHANGELOG.md | 35 +++++++ packages/load/package.json | 10 +- packages/loaders/apollo-engine/CHANGELOG.md | 45 +++++++++ packages/loaders/apollo-engine/package.json | 8 +- packages/loaders/code-file/CHANGELOG.md | 43 +++++++++ packages/loaders/code-file/package.json | 10 +- packages/loaders/git/CHANGELOG.md | 41 ++++++++ packages/loaders/git/package.json | 10 +- packages/loaders/github/CHANGELOG.md | 39 ++++++++ packages/loaders/github/package.json | 10 +- packages/loaders/graphql-file/CHANGELOG.md | 35 +++++++ packages/loaders/graphql-file/package.json | 8 +- packages/loaders/json-file/CHANGELOG.md | 33 +++++++ packages/loaders/json-file/package.json | 8 +- packages/loaders/module/CHANGELOG.md | 36 +++++++ packages/loaders/module/package.json | 8 +- packages/loaders/prisma/CHANGELOG.md | 27 ++++++ packages/loaders/prisma/package.json | 10 +- packages/loaders/url/CHANGELOG.md | 74 +++++++++++++++ packages/loaders/url/package.json | 8 +- packages/merge/CHANGELOG.md | 28 ++++++ packages/merge/package.json | 10 +- packages/mock/CHANGELOG.md | 30 ++++++ packages/mock/package.json | 12 +-- packages/node-require/CHANGELOG.md | 27 ++++++ packages/node-require/package.json | 12 +-- .../relay-operation-optimizer/CHANGELOG.md | 22 +++++ .../relay-operation-optimizer/package.json | 8 +- packages/resolvers-composition/CHANGELOG.md | 27 ++++++ packages/resolvers-composition/package.json | 4 +- packages/schema/CHANGELOG.md | 41 ++++++++ packages/schema/package.json | 10 +- packages/stitch/CHANGELOG.md | 76 +++++++++++++++ packages/stitch/package.json | 18 ++-- packages/stitching-directives/CHANGELOG.md | 42 ++++++++ packages/stitching-directives/package.json | 12 +-- packages/utils/CHANGELOG.md | 95 +++++++++++++++++++ packages/utils/package.json | 2 +- packages/webpack-loader/CHANGELOG.md | 6 ++ packages/webpack-loader/package.json | 6 +- packages/wrap/CHANGELOG.md | 92 ++++++++++++++++++ packages/wrap/package.json | 12 +-- 110 files changed, 1350 insertions(+), 526 deletions(-) delete mode 100644 .changeset/big-crews-suffer.md delete mode 100644 .changeset/blue-ducks-stare.md delete mode 100644 .changeset/blue-phones-kick.md delete mode 100644 .changeset/brave-rats-march.md delete mode 100644 .changeset/chilly-avocados-kiss.md delete mode 100644 .changeset/chilly-seals-smell.md delete mode 100644 .changeset/cool-onions-wink.md delete mode 100644 .changeset/cuddly-horses-prove.md delete mode 100644 .changeset/curly-items-glow.md delete mode 100644 .changeset/eighty-books-develop.md delete mode 100644 .changeset/empty-news-wave.md delete mode 100644 .changeset/empty-pugs-wash.md delete mode 100644 .changeset/fifty-carrots-pretend.md delete mode 100644 .changeset/fifty-wombats-help.md delete mode 100644 .changeset/forty-ducks-drum.md delete mode 100644 .changeset/fresh-queens-watch.md delete mode 100644 .changeset/gentle-buckets-dress.md delete mode 100644 .changeset/gold-rabbits-fly.md delete mode 100644 .changeset/green-rocks-swim.md delete mode 100644 .changeset/grumpy-months-nail.md delete mode 100644 .changeset/heavy-vans-whisper.md delete mode 100644 .changeset/khaki-balloons-check.md delete mode 100644 .changeset/lazy-turtles-dress.md delete mode 100644 .changeset/long-rings-happen.md delete mode 100644 .changeset/mean-news-return.md delete mode 100644 .changeset/metal-apes-sell.md delete mode 100644 .changeset/mighty-nails-bake.md delete mode 100644 .changeset/new-balloons-reply.md delete mode 100644 .changeset/nine-ducks-burn.md delete mode 100644 .changeset/ninety-shirts-crash.md delete mode 100644 .changeset/ninety-spies-care.md delete mode 100644 .changeset/olive-impalas-tease.md delete mode 100644 .changeset/pink-glasses-move.md delete mode 100644 .changeset/pink-zoos-fold.md delete mode 100644 .changeset/polite-yaks-drive.md delete mode 100644 .changeset/popular-cameras-glow.md delete mode 100644 .changeset/pretty-laws-rest.md delete mode 100644 .changeset/quick-hotels-beam.md delete mode 100644 .changeset/quiet-carrots-arrive.md delete mode 100644 .changeset/rare-apes-wash.md delete mode 100644 .changeset/sharp-wombats-perform.md delete mode 100644 .changeset/silent-comics-tell.md delete mode 100644 .changeset/silver-comics-check.md delete mode 100644 .changeset/slimy-rice-exercise.md delete mode 100644 .changeset/smart-donuts-care.md delete mode 100644 .changeset/smooth-tips-know.md delete mode 100644 .changeset/twelve-suns-run.md delete mode 100644 .changeset/unlucky-kangaroos-tan.md delete mode 100644 .changeset/unlucky-pumpkins-burn.md delete mode 100644 .changeset/wicked-tables-beg.md delete mode 100644 .changeset/yellow-pumas-impress.md delete mode 100644 .changeset/young-beans-fail.md create mode 100644 benchmark/federation/CHANGELOG.md create mode 100644 packages/jest-transform/CHANGELOG.md diff --git a/.changeset/big-crews-suffer.md b/.changeset/big-crews-suffer.md deleted file mode 100644 index 0fafe342653..00000000000 --- a/.changeset/big-crews-suffer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/webpack-loader': minor ---- - -feat(webpack-loader): export Options diff --git a/.changeset/blue-ducks-stare.md b/.changeset/blue-ducks-stare.md deleted file mode 100644 index 376bf91ace4..00000000000 --- a/.changeset/blue-ducks-stare.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -'@graphql-tools/load': major -'@graphql-tools/apollo-engine-loader': major -'@graphql-tools/code-file-loader': major -'@graphql-tools/git-loader': major -'@graphql-tools/github-loader': major -'@graphql-tools/graphql-file-loader': major -'@graphql-tools/json-file-loader': major -'@graphql-tools/module-loader': major -'@graphql-tools/url-loader': major -'@graphql-tools/utils': major ---- - -BREAKING CHANGE - -- Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` - -- GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block - -- Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. diff --git a/.changeset/blue-phones-kick.md b/.changeset/blue-phones-kick.md deleted file mode 100644 index 6b45b64a001..00000000000 --- a/.changeset/blue-phones-kick.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@graphql-tools/delegate': major ---- - -BREAKING CHANGE -- Remove `rootValue` from subschemaConfig -- - Pass it through `ExecutionParams` or delegation options -- Do not pass `info.rootValue` if `rootValue` is falsy diff --git a/.changeset/brave-rats-march.md b/.changeset/brave-rats-march.md deleted file mode 100644 index 52e68849001..00000000000 --- a/.changeset/brave-rats-march.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@graphql-tools/wrap': major ---- - -BREAKING CHANGE -- `makeRemoteExecutableSchema` has been removed. -- - You can use [`wrapSchema`](https://www.graphql-tools.com/docs/remote-schemas#creating-an-executor) instead diff --git a/.changeset/chilly-avocados-kiss.md b/.changeset/chilly-avocados-kiss.md deleted file mode 100644 index 3954bc7c09c..00000000000 --- a/.changeset/chilly-avocados-kiss.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/code-file-loader': patch ---- - -enhance(code-file-loader): remove extra work on loader level diff --git a/.changeset/chilly-seals-smell.md b/.changeset/chilly-seals-smell.md deleted file mode 100644 index 9226c71aa91..00000000000 --- a/.changeset/chilly-seals-smell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/module-loader': minor ---- - -feat(module-loader): check if module exists using FS diff --git a/.changeset/cool-onions-wink.md b/.changeset/cool-onions-wink.md deleted file mode 100644 index 61e905e26ad..00000000000 --- a/.changeset/cool-onions-wink.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/utils': minor ---- - -enhance(loaders): remove optional methods from the Loader interface diff --git a/.changeset/cuddly-horses-prove.md b/.changeset/cuddly-horses-prove.md deleted file mode 100644 index 25c2e5aafc0..00000000000 --- a/.changeset/cuddly-horses-prove.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@graphql-tools/utils': major ---- - -BREAKING CHANGE -- Remove `fieldToFieldConfig`, `argsToFieldConfigArgument` and `argumentToArgumentConfig` -- - You can use `.toConfig` method instead for each. diff --git a/.changeset/curly-items-glow.md b/.changeset/curly-items-glow.md deleted file mode 100644 index 37acd456537..00000000000 --- a/.changeset/curly-items-glow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/stitch': patch ---- - -Fixed issue with stitchSchemas function returning info object with left.subschema and right.subschema referencing the same object diff --git a/.changeset/eighty-books-develop.md b/.changeset/eighty-books-develop.md deleted file mode 100644 index 33afdd5d08f..00000000000 --- a/.changeset/eighty-books-develop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/graphql-file-loader': patch ---- - -fix(file-loader): location path must be normalized diff --git a/.changeset/empty-news-wave.md b/.changeset/empty-news-wave.md deleted file mode 100644 index 7e5c628bf65..00000000000 --- a/.changeset/empty-news-wave.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@graphql-tools/delegate': major ---- - -BREAKING CHANGES; - -Refactor the core delegation transforms into individual functions to modify request and results. This will improve the performance considerably by reducing the number of visits over the request document. -- Replace `CheckResultAndHandleErrors` with `checkResultAndHandleErrors` -- Remove `delegationBindings` -- Replace `AddArgumentsAsVariables`, `AddSelectionSets`, `AddTypenameToAbstract`, `ExpandAbstractTypes`, `FilterToSchema`, `VisitSelectionSets` and `WrapConcreteTypes` with `prepareGatewayRequest` and `finalizeGatewayRequest` diff --git a/.changeset/empty-pugs-wash.md b/.changeset/empty-pugs-wash.md deleted file mode 100644 index c88f1a9d1ff..00000000000 --- a/.changeset/empty-pugs-wash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/apollo-engine-loader': minor ---- - -feat(apollo-engine): add sync support diff --git a/.changeset/fifty-carrots-pretend.md b/.changeset/fifty-carrots-pretend.md deleted file mode 100644 index 5001357f28e..00000000000 --- a/.changeset/fifty-carrots-pretend.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@graphql-tools/url-loader': major ---- - -BREAKING CHANGE -- Remove `handleSDLAsync` and `handleSDLSync`; use `handleSDL` instead -- Remove `useSSEForSubscription` and `useWebSocketLegacyProtocol`; use `subscriptionProtocol` instead -- If introspection source is different than endpoint, use `endpoint` for remote execution source -- Default HTTP Executor is renamed to `buildHTTPExecutor` with a new signature -- `build*Subscriber` methods are renamed to `buildWSLegacyExecutor`, `buildWSExecutor` and `buildSSEExecutor` with new signatures -- `getFetch` no longer takes `async` flag diff --git a/.changeset/fifty-wombats-help.md b/.changeset/fifty-wombats-help.md deleted file mode 100644 index 54780e5be09..00000000000 --- a/.changeset/fifty-wombats-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/mock': patch ---- - -Safer use of Object.prototype.hasOwnProperty #3069 diff --git a/.changeset/forty-ducks-drum.md b/.changeset/forty-ducks-drum.md deleted file mode 100644 index 74cdff2e1e4..00000000000 --- a/.changeset/forty-ducks-drum.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@graphql-tools/schema': major -'@graphql-tools/stitch': major -'@graphql-tools/utils': major ---- - -BREAKING CHANGE -- Legacy Schema Directives and Directive Resolvers have been removed -- - You can check the new method for both; -- - - https://www.graphql-tools.com/docs/schema-directives diff --git a/.changeset/fresh-queens-watch.md b/.changeset/fresh-queens-watch.md deleted file mode 100644 index baa9a52de83..00000000000 --- a/.changeset/fresh-queens-watch.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@graphql-tools/batch-delegate': major -'@graphql-tools/batch-execute': major -'@graphql-tools/delegate': major -'@graphql-tools/links': major -'@graphql-tools/url-loader': major -'@graphql-tools/stitch': major -'@graphql-tools/utils': major -'@graphql-tools/wrap': major ---- - -refactor: ExecutionParams type replaced by Request type - -rootValue property is now a part of the Request type. - -When delegating with delegateToSchema, rootValue can be set multiple ways: - -- when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. -- when using the default executor (execute/subscribe from graphql-js): - -- rootValue can be passed to delegateToSchema via a named option - -- rootValue can be included within a subschemaConfig - -- otherwise, rootValue is inferred from the originating schema - -When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. diff --git a/.changeset/gentle-buckets-dress.md b/.changeset/gentle-buckets-dress.md deleted file mode 100644 index dd66b29ff4f..00000000000 --- a/.changeset/gentle-buckets-dress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/url-loader': patch ---- - -enhance(url-loader): avoid doing extra work on loader level diff --git a/.changeset/gold-rabbits-fly.md b/.changeset/gold-rabbits-fly.md deleted file mode 100644 index 5e1d9b86bb1..00000000000 --- a/.changeset/gold-rabbits-fly.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/github-loader': minor ---- - -feat(github-loader): handle SDL correctly on loader level diff --git a/.changeset/green-rocks-swim.md b/.changeset/green-rocks-swim.md deleted file mode 100644 index 9c291002d67..00000000000 --- a/.changeset/green-rocks-swim.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@graphql-tools/utils': major ---- - -BREAKING CHANGES; - -`mergeDeep` now takes an array of sources instead of set of parameters as input and it takes an additional flag to enable prototype merging -Instead of `mergeDeep(...sources)` => `mergeDeep(sources)` diff --git a/.changeset/grumpy-months-nail.md b/.changeset/grumpy-months-nail.md deleted file mode 100644 index 3eccbc4bcf6..00000000000 --- a/.changeset/grumpy-months-nail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/resolvers-composition': patch ---- - -BugFix: Handle parsing endpoints when there are no mutations #3076 diff --git a/.changeset/heavy-vans-whisper.md b/.changeset/heavy-vans-whisper.md deleted file mode 100644 index 26e9ea892a4..00000000000 --- a/.changeset/heavy-vans-whisper.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@graphql-tools/schema': major ---- - -BREAKING CHANGE -- Remove `logger` and `addErrorLoggingToSchema` -- - You can implement logging and debugging mechanism outside the resolvers using some kind of plugin system based library like [Envelop](https://www.envelop.dev/docs/core#uselogger) - diff --git a/.changeset/khaki-balloons-check.md b/.changeset/khaki-balloons-check.md deleted file mode 100644 index 94f22de2def..00000000000 --- a/.changeset/khaki-balloons-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/code-file-loader': minor ---- - -include rawSDL in Source of plucked files diff --git a/.changeset/lazy-turtles-dress.md b/.changeset/lazy-turtles-dress.md deleted file mode 100644 index f5bf12c9b67..00000000000 --- a/.changeset/lazy-turtles-dress.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -'@graphql-tools/batch-execute': major -'@graphql-tools/delegate': major -'@graphql-tools/links': major -'@graphql-tools/utils': major -'@graphql-tools/wrap': major ---- - -BREAKING CHANGES; - -- Rename `Request` to `ExecutionRequest` -- Add required `operationType: OperationTypeNode` field in `ExecutionRequest` -- Add `context` in `createRequest` and `createRequestInfo` instead of `delegateToSchema` - -> It doesn't rely on info.operation.operationType to allow the user to call an operation from different root type. -And it doesn't call getOperationAST again and again to get operation type from the document/operation because we have it in Request and ExecutionParams -https://github.com/ardatan/graphql-tools/pull/3166/files#diff-d4824895ea613dcc1f710c3ac82e952fe0ca12391b671f70d9f2d90d5656fdceR38 - -Improvements; -- Memoize `defaultExecutor` for a single `GraphQLSchema` so allow `getBatchingExecutor` to memoize `batchingExecutor` correctly. -- And there is no different `defaultExecutor` is created for `subscription` and other operation types. Only one executor is used. - -> Batch executor is memoized by `executor` reference but `createDefaultExecutor` didn't memoize the default executor so this memoization wasn't working correctly on `batch-execute` side. -https://github.com/ardatan/graphql-tools/blob/remove-info-executor/packages/batch-execute/src/getBatchingExecutor.ts#L9 diff --git a/.changeset/long-rings-happen.md b/.changeset/long-rings-happen.md deleted file mode 100644 index 864360d945a..00000000000 --- a/.changeset/long-rings-happen.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'graphql-tools': major ---- - -BREAKING CHANGE -- Now it only exports `makeExecutableSchema` from `@graphql-tools/schema` -- Please migrate to scoped packages(`@graphql-tools/*`) because this npm package will no longer get updated diff --git a/.changeset/mean-news-return.md b/.changeset/mean-news-return.md deleted file mode 100644 index 7ccdc2605a0..00000000000 --- a/.changeset/mean-news-return.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@graphql-tools/delegate': major -'@graphql-tools/apollo-engine-loader': major -'@graphql-tools/utils': major -'@graphql-tools/wrap': major ---- - -BREAKING CHANGE -- Now it uses the native [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) implementation. The major difference is the individual errors are kept under `errors` property instead of the object itself with `Symbol.iterator`. -```js -// From; -for (const error of aggregateError) -// To; -for (const error of aggregateError.errors) -``` diff --git a/.changeset/metal-apes-sell.md b/.changeset/metal-apes-sell.md deleted file mode 100644 index ea3002604fc..00000000000 --- a/.changeset/metal-apes-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/code-file-loader': minor ---- - -allow supplying config via constructor diff --git a/.changeset/mighty-nails-bake.md b/.changeset/mighty-nails-bake.md deleted file mode 100644 index 955451aa54f..00000000000 --- a/.changeset/mighty-nails-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/utils': major ---- - -BREAKING CHANGE: remove cloneSchema diff --git a/.changeset/new-balloons-reply.md b/.changeset/new-balloons-reply.md deleted file mode 100644 index 9fc4b50e2f0..00000000000 --- a/.changeset/new-balloons-reply.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@graphql-tools/schema': major ---- - -BREAKING CHANGE -- Remove schema level resolvers feature and `addSchemaLevelResolver` -- - You can wrap your resolvers by using [Resolvers Composition](https://www.graphql-tools.com/docs/resolvers-composition) - diff --git a/.changeset/nine-ducks-burn.md b/.changeset/nine-ducks-burn.md deleted file mode 100644 index 0f2eaa561fd..00000000000 --- a/.changeset/nine-ducks-burn.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-tools/wrap': major ---- - -BREAKING CHANGE -- Remove unnecessary `introspectSchemaSync`, `introspectSchema` already handles sync execution diff --git a/.changeset/ninety-shirts-crash.md b/.changeset/ninety-shirts-crash.md deleted file mode 100644 index f919a768c63..00000000000 --- a/.changeset/ninety-shirts-crash.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@graphql-tools/utils': major ---- - -BREAKING CHANGE -- No longer exports `debugLog` but uses `console.log` directly only if `DEBUG` is available under `process.env` - diff --git a/.changeset/ninety-spies-care.md b/.changeset/ninety-spies-care.md deleted file mode 100644 index 39d5f421437..00000000000 --- a/.changeset/ninety-spies-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/graphql-tag-pluck': patch ---- - -ensure operations with GraphQL magic comment are only parsed once. diff --git a/.changeset/olive-impalas-tease.md b/.changeset/olive-impalas-tease.md deleted file mode 100644 index 5ba11ad9be8..00000000000 --- a/.changeset/olive-impalas-tease.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/stitch': minor ---- - -@ardatanfeat(stitch): add helpers for Relay diff --git a/.changeset/pink-glasses-move.md b/.changeset/pink-glasses-move.md deleted file mode 100644 index c725407a8de..00000000000 --- a/.changeset/pink-glasses-move.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/delegate': major ---- - -BREAKING CHANGE: validations are skipped by default, use validateRequest: true to reenable diff --git a/.changeset/pink-zoos-fold.md b/.changeset/pink-zoos-fold.md deleted file mode 100644 index cd3565a1f8b..00000000000 --- a/.changeset/pink-zoos-fold.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/links': minor ---- - -feat(links): Respect operationName diff --git a/.changeset/polite-yaks-drive.md b/.changeset/polite-yaks-drive.md deleted file mode 100644 index 96015ab6095..00000000000 --- a/.changeset/polite-yaks-drive.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-tools/utils': major ---- - -BREAKING CHANGE -- No longer applies `camelCase` naming convention in `buildOperationNodeForField` diff --git a/.changeset/popular-cameras-glow.md b/.changeset/popular-cameras-glow.md deleted file mode 100644 index cd97369b4ab..00000000000 --- a/.changeset/popular-cameras-glow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/git-loader': minor ---- - -feat(git-loader): add glob support diff --git a/.changeset/pretty-laws-rest.md b/.changeset/pretty-laws-rest.md deleted file mode 100644 index ff12beb4131..00000000000 --- a/.changeset/pretty-laws-rest.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@graphql-tools/code-file-loader': major -'@graphql-tools/git-loader': major -'@graphql-tools/graphql-file-loader': major -'@graphql-tools/load': patch ---- - -Loader.canLoad and Loader.canLoadSync can only handle file paths not glob patterns diff --git a/.changeset/quick-hotels-beam.md b/.changeset/quick-hotels-beam.md deleted file mode 100644 index f37aa1f8814..00000000000 --- a/.changeset/quick-hotels-beam.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@graphql-tools/stitch': major -'@graphql-tools/stitching-directives': major -'@graphql-tools/utils': major -'@graphql-tools/wrap': major ---- - -fix(getDirectives): preserve order around repeatable directives - -BREAKING CHANGE: getDirectives now always return an array of individual DirectiveAnnotation objects consisting of `name` and `args` properties. - -New useful function `getDirective` returns an array of objects representing any args for each use of a single directive (returning the empty object `{}` when a directive is used without arguments). - -Note: The `getDirective` function returns an array even when the specified directive is non-repeatable. This is because one use of this function is to throw an error if more than one directive annotation is used for a non repeatable directive! - -When specifying directives in extensions, one can use either the old or new format. diff --git a/.changeset/quiet-carrots-arrive.md b/.changeset/quiet-carrots-arrive.md deleted file mode 100644 index 387c8a80107..00000000000 --- a/.changeset/quiet-carrots-arrive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/stitching-directives': minor ---- - -feat(stitching-directives): move federation-to-stitching-sdl diff --git a/.changeset/rare-apes-wash.md b/.changeset/rare-apes-wash.md deleted file mode 100644 index 8eba365cd10..00000000000 --- a/.changeset/rare-apes-wash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/json-file-loader': patch ---- - -enhance(json-file-loader): check for path in a safer way diff --git a/.changeset/sharp-wombats-perform.md b/.changeset/sharp-wombats-perform.md deleted file mode 100644 index f347c5699df..00000000000 --- a/.changeset/sharp-wombats-perform.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@graphql-tools/batch-execute': major -'@graphql-tools/delegate': major -'@graphql-tools/links': major -'@graphql-tools/url-loader': major -'@graphql-tools/stitch': major -'@graphql-tools/utils': major -'@graphql-tools/wrap': major ---- - -BREAKING CHANGE -- Remove Subscriber and use only Executor -- - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries - - diff --git a/.changeset/silent-comics-tell.md b/.changeset/silent-comics-tell.md deleted file mode 100644 index 31e77804ba1..00000000000 --- a/.changeset/silent-comics-tell.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@graphql-tools/schema': major ---- - -BREAKING CHANGE -- No longer exports `buildSchemaFromTypeDefinitions`, use `buildSchema` from `graphql-js` instead -- Remove `allowUndefinedResolve` option in `makeExecutableSchema` because GraphQL Schema itself does this checking - diff --git a/.changeset/silver-comics-check.md b/.changeset/silver-comics-check.md deleted file mode 100644 index 06bc791cdd6..00000000000 --- a/.changeset/silver-comics-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/resolvers-composition': minor ---- - -Added glob pattern support for composeResolver method diff --git a/.changeset/slimy-rice-exercise.md b/.changeset/slimy-rice-exercise.md deleted file mode 100644 index 9c469de133e..00000000000 --- a/.changeset/slimy-rice-exercise.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@graphql-tools/graphql-tag-pluck': major ---- - -BREAKING CHANGE -- feat(graphql-tag-pluck): keep locationOffset and return graphql-js Source instead of string diff --git a/.changeset/smart-donuts-care.md b/.changeset/smart-donuts-care.md deleted file mode 100644 index 55e1beee6d1..00000000000 --- a/.changeset/smart-donuts-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/utils': patch ---- - -enhance(utils): refactor, cleanup and remove extra work diff --git a/.changeset/smooth-tips-know.md b/.changeset/smooth-tips-know.md deleted file mode 100644 index 326bfe7c745..00000000000 --- a/.changeset/smooth-tips-know.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@graphql-tools/utils': major ---- - -BREAKING CHANGE -- No longer exports `SchemaVisitor`, `visitSchema` and `VisitSchemaKind` -- - Use [`mapSchema`](https://www.graphql-tools.com/docs/schema-directives/#full-mapschema-api) instead - diff --git a/.changeset/twelve-suns-run.md b/.changeset/twelve-suns-run.md deleted file mode 100644 index 7c816992aa7..00000000000 --- a/.changeset/twelve-suns-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/schema': patch ---- - -enhance(schema): use merge package to handle typeDefs and resolvers merging diff --git a/.changeset/unlucky-kangaroos-tan.md b/.changeset/unlucky-kangaroos-tan.md deleted file mode 100644 index 1ea9d5164c5..00000000000 --- a/.changeset/unlucky-kangaroos-tan.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/url-loader': patch ---- - -fix(url-loader): fix node support for EventSource diff --git a/.changeset/unlucky-pumpkins-burn.md b/.changeset/unlucky-pumpkins-burn.md deleted file mode 100644 index a965dcedfdc..00000000000 --- a/.changeset/unlucky-pumpkins-burn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/merge': patch ---- - -fix(merge): handle schema definitions correctly diff --git a/.changeset/wicked-tables-beg.md b/.changeset/wicked-tables-beg.md deleted file mode 100644 index 3d44830de3a..00000000000 --- a/.changeset/wicked-tables-beg.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/utils': minor ---- - -feat(utils): Respect operationName and rootValue in ExecutionParams diff --git a/.changeset/yellow-pumas-impress.md b/.changeset/yellow-pumas-impress.md deleted file mode 100644 index 57504e100ce..00000000000 --- a/.changeset/yellow-pumas-impress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-tools/jest-transform': major ---- - -new jest transform diff --git a/.changeset/young-beans-fail.md b/.changeset/young-beans-fail.md deleted file mode 100644 index ce34942cdba..00000000000 --- a/.changeset/young-beans-fail.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@graphql-tools/url-loader': major ---- - -BREAKING CHANGE -- No more accept arrays or functions for `headers` - -NEW FEATURES -- Respect `operationName` and `extensions` -- Ability to get headers from `extensions.headers` diff --git a/benchmark/federation/CHANGELOG.md b/benchmark/federation/CHANGELOG.md new file mode 100644 index 00000000000..db94388b47c --- /dev/null +++ b/benchmark/federation/CHANGELOG.md @@ -0,0 +1,14 @@ +# federation-benchmark + +## 0.0.1 +### Patch Changes + +- Updated dependencies [91155ab6] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [1b0ce2ae] +- Updated dependencies [74581cf3] +- Updated dependencies [70cd65eb] +- Updated dependencies [c0ca3190] + - @graphql-tools/stitch@8.0.0 + - @graphql-tools/stitching-directives@2.0.0 diff --git a/benchmark/federation/package.json b/benchmark/federation/package.json index b02755bf14c..ae471ea9c77 100644 --- a/benchmark/federation/package.json +++ b/benchmark/federation/package.json @@ -1,6 +1,6 @@ { "name": "federation-benchmark", - "version": "0.0.0", + "version": "0.0.1", "private": true, "scripts": { "start": "cross-env NODE_ENV=production node index.js", @@ -11,8 +11,8 @@ "dependencies": { "@apollo/gateway": "0.34.0", "@apollo/federation": "0.27.0", - "@graphql-tools/stitch": "7.5.3", - "@graphql-tools/stitching-directives": "1.3.3", + "@graphql-tools/stitch": "8.0.0", + "@graphql-tools/stitching-directives": "2.0.0", "express": "4.17.1", "graphql": "15.5.1", "graphql-tag": "2.12.5", diff --git a/packages/batch-delegate/CHANGELOG.md b/packages/batch-delegate/CHANGELOG.md index 5e65aa23696..3f9a0309ad6 100644 --- a/packages/batch-delegate/CHANGELOG.md +++ b/packages/batch-delegate/CHANGELOG.md @@ -1,5 +1,47 @@ # @graphql-tools/batch-delegate +## 8.0.0 + +### Major Changes + +- dae6dc7b: refactor: ExecutionParams type replaced by Request type + + rootValue property is now a part of the Request type. + + When delegating with delegateToSchema, rootValue can be set multiple ways: + + - when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. + - when using the default executor (execute/subscribe from graphql-js): + -- rootValue can be passed to delegateToSchema via a named option + -- rootValue can be included within a subschemaConfig + -- otherwise, rootValue is inferred from the originating schema + + When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [7d3e3006] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [d53e3be5] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [aa43054d] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/delegate@8.0.0 + ## 7.0.2 ### Patch Changes diff --git a/packages/batch-delegate/package.json b/packages/batch-delegate/package.json index d8957e3712c..559700d2a3c 100644 --- a/packages/batch-delegate/package.json +++ b/packages/batch-delegate/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/batch-delegate", - "version": "7.0.2", + "version": "8.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -32,14 +32,14 @@ "input": "./src/index.ts" }, "dependencies": { - "@graphql-tools/delegate": "^7.1.4", - "@graphql-tools/utils": "^7.8.1", + "@graphql-tools/delegate": "^8.0.0", + "@graphql-tools/utils": "^8.0.0", "dataloader": "2.0.0", "tslib": "~2.3.0" }, "devDependencies": { - "@graphql-tools/schema": "^7.1.4", - "@graphql-tools/stitch": "^7.5.2" + "@graphql-tools/schema": "^8.0.0", + "@graphql-tools/stitch": "^8.0.0" }, "publishConfig": { "access": "public", diff --git a/packages/batch-execute/CHANGELOG.md b/packages/batch-execute/CHANGELOG.md index 4cfd1ed0023..a5dc36a3ceb 100644 --- a/packages/batch-execute/CHANGELOG.md +++ b/packages/batch-execute/CHANGELOG.md @@ -1,5 +1,65 @@ # @graphql-tools/batch-execute +## 8.0.0 + +### Major Changes + +- dae6dc7b: refactor: ExecutionParams type replaced by Request type + + rootValue property is now a part of the Request type. + + When delegating with delegateToSchema, rootValue can be set multiple ways: + + - when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. + - when using the default executor (execute/subscribe from graphql-js): + -- rootValue can be passed to delegateToSchema via a named option + -- rootValue can be included within a subschemaConfig + -- otherwise, rootValue is inferred from the originating schema + + When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. + +- c42e811d: BREAKING CHANGES; + + - Rename `Request` to `ExecutionRequest` + - Add required `operationType: OperationTypeNode` field in `ExecutionRequest` + - Add `context` in `createRequest` and `createRequestInfo` instead of `delegateToSchema` + + > It doesn't rely on info.operation.operationType to allow the user to call an operation from different root type. + > And it doesn't call getOperationAST again and again to get operation type from the document/operation because we have it in Request and ExecutionParams + > https://github.com/ardatan/graphql-tools/pull/3166/files#diff-d4824895ea613dcc1f710c3ac82e952fe0ca12391b671f70d9f2d90d5656fdceR38 + + Improvements; + + - Memoize `defaultExecutor` for a single `GraphQLSchema` so allow `getBatchingExecutor` to memoize `batchingExecutor` correctly. + - And there is no different `defaultExecutor` is created for `subscription` and other operation types. Only one executor is used. + + > Batch executor is memoized by `executor` reference but `createDefaultExecutor` didn't memoize the default executor so this memoization wasn't working correctly on `batch-execute` side. + > https://github.com/ardatan/graphql-tools/blob/remove-info-executor/packages/batch-execute/src/getBatchingExecutor.ts#L9 + +- c0ca3190: BREAKING CHANGE + - Remove Subscriber and use only Executor + - - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + ## 7.1.2 ### Patch Changes diff --git a/packages/batch-execute/package.json b/packages/batch-execute/package.json index 2ebf2c80605..c4cd2a30440 100644 --- a/packages/batch-execute/package.json +++ b/packages/batch-execute/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/batch-execute", - "version": "7.1.2", + "version": "8.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -32,7 +32,7 @@ "input": "./src/index.ts" }, "dependencies": { - "@graphql-tools/utils": "^7.7.0", + "@graphql-tools/utils": "^8.0.0", "dataloader": "2.0.0", "tslib": "~2.3.0", "value-or-promise": "1.0.10" diff --git a/packages/delegate/CHANGELOG.md b/packages/delegate/CHANGELOG.md index 6914fd83555..b7e8d2c3692 100644 --- a/packages/delegate/CHANGELOG.md +++ b/packages/delegate/CHANGELOG.md @@ -1,5 +1,92 @@ # @graphql-tools/delegate +## 8.0.0 + +### Major Changes + +- 7d3e3006: BREAKING CHANGE + - Remove `rootValue` from subschemaConfig + - - Pass it through `ExecutionParams` or delegation options + - Do not pass `info.rootValue` if `rootValue` is falsy +- d53e3be5: BREAKING CHANGES; + + Refactor the core delegation transforms into individual functions to modify request and results. This will improve the performance considerably by reducing the number of visits over the request document. + + - Replace `CheckResultAndHandleErrors` with `checkResultAndHandleErrors` + - Remove `delegationBindings` + - Replace `AddArgumentsAsVariables`, `AddSelectionSets`, `AddTypenameToAbstract`, `ExpandAbstractTypes`, `FilterToSchema`, `VisitSelectionSets` and `WrapConcreteTypes` with `prepareGatewayRequest` and `finalizeGatewayRequest` + +- dae6dc7b: refactor: ExecutionParams type replaced by Request type + + rootValue property is now a part of the Request type. + + When delegating with delegateToSchema, rootValue can be set multiple ways: + + - when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. + - when using the default executor (execute/subscribe from graphql-js): + -- rootValue can be passed to delegateToSchema via a named option + -- rootValue can be included within a subschemaConfig + -- otherwise, rootValue is inferred from the originating schema + + When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. + +- c42e811d: BREAKING CHANGES; + + - Rename `Request` to `ExecutionRequest` + - Add required `operationType: OperationTypeNode` field in `ExecutionRequest` + - Add `context` in `createRequest` and `createRequestInfo` instead of `delegateToSchema` + + > It doesn't rely on info.operation.operationType to allow the user to call an operation from different root type. + > And it doesn't call getOperationAST again and again to get operation type from the document/operation because we have it in Request and ExecutionParams + > https://github.com/ardatan/graphql-tools/pull/3166/files#diff-d4824895ea613dcc1f710c3ac82e952fe0ca12391b671f70d9f2d90d5656fdceR38 + + Improvements; + + - Memoize `defaultExecutor` for a single `GraphQLSchema` so allow `getBatchingExecutor` to memoize `batchingExecutor` correctly. + - And there is no different `defaultExecutor` is created for `subscription` and other operation types. Only one executor is used. + + > Batch executor is memoized by `executor` reference but `createDefaultExecutor` didn't memoize the default executor so this memoization wasn't working correctly on `batch-execute` side. + > https://github.com/ardatan/graphql-tools/blob/remove-info-executor/packages/batch-execute/src/getBatchingExecutor.ts#L9 + +- 7d3e3006: BREAKING CHANGE + - Now it uses the native [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) implementation. The major difference is the individual errors are kept under `errors` property instead of the object itself with `Symbol.iterator`. + ```js + // From; + for (const error of aggregateError) + // To; + for (const error of aggregateError.errors) + ``` +- aa43054d: BREAKING CHANGE: validations are skipped by default, use validateRequest: true to reenable +- c0ca3190: BREAKING CHANGE + - Remove Subscriber and use only Executor + - - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [7d3e3006] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [7d3e3006] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/schema@8.0.0 + - @graphql-tools/batch-execute@8.0.0 + ## 7.1.5 ### Patch Changes diff --git a/packages/delegate/package.json b/packages/delegate/package.json index 663562b2253..1308de22521 100644 --- a/packages/delegate/package.json +++ b/packages/delegate/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/delegate", - "version": "7.1.5", + "version": "8.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -32,9 +32,9 @@ "input": "./src/index.ts" }, "dependencies": { - "@graphql-tools/batch-execute": "^7.1.2", - "@graphql-tools/schema": "^7.1.5", - "@graphql-tools/utils": "^7.7.1", + "@graphql-tools/batch-execute": "^8.0.0", + "@graphql-tools/schema": "^8.0.0", + "@graphql-tools/utils": "^8.0.0", "dataloader": "2.0.0", "tslib": "~2.3.0", "value-or-promise": "1.0.10" diff --git a/packages/graphql-tag-pluck/CHANGELOG.md b/packages/graphql-tag-pluck/CHANGELOG.md index a489dbc4b3a..07a486ad492 100644 --- a/packages/graphql-tag-pluck/CHANGELOG.md +++ b/packages/graphql-tag-pluck/CHANGELOG.md @@ -1,5 +1,33 @@ # @graphql-tools/graphql-tag-pluck +## 7.0.0 + +### Major Changes + +- 34c31de0: BREAKING CHANGE + - feat(graphql-tag-pluck): keep locationOffset and return graphql-js Source instead of string + +### Patch Changes + +- f1d7b3c2: ensure operations with GraphQL magic comment are only parsed once. +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + ## 6.5.1 ### Patch Changes diff --git a/packages/graphql-tag-pluck/package.json b/packages/graphql-tag-pluck/package.json index df17aa2259c..9d6a06e8b66 100644 --- a/packages/graphql-tag-pluck/package.json +++ b/packages/graphql-tag-pluck/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/graphql-tag-pluck", - "version": "6.5.1", + "version": "7.0.0", "description": "Pluck graphql-tag template literals", "license": "MIT", "repository": { @@ -10,8 +10,8 @@ }, "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -32,7 +32,7 @@ "@babel/parser": "7.14.8", "@babel/traverse": "7.14.8", "@babel/types": "7.14.8", - "@graphql-tools/utils": "^7.0.0", + "@graphql-tools/utils": "^8.0.0", "tslib": "~2.3.0" }, "devDependencies": { diff --git a/packages/graphql-tools/CHANGELOG.md b/packages/graphql-tools/CHANGELOG.md index 10114556e8a..6f2ca638d69 100644 --- a/packages/graphql-tools/CHANGELOG.md +++ b/packages/graphql-tools/CHANGELOG.md @@ -1,5 +1,22 @@ # graphql-tools +## 8.0.0 + +### Major Changes + +- 7d3e3006: BREAKING CHANGE + - Now it only exports `makeExecutableSchema` from `@graphql-tools/schema` + - Please migrate to scoped packages(`@graphql-tools/*`) because this npm package will no longer get updated + +### Patch Changes + +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/schema@8.0.0 + ## 7.0.5 ### Patch Changes diff --git a/packages/graphql-tools/package.json b/packages/graphql-tools/package.json index 431ff3299be..8ce6441de93 100644 --- a/packages/graphql-tools/package.json +++ b/packages/graphql-tools/package.json @@ -1,6 +1,6 @@ { "name": "graphql-tools", - "version": "7.0.5", + "version": "8.0.0", "description": "Useful tools to create and manipulate GraphQL schemas.", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -36,7 +36,7 @@ "directory": "dist" }, "dependencies": { - "@graphql-tools/schema": "^7.0.0", + "@graphql-tools/schema": "^8.0.0", "tslib": "~2.3.0" } } diff --git a/packages/jest-transform/CHANGELOG.md b/packages/jest-transform/CHANGELOG.md new file mode 100644 index 00000000000..1996c8a1892 --- /dev/null +++ b/packages/jest-transform/CHANGELOG.md @@ -0,0 +1,11 @@ +# @graphql-tools/jest-transform + +## 1.0.0 +### Major Changes + +- 5a4d198b: new jest transform + +### Patch Changes + +- Updated dependencies [5a4d198b] + - @graphql-tools/webpack-loader@6.5.0 diff --git a/packages/jest-transform/package.json b/packages/jest-transform/package.json index 196f1023329..767b71307f3 100644 --- a/packages/jest-transform/package.json +++ b/packages/jest-transform/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/jest-transform", - "version": "0.0.0", + "version": "1.0.0", "description": "Jest Plugin to load and parse imported GraphQL files", "repository": { "type": "git", @@ -32,7 +32,7 @@ "input": "./src/index.ts" }, "dependencies": { - "@graphql-tools/webpack-loader": "^6.4.0", + "@graphql-tools/webpack-loader": "^6.5.0", "@jest/transform": "^27.0.2", "@jest/types": "^27.0.2", "tslib": "~2.3.0" diff --git a/packages/links/CHANGELOG.md b/packages/links/CHANGELOG.md index 3894f139c54..c894e9a68a2 100644 --- a/packages/links/CHANGELOG.md +++ b/packages/links/CHANGELOG.md @@ -1,5 +1,73 @@ # @graphql-tools/links +## 8.0.0 + +### Major Changes + +- dae6dc7b: refactor: ExecutionParams type replaced by Request type + + rootValue property is now a part of the Request type. + + When delegating with delegateToSchema, rootValue can be set multiple ways: + + - when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. + - when using the default executor (execute/subscribe from graphql-js): + -- rootValue can be passed to delegateToSchema via a named option + -- rootValue can be included within a subschemaConfig + -- otherwise, rootValue is inferred from the originating schema + + When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. + +- c42e811d: BREAKING CHANGES; + + - Rename `Request` to `ExecutionRequest` + - Add required `operationType: OperationTypeNode` field in `ExecutionRequest` + - Add `context` in `createRequest` and `createRequestInfo` instead of `delegateToSchema` + + > It doesn't rely on info.operation.operationType to allow the user to call an operation from different root type. + > And it doesn't call getOperationAST again and again to get operation type from the document/operation because we have it in Request and ExecutionParams + > https://github.com/ardatan/graphql-tools/pull/3166/files#diff-d4824895ea613dcc1f710c3ac82e952fe0ca12391b671f70d9f2d90d5656fdceR38 + + Improvements; + + - Memoize `defaultExecutor` for a single `GraphQLSchema` so allow `getBatchingExecutor` to memoize `batchingExecutor` correctly. + - And there is no different `defaultExecutor` is created for `subscription` and other operation types. Only one executor is used. + + > Batch executor is memoized by `executor` reference but `createDefaultExecutor` didn't memoize the default executor so this memoization wasn't working correctly on `batch-execute` side. + > https://github.com/ardatan/graphql-tools/blob/remove-info-executor/packages/batch-execute/src/getBatchingExecutor.ts#L9 + +- c0ca3190: BREAKING CHANGE + - Remove Subscriber and use only Executor + - - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries + +### Minor Changes + +- 7d3e3006: feat(links): Respect operationName + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [7d3e3006] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [d53e3be5] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [aa43054d] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/delegate@8.0.0 + ## 7.1.0 ### Minor Changes diff --git a/packages/links/package.json b/packages/links/package.json index fe19fba0cb0..76383a69833 100644 --- a/packages/links/package.json +++ b/packages/links/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/links", - "version": "7.1.0", + "version": "8.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -45,8 +45,8 @@ "graphql-upload": "12.0.0" }, "dependencies": { - "@graphql-tools/delegate": "^7.1.0", - "@graphql-tools/utils": "^7.7.0", + "@graphql-tools/delegate": "^8.0.0", + "@graphql-tools/utils": "^8.0.0", "apollo-upload-client": "16.0.0", "cross-fetch": "3.1.4", "form-data": "4.0.0", diff --git a/packages/load/CHANGELOG.md b/packages/load/CHANGELOG.md index 7dc11b88e03..ca541dd5731 100644 --- a/packages/load/CHANGELOG.md +++ b/packages/load/CHANGELOG.md @@ -1,5 +1,40 @@ # @graphql-tools/load +## 7.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +### Patch Changes + +- c5342de7: Loader.canLoad and Loader.canLoadSync can only handle file paths not glob patterns +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [a31f9593] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/merge@6.2.15 + ## 6.2.8 ### Patch Changes diff --git a/packages/load/package.json b/packages/load/package.json index 86c747f81dd..96050869842 100644 --- a/packages/load/package.json +++ b/packages/load/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/load", - "version": "6.2.8", + "version": "7.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -34,8 +34,8 @@ "graphql-type-json": "0.3.2" }, "dependencies": { - "@graphql-tools/utils": "^7.5.0", - "@graphql-tools/merge": "^6.2.12", + "@graphql-tools/utils": "^8.0.0", + "@graphql-tools/merge": "^6.2.15", "import-from": "4.0.0", "p-limit": "3.1.0", "tslib": "~2.3.0" diff --git a/packages/loaders/apollo-engine/CHANGELOG.md b/packages/loaders/apollo-engine/CHANGELOG.md index 10dbe1a1228..0c0ad0aa6ce 100644 --- a/packages/loaders/apollo-engine/CHANGELOG.md +++ b/packages/loaders/apollo-engine/CHANGELOG.md @@ -1,5 +1,50 @@ # @graphql-tools/apollo-engine-loader +## 7.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +- 7d3e3006: BREAKING CHANGE + - Now it uses the native [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) implementation. The major difference is the individual errors are kept under `errors` property instead of the object itself with `Symbol.iterator`. + ```js + // From; + for (const error of aggregateError) + // To; + for (const error of aggregateError.errors) + ``` + +### Minor Changes + +- a31f9593: feat(apollo-engine): add sync support + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + ## 6.2.5 ### Patch Changes diff --git a/packages/loaders/apollo-engine/package.json b/packages/loaders/apollo-engine/package.json index 3382d69b11d..c643a4c95cd 100644 --- a/packages/loaders/apollo-engine/package.json +++ b/packages/loaders/apollo-engine/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/apollo-engine-loader", - "version": "6.2.5", + "version": "7.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -30,7 +30,7 @@ "graphql": "^14.0.0 || ^15.0.0" }, "dependencies": { - "@graphql-tools/utils": "^7.10.0", + "@graphql-tools/utils": "^8.0.0", "cross-fetch": "3.1.4", "tslib": "~2.3.0", "sync-fetch": "0.3.0" diff --git a/packages/loaders/code-file/CHANGELOG.md b/packages/loaders/code-file/CHANGELOG.md index 912d20b39f5..e3a2f96ec83 100644 --- a/packages/loaders/code-file/CHANGELOG.md +++ b/packages/loaders/code-file/CHANGELOG.md @@ -1,5 +1,48 @@ # @graphql-tools/code-file-loader +## 7.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +- c5342de7: Loader.canLoad and Loader.canLoadSync can only handle file paths not glob patterns + +### Minor Changes + +- af9a78de: include rawSDL in Source of plucked files +- bbb5746f: allow supplying config via constructor + +### Patch Changes + +- a31f9593: enhance(code-file-loader): remove extra work on loader level +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [f1d7b3c2] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [34c31de0] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/graphql-tag-pluck@7.0.0 + ## 6.3.1 ### Patch Changes diff --git a/packages/loaders/code-file/package.json b/packages/loaders/code-file/package.json index 160ece71648..2f847498483 100644 --- a/packages/loaders/code-file/package.json +++ b/packages/loaders/code-file/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/code-file-loader", - "version": "6.3.1", + "version": "7.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -33,8 +33,8 @@ "graphql": "^14.0.0 || ^15.0.0" }, "dependencies": { - "@graphql-tools/utils": "^7.0.0", - "@graphql-tools/graphql-tag-pluck": "^6.5.1", + "@graphql-tools/utils": "^8.0.0", + "@graphql-tools/graphql-tag-pluck": "^7.0.0", "globby": "^11.0.3", "is-glob": "^4.0.1", "tslib": "~2.3.0", diff --git a/packages/loaders/git/CHANGELOG.md b/packages/loaders/git/CHANGELOG.md index 6c12a29ca4b..ac60084d99c 100644 --- a/packages/loaders/git/CHANGELOG.md +++ b/packages/loaders/git/CHANGELOG.md @@ -1,5 +1,46 @@ # @graphql-tools/git-loader +## 7.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +- c5342de7: Loader.canLoad and Loader.canLoadSync can only handle file paths not glob patterns + +### Minor Changes + +- 67cf1504: feat(git-loader): add glob support + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [f1d7b3c2] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [34c31de0] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/graphql-tag-pluck@7.0.0 + ## 6.2.6 ### Patch Changes diff --git a/packages/loaders/git/package.json b/packages/loaders/git/package.json index e6d102acbfb..f6f0faa0a12 100644 --- a/packages/loaders/git/package.json +++ b/packages/loaders/git/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/git-loader", - "version": "6.2.6", + "version": "7.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -30,8 +30,8 @@ "graphql": "^14.0.0 || ^15.0.0" }, "dependencies": { - "@graphql-tools/graphql-tag-pluck": "^6.2.6", - "@graphql-tools/utils": "^7.0.0", + "@graphql-tools/graphql-tag-pluck": "^7.0.0", + "@graphql-tools/utils": "^8.0.0", "is-glob": "4.0.1", "micromatch": "^4.0.4", "tslib": "~2.3.0", diff --git a/packages/loaders/github/CHANGELOG.md b/packages/loaders/github/CHANGELOG.md index b257aaf36df..9f9a17e0f88 100644 --- a/packages/loaders/github/CHANGELOG.md +++ b/packages/loaders/github/CHANGELOG.md @@ -1,5 +1,44 @@ # @graphql-tools/github-loader +## 7.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +### Minor Changes + +- a31f9593: feat(github-loader): handle SDL correctly on loader level + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [f1d7b3c2] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [34c31de0] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/graphql-tag-pluck@7.0.0 + ## 6.2.5 ### Patch Changes diff --git a/packages/loaders/github/package.json b/packages/loaders/github/package.json index 5fc93033e48..3d225b3ace3 100644 --- a/packages/loaders/github/package.json +++ b/packages/loaders/github/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/github-loader", - "version": "6.2.5", + "version": "7.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -30,8 +30,8 @@ "graphql": "^14.0.0 || ^15.0.0" }, "dependencies": { - "@graphql-tools/utils": "^7.0.0", - "@graphql-tools/graphql-tag-pluck": "^6.2.6", + "@graphql-tools/utils": "^8.0.0", + "@graphql-tools/graphql-tag-pluck": "^7.0.0", "cross-fetch": "3.1.4", "tslib": "~2.3.0" }, diff --git a/packages/loaders/graphql-file/CHANGELOG.md b/packages/loaders/graphql-file/CHANGELOG.md index a5a862573a4..5e9ea1d8f16 100644 --- a/packages/loaders/graphql-file/CHANGELOG.md +++ b/packages/loaders/graphql-file/CHANGELOG.md @@ -1,5 +1,40 @@ # @graphql-tools/graphql-file-loader +## 7.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +- c5342de7: Loader.canLoad and Loader.canLoadSync can only handle file paths not glob patterns + +### Patch Changes + +- 63e048fd: fix(file-loader): location path must be normalized +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + ## 6.2.7 ### Patch Changes diff --git a/packages/loaders/graphql-file/package.json b/packages/loaders/graphql-file/package.json index cb7b2513ef5..c14ccac9055 100644 --- a/packages/loaders/graphql-file/package.json +++ b/packages/loaders/graphql-file/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/graphql-file-loader", - "version": "6.2.7", + "version": "7.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -37,7 +37,7 @@ }, "dependencies": { "@graphql-tools/import": "^6.2.6", - "@graphql-tools/utils": "^7.0.0", + "@graphql-tools/utils": "^8.0.0", "globby": "^11.0.3", "is-glob": "^4.0.1", "unixify": "^1.0.0", diff --git a/packages/loaders/json-file/CHANGELOG.md b/packages/loaders/json-file/CHANGELOG.md index 359e7e02bb0..c0347cc43fd 100644 --- a/packages/loaders/json-file/CHANGELOG.md +++ b/packages/loaders/json-file/CHANGELOG.md @@ -1,5 +1,38 @@ # @graphql-tools/json-file-loader +## 7.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +### Patch Changes + +- a31f9593: enhance(json-file-loader): check for path in a safer way +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + ## 6.2.6 ### Patch Changes diff --git a/packages/loaders/json-file/package.json b/packages/loaders/json-file/package.json index 0ac7e7408a4..97371d17e71 100644 --- a/packages/loaders/json-file/package.json +++ b/packages/loaders/json-file/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/json-file-loader", - "version": "6.2.6", + "version": "7.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -30,7 +30,7 @@ "graphql": "^14.0.0 || ^15.0.0" }, "dependencies": { - "@graphql-tools/utils": "^7.0.0", + "@graphql-tools/utils": "^8.0.0", "tslib": "~2.3.0" }, "publishConfig": { diff --git a/packages/loaders/module/CHANGELOG.md b/packages/loaders/module/CHANGELOG.md index 57fcf1998a3..ab0dcbb7da6 100644 --- a/packages/loaders/module/CHANGELOG.md +++ b/packages/loaders/module/CHANGELOG.md @@ -1,5 +1,41 @@ # @graphql-tools/module-loader +## 7.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +### Minor Changes + +- a31f9593: feat(module-loader): check if module exists using FS + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + ## 6.2.7 ### Patch Changes diff --git a/packages/loaders/module/package.json b/packages/loaders/module/package.json index 3023a05f213..271c9e9d8bf 100644 --- a/packages/loaders/module/package.json +++ b/packages/loaders/module/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/module-loader", - "version": "6.2.7", + "version": "7.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -30,7 +30,7 @@ "graphql": "^14.0.0 || ^15.0.0" }, "dependencies": { - "@graphql-tools/utils": "^7.5.0", + "@graphql-tools/utils": "^8.0.0", "tslib": "~2.3.0" }, "publishConfig": { diff --git a/packages/loaders/prisma/CHANGELOG.md b/packages/loaders/prisma/CHANGELOG.md index 782ec91058b..469f9d03151 100644 --- a/packages/loaders/prisma/CHANGELOG.md +++ b/packages/loaders/prisma/CHANGELOG.md @@ -1,5 +1,32 @@ # @graphql-tools/prisma-loader +## 6.3.1 + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [614c08cc] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [a31f9593] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [fd81e800] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/url-loader@7.0.0 + - @graphql-tools/utils@8.0.0 + ## 6.3.0 ### Minor Changes diff --git a/packages/loaders/prisma/package.json b/packages/loaders/prisma/package.json index 47fc5c5e654..b8836a4baeb 100644 --- a/packages/loaders/prisma/package.json +++ b/packages/loaders/prisma/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/prisma-loader", - "version": "6.3.0", + "version": "6.3.1", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -30,8 +30,8 @@ "graphql": "^14.0.0 || ^15.0.0" }, "dependencies": { - "@graphql-tools/url-loader": "^6.8.2", - "@graphql-tools/utils": "^7.0.0", + "@graphql-tools/url-loader": "^7.0.0", + "@graphql-tools/utils": "^8.0.0", "@types/js-yaml": "^4.0.0", "@types/json-stable-stringify": "^1.0.32", "@types/jsonwebtoken": "^8.5.0", diff --git a/packages/loaders/url/CHANGELOG.md b/packages/loaders/url/CHANGELOG.md index 20c6c01af13..8daf8c86a72 100644 --- a/packages/loaders/url/CHANGELOG.md +++ b/packages/loaders/url/CHANGELOG.md @@ -1,5 +1,79 @@ # @graphql-tools/url-loader +## 7.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +- 614c08cc: BREAKING CHANGE + - Remove `handleSDLAsync` and `handleSDLSync`; use `handleSDL` instead + - Remove `useSSEForSubscription` and `useWebSocketLegacyProtocol`; use `subscriptionProtocol` instead + - If introspection source is different than endpoint, use `endpoint` for remote execution source + - Default HTTP Executor is renamed to `buildHTTPExecutor` with a new signature + - `build*Subscriber` methods are renamed to `buildWSLegacyExecutor`, `buildWSExecutor` and `buildSSEExecutor` with new signatures + - `getFetch` no longer takes `async` flag +- dae6dc7b: refactor: ExecutionParams type replaced by Request type + + rootValue property is now a part of the Request type. + + When delegating with delegateToSchema, rootValue can be set multiple ways: + + - when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. + - when using the default executor (execute/subscribe from graphql-js): + -- rootValue can be passed to delegateToSchema via a named option + -- rootValue can be included within a subschemaConfig + -- otherwise, rootValue is inferred from the originating schema + + When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. + +- c0ca3190: BREAKING CHANGE + - Remove Subscriber and use only Executor + - - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries +- 7d3e3006: BREAKING CHANGE + + - No more accept arrays or functions for `headers` + + NEW FEATURES + + - Respect `operationName` and `extensions` + - Ability to get headers from `extensions.headers` + +### Patch Changes + +- a31f9593: enhance(url-loader): avoid doing extra work on loader level +- fd81e800: fix(url-loader): fix node support for EventSource +- Updated dependencies [af9a78de] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [d53e3be5] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [c0ca3190] +- Updated dependencies [7d3e3006] +- Updated dependencies [aa43054d] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/delegate@8.0.0 + - @graphql-tools/wrap@8.0.0 + ## 6.10.1 ### Patch Changes diff --git a/packages/loaders/url/package.json b/packages/loaders/url/package.json index c0d6e764835..d534b2cf820 100644 --- a/packages/loaders/url/package.json +++ b/packages/loaders/url/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/url-loader", - "version": "6.10.1", + "version": "7.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -43,9 +43,9 @@ "mock-socket": "9.0.3" }, "dependencies": { - "@graphql-tools/delegate": "^7.0.1", - "@graphql-tools/utils": "^7.9.0", - "@graphql-tools/wrap": "^7.0.4", + "@graphql-tools/delegate": "^8.0.0", + "@graphql-tools/utils": "^8.0.0", + "@graphql-tools/wrap": "^8.0.0", "@ardatan/fetch-event-source": "2.0.2", "@n1ru4l/graphql-live-query": "0.7.1", "@types/websocket": "1.0.3", diff --git a/packages/merge/CHANGELOG.md b/packages/merge/CHANGELOG.md index 18b8bf09e73..aa371e2c6ff 100644 --- a/packages/merge/CHANGELOG.md +++ b/packages/merge/CHANGELOG.md @@ -1,5 +1,33 @@ # @graphql-tools/merge +## 6.2.15 + +### Patch Changes + +- a31f9593: fix(merge): handle schema definitions correctly +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [7d3e3006] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [7d3e3006] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/schema@8.0.0 + ## 6.2.14 ### Patch Changes diff --git a/packages/merge/package.json b/packages/merge/package.json index 861424fe5fb..2c68e14cfb7 100644 --- a/packages/merge/package.json +++ b/packages/merge/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/merge", - "version": "6.2.14", + "version": "6.2.15", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -11,8 +11,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -33,8 +33,8 @@ "input": "./src/index.ts" }, "dependencies": { - "@graphql-tools/schema": "^7.0.0", - "@graphql-tools/utils": "^7.7.0", + "@graphql-tools/schema": "^8.0.0", + "@graphql-tools/utils": "^8.0.0", "tslib": "~2.3.0" }, "publishConfig": { diff --git a/packages/mock/CHANGELOG.md b/packages/mock/CHANGELOG.md index 8f1766f808e..ab29d3f0c53 100644 --- a/packages/mock/CHANGELOG.md +++ b/packages/mock/CHANGELOG.md @@ -1,5 +1,35 @@ # @graphql-tools/mock +## 8.1.4 + +### Patch Changes + +- 50be3974: Safer use of Object.prototype.hasOwnProperty #3069 +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [7d3e3006] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [7d3e3006] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [a31f9593] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/schema@8.0.0 + - @graphql-tools/merge@6.2.15 + ## 8.1.3 ### Patch Changes diff --git a/packages/mock/package.json b/packages/mock/package.json index fa16db31983..701b744087f 100644 --- a/packages/mock/package.json +++ b/packages/mock/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/mock", - "version": "8.1.3", + "version": "8.1.4", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -32,9 +32,9 @@ "input": "./src/index.ts" }, "dependencies": { - "@graphql-tools/schema": "^7.0.0", - "@graphql-tools/merge": "6.2.14", - "@graphql-tools/utils": "^7.0.0", + "@graphql-tools/schema": "^8.0.0", + "@graphql-tools/merge": "6.2.15", + "@graphql-tools/utils": "^8.0.0", "fast-json-stable-stringify": "^2.1.0", "ts-is-defined": "^1.0.0", "tslib": "~2.3.0" diff --git a/packages/node-require/CHANGELOG.md b/packages/node-require/CHANGELOG.md index 8ca7bd0c0f4..b1ee2f1940c 100644 --- a/packages/node-require/CHANGELOG.md +++ b/packages/node-require/CHANGELOG.md @@ -1,6 +1,33 @@ # @graphql-tools/node-require +## 6.2.5 + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [63e048fd] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [c5342de7] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/load@7.0.0 + - @graphql-tools/graphql-file-loader@7.0.0 + - @graphql-tools/utils@8.0.0 + ## 6.2.4 + ### Patch Changes - 533d6d53: Bump all packages to allow adjustments diff --git a/packages/node-require/package.json b/packages/node-require/package.json index b7c5ba56be8..82c84e9e633 100644 --- a/packages/node-require/package.json +++ b/packages/node-require/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/node-require", - "version": "6.2.4", + "version": "6.2.5", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -32,9 +32,9 @@ "input": "./src/index.ts" }, "dependencies": { - "@graphql-tools/load": "^6.2.4", - "@graphql-tools/graphql-file-loader": "^6.2.4", - "@graphql-tools/utils": "^7.10.0", + "@graphql-tools/load": "^7.0.0", + "@graphql-tools/graphql-file-loader": "^7.0.0", + "@graphql-tools/utils": "^8.0.0", "tslib": "~2.3.0" }, "publishConfig": { diff --git a/packages/relay-operation-optimizer/CHANGELOG.md b/packages/relay-operation-optimizer/CHANGELOG.md index 2d7f2a47165..b0ee44f75f4 100644 --- a/packages/relay-operation-optimizer/CHANGELOG.md +++ b/packages/relay-operation-optimizer/CHANGELOG.md @@ -1,5 +1,27 @@ # @graphql-tools/relay-operation-optimizer +## 6.3.1 + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + ## 6.3.0 ### Minor Changes diff --git a/packages/relay-operation-optimizer/package.json b/packages/relay-operation-optimizer/package.json index 6f8e37164f1..cf5cc17d547 100644 --- a/packages/relay-operation-optimizer/package.json +++ b/packages/relay-operation-optimizer/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/relay-operation-optimizer", - "version": "6.3.0", + "version": "6.3.1", "description": "Package for optimizing your GraphQL operations relay style.", "author": { "name": "Laurin Quast", @@ -22,8 +22,8 @@ ], "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -41,7 +41,7 @@ "graphql": "^14.0.0 || ^15.0.0" }, "dependencies": { - "@graphql-tools/utils": "^7.1.0", + "@graphql-tools/utils": "^8.0.0", "relay-compiler": "11.0.2", "tslib": "~2.3.0" }, diff --git a/packages/resolvers-composition/CHANGELOG.md b/packages/resolvers-composition/CHANGELOG.md index 30e9f3ebea6..cdc3eb2d876 100644 --- a/packages/resolvers-composition/CHANGELOG.md +++ b/packages/resolvers-composition/CHANGELOG.md @@ -1,5 +1,32 @@ # @graphql-tools/resolvers-composition +## 6.3.0 + +### Minor Changes + +- 1a812645: Added glob pattern support for composeResolver method + +### Patch Changes + +- 316cc2d3: BugFix: Handle parsing endpoints when there are no mutations #3076 +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + ## 6.2.8 ### Patch Changes diff --git a/packages/resolvers-composition/package.json b/packages/resolvers-composition/package.json index fd419cf1b09..a0feac4b96d 100644 --- a/packages/resolvers-composition/package.json +++ b/packages/resolvers-composition/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/resolvers-composition", - "version": "6.2.8", + "version": "6.3.0", "description": "Common package containing utils and types for GraphQL tools", "repository": { "type": "git", @@ -34,7 +34,7 @@ "@types/micromatch": "4.0.2" }, "dependencies": { - "@graphql-tools/utils": "^7.9.1", + "@graphql-tools/utils": "^8.0.0", "lodash": "4.17.21", "micromatch": "^4.0.4", "tslib": "~2.3.0" diff --git a/packages/schema/CHANGELOG.md b/packages/schema/CHANGELOG.md index eb98efddce7..8df737e51f3 100644 --- a/packages/schema/CHANGELOG.md +++ b/packages/schema/CHANGELOG.md @@ -1,5 +1,46 @@ # @graphql-tools/schema +## 8.0.0 + +### Major Changes + +- 7d3e3006: BREAKING CHANGE + - Legacy Schema Directives and Directive Resolvers have been removed + - - You can check the new method for both; + - - - https://www.graphql-tools.com/docs/schema-directives +- 7d3e3006: BREAKING CHANGE + - Remove `logger` and `addErrorLoggingToSchema` + - - You can implement logging and debugging mechanism outside the resolvers using some kind of plugin system based library like [Envelop](https://www.envelop.dev/docs/core#uselogger) +- 7d3e3006: BREAKING CHANGE + - Remove schema level resolvers feature and `addSchemaLevelResolver` + - - You can wrap your resolvers by using [Resolvers Composition](https://www.graphql-tools.com/docs/resolvers-composition) +- 7d3e3006: BREAKING CHANGE + - No longer exports `buildSchemaFromTypeDefinitions`, use `buildSchema` from `graphql-js` instead + - Remove `allowUndefinedResolve` option in `makeExecutableSchema` because GraphQL Schema itself does this checking + +### Patch Changes + +- 7d3e3006: enhance(schema): use merge package to handle typeDefs and resolvers merging +- Updated dependencies [af9a78de] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [a31f9593] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/merge@6.2.15 + ## 7.1.5 ### Patch Changes diff --git a/packages/schema/package.json b/packages/schema/package.json index 85efbcc0a70..db758eb2b62 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/schema", - "version": "7.1.5", + "version": "8.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -35,8 +35,8 @@ "input": "./src/index.ts" }, "dependencies": { - "@graphql-tools/merge": "6.2.14", - "@graphql-tools/utils": "^7.1.2", + "@graphql-tools/merge": "6.2.15", + "@graphql-tools/utils": "^8.0.0", "tslib": "~2.3.0", "value-or-promise": "1.0.10" }, diff --git a/packages/stitch/CHANGELOG.md b/packages/stitch/CHANGELOG.md index 8bdcd025bcb..070a2745d43 100644 --- a/packages/stitch/CHANGELOG.md +++ b/packages/stitch/CHANGELOG.md @@ -1,5 +1,81 @@ # @graphql-tools/stitch +## 8.0.0 + +### Major Changes + +- 7d3e3006: BREAKING CHANGE + - Legacy Schema Directives and Directive Resolvers have been removed + - - You can check the new method for both; + - - - https://www.graphql-tools.com/docs/schema-directives +- dae6dc7b: refactor: ExecutionParams type replaced by Request type + + rootValue property is now a part of the Request type. + + When delegating with delegateToSchema, rootValue can be set multiple ways: + + - when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. + - when using the default executor (execute/subscribe from graphql-js): + -- rootValue can be passed to delegateToSchema via a named option + -- rootValue can be included within a subschemaConfig + -- otherwise, rootValue is inferred from the originating schema + + When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. + +- 74581cf3: fix(getDirectives): preserve order around repeatable directives + + BREAKING CHANGE: getDirectives now always return an array of individual DirectiveAnnotation objects consisting of `name` and `args` properties. + + New useful function `getDirective` returns an array of objects representing any args for each use of a single directive (returning the empty object `{}` when a directive is used without arguments). + + Note: The `getDirective` function returns an array even when the specified directive is non-repeatable. This is because one use of this function is to throw an error if more than one directive annotation is used for a non repeatable directive! + + When specifying directives in extensions, one can use either the old or new format. + +- c0ca3190: BREAKING CHANGE + - Remove Subscriber and use only Executor + - - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries + +### Minor Changes + +- 1b0ce2ae: @ardatanfeat(stitch): add helpers for Relay + +### Patch Changes + +- 91155ab6: Fixed issue with stitchSchemas function returning info object with left.subschema and right.subschema referencing the same object +- Updated dependencies [af9a78de] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [d53e3be5] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [7d3e3006] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [c0ca3190] +- Updated dependencies [7d3e3006] +- Updated dependencies [aa43054d] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [7d3e3006] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [a31f9593] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/delegate@8.0.0 + - @graphql-tools/wrap@8.0.0 + - @graphql-tools/schema@8.0.0 + - @graphql-tools/batch-delegate@8.0.0 + - @graphql-tools/merge@6.2.15 + ## 7.5.3 ### Patch Changes diff --git a/packages/stitch/package.json b/packages/stitch/package.json index a6c87b7908e..44157215069 100644 --- a/packages/stitch/package.json +++ b/packages/stitch/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/stitch", - "version": "7.5.3", + "version": "8.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -37,12 +37,12 @@ "value-or-promise": "1.0.10" }, "dependencies": { - "@graphql-tools/batch-delegate": "^7.0.0", - "@graphql-tools/delegate": "^7.1.4", - "@graphql-tools/merge": "^6.2.11", - "@graphql-tools/schema": "^7.1.4", - "@graphql-tools/utils": "^7.7.0", - "@graphql-tools/wrap": "^7.0.6", + "@graphql-tools/batch-delegate": "^8.0.0", + "@graphql-tools/delegate": "^8.0.0", + "@graphql-tools/merge": "^6.2.15", + "@graphql-tools/schema": "^8.0.0", + "@graphql-tools/utils": "^8.0.0", + "@graphql-tools/wrap": "^8.0.0", "tslib": "~2.3.0" }, "publishConfig": { diff --git a/packages/stitching-directives/CHANGELOG.md b/packages/stitching-directives/CHANGELOG.md index 9579b9fe022..de4ba508c1e 100644 --- a/packages/stitching-directives/CHANGELOG.md +++ b/packages/stitching-directives/CHANGELOG.md @@ -1,5 +1,47 @@ # @graphql-tools/stitching-directives +## 2.0.0 + +### Major Changes + +- 74581cf3: fix(getDirectives): preserve order around repeatable directives + + BREAKING CHANGE: getDirectives now always return an array of individual DirectiveAnnotation objects consisting of `name` and `args` properties. + + New useful function `getDirective` returns an array of objects representing any args for each use of a single directive (returning the empty object `{}` when a directive is used without arguments). + + Note: The `getDirective` function returns an array even when the specified directive is non-repeatable. This is because one use of this function is to throw an error if more than one directive annotation is used for a non repeatable directive! + + When specifying directives in extensions, one can use either the old or new format. + +### Minor Changes + +- 70cd65eb: feat(stitching-directives): move federation-to-stitching-sdl + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [7d3e3006] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [d53e3be5] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [aa43054d] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/delegate@8.0.0 + ## 1.3.3 ### Patch Changes diff --git a/packages/stitching-directives/package.json b/packages/stitching-directives/package.json index f97bec08764..09e8c73001a 100644 --- a/packages/stitching-directives/package.json +++ b/packages/stitching-directives/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/stitching-directives", - "version": "1.3.3", + "version": "2.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -32,12 +32,12 @@ "input": "./src/index.ts" }, "dependencies": { - "@graphql-tools/delegate": "^7.1.5", - "@graphql-tools/utils": "^7.2.4", + "@graphql-tools/delegate": "^8.0.0", + "@graphql-tools/utils": "^8.0.0", "tslib": "~2.3.0" }, "devDependencies": { - "@graphql-tools/schema": "7.1.5" + "@graphql-tools/schema": "8.0.0" }, "publishConfig": { "access": "public", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index d6718324eed..df46d6bd17e 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,100 @@ # @graphql-tools/utils +## 8.0.0 + +### Major Changes + +- af9a78de: BREAKING CHANGE + + - Now each loader handles glob patterns internally and returns an array of `Source` object instead of single `Source` + + - GraphQL Tag Pluck now respects code locations and returns graphql-js `Source` objects for each found code block + + - Thanks to the one above, `CodeFileLoader` now returns different `Source` objects for each found SDL code block. + +- 7d3e3006: BREAKING CHANGE + - Remove `fieldToFieldConfig`, `argsToFieldConfigArgument` and `argumentToArgumentConfig` + - - You can use `.toConfig` method instead for each. +- 7d3e3006: BREAKING CHANGE + - Legacy Schema Directives and Directive Resolvers have been removed + - - You can check the new method for both; + - - - https://www.graphql-tools.com/docs/schema-directives +- dae6dc7b: refactor: ExecutionParams type replaced by Request type + + rootValue property is now a part of the Request type. + + When delegating with delegateToSchema, rootValue can be set multiple ways: + + - when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. + - when using the default executor (execute/subscribe from graphql-js): + -- rootValue can be passed to delegateToSchema via a named option + -- rootValue can be included within a subschemaConfig + -- otherwise, rootValue is inferred from the originating schema + + When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. + +- 6877b913: BREAKING CHANGES; + + `mergeDeep` now takes an array of sources instead of set of parameters as input and it takes an additional flag to enable prototype merging + Instead of `mergeDeep(...sources)` => `mergeDeep(sources)` + +- c42e811d: BREAKING CHANGES; + + - Rename `Request` to `ExecutionRequest` + - Add required `operationType: OperationTypeNode` field in `ExecutionRequest` + - Add `context` in `createRequest` and `createRequestInfo` instead of `delegateToSchema` + + > It doesn't rely on info.operation.operationType to allow the user to call an operation from different root type. + > And it doesn't call getOperationAST again and again to get operation type from the document/operation because we have it in Request and ExecutionParams + > https://github.com/ardatan/graphql-tools/pull/3166/files#diff-d4824895ea613dcc1f710c3ac82e952fe0ca12391b671f70d9f2d90d5656fdceR38 + + Improvements; + + - Memoize `defaultExecutor` for a single `GraphQLSchema` so allow `getBatchingExecutor` to memoize `batchingExecutor` correctly. + - And there is no different `defaultExecutor` is created for `subscription` and other operation types. Only one executor is used. + + > Batch executor is memoized by `executor` reference but `createDefaultExecutor` didn't memoize the default executor so this memoization wasn't working correctly on `batch-execute` side. + > https://github.com/ardatan/graphql-tools/blob/remove-info-executor/packages/batch-execute/src/getBatchingExecutor.ts#L9 + +- 7d3e3006: BREAKING CHANGE + - Now it uses the native [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) implementation. The major difference is the individual errors are kept under `errors` property instead of the object itself with `Symbol.iterator`. + ```js + // From; + for (const error of aggregateError) + // To; + for (const error of aggregateError.errors) + ``` +- 8c8d4fc0: BREAKING CHANGE: remove cloneSchema +- 7d3e3006: BREAKING CHANGE + - No longer exports `debugLog` but uses `console.log` directly only if `DEBUG` is available under `process.env` +- 7d3e3006: BREAKING CHANGE + - No longer applies `camelCase` naming convention in `buildOperationNodeForField` +- 74581cf3: fix(getDirectives): preserve order around repeatable directives + + BREAKING CHANGE: getDirectives now always return an array of individual DirectiveAnnotation objects consisting of `name` and `args` properties. + + New useful function `getDirective` returns an array of objects representing any args for each use of a single directive (returning the empty object `{}` when a directive is used without arguments). + + Note: The `getDirective` function returns an array even when the specified directive is non-repeatable. This is because one use of this function is to throw an error if more than one directive annotation is used for a non repeatable directive! + + When specifying directives in extensions, one can use either the old or new format. + +- c0ca3190: BREAKING CHANGE + - Remove Subscriber and use only Executor + - - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries +- 7d3e3006: BREAKING CHANGE + - No longer exports `SchemaVisitor`, `visitSchema` and `VisitSchemaKind` + - - Use [`mapSchema`](https://www.graphql-tools.com/docs/schema-directives/#full-mapschema-api) instead + +### Minor Changes + +- 9c26b847: enhance(loaders): remove optional methods from the Loader interface +- 7d3e3006: feat(utils): Respect operationName and rootValue in ExecutionParams + +### Patch Changes + +- 982c8f53: enhance(utils): refactor, cleanup and remove extra work + ## 7.10.0 ### Minor Changes diff --git a/packages/utils/package.json b/packages/utils/package.json index 52c2341c81c..155826844e4 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/utils", - "version": "7.10.0", + "version": "8.0.0", "description": "Common package containing utils and types for GraphQL tools", "repository": { "type": "git", diff --git a/packages/webpack-loader/CHANGELOG.md b/packages/webpack-loader/CHANGELOG.md index 37016303c6d..612971e2f3d 100644 --- a/packages/webpack-loader/CHANGELOG.md +++ b/packages/webpack-loader/CHANGELOG.md @@ -1,5 +1,11 @@ # @graphql-tools/webpack-loader +## 6.5.0 + +### Minor Changes + +- 5a4d198b: feat(webpack-loader): export Options + ## 6.4.0 ### Minor Changes diff --git a/packages/webpack-loader/package.json b/packages/webpack-loader/package.json index e08f6187e84..aed7908dd21 100644 --- a/packages/webpack-loader/package.json +++ b/packages/webpack-loader/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/webpack-loader", - "version": "6.4.0", + "version": "6.5.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" diff --git a/packages/wrap/CHANGELOG.md b/packages/wrap/CHANGELOG.md index d25e9269174..dd8d1e26ad0 100644 --- a/packages/wrap/CHANGELOG.md +++ b/packages/wrap/CHANGELOG.md @@ -1,5 +1,97 @@ # @graphql-tools/wrap +## 8.0.0 + +### Major Changes + +- 7d3e3006: BREAKING CHANGE + - `makeRemoteExecutableSchema` has been removed. + - - You can use [`wrapSchema`](https://www.graphql-tools.com/docs/remote-schemas#creating-an-executor) instead +- dae6dc7b: refactor: ExecutionParams type replaced by Request type + + rootValue property is now a part of the Request type. + + When delegating with delegateToSchema, rootValue can be set multiple ways: + + - when using a custom executor, the custom executor can utilize a rootValue in whichever custom way it specifies. + - when using the default executor (execute/subscribe from graphql-js): + -- rootValue can be passed to delegateToSchema via a named option + -- rootValue can be included within a subschemaConfig + -- otherwise, rootValue is inferred from the originating schema + + When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver function which can pass whatever rootValue it wants to delegateToSchema as above. + +- c42e811d: BREAKING CHANGES; + + - Rename `Request` to `ExecutionRequest` + - Add required `operationType: OperationTypeNode` field in `ExecutionRequest` + - Add `context` in `createRequest` and `createRequestInfo` instead of `delegateToSchema` + + > It doesn't rely on info.operation.operationType to allow the user to call an operation from different root type. + > And it doesn't call getOperationAST again and again to get operation type from the document/operation because we have it in Request and ExecutionParams + > https://github.com/ardatan/graphql-tools/pull/3166/files#diff-d4824895ea613dcc1f710c3ac82e952fe0ca12391b671f70d9f2d90d5656fdceR38 + + Improvements; + + - Memoize `defaultExecutor` for a single `GraphQLSchema` so allow `getBatchingExecutor` to memoize `batchingExecutor` correctly. + - And there is no different `defaultExecutor` is created for `subscription` and other operation types. Only one executor is used. + + > Batch executor is memoized by `executor` reference but `createDefaultExecutor` didn't memoize the default executor so this memoization wasn't working correctly on `batch-execute` side. + > https://github.com/ardatan/graphql-tools/blob/remove-info-executor/packages/batch-execute/src/getBatchingExecutor.ts#L9 + +- 7d3e3006: BREAKING CHANGE + - Now it uses the native [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) implementation. The major difference is the individual errors are kept under `errors` property instead of the object itself with `Symbol.iterator`. + ```js + // From; + for (const error of aggregateError) + // To; + for (const error of aggregateError.errors) + ``` +- c0ca3190: BREAKING CHANGE + - Remove unnecessary `introspectSchemaSync`, `introspectSchema` already handles sync execution +- 74581cf3: fix(getDirectives): preserve order around repeatable directives + + BREAKING CHANGE: getDirectives now always return an array of individual DirectiveAnnotation objects consisting of `name` and `args` properties. + + New useful function `getDirective` returns an array of objects representing any args for each use of a single directive (returning the empty object `{}` when a directive is used without arguments). + + Note: The `getDirective` function returns an array even when the specified directive is non-repeatable. This is because one use of this function is to throw an error if more than one directive annotation is used for a non repeatable directive! + + When specifying directives in extensions, one can use either the old or new format. + +- c0ca3190: BREAKING CHANGE + - Remove Subscriber and use only Executor + - - Now `Executor` can receive `AsyncIterable` and subscriptions will also be handled by `Executor`. This is a future-proof change for defer, stream and live queries + +### Patch Changes + +- Updated dependencies [af9a78de] +- Updated dependencies [7d3e3006] +- Updated dependencies [9c26b847] +- Updated dependencies [7d3e3006] +- Updated dependencies [d53e3be5] +- Updated dependencies [7d3e3006] +- Updated dependencies [dae6dc7b] +- Updated dependencies [6877b913] +- Updated dependencies [7d3e3006] +- Updated dependencies [c42e811d] +- Updated dependencies [7d3e3006] +- Updated dependencies [8c8d4fc0] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [aa43054d] +- Updated dependencies [7d3e3006] +- Updated dependencies [74581cf3] +- Updated dependencies [c0ca3190] +- Updated dependencies [7d3e3006] +- Updated dependencies [982c8f53] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] +- Updated dependencies [7d3e3006] + - @graphql-tools/utils@8.0.0 + - @graphql-tools/delegate@8.0.0 + - @graphql-tools/schema@8.0.0 + ## 7.0.8 ### Patch Changes diff --git a/packages/wrap/package.json b/packages/wrap/package.json index 513c1df580e..b26f1a89474 100644 --- a/packages/wrap/package.json +++ b/packages/wrap/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-tools/wrap", - "version": "7.0.8", + "version": "8.0.0", "description": "A set of utils for faster development of GraphQL tools", "repository": { "type": "git", @@ -10,8 +10,8 @@ "license": "MIT", "sideEffects": false, "main": "dist/index.js", - "module": "dist/index.mjs", - "exports": { + "module": "dist/index.mjs", + "exports": { ".": { "require": "./dist/index.js", "import": "./dist/index.mjs" @@ -35,9 +35,9 @@ "is-promise": "4.0.0" }, "dependencies": { - "@graphql-tools/delegate": "^7.1.5", - "@graphql-tools/schema": "^7.1.5", - "@graphql-tools/utils": "^7.8.1", + "@graphql-tools/delegate": "^8.0.0", + "@graphql-tools/schema": "^8.0.0", + "@graphql-tools/utils": "^8.0.0", "tslib": "~2.3.0", "value-or-promise": "1.0.10" },