Skip to content

Commit

Permalink
Merge branch 'master' of github.com:apollographql/graphql-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jun 2, 2020
2 parents a390979 + 670cd04 commit b6941f6
Show file tree
Hide file tree
Showing 44 changed files with 433 additions and 151 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

### Next

- Fix visitEnumValue to allow modifying the enum value <br/>
- Fix visitEnumValue to allow modifying the enum value <br/>
[@danielrearden](https://github.com/danielrearden) in [#1003](https://github.com/ardatan/graphql-tools/pull/1391)
- Export `generateProxyingResolvers` from `@graphql-tools/wrap`.
- Fix `stitchSchemas` from `@graphql-tools/stitch` from the case there the typeDefs array is empty. [#1575](https://github.com/ardatan/graphql-tools/pull/1575)

### 5.0.0

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphql-tools-monorepo",
"version": "6.0.5",
"version": "6.0.6",
"description": "Useful tools to create and manipulate GraphQL schemas.",
"private": true,
"scripts": {
Expand Down Expand Up @@ -43,8 +43,8 @@
"jest": "26.0.1",
"ts-jest": "26.1.0",
"typescript": "3.9.3",
"@typescript-eslint/eslint-plugin": "3.0.2",
"@typescript-eslint/parser": "3.0.2",
"@typescript-eslint/eslint-plugin": "3.1.0",
"@typescript-eslint/parser": "3.1.0",
"bob-the-bundler": "1.0.2",
"eslint": "7.1.0",
"eslint-config-prettier": "6.11.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/delegate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/delegate",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"license": "MIT",
Expand All @@ -18,8 +18,8 @@
"input": "./src/index.ts"
},
"dependencies": {
"@graphql-tools/schema": "6.0.5",
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/schema": "6.0.6",
"@graphql-tools/utils": "6.0.6",
"tslib": "~2.0.0"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/delegate/src/results/handleNull.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GraphQLError } from 'graphql';

import { getErrorsByPathSegment, CombinedError } from '@graphql-tools/utils';
import { getErrorsByPathSegment, CombinedError, relocatedError } from '@graphql-tools/utils';

export function handleNull(errors: ReadonlyArray<GraphQLError>) {
if (errors.length) {
Expand All @@ -10,7 +10,7 @@ export function handleNull(errors: ReadonlyArray<GraphQLError>) {
return combinedError;
}
const error = errors[0];
return error.originalError || error;
return error.originalError || relocatedError(error, null);
} else if (errors.some(error => typeof error.path[1] === 'string')) {
const childErrors = getErrorsByPathSegment(errors);

Expand Down
6 changes: 3 additions & 3 deletions packages/graphql-tag-pluck/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/graphql-tag-pluck",
"version": "6.0.5",
"version": "6.0.6",
"description": "Pluck graphql-tag template literals",
"license": "MIT",
"repository": "git@github.com:ardatan/graphql-tools.git",
Expand All @@ -18,13 +18,13 @@
"@babel/parser": "7.10.2",
"@babel/traverse": "7.10.1",
"@babel/types": "7.10.2",
"@graphql-tools/utils": "6.0.5"
"@graphql-tools/utils": "6.0.6"
},
"optionalDependencies": {
"vue-template-compiler": "^2.6.11"
},
"devDependencies": {
"@types/babel__traverse": "7.0.11",
"@types/babel__traverse": "7.0.12",
"vue-template-compiler": "2.6.11"
},
"publishConfig": {
Expand Down
44 changes: 22 additions & 22 deletions packages/graphql-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphql-tools",
"version": "6.0.5",
"version": "6.0.6",
"description": "Useful tools to create and manipulate GraphQL schemas.",
"repository": "git@github.com:ardatan/graphql-tools.git",
"license": "MIT",
Expand All @@ -19,26 +19,26 @@
"directory": "dist"
},
"dependencies": {
"@graphql-tools/delegate": "6.0.5",
"@graphql-tools/graphql-tag-pluck": "6.0.5",
"@graphql-tools/import": "6.0.5",
"@graphql-tools/links": "6.0.5",
"@graphql-tools/load": "6.0.5",
"@graphql-tools/code-file-loader": "6.0.5",
"@graphql-tools/git-loader": "6.0.5",
"@graphql-tools/github-loader": "6.0.5",
"@graphql-tools/graphql-file-loader": "6.0.5",
"@graphql-tools/json-file-loader": "6.0.5",
"@graphql-tools/module-loader": "6.0.5",
"@graphql-tools/url-loader": "6.0.5",
"@graphql-tools/load-files": "6.0.5",
"@graphql-tools/merge": "6.0.5",
"@graphql-tools/mock": "6.0.5",
"@graphql-tools/relay-operation-optimizer": "6.0.5",
"@graphql-tools/resolvers-composition": "6.0.5",
"@graphql-tools/schema": "6.0.5",
"@graphql-tools/stitch": "6.0.5",
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/wrap": "6.0.5"
"@graphql-tools/delegate": "6.0.6",
"@graphql-tools/graphql-tag-pluck": "6.0.6",
"@graphql-tools/import": "6.0.6",
"@graphql-tools/links": "6.0.6",
"@graphql-tools/load": "6.0.6",
"@graphql-tools/code-file-loader": "6.0.6",
"@graphql-tools/git-loader": "6.0.6",
"@graphql-tools/github-loader": "6.0.6",
"@graphql-tools/graphql-file-loader": "6.0.6",
"@graphql-tools/json-file-loader": "6.0.6",
"@graphql-tools/module-loader": "6.0.6",
"@graphql-tools/url-loader": "6.0.6",
"@graphql-tools/load-files": "6.0.6",
"@graphql-tools/merge": "6.0.6",
"@graphql-tools/mock": "6.0.6",
"@graphql-tools/relay-operation-optimizer": "6.0.6",
"@graphql-tools/resolvers-composition": "6.0.6",
"@graphql-tools/schema": "6.0.6",
"@graphql-tools/stitch": "6.0.6",
"@graphql-tools/utils": "6.0.6",
"@graphql-tools/wrap": "6.0.6"
}
}
2 changes: 1 addition & 1 deletion packages/import/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/import",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand Down
4 changes: 2 additions & 2 deletions packages/links/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/links",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"license": "MIT",
Expand All @@ -23,7 +23,7 @@
"graphql-upload": "11.0.0"
},
"dependencies": {
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/utils": "6.0.6",
"apollo-link": "1.2.14",
"apollo-upload-client": "13.0.0",
"form-data": "3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/load-files/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/load-files",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -16,7 +16,7 @@
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"globby": "11.0.0",
"globby": "11.0.1",
"unixify": "1.0.0",
"fs-extra": "9.0.0"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/load/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/load",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -22,9 +22,9 @@
"graphql-type-json": "0.3.1"
},
"dependencies": {
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/merge": "6.0.5",
"globby": "11.0.0",
"@graphql-tools/utils": "6.0.6",
"@graphql-tools/merge": "6.0.6",
"globby": "11.0.1",
"import-from": "3.0.0",
"is-glob": "4.0.1",
"p-limit": "2.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/loaders/apollo-engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/apollo-engine-loader",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -16,7 +16,7 @@
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/utils": "6.0.6",
"cross-fetch": "3.0.4",
"tslib": "~2.0.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/loaders/code-file/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/code-file-loader",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -16,8 +16,8 @@
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/graphql-tag-pluck": "6.0.5",
"@graphql-tools/utils": "6.0.6",
"@graphql-tools/graphql-tag-pluck": "6.0.6",
"fs-extra": "9.0.0",
"tslib": "~2.0.0"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/loaders/git/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/git-loader",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -16,8 +16,8 @@
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/graphql-tag-pluck": "6.0.5",
"@graphql-tools/utils": "6.0.6",
"@graphql-tools/graphql-tag-pluck": "6.0.6",
"simple-git": "2.5.0"
},
"buildOptions": {
Expand Down
6 changes: 3 additions & 3 deletions packages/loaders/github/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/github-loader",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -16,8 +16,8 @@
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/graphql-tag-pluck": "6.0.5",
"@graphql-tools/utils": "6.0.6",
"@graphql-tools/graphql-tag-pluck": "6.0.6",
"cross-fetch": "3.0.4"
},
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/loaders/graphql-file/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/graphql-file-loader",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -19,8 +19,8 @@
"input": "./src/index.ts"
},
"dependencies": {
"@graphql-tools/import": "6.0.5",
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/import": "6.0.6",
"@graphql-tools/utils": "6.0.6",
"fs-extra": "9.0.0",
"tslib": "~2.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/loaders/json-file/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/json-file-loader",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -16,7 +16,7 @@
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/utils": "6.0.6",
"fs-extra": "9.0.0",
"tslib": "~2.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/loaders/module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/module-loader",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -16,7 +16,7 @@
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/utils": "6.0.6",
"tslib": "~2.0.0"
},
"publishConfig": {
Expand Down
6 changes: 3 additions & 3 deletions packages/loaders/prisma/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/prisma-loader",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -16,8 +16,8 @@
"graphql": "^14.0.0 || ^15.0.0"
},
"dependencies": {
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/url-loader": "6.0.5",
"@graphql-tools/utils": "6.0.6",
"@graphql-tools/url-loader": "6.0.6",
"fs-extra": "9.0.0",
"prisma-yml": "1.34.10",
"tslib": "~2.0.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/loaders/url/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/url-loader",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -23,8 +23,8 @@
"supertest": "4.0.2"
},
"dependencies": {
"@graphql-tools/wrap": "6.0.5",
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/wrap": "6.0.6",
"@graphql-tools/utils": "6.0.6",
"@types/websocket": "1.0.0",
"cross-fetch": "3.0.4",
"tslib": "~2.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/merge/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/merge",
"version": "6.0.5",
"version": "6.0.6",
"description": "A set of utils for faster development of GraphQL tools",
"repository": "git@github.com:ardatan/graphql-tools.git",
"author": "Dotan Simha <dotansimha@gmail.com>",
Expand All @@ -19,8 +19,8 @@
"input": "./src/index.ts"
},
"dependencies": {
"@graphql-tools/schema": "6.0.5",
"@graphql-tools/utils": "6.0.5",
"@graphql-tools/schema": "6.0.6",
"@graphql-tools/utils": "6.0.6",
"tslib": "~2.0.0"
},
"publishConfig": {
Expand Down

0 comments on commit b6941f6

Please sign in to comment.