Skip to content

Commit 7a2c8e8

Browse files
authored
Merge pull request #8 from fabsrc/update-packages
Update packages
2 parents 4dc6611 + 53c1284 commit 7a2c8e8

File tree

7 files changed

+1849
-1585
lines changed

7 files changed

+1849
-1585
lines changed

@types/disparity/index.d.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ getDiff(currentSchemaLocation, newSchemaLocation)
7676
## Related Packages
7777

7878
* [GraphQL Inspector](https://github.com/kamilkisiela/graphql-inspector) ouputs a list of changes between two GraphQL schemas.
79-
* [GraphQL Toolkit](https://github.com/ardatan/graphql-toolkit) provides a set of utils for faster development of GraphQL tools.
79+
* [GraphQL Tools](https://github.com/ardatan/graphql-tools) provides a set of utils for faster development of GraphQL tools.

npm-shrinkwrap.json

Lines changed: 1820 additions & 1545 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,29 @@
3232
"url": "https://github.com/fabsrc/graphql-schema-diff"
3333
},
3434
"dependencies": {
35-
"@graphql-toolkit/core": "^0.10.6",
36-
"@graphql-toolkit/graphql-file-loader": "^0.10.6",
37-
"@graphql-toolkit/json-file-loader": "^0.10.6",
38-
"@graphql-toolkit/url-loader": "^0.10.6",
39-
"chalk": "^4.0.0",
40-
"diff2html": "^3.1.7",
41-
"disparity": "^3.0.0",
42-
"fs-extra": "^9.0.0",
43-
"graphql": "^15.0.0",
44-
"meow": "^7.0.1"
35+
"@graphql-tools/graphql-file-loader": "^6.2.4",
36+
"@graphql-tools/json-file-loader": "^6.2.4",
37+
"@graphql-tools/load": "^6.2.4",
38+
"@graphql-tools/url-loader": "^6.3.0",
39+
"chalk": "^4.1.0",
40+
"diff2html": "^3.1.13",
41+
"disparity": "^3.1.0",
42+
"fs-extra": "^9.0.1",
43+
"graphql": "^15.3.0",
44+
"meow": "^7.1.1"
4545
},
4646
"devDependencies": {
47-
"@types/fs-extra": "^9.0.0",
47+
"@types/fs-extra": "^9.0.1",
4848
"@types/hogan.js": "^3.0.0",
49-
"@types/jest": "^25.2.2",
49+
"@types/jest": "^26.0.14",
5050
"@types/meow": "^5.0.0",
51-
"@types/node": "^14.0.1",
52-
"jest": "^26.0.1",
53-
"nock": "^12.0.3",
54-
"prettier": "^2.0.5",
55-
"ts-jest": "^26.0.0",
56-
"ts-node": "^8.10.1",
57-
"typescript": "^3.9.2"
51+
"@types/node": "^14.11.8",
52+
"jest": "^26.5.2",
53+
"nock": "^13.0.4",
54+
"prettier": "^2.1.2",
55+
"ts-jest": "^26.4.1",
56+
"ts-node": "^9.0.0",
57+
"typescript": "^4.0.3"
5858
},
5959
"engines": {
6060
"node": ">= 10"

src/__tests__/diff.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ describe("getDiff", () => {
88
describe("remote schema fetching", () => {
99
const testRemoteSchemaLocation = "http://test/graphql";
1010
const introspectionQueryBody = JSON.stringify({
11-
query: print(parse(getIntrospectionQuery({ descriptions: false }))),
12-
variables: {},
13-
operationName: "IntrospectionQuery",
11+
query: print(parse(getIntrospectionQuery({ descriptions: false })))
1412
});
1513

1614
it("fetches remote schema successfully", async () => {
@@ -118,7 +116,7 @@ describe("getDiff", () => {
118116

119117
return expect(
120118
getDiff(testRemoteSchemaLocation, testRemoteSchemaLocation)
121-
).rejects.toThrow(/Unable to download schema from remote/);
119+
).rejects.toThrow(/Could not obtain introspection result/);
122120
});
123121

124122
it("throws error on invalid response", () => {
@@ -129,7 +127,7 @@ describe("getDiff", () => {
129127

130128
return expect(
131129
getDiff(testRemoteSchemaLocation, testRemoteSchemaLocation)
132-
).rejects.toThrow(/Unable to download schema from remote/);
130+
).rejects.toThrow(/Could not obtain introspection result/);
133131
});
134132

135133
afterEach(() => {

src/diff.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import {
77
} from "graphql";
88
import { lexicographicSortSchema } from "graphql/utilities";
99
import disparity from "disparity";
10-
import { loadSchema } from "@graphql-toolkit/core";
11-
import { UrlLoader } from "@graphql-toolkit/url-loader";
12-
import { JsonFileLoader } from "@graphql-toolkit/json-file-loader";
13-
import { GraphQLFileLoader } from "@graphql-toolkit/graphql-file-loader";
10+
import { loadSchema } from "@graphql-tools/load";
11+
import { UrlLoader } from "@graphql-tools/url-loader";
12+
import { JsonFileLoader } from "@graphql-tools/json-file-loader";
13+
import { GraphQLFileLoader } from "@graphql-tools/graphql-file-loader";
1414

1515
export type Headers = Record<string, string>;
1616

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
3+
"target": "ES2019",
44
"module": "commonjs",
55
"rootDir": "./src",
66
"outDir": "./dist",
77
"strict": true,
8-
"typeRoots" : ["./node_modules/@types", "./@types"],
8+
"typeRoots": ["./node_modules/@types", "./@types"],
99
"esModuleInterop": true,
1010
"resolveJsonModule": true,
1111
"declaration": true,

0 commit comments

Comments
 (0)