Skip to content

Commit

Permalink
refactor: Upgrade apollo-upload-client from 17.0.0 to 18.0.1 (#9031)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moumouls authored Oct 23, 2024
1 parent d3b7fb0 commit 412e724
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 25 deletions.
44 changes: 25 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@semantic-release/npm": "12.0.1",
"@semantic-release/release-notes-generator": "14.0.1",
"all-node-versions": "12.1.0",
"apollo-upload-client": "17.0.0",
"apollo-upload-client": "18.0.1",
"clean-jsdoc-theme": "4.3.0",
"cross-env": "7.0.3",
"deep-diff": "1.0.2",
Expand Down
10 changes: 5 additions & 5 deletions spec/ParseGraphQLServer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { updateCLP } = require('./support/dev');

const pluralize = require('pluralize');
const { getMainDefinition } = require('@apollo/client/utilities');
const { createUploadLink } = require('apollo-upload-client');
const createUploadLink = (...args) => import('apollo-upload-client/createUploadLink.mjs').then(({ default: fn }) => fn(...args));
const { SubscriptionClient } = require('subscriptions-transport-ws');
const { WebSocketLink } = require('@apollo/client/link/ws');
const { mergeSchemas } = require('@graphql-tools/schema');
Expand Down Expand Up @@ -452,7 +452,7 @@ describe('ParseGraphQLServer', () => {
ws
);
const wsLink = new WebSocketLink(subscriptionClient);
const httpLink = createUploadLink({
const httpLink = await createUploadLink({
uri: 'http://localhost:13377/graphql',
fetch,
headers,
Expand Down Expand Up @@ -11008,7 +11008,7 @@ describe('ParseGraphQLServer', () => {
});
parseGraphQLServer.applyGraphQL(expressApp);
await new Promise(resolve => httpServer.listen({ port: 13377 }, resolve));
const httpLink = createUploadLink({
const httpLink = await createUploadLink({
uri: 'http://localhost:13377/graphql',
fetch,
headers,
Expand Down Expand Up @@ -11232,7 +11232,7 @@ describe('ParseGraphQLServer', () => {

parseGraphQLServer.applyGraphQL(expressApp);
await new Promise(resolve => httpServer.listen({ port: 13377 }, resolve));
const httpLink = createUploadLink({
const httpLink = await createUploadLink({
uri: 'http://localhost:13377/graphql',
fetch,
headers,
Expand Down Expand Up @@ -11427,7 +11427,7 @@ describe('ParseGraphQLServer', () => {

parseGraphQLServer.applyGraphQL(expressApp);
await new Promise(resolve => httpServer.listen({ port: 13377 }, resolve));
const httpLink = createUploadLink({
const httpLink = await createUploadLink({
uri: 'http://localhost:13377/graphql',
fetch,
headers,
Expand Down

0 comments on commit 412e724

Please sign in to comment.