Skip to content

Commit

Permalink
fix(deps): update all non-major dependencies (#4403)
Browse files Browse the repository at this point in the history
* fix(deps): update all non-major dependencies

* Fix tests

* ..

* ..

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
  • Loading branch information
3 people committed Apr 16, 2022
1 parent 386c7fa commit b2bd27c
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 24 deletions.
2 changes: 1 addition & 1 deletion packages/loaders/apollo-engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"@graphql-tools/utils": "8.6.8",
"cross-undici-fetch": "^0.2.4",
"cross-undici-fetch": "^0.3.0",
"tslib": "~2.3.0",
"sync-fetch": "0.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@graphql-tools/utils": "8.6.8",
"@graphql-tools/graphql-tag-pluck": "7.2.5",
"cross-undici-fetch": "^0.2.4",
"cross-undici-fetch": "^0.3.0",
"sync-fetch": "0.3.1",
"tslib": "~2.3.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/loaders/url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"express": "4.17.3",
"express-graphql": "0.12.0",
"graphql-upload": "13.0.0",
"graphql-sse": "^1.0.1",
"graphql-sse": "1.2.0",
"puppeteer": "13.5.2",
"subscriptions-transport-ws": "^0.11.0",
"webpack": "5.72.0"
Expand All @@ -54,7 +54,7 @@
"@graphql-yoga/node": "2.3.0",
"@n1ru4l/graphql-live-query": "^0.9.0",
"@types/ws": "^8.0.0",
"cross-undici-fetch": "^0.2.4",
"cross-undici-fetch": "^0.3.0",
"dset": "^3.1.0",
"extract-files": "^11.0.0",
"graphql-ws": "^5.4.1",
Expand Down
28 changes: 13 additions & 15 deletions packages/loaders/url/tests/url-loader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -843,24 +843,26 @@ input TestInput {
const urlLoader = new UrlLoader();
let yogaApp: ReturnType<typeof createServer>;
let interval: any;
beforeAll(async () => {
let cnt = 0;
beforeAll(() => {
const liveQueryStore = new InMemoryLiveQueryStore();
interval = setInterval(() => {
liveQueryStore.invalidate('Query.time');
}, 1000);
cnt++;
liveQueryStore.invalidate('Query.cnt');
}, 100);
yogaApp = createServer({
schema: {
typeDefs: [
/* GraphQL */ `
type Query {
time: String!
cnt: Int!
}
`,
GraphQLLiveDirectiveSDL,
],
resolvers: {
Query: {
time: () => new Date().toISOString(),
cnt: () => cnt,
},
},
},
Expand All @@ -870,9 +872,9 @@ input TestInput {
}),
],
logging: false,
port: 4000 + Math.floor(Math.random() * 1000),
port: 9876,
});
await yogaApp.start();
return yogaApp.start();
});
afterAll(() => {
clearInterval(interval);
Expand All @@ -884,19 +886,15 @@ input TestInput {
});
const result = await executor({
document: parse(/* GraphQL */ `
query Time @live {
time
query Count @live {
cnt
}
`),
});
assertAsyncIterable(result);
const results = [];
for await (const data of result) {
results.push(data);
const date = new Date(data.data.time);
const now = new Date();
expect(date.getSeconds()).toBe(now.getSeconds());
if (results.length === 3) {
expect(data.data.cnt).toBe(cnt);
if (cnt >= 3) {
break;
}
}
Expand Down
22 changes: 17 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5352,7 +5352,7 @@ cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
shebang-command "^2.0.0"
which "^2.0.1"

cross-undici-fetch@^0.2.4, cross-undici-fetch@^0.2.5:
cross-undici-fetch@^0.2.5:
version "0.2.5"
resolved "https://registry.yarnpkg.com/cross-undici-fetch/-/cross-undici-fetch-0.2.5.tgz#0dd5bb3809a2fc4524fc777f1e6eb052203a6b68"
integrity sha512-6IR+JN6o2UMNj2f3fu0ZVkZeP0h22DRKzq78SiMenkqyBYyGIT1AkZjHkItvh0A80LdsAlWENHUpvapapePucw==
Expand All @@ -5364,6 +5364,18 @@ cross-undici-fetch@^0.2.4, cross-undici-fetch@^0.2.5:
undici "^5.0.0"
web-streams-polyfill "^3.2.0"

cross-undici-fetch@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/cross-undici-fetch/-/cross-undici-fetch-0.3.0.tgz#d03764f0a1bcb745855bba8464c231d46ee14cfa"
integrity sha512-as3gHg3EJrc4QMS11/GdHtyY+m3LnIf8GrziHQRe/dGxSHqEP4RcONJ/3UVaPeA1j687aYvwzWMPWKgqsdXbtA==
dependencies:
abort-controller "^3.0.0"
form-data-encoder "^1.7.1"
formdata-node "^4.3.1"
node-fetch "^2.6.7"
undici "^5.0.0"
web-streams-polyfill "^3.2.0"

crypto-random-string@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5"
Expand Down Expand Up @@ -7401,10 +7413,10 @@ graphql-scalars@1.17.0:
dependencies:
tslib "~2.3.0"

graphql-sse@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/graphql-sse/-/graphql-sse-1.0.1.tgz#d263a8077865b06eaf1b074204683d72a92a5e25"
integrity sha512-CByxV9oKmUv/k9tlv8Bg/Hn9CcRlfsRQnU5YKI7Z2MfMckLBrXKq6Y1ln9GZh81Id/n5YV4O4X+p+QUHCu24sQ==
graphql-sse@1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/graphql-sse/-/graphql-sse-1.2.0.tgz#e5e6f8b0c0af1b371aac972deba70b843a82a9bd"
integrity sha512-W6XLGLqmwSDUzyUF8dcEPwNmhYe8g90P+wWETZ+6cmk/2kS3zJ1SXgeglWQ2tFKC/FXrc68hTHdHdmLjetJn+Q==

graphql-subscriptions@2.0.0:
version "2.0.0"
Expand Down

0 comments on commit b2bd27c

Please sign in to comment.