Skip to content

Commit a4b1e17

Browse files
committed
ftr: update packages to newest version
TRACEFOSS-1023
1 parent c2666c0 commit a4b1e17

File tree

12 files changed

+672
-612
lines changed

12 files changed

+672
-612
lines changed

package.json

Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -33,91 +33,95 @@
3333
},
3434
"private": true,
3535
"dependencies": {
36-
"@angular-material-components/datetime-picker": "7.0.1",
36+
"@angular-material-components/datetime-picker": "9.0.0",
3737
"@angular/animations": "15.1.5",
38-
"@angular/cdk": "15.1.4",
38+
"@angular/cdk": "15.1.5",
3939
"@angular/common": "15.1.5",
4040
"@angular/compiler": "15.1.5",
4141
"@angular/core": "15.1.5",
4242
"@angular/forms": "15.1.5",
43-
"@angular/material": "15.1.4",
43+
"@angular/material": "15.1.5",
4444
"@angular/platform-browser": "15.1.5",
4545
"@angular/platform-browser-dynamic": "15.1.5",
4646
"@angular/router": "15.1.5",
47-
"@deck.gl/core": "8.8.20",
48-
"@deck.gl/layers": "8.7.12",
49-
"@deck.gl/mapbox": "8.8.22",
50-
"@mapbox/mapbox-gl-language": "^1.0.0",
47+
"@deck.gl/core": "8.8.24",
48+
"@deck.gl/layers": "8.8.24",
49+
"@deck.gl/mapbox": "8.8.24",
50+
"@loaders.gl/core": "^3.3.0",
51+
"@luma.gl/core": "^8.5.18",
52+
"@mapbox/mapbox-gl-language": "^1.0.1",
5153
"@types/lodash-es": "4.17.6",
52-
"angular-i18next": "11.0.0",
54+
"angular-i18next": "15.0.5",
5355
"autoprefixer": "10.4.13",
54-
"d3": "7.8.0",
55-
"i18next": "21.10.0",
56+
"d3": "7.8.2",
57+
"esbuild": "^0.17.8",
58+
"i18next": "22.4.9",
5659
"i18next-browser-languagedetector": "7.0.1",
57-
"i18next-http-backend": "2.0.2",
58-
"keycloak-angular": "10.0.2",
59-
"keycloak-js": "18.0.1",
60+
"i18next-http-backend": "2.1.1",
61+
"keycloak-angular": "13.0.0",
62+
"keycloak-js": "20.0.3",
6063
"lodash-es": "4.17.21",
64+
"mapbox-gl": "^2.12.1",
6165
"maplibre-gl": "^2.4.0",
62-
"postcss": "8.4.19",
63-
"rxjs": "7.5.7",
64-
"tailwindcss": "3.2.4",
65-
"tslib": "2.4.1",
66+
"postcss": "8.4.21",
67+
"rxjs": "7.8.0",
68+
"tailwindcss": "3.2.7",
69+
"tslib": "2.5.0",
6670
"webpack": "5.75.0",
67-
"zone.js": "0.11.8"
71+
"zone.js": "0.12.0"
6872
},
6973
"devDependencies": {
7074
"@angular-builders/custom-webpack": "15.0.0",
7175
"@angular-devkit/build-angular": "15.1.6",
72-
"@angular-eslint/builder": "15.1.0",
73-
"@angular-eslint/eslint-plugin": "15.2.0",
76+
"@angular-eslint/builder": "15.2.1",
77+
"@angular-eslint/eslint-plugin": "15.2.1",
7478
"@angular-eslint/eslint-plugin-template": "15.2.1",
7579
"@angular-eslint/schematics": "15.2.1",
7680
"@angular-eslint/template-parser": "15.2.1",
7781
"@angular/cli": "15.1.6",
7882
"@angular/compiler-cli": "15.1.5",
7983
"@angular/language-service": "15.1.5",
80-
"@badeball/cypress-cucumber-preprocessor": "^15.0.0",
81-
"@bahmutov/cypress-esbuild-preprocessor": "^2.1.5",
82-
"@commitlint/cli": "17.4.2",
83-
"@commitlint/config-conventional": "16.2.4",
84-
"@cypress/schematic": "2.4.0",
84+
"@badeball/cypress-cucumber-preprocessor": "^15.1.3",
85+
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
86+
"@commitlint/cli": "17.4.3",
87+
"@commitlint/config-conventional": "17.4.3",
88+
"@cypress/schematic": "2.5.0",
8589
"@testing-library/angular": "13.1.0",
86-
"@testing-library/jasmine-dom": "1.2.0",
90+
"@testing-library/jasmine-dom": "1.3.3",
8791
"@types/d3": "7.4.0",
8892
"@types/jasmine": "4.3.1",
8993
"@types/luxon": "3.2.0",
90-
"@types/node": "18.11.4",
91-
"@types/testing-library__jasmine-dom": "^1.0.3",
92-
"@typescript-eslint/eslint-plugin": "5.48.0",
93-
"@typescript-eslint/parser": "5.49.0",
94-
"cypress": "^12.4.0",
95-
"eslint": "8.28.0",
96-
"eslint-config-prettier": "8.5.0",
94+
"@types/node": "^18.13.0",
95+
"@types/testing-library__jasmine-dom": "^1.3.0",
96+
"@typescript-eslint/eslint-plugin": "5.52.0",
97+
"@typescript-eslint/parser": "5.52.0",
98+
"cypress": "^12.5.1",
99+
"eslint": "8.34.0",
100+
"eslint-config-prettier": "8.6.0",
97101
"eslint-plugin-import": "2.27.5",
98-
"eslint-plugin-jsdoc": "39.6.4",
102+
"eslint-plugin-jsdoc": "40.0.0",
99103
"eslint-plugin-prefer-arrow": "1.2.3",
100-
"husky": "8.0.2",
101-
"jasmine-core": "4.3.0",
104+
"husky": "8.0.3",
105+
"jasmine-core": "4.5.0",
102106
"karma": "6.4.1",
103-
"karma-chrome-launcher": "3.1.0",
107+
"karma-chrome-launcher": "3.1.1",
104108
"karma-coverage": "2.2.0",
105109
"karma-jasmine": "5.1.0",
106110
"karma-jasmine-html-reporter": "2.0.0",
107111
"karma-sonarqube-reporter": "1.4.0",
108-
"lint-staged": "13.0.3",
109-
"msw": "1.0.0",
112+
"lint-staged": "13.1.2",
113+
"msw": "1.0.1",
110114
"playwright-webkit": "^1.30.0",
111115
"postcss-import": "15.1.0",
112116
"postcss-loader": "7.0.2",
113-
"postcss-scss": "4.0.4",
114-
"prettier": "2.7.1",
115-
"stylelint": "14.16.1",
116-
"stylelint-config-standard-scss": "4.0.0",
117+
"postcss-scss": "4.0.6",
118+
"prettier": "2.8.4",
119+
"stylelint": "15.1.0",
120+
"stylelint-config-standard-scss": "7.0.1",
117121
"ts-loader": "^9.4.2",
118122
"ts-node": "10.9.1",
119123
"typescript": "4.9.5",
120-
"webpack-bundle-analyzer": "4.5.0"
124+
"webpack-bundle-analyzer": "4.8.0"
121125
},
122126
"msw": {
123127
"workerDirectory": "src"

src/app/modules/core/extensions/fetch-custom-protocols.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,18 @@ export const buildCustomProtocolResolver = (customProtocolsRegistry: CustomProto
5858
const resolution = customProtocolResolution[prefix];
5959
const fullPrefix = customProtocolName + ':' + prefix;
6060

61-
const originalQueryParams = Object.fromEntries(new URL(url).searchParams);
61+
const originalQueryParams = {};
62+
new URL(url).searchParams.forEach((key, value) => (originalQueryParams[key] = value));
63+
6264
const cleanUrl = url.split('?')[0];
6365

6466
const targetQueryParams = new HttpParams({
6567
fromObject: { ...originalQueryParams, ...resolution.queryParams },
6668
}).toString();
6769

6870
const hasQueryParams = Object.keys(targetQueryParams).length > 0;
69-
const tartegUrlWithoutParams = cleanUrl.replace(fullPrefix, resolution.pathname) + (resolution.postfix ?? '');
70-
return tartegUrlWithoutParams + (hasQueryParams ? '?' + targetQueryParams : '');
71+
const targetUrlWithoutParams = cleanUrl.replace(fullPrefix, resolution.pathname) + (resolution.postfix ?? '');
72+
return targetUrlWithoutParams + (hasQueryParams ? '?' + targetQueryParams : '');
7173
};
7274
};
7375

src/app/modules/page/about/presentation/about.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
<app-header [title]="'pageAbout.title' | i18n"></app-header>
2424
<section
2525
class="mt-4 regular-text"
26-
[innerHTML]="'pageAbout.content' | i18n: { interpolation: { escapeValue: false } }"
26+
[innerHTML]="'pageAbout.content' | i18n : { interpolation: { escapeValue: false } }"
2727
></section>
2828
</div>

src/app/modules/page/dashboard/presentation/map/map.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { MapboxLayer } from '@deck.gl/mapbox';
2626
import MapboxLanguage from '@mapbox/mapbox-gl-language';
2727
import { I18NEXT_SERVICE, ITranslationService } from 'angular-i18next';
2828
import * as mapboxGl from 'maplibre-gl';
29-
import { Map, NavigationControl } from 'maplibre-gl';
29+
import { IControl, Map, NavigationControl } from 'maplibre-gl';
3030
import { distinctUntilChanged } from 'rxjs/operators';
3131
import { environment } from 'src/environments/environment';
3232
import { MAPPING, PartsCoordinates, supportedLanguages } from './map.model';
@@ -75,7 +75,7 @@ export class MapComponent implements AfterViewInit {
7575
this.map.remove();
7676
}
7777

78-
const locale: Record<string, string> = this.i18NextService.t('map', { returnObjects: true });
78+
const locale = this.i18NextService.t('map', { returnObjects: true }) as unknown as Record<string, string>;
7979
this.map = new Map({
8080
container: this.mapElRef.nativeElement,
8181
style: environment.mapStyles,
@@ -90,7 +90,7 @@ export class MapComponent implements AfterViewInit {
9090
? this.i18NextService.language
9191
: 'mul';
9292

93-
const language = new MapboxLanguage({ defaultLanguage });
93+
const language = new MapboxLanguage({ defaultLanguage }) as unknown as IControl;
9494
this.map.addControl(language);
9595

9696
this.map.addControl(

src/app/modules/shared/components/notification-reason/notification-reason.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<p>{{ 'commonInvestigation.status.' + message?.status | i18n }}</p>
3535
<p class="message--text__date flex items-center" *ngIf="message.date">
3636
<mat-icon class="message--text__date-icon">access_time</mat-icon
37-
>{{ message.date | formatDate: { dateStyle: 'short', timeStyle: 'short' } }}
37+
>{{ message.date | formatDate : { dateStyle: 'short', timeStyle: 'short' } }}
3838
</p>
3939
</div>
4040
</div>

src/app/modules/shared/components/pagination/paginator-intl.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class PaginatorIntlService implements MatPaginatorIntl {
3535
public changes: Subject<void>;
3636

3737
constructor(@Inject(I18NEXT_SERVICE) private readonly i18NextService: ITranslationService) {
38-
// unfortuantelly BehaviorSubject<string | null> cannot be automatically casted to Subject<void>
38+
// fortuneteller BehaviorSubject<string | null> cannot be automatically cast to Subject<void>
3939
// which is required by MatPaginatorIntl
4040
const languageChanged = i18NextService.events.languageChanged as unknown as Subject<void>;
4141

@@ -47,7 +47,7 @@ export class PaginatorIntlService implements MatPaginatorIntl {
4747

4848
public getRangeLabel(page: number, pageSize: number, length: number): string {
4949
if (length == 0 || pageSize == 0) {
50-
return this.i18NextService.t('pagination.emptyRange', { length });
50+
return this.i18NextService.t('pagination.emptyRange', { length } as Record<string, number>);
5151
}
5252
length = Math.max(length, 0);
5353
const startIndex = page * pageSize;
@@ -57,7 +57,7 @@ export class PaginatorIntlService implements MatPaginatorIntl {
5757
startIndex: startIndex + 1,
5858
endIndex,
5959
length,
60-
});
60+
} as Record<string, number>);
6161
}
6262

6363
private setLabels() {

src/app/modules/shared/components/select/select.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@
4040
</ng-template>
4141

4242
<ng-template let-lable="value" #normalOption>
43-
{{ lable | valueToLable: options | i18n }}
43+
{{ lable | valueToLable : options | i18n }}
4444
</ng-template>

src/app/modules/shared/components/table/table.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<div [class.mat-elevation-z8]="!noShadow">
2323
<ng-container *ngIf="selectedPartsInfoLabel">
2424
<div *appHasRole="tableConfig.columnRoles?.['select'] ?? 'user'" class="table--selected__container">
25-
<p class="regular-text">{{ selectedPartsInfoLabel | i18n: { count: selection?.selected?.length || 0 } }}</p>
25+
<p class="regular-text">{{ selectedPartsInfoLabel | i18n : { count: selection?.selected?.length || 0 } }}</p>
2626
<app-button
2727
*ngIf="this.selection?.selected?.length"
2828
(click)="clickSelectAction.emit()"

src/app/modules/shared/pipes/format-date.pipe.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import { Inject, OnDestroy, Pipe, PipeTransform } from '@angular/core';
2323
import { CalendarDateModel } from '@core/model/calendar-date.model';
2424
import { I18NEXT_SERVICE, ITranslationService } from 'angular-i18next';
25-
import { DateTimeFormatOptions } from 'luxon';
2625
import type { Subscription } from 'rxjs';
2726
import { filter } from 'rxjs/operators';
2827

@@ -33,7 +32,7 @@ interface DateFormatOptions {
3332
@Pipe({ name: 'formatDate', pure: false })
3433
export class FormatDatePipe implements PipeTransform, OnDestroy {
3534
private readonly languageChangedSubscription: Subscription;
36-
private readonly formatOptions = { dateStyle: 'short' } as DateTimeFormatOptions;
35+
private readonly formatOptions = { dateStyle: 'short' } as Intl.DateTimeFormatOptions;
3736
private language: string;
3837

3938
constructor(@Inject(I18NEXT_SERVICE) { language, events }: ITranslationService) {
@@ -48,7 +47,7 @@ export class FormatDatePipe implements PipeTransform, OnDestroy {
4847
this.languageChangedSubscription.unsubscribe();
4948
}
5049

51-
public transform(input: string | CalendarDateModel, dateTimeOptions?: DateTimeFormatOptions): string {
50+
public transform(input: string | CalendarDateModel, dateTimeOptions?: Intl.DateTimeFormatOptions): string {
5251
if (!input) {
5352
return '--';
5453
}

src/mockServiceWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/* tslint:disable */
2424

2525
/**
26-
* Mock Service Worker (1.0.0).
26+
* Mock Service Worker (1.0.1).
2727
* @see https://github.com/mswjs/msw
2828
* - Please do NOT modify this file.
2929
* - Please do NOT serve this file on production.

0 commit comments

Comments
 (0)