From 1bf0506226b50d933b4223b1ddf8ef97fe6f0048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Lord?= Date: Thu, 22 Jul 2021 09:30:55 -0400 Subject: [PATCH] feat(libs): upgrade librairies to angular 11 --- angular.json | 14 ++--- package.json | 57 ++++++++++---------- packages/auth/package.json | 12 ++--- packages/auth/src/lib/shared/auth.service.ts | 2 +- packages/common/package.json | 6 +-- packages/context/package.json | 10 ++-- packages/core/package.json | 6 +-- packages/geo/package.json | 12 ++--- packages/integration/package.json | 4 +- packages/utils/package.json | 2 +- 10 files changed, 62 insertions(+), 63 deletions(-) diff --git a/angular.json b/angular.json index 0dbd2c3ca7..7b90ca92e9 100644 --- a/angular.json +++ b/angular.json @@ -167,7 +167,7 @@ }, "architect": { "build": { - "builder": "@angular-devkit/build-ng-packagr:build", + "builder": "@angular-devkit/build-angular:ng-packagr", "options": { "tsConfig": "packages/auth/tsconfig.lib.json", "project": "packages/auth/ng-package.json" @@ -212,7 +212,7 @@ }, "architect": { "build": { - "builder": "@angular-devkit/build-ng-packagr:build", + "builder": "@angular-devkit/build-angular:ng-packagr", "options": { "tsConfig": "packages/common/tsconfig.lib.json", "project": "packages/common/ng-package.json" @@ -257,7 +257,7 @@ }, "architect": { "build": { - "builder": "@angular-devkit/build-ng-packagr:build", + "builder": "@angular-devkit/build-angular:ng-packagr", "options": { "tsConfig": "packages/core/tsconfig.lib.json", "project": "packages/core/ng-package.json" @@ -302,7 +302,7 @@ }, "architect": { "build": { - "builder": "@angular-devkit/build-ng-packagr:build", + "builder": "@angular-devkit/build-angular:ng-packagr", "options": { "tsConfig": "packages/geo/tsconfig.lib.json", "project": "packages/geo/ng-package.json" @@ -341,7 +341,7 @@ "prefix": "igo", "architect": { "build": { - "builder": "@angular-devkit/build-ng-packagr:build", + "builder": "@angular-devkit/build-angular:ng-packagr", "options": { "tsConfig": "packages/utils/tsconfig.lib.json", "project": "packages/utils/ng-package.json" @@ -378,7 +378,7 @@ }, "architect": { "build": { - "builder": "@angular-devkit/build-ng-packagr:build", + "builder": "@angular-devkit/build-angular:ng-packagr", "options": { "tsConfig": "packages/context/tsconfig.lib.json", "project": "packages/context/ng-package.json" @@ -423,7 +423,7 @@ }, "architect": { "build": { - "builder": "@angular-devkit/build-ng-packagr:build", + "builder": "@angular-devkit/build-angular:ng-packagr", "options": { "tsConfig": "packages/integration/tsconfig.lib.json", "project": "packages/integration/ng-package.json" diff --git a/package.json b/package.json index 202205182b..1c5edc33c6 100644 --- a/package.json +++ b/package.json @@ -67,31 +67,31 @@ }, "private": true, "dependencies": { - "@angular/animations": "^10.0.3", - "@angular/cdk": "^10.0.1", - "@angular/common": "^10.0.3", - "@angular/compiler": "^10.0.3", - "@angular/core": "^10.0.3", - "@angular/forms": "^10.0.3", - "@angular/material": "^10.0.1", - "@angular/platform-browser": "^10.0.3", - "@angular/platform-browser-dynamic": "^10.0.3", - "@angular/router": "^10.0.3", - "@azure/msal-angular": "^2.0.0", - "@azure/msal-browser": "^2.14.2", + "@angular/animations": "~11.0.9", + "@angular/cdk": "~11.0.4", + "@angular/common": "~11.0.9", + "@angular/compiler": "~11.0.9", + "@angular/core": "~11.0.9", + "@angular/forms": "~11.0.9", + "@angular/material": "~11.0.4", + "@angular/platform-browser": "~11.0.9", + "@angular/platform-browser-dynamic": "~11.0.9", + "@angular/router": "~11.0.9", + "@azure/msal-angular": "^2.0.1", + "@azure/msal-browser": "^2.15.0", "@ionic-native/core": "^5.10.0", "@ionic-native/file": "^5.6.0", "@ionic-native/file-opener": "^5.6.0", "@ionic-native/network": "^5.12.0", "@ionic/angular": "^5.2.3", - "@mat-datetimepicker/core": "^5.1.2", + "@mat-datetimepicker/core": "~6.0.0", "@mdi/angular-material": "^5.3.45", "@ngx-translate/core": "^13.0.0", "@turf/buffer": "^5.1.5", "@turf/helpers": "^6.1.4", "@turf/line-intersect": "^6.0.2", "@turf/point-on-feature": "^5.1.5", - "angular-shepherd": "^0.7.0", + "angular-shepherd": "^11.0.0", "angular2-notifications": "^9.0.0", "bowser": "^2.10.0", "classlist.js": "^1.1.20150312", @@ -99,32 +99,31 @@ "file-saver": "^2.0.2", "hammerjs": "^2.0.8", "html2canvas": "^1.0.0-rc.5", - "jspdf": "^1.5.3", + "jspdf": "^2.3.1", "jszip": "^3.1.5", "jwt-decode": "^2.2.0", "moment": "^2.24.0", - "ngx-cacheable": "^1.0.9", "ngx-color-picker": "^10.1.0", "ol": "^6.3.1", "ol-mapbox-style": "^6.1.2", "proj4": "^2.6.2", - "rxjs": "^6.6.0", + "rxjs": "^6.6.7", "scroll-into-view-if-needed": "^2.2.20", "scss-bundle": "^3.1.2", "stream": "^0.0.2", + "ts-cacheable": "^1.0.5", "ts-md5": "^1.2.4", "tslib": "^2.0.0", "typy": "^3.3.0", "unorm": "^1.4.1", "web-animations-js": "^2.3.2", "webpack": "^4.41.2", - "zone.js": "~0.10.2" + "zone.js": "~0.10.3" }, "devDependencies": { - "@angular-devkit/build-angular": "^0.1000.2", - "@angular-devkit/build-ng-packagr": "^0.1000.2", - "@angular/cli": "^10.0.2", - "@angular/compiler-cli": "^10.0.3", + "@angular-devkit/build-angular": "^0.1100.7", + "@angular/cli": "~11.0.9", + "@angular/compiler-cli": "~11.0.9", "@babel/core": "^7.7.4", "@babel/preset-env": "^7.7.4", "@compodoc/compodoc": "^1.1.9", @@ -146,20 +145,20 @@ "gulp-merge-json": "^2.1.1", "gulp-replace": "^1.0.0", "gulp-sequence": "^1.0.0", - "jasmine-core": "~3.5.0", + "jasmine-core": "~3.8.0", "jasmine-spec-reporter": "~5.0.0", - "karma": "^5.1.0", + "karma": "^6.3.4", "karma-chrome-launcher": "~3.1.0", - "karma-coverage-istanbul-reporter": "~3.0.2", - "karma-jasmine": "~3.3.0", - "karma-jasmine-html-reporter": "^1.5.0", - "ng-packagr": "^10.0.0", + "karma-coverage-istanbul-reporter": "~3.0.3", + "karma-jasmine": "~4.0.1", + "karma-jasmine-html-reporter": "^1.7.0", + "ng-packagr": "^11.2.4", "npm-run-all": "^4.1.5", "protractor": "~7.0.0", "publish-release": "^1.6.0", "ts-node": "^8.10.2", "tslint": "~6.1.0", - "typescript": "~3.9.6", + "typescript": "~4.0.8", "wait-on": "^5.1.0", "webdriver-manager": "^12.1.6" } diff --git a/packages/auth/package.json b/packages/auth/package.json index fe264b2fd0..787f41ac53 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -15,16 +15,16 @@ }, "dependencies": { "jwt-decode": "^2.2.0", - "ngx-cacheable": "^1.0.9", + "ts-cacheable": "^1.0.5", "ts-md5": "^1.2.4", "tslib": "^2.0.0" }, "peerDependencies": { - "@angular/cdk": "^10.0.1", - "@angular/common": "^10.0.3", - "@angular/core": "^10.0.3", - "@angular/forms": "^10.0.3", - "@angular/material": "^10.0.1", + "@angular/cdk": "^11.0.4", + "@angular/common": "^11.0.9", + "@angular/core": "^11.0.9", + "@angular/forms": "^11.0.9", + "@angular/material": "~11.0.4", "@igo2/core": "^1.8.1", "@igo2/utils": "^1.8.1", "rxjs": "^6.6.0", diff --git a/packages/auth/src/lib/shared/auth.service.ts b/packages/auth/src/lib/shared/auth.service.ts index 0b5a23ab59..32adc4c500 100644 --- a/packages/auth/src/lib/shared/auth.service.ts +++ b/packages/auth/src/lib/shared/auth.service.ts @@ -4,7 +4,7 @@ import { Router } from '@angular/router'; import { Observable, BehaviorSubject, of } from 'rxjs'; import { tap, catchError } from 'rxjs/operators'; -import { globalCacheBusterNotifier } from 'ngx-cacheable'; +import { globalCacheBusterNotifier } from 'ts-cacheable'; import { ConfigService, LanguageService, MessageService } from '@igo2/core'; import { Base64 } from '@igo2/utils'; diff --git a/packages/common/package.json b/packages/common/package.json index 24ea4672b0..5098fa1e58 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -14,9 +14,9 @@ "url": "https://github.com/infra-geo-ouverte/igo2-lib/issues" }, "peerDependencies": { - "@angular/common": "^10.0.3", - "@angular/core": "^10.0.3", - "@angular/material": "^10.0.1", + "@angular/common": "^11.0.9", + "@angular/core": "^11.0.9", + "@angular/material": "^11.0.4", "@igo2/core": "^1.8.1", "@igo2/utils": "^1.8.1", "scroll-into-view-if-needed": "^2.2.20", diff --git a/packages/context/package.json b/packages/context/package.json index efca34db9a..59dc2f5b76 100644 --- a/packages/context/package.json +++ b/packages/context/package.json @@ -14,11 +14,11 @@ "url": "https://github.com/infra-geo-ouverte/igo2-lib/issues" }, "peerDependencies": { - "@angular/animations": "^10.0.3", - "@angular/common": "^10.0.3", - "@angular/core": "^10.0.3", - "@angular/forms": "^10.0.3", - "@angular/material": "^10.0.1", + "@angular/animations": "~11.0.9", + "@angular/common": "^11.0.9", + "@angular/core": "^11.0.9", + "@angular/forms": "^11.0.9", + "@angular/material": "~11.0.4", "@igo2/auth": "^1.8.1", "@igo2/common": "^1.8.1", "@igo2/core": "^1.8.1", diff --git a/packages/core/package.json b/packages/core/package.json index 630d451d52..fdc3195832 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -19,9 +19,9 @@ "tslib": "^2.0.0" }, "peerDependencies": { - "@angular/cdk": "^10.0.1", - "@angular/common": "^10.0.3", - "@angular/core": "^10.0.3", + "@angular/cdk": "^11.0.4", + "@angular/common": "^11.0.9", + "@angular/core": "^11.0.9", "@igo2/utils": "^1.8.1", "rxjs": "^6.6.0" } diff --git a/packages/geo/package.json b/packages/geo/package.json index aca84d709f..271e34828d 100644 --- a/packages/geo/package.json +++ b/packages/geo/package.json @@ -14,7 +14,7 @@ "url": "https://github.com/infra-geo-ouverte/igo2-lib/issues" }, "dependencies": { - "ngx-cacheable": "^1.0.9", + "ts-cacheable": "^1.0.5", "ts-md5": "^1.2.4", "@turf/helpers": "^6.1.4", "@turf/line-intersect": "^6.0.2", @@ -22,11 +22,11 @@ "tslib": "^2.0.0" }, "peerDependencies": { - "@angular/animations": "^10.0.3", - "@angular/common": "^10.0.3", - "@angular/core": "^10.0.3", - "@angular/forms": "^10.0.3", - "@angular/material": "^10.0.1", + "@angular/animations": "~11.0.9", + "@angular/common": "^11.0.9", + "@angular/core": "^11.0.9", + "@angular/forms": "^11.0.9", + "@angular/material": "~11.0.4", "@igo2/common": "^1.8.1", "@igo2/core": "^1.8.1", "@igo2/utils": "^1.8.1", diff --git a/packages/integration/package.json b/packages/integration/package.json index 270742aa7e..f32e7c746c 100644 --- a/packages/integration/package.json +++ b/packages/integration/package.json @@ -14,8 +14,8 @@ "url": "https://github.com/infra-geo-ouverte/igo2-lib/issues" }, "peerDependencies": { - "@angular/common": "^10.0.3", - "@angular/core": "^10.0.3", + "@angular/common": "^11.0.9", + "@angular/core": "^11.0.9", "@igo2/geo": "1.8.1", "@igo2/context": "1.8.1", "rxjs": "^6.6.0" diff --git a/packages/utils/package.json b/packages/utils/package.json index e8dfea9111..9913bb7d52 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -18,7 +18,7 @@ "tslib": "^2.0.0" }, "peerDependencies": { - "@angular/common": "^10.0.3", + "@angular/common": "^11.0.9", "@angular/core": "^10.0.3" } } \ No newline at end of file