From 85524a29a8e8d8d01aefd2bf70d188648a0a9579 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Fri, 27 Sep 2024 12:35:14 +0200 Subject: [PATCH] Update apollo-angular --- package.json | 4 ++-- src/main.ts | 5 +++-- yarn.lock | 16 ++++++++-------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index a57f982a..677da03c 100644 --- a/package.json +++ b/package.json @@ -33,10 +33,10 @@ "@angular/platform-browser": "^18.2.3", "@angular/platform-browser-dynamic": "^18.2.3", "@angular/router": "^18.2.3", - "@apollo/client": "^3.10.8", + "@apollo/client": "^3.11.8", "@ecodev/natural-layout": "^2.0.2", "@graphql-tools/mock": "^9.0.3", - "apollo-angular": "^7.0.2", + "apollo-angular": "^7.2.0", "crypto-es": "^2.1.0", "extract-files": "^13.0.0", "graphql": "^16.9.0", diff --git a/src/main.ts b/src/main.ts index 7455d635..27e0758d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,12 +15,13 @@ import { providePanels, provideSeo, } from '@ecodev/natural'; -import {Apollo} from 'apollo-angular'; import {routes} from './app/app-routing'; import {AppComponent} from './app/app.component'; import {DemoLoggerExtra} from './app/demo.error-handler'; import {AnyLinkMutationService} from './app/shared/services/any-link-mutation.service'; import {environment} from './environments/environment'; +import {provideApollo} from 'apollo-angular'; +import {InMemoryCache} from '@apollo/client/core'; if (environment.production) { enableProdMode(); @@ -30,7 +31,7 @@ bootstrapApplication(AppComponent, { providers: [ provideZoneChangeDetection({eventCoalescing: true}), provideNativeDateAdapter(), - Apollo, + provideApollo(() => ({cache: new InMemoryCache()})), naturalProviders, provideIcons({ natural: { diff --git a/yarn.lock b/yarn.lock index 9bd29e8b..36a10a30 100644 --- a/yarn.lock +++ b/yarn.lock @@ -341,10 +341,10 @@ dependencies: tslib "^2.3.0" -"@apollo/client@^3.10.8": - version "3.10.8" - resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.10.8.tgz#96b1548818e45fac752ec2bd318e5466d9ca26b5" - integrity sha512-UaaFEitRrPRWV836wY2L7bd3HRCfbMie1jlYMcmazFAK23MVhz/Uq7VG1nwbotPb5xzFsw5RF4Wnp2G3dWPM3g== +"@apollo/client@^3.11.8": + version "3.11.8" + resolved "https://registry.yarnpkg.com/@apollo/client/-/client-3.11.8.tgz#f6bacdc7e1b243807c1387113e1d445a53471a9c" + integrity sha512-CgG1wbtMjsV2pRGe/eYITmV5B8lXUCYljB2gB/6jWTFQcrvirUVvKg7qtFdjYkQSFbIffU1IDyxgeaN81eTjbA== dependencies: "@graphql-typed-document-node/core" "^3.1.1" "@wry/caches" "^1.0.0" @@ -3639,10 +3639,10 @@ anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" -apollo-angular@^7.0.2: - version "7.0.2" - resolved "https://registry.yarnpkg.com/apollo-angular/-/apollo-angular-7.0.2.tgz#35f4d396aedbc905acd0d40402802666ec6449ce" - integrity sha512-OBj+KnVfGsJ1wdsOj5CENyjBnd85vseAlgqW1kG4tvgz0QPgPlUHx5KBKhwlf2hWZceNQQcXoWQmnXxzdZbWDg== +apollo-angular@^7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/apollo-angular/-/apollo-angular-7.2.0.tgz#eaf4495405ead533e445cace391989c37de7fa58" + integrity sha512-YPpRMkV7Le4VKyYfBuwG4WntAg00gJozwvVKtgtYyFVgsqaIUKpFc0mM0RYWoMoULxzkHRNOFYh57PXSrHQWjg== dependencies: tslib "^2.6.2"