Skip to content

Commit

Permalink
build(npm): upgraded all libraries to the latest compatible versions
Browse files Browse the repository at this point in the history
* Executed "nx migrate latest" to upgrade nx major version to version 17.
* Major upgrade: @ngx-translate/*, dompurify, npm, @types/*, @commitlint/*,
conventional-changelog-conventionalcommits, prettier, semantic-release, typescript, ngx-scrollbar, angular-oauth2-oidc.
* Minor and patch upgrade: bootstrap, d3-graphviz, moment-timezone, ngx-mat-select-search, tslib,
@semantic-release/github, jest, jest-environment-jsdom, webpack-bundle-analyzer.
* Library ngx-scrollbar changed configuration settings between major versions, so it was changed in app.module.ts.
  • Loading branch information
HejdaJakub committed Oct 23, 2023
1 parent f323221 commit a421e03
Show file tree
Hide file tree
Showing 42 changed files with 2,389 additions and 1,798 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ apps/linker/src/styles.scss
apps/password-reset/src/styles.scss
apps/publications/src/styles.scss
apps/user-profile/src/styles.scss

.nx/cache
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,5 @@ Thumbs.db
.editorconfig
.gitignore
.prettierrc

/.nx/cache
2 changes: 1 addition & 1 deletion apps/admin-gui-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/admin-gui-e2e/**/*.{js,ts}"]
},
Expand Down
2 changes: 1 addition & 1 deletion apps/admin-gui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/admin-gui/src/**/*.ts", "apps/admin-gui/src/**/*.html"]
},
Expand Down
19 changes: 13 additions & 6 deletions apps/admin-gui/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { PERUN_API_SERVICE } from '@perun-web-apps/perun/tokens';
import { AdminGuiConfigService } from './core/services/common/admin-gui-config.service';
import { ApiModule, Configuration, ConfigurationParameters } from '@perun-web-apps/perun/openapi';
import { GeneralModule } from '@perun-web-apps/general';
import { NgScrollbarModule } from 'ngx-scrollbar';
import { NG_SCROLLBAR_OPTIONS, NgScrollbarModule } from 'ngx-scrollbar';
import { PerunSharedComponentsModule } from '@perun-web-apps/perun/components';
import { PerunLoginModule } from '@perun-web-apps/perun/login';
import { OAuthModule, OAuthStorage } from 'angular-oauth2-oidc';
Expand Down Expand Up @@ -72,10 +72,7 @@ const loadConfigs: (appConfig: AdminGuiConfigService) => () => Promise<void> =
ApiModule,
PerunSharedComponentsModule,
PerunLoginModule,
NgScrollbarModule.withConfig({
autoWidthDisabled: false,
visibility: 'hover',
}),
NgScrollbarModule,
OAuthModule.forRoot(),
],
providers: [
Expand Down Expand Up @@ -103,11 +100,21 @@ const loadConfigs: (appConfig: AdminGuiConfigService) => () => Promise<void> =
ApiInterceptor,
API_INTERCEPTOR_PROVIDER,
{ provide: OAuthStorage, useFactory: (): OAuthStorage => localStorage },
{
provide: NG_SCROLLBAR_OPTIONS,
useValue: {
autoWidthDisabled: false,
visibility: 'hover',
},
},
],
bootstrap: [AppComponent],
})
export class AppModule {
constructor(private customIconService: CustomIconService, private translate: TranslateService) {
constructor(
private customIconService: CustomIconService,
private translate: TranslateService,
) {
this.translate.setDefaultLang('en');
this.translate.use('en');
this.customIconService.registerPerunRefreshIcon();
Expand Down
2 changes: 1 addition & 1 deletion apps/consolidator-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/consolidator-e2e/**/*.{js,ts}"]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/consolidator/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/consolidator/src/**/*.ts", "apps/consolidator/src/**/*.html"]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/linker-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/linker-e2e/**/*.{js,ts}"]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/linker/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/linker/src/**/*.ts", "apps/linker/src/**/*.html"]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/password-reset-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/password-reset-e2e/**/*.{js,ts}"]
},
Expand Down
2 changes: 1 addition & 1 deletion apps/password-reset/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/password-reset/src/**/*.ts", "apps/password-reset/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion apps/publications-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/publications-e2e/**/*.{js,ts}"]
},
Expand Down
2 changes: 1 addition & 1 deletion apps/publications/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/publications/src/**/*.ts", "apps/publications/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion apps/user-profile-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/user-profile-e2e/**/*.{js,ts}"]
},
Expand Down
2 changes: 1 addition & 1 deletion apps/user-profile/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/user-profile/src/**/*.ts", "apps/user-profile/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/config/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/config/src/**/*.ts", "libs/config/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/config/table-config/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/config/table-config/src/**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion libs/general/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/general/src/**/*.ts", "libs/general/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/lib-linker/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/lib-linker/src/**/*.ts", "libs/lib-linker/src/**/*.html"]
}
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/animations/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/perun/animations/src/**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/components/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/perun/components/src/**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/dialogs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/perun/dialogs/src/**/*.ts", "libs/perun/dialogs/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/directives/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/perun/directives/src/**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/facility-services-config/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/perun/facility-services-config/src/**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/login/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/perun/login/src/**/*.ts", "libs/perun/login/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/models/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"generators": {},
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/perun/models/src/**/*.ts", "libs/perun/models/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/multi-factor-authentication/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/perun/multi-factor-authentication/**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/namespace-password-form/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
},
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/perun/namespace-password-form/src/**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/openapi/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/perun/openapi/src/**/*.ts", "libs/perun/openapi/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/pipes/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/perun/pipes/src/**/*.ts", "libs/perun/pipes/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/services/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"generators": {},
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/perun/services/src/**/*.ts", "libs/perun/services/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/session-expiration/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": [
"libs/perun/session-expiration/src/**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/tokens/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"generators": {},
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/perun/tokens/src/**/*.ts", "libs/perun/tokens/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/urns/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"generators": {},
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/perun/urns/src/**/*.ts", "libs/perun/urns/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/perun/utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"generators": {},
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/perun/utils/src/**/*.ts", "libs/perun/utils/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/alerts/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"generators": {},
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/ui/alerts/src/**/*.ts", "libs/ui/alerts/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/material/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/ui/material/src/**/*.ts", "libs/ui/material/src/**/*.html"]
},
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"prefix": "perun-web-apps",
"targets": {
"lint": {
"executor": "@nx/linter:eslint",
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["libs/ui/src/**/*.ts", "libs/ui/src/**/*.html"]
},
Expand Down
Loading

0 comments on commit a421e03

Please sign in to comment.