Feature/update dependencies (#738)

* [Tooling] Create script to update dependencies

* Lock dependency versions

* Update dependencies

Wait for eslint related dependencies to be compatible with v9
This commit is contained in:
schroda
2024-04-14 15:10:34 +02:00
committed by GitHub
parent 79a9d1f246
commit 76125a7617
4 changed files with 450 additions and 256 deletions

View File

@@ -6,7 +6,14 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { ApolloClient, ApolloClientOptions, InMemoryCache, NormalizedCacheObject, split } from '@apollo/client';
import {
ApolloClient,
ApolloClientOptions,
ApolloLink,
InMemoryCache,
NormalizedCacheObject,
split,
} from '@apollo/client';
import { createUploadLink } from 'apollo-upload-client';
import { GraphQLWsLink } from '@apollo/client/link/subscriptions';
import { Client, createClient } from 'graphql-ws';
@@ -152,7 +159,8 @@ export class GraphQLClient extends BaseClient<
return definition.kind === 'OperationDefinition' && definition.operation === 'subscription';
},
this.createWSLink(),
this.createUploadLink(),
// apollo-upload-client dependency is outdated (see 134e47763faae9e62db4d4e3a8387a74e32e5568) and thus types are not matching, but they are still correct
this.createUploadLink() as unknown as ApolloLink,
);
}