[AAE-10472] upgrade apollo libraries to Angular 14 compatible versions (#7799)

* upgrade apollo libraries

* fix unit tests

* Empty-Commit
This commit is contained in:
Denys Vuika
2022-09-01 15:14:00 +01:00
committed by GitHub
parent b2ac4b4169
commit 9352daf799
4 changed files with 17 additions and 15 deletions

View File

@@ -34,6 +34,7 @@ import {
import { PeopleCloudModule } from './people/people-cloud.module';
import { CloudFormRenderingService } from './form/components/cloud-form-rendering.service';
import { ProcessServicesCloudPipeModule } from './pipes/process-services-cloud-pipe.module';
import { ApolloModule } from 'apollo-angular';
@NgModule({
imports: [
@@ -45,7 +46,8 @@ import { ProcessServicesCloudPipeModule } from './pipes/process-services-cloud-p
PeopleCloudModule,
FormCloudModule,
TaskFormModule,
ProcessServicesCloudPipeModule
ProcessServicesCloudPipeModule,
ApolloModule
],
providers: [
{

View File

@@ -37,6 +37,7 @@ import { NotificationCloudService } from '../../../services/notification-cloud.s
import { TaskCloudEngineEvent } from './../../../models/engine-event-cloud.model';
import { ProcessServiceCloudTestingModule } from '../../../testing/process-service-cloud.testing.module';
import { IdentityUserService } from '../../../people/services/identity-user.service';
import { ApolloModule } from 'apollo-angular';
describe('TaskFilterCloudService', () => {
let service: TaskFilterCloudService;
@@ -52,7 +53,8 @@ describe('TaskFilterCloudService', () => {
setupTestBed({
imports: [
HttpClientTestingModule,
ProcessServiceCloudTestingModule
ProcessServiceCloudTestingModule,
ApolloModule
],
providers: [
{ provide: TASK_FILTERS_SERVICE_TOKEN, useClass: UserPreferenceCloudService }
@@ -231,7 +233,7 @@ describe('Inject [LocalPreferenceCloudService] into the TaskFilterCloudService',
const identityUserMock = { username: 'fakeusername', firstName: 'fake-identity-first-name', lastName: 'fake-identity-last-name', email: 'fakeIdentity@email.com' };
setupTestBed({
imports: [ HttpClientTestingModule ],
imports: [ HttpClientTestingModule, ApolloModule ],
providers: [
{ provide: TASK_FILTERS_SERVICE_TOKEN, useClass: LocalPreferenceCloudService }
]

18
package-lock.json generated
View File

@@ -23842,13 +23842,10 @@
}
},
"apollo-angular": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/apollo-angular/-/apollo-angular-2.6.0.tgz",
"integrity": "sha512-PxlOlYbJB39mKAIMX24twrrM+1qm+o7OIdvtiJJB4MSlDFdlKR6yCrZdxpvoHFRoK1vWl23g4GiLrf8bNyJuyQ==",
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/apollo-angular/-/apollo-angular-4.0.1.tgz",
"integrity": "sha512-hnM2zbYORcqwLI8YBVAVvOuCIc3a6rDGUFlzB9pHudaoqYT5NkP8L/2IAGnMFQ1izzcLemcISw02yiEIf0WO3A==",
"requires": {
"@graphql-typed-document-node/core": "^3.1.0",
"extract-files": "^9.0.0",
"semver": "^7.0.0",
"tslib": "^2.0.0"
}
},
@@ -29524,7 +29521,8 @@
"extract-files": {
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/extract-files/-/extract-files-9.0.0.tgz",
"integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ=="
"integrity": "sha512-CvdFfHkC95B4bBBk36hcEmvdR2awOdhhVUYH6S/zrVj3477zven/fJMYg7121h4T1xHZC+tetUpubpAhxwI7hQ==",
"dev": true
},
"extsprintf": {
"version": "1.3.0",
@@ -30517,9 +30515,9 @@
"integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA=="
},
"graphql": {
"version": "15.8.0",
"resolved": "https://registry.npmjs.org/graphql/-/graphql-15.8.0.tgz",
"integrity": "sha512-5gghUc24tP9HRznNpV2+FIoq3xKkj5dTQqf4v0CpdPbFVwFkWoxOM+o+2OC9ZSvjEMTjfmG9QT+gcvggTwW1zw==",
"version": "16.6.0",
"resolved": "https://registry.npmjs.org/graphql/-/graphql-16.6.0.tgz",
"integrity": "sha512-KPIBPDlW7NxrbT/eh4qPXz5FiFdL5UbaA0XUNz2Rp3Z3hqBSkbj0GVjwFDztsWVauZUWsbKHgMg++sk8UX0bkw==",
"dev": true
},
"graphql-request": {

View File

@@ -91,7 +91,7 @@
"@mat-datetimepicker/moment": "^9.0.68",
"@ngx-translate/core": "^14.0.0",
"@storybook/core-server": "6.4.22",
"apollo-angular": "^2.6.0",
"apollo-angular": "^4.0.1",
"chart.js": "2.9.4",
"cropperjs": "1.5.12",
"custom-event-polyfill": "^1.0.7",
@@ -157,7 +157,7 @@
"eslint-plugin-rxjs": "^5.0.2",
"eslint-plugin-unicorn": "^43.0.1",
"github-api": "^3.4.0",
"graphql": "^15.8.0",
"graphql": "^16.6.0",
"graphql-request": "^3.7.0",
"husky": "^7.0.4",
"jasmine-ajax": "4.0.0",