Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Oct 12, 2023
1 parent 48089af commit 189e820
Show file tree
Hide file tree
Showing 63 changed files with 321 additions and 136 deletions.
113 changes: 55 additions & 58 deletions angular-update.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
________________________________________________________________________________

---

ng update @angular/core@16 @angular/cli@16
The installed Angular CLI version is outdated.
Expand All @@ -9,44 +8,44 @@ Using package manager: yarn
Collecting installed dependencies...
Found 92 dependencies.
Fetching dependency metadata from registry...
Updating package.json with dependency @angular-devkit/build-angular @ "16.2.6" (was "15.2.10")...
Updating package.json with dependency @angular-devkit/schematics @ "16.2.6" (was "15.2.10")...
Updating package.json with dependency @angular/cli @ "16.2.6" (was "15.2.10")...
Updating package.json with dependency @angular/compiler-cli @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/language-service @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency typescript @ "5.1.6" (was "4.8.4")...
Updating package.json with dependency @angular-devkit/core @ "16.2.6" (was "15.2.10")...
Updating package.json with dependency @angular/animations @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/common @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/compiler @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/core @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/forms @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/localize @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/platform-browser @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/router @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/service-worker @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency zone.js @ "0.13.3" (was "0.11.8")...
Updating package.json with dependency @angular-devkit/build-angular @ "16.2.6" (was "15.2.10")...
Updating package.json with dependency @angular-devkit/schematics @ "16.2.6" (was "15.2.10")...
Updating package.json with dependency @angular/cli @ "16.2.6" (was "15.2.10")...
Updating package.json with dependency @angular/compiler-cli @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/language-service @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency typescript @ "5.1.6" (was "4.8.4")...
Updating package.json with dependency @angular-devkit/core @ "16.2.6" (was "15.2.10")...
Updating package.json with dependency @angular/animations @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/common @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/compiler @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/core @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/forms @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/localize @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/platform-browser @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/router @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency @angular/service-worker @ "16.2.8" (was "15.2.10")...
Updating package.json with dependency zone.js @ "0.13.3" (was "0.11.8")...
UPDATE package.json (6057 bytes)
⠙ Installing packages...
⠹ Installing packages...
✔ Packages successfully installed.
** Executing migrations of package '@angular/cli' **

❯ Remove 'defaultProject' option from workspace configuration.
The project to use will be determined from the current working directory.
Migration completed (No changes made).
The project to use will be determined from the current working directory.
Migration completed (No changes made).

❯ Replace removed 'defaultCollection' option in workspace configuration with 'schematicCollections'.
Migration completed (No changes made).
Migration completed (No changes made).

❯ Update the '@angular-devkit/build-angular:server' builder configuration to disable 'buildOptimizer' for non optimized builds.
Migration completed (No changes made).
Migration completed (No changes made).

** Executing migrations of package '@angular/core' **

❯ In Angular version 15.2, the guard and resolver interfaces (CanActivate, Resolve, etc) were deprecated.
This migration removes imports and 'implements' clauses that contain them.
This migration removes imports and 'implements' clauses that contain them.
UPDATE src/app/guards/authenticated.guard.ts (848 bytes)
UPDATE src/app/guards/sign-in.guard.ts (2282 bytes)
UPDATE src/app/guards/authorize.guard.ts (3661 bytes)
Expand All @@ -56,14 +55,12 @@ UPDATE src/app/guards/language.guard.ts (4575 bytes)
UPDATE src/app/guards/third-party-signin-completed.guard.ts (2312 bytes)
UPDATE src/app/guards/two-factor-signin.guard.ts (1058 bytes)
UPDATE src/app/guards/authenticated-no-delagator.guard.ts (1379 bytes)
Migration completed (9 files modified).
Migration completed (9 files modified).

❯ As of Angular v16, the `moduleId` property of `@Component` is deprecated as it no longer has any effect.
Migration completed (No changes made).


________________________________________________________________________________
Migration completed (No changes made).

---

ng update @angular/core@15 @angular/cli@15
The installed Angular CLI version is outdated.
Expand All @@ -73,53 +70,53 @@ Using package manager: yarn
Collecting installed dependencies...
Found 94 dependencies.
Fetching dependency metadata from registry...
Updating package.json with dependency @angular-devkit/build-angular @ "15.2.10" (was "14.2.11")...
Updating package.json with dependency @angular-devkit/schematics @ "15.2.10" (was "14.2.11")...
Updating package.json with dependency @angular/cli @ "15.2.10" (was "14.2.11")...
Updating package.json with dependency @angular/compiler-cli @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/language-service @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular-devkit/core @ "15.2.10" (was "14.2.11")...
Updating package.json with dependency @angular/animations @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/common @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/compiler @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/core @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/forms @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/localize @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/platform-browser @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/router @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/service-worker @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular-devkit/build-angular @ "15.2.10" (was "14.2.11")...
Updating package.json with dependency @angular-devkit/schematics @ "15.2.10" (was "14.2.11")...
Updating package.json with dependency @angular/cli @ "15.2.10" (was "14.2.11")...
Updating package.json with dependency @angular/compiler-cli @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/language-service @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular-devkit/core @ "15.2.10" (was "14.2.11")...
Updating package.json with dependency @angular/animations @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/common @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/compiler @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/core @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/forms @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/localize @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/platform-browser @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/router @ "15.2.10" (was "14.3.0")...
Updating package.json with dependency @angular/service-worker @ "15.2.10" (was "14.3.0")...
UPDATE package.json (6129 bytes)
✔ Packages successfully installed.
** Executing migrations of package '@angular/cli' **

❯ Remove Browserslist configuration files that matches the Angular CLI default configuration.
Migration completed (No changes made).
Migration completed (No changes made).

❯ Remove exported `@angular/platform-server` `renderModule` method.
The `renderModule` method is now exported by the Angular CLI.
Migration completed (No changes made).
The `renderModule` method is now exported by the Angular CLI.
Migration completed (No changes made).

❯ Remove no longer needed require calls in Karma builder main file.
UPDATE src/test.ts (507 bytes)
Migration completed (1 file modified).
Migration completed (1 file modified).

❯ Update TypeScript compiler `target` and set `useDefineForClassFields`.
These changes are for IDE purposes as TypeScript compiler options `target` and `useDefineForClassFields` are set to `ES2022` and `false` respectively by the Angular CLI.
To control ECMA version and features use the Browerslist configuration.
These changes are for IDE purposes as TypeScript compiler options `target` and `useDefineForClassFields` are set to `ES2022` and `false` respectively by the Angular CLI.
To control ECMA version and features use the Browerslist configuration.
UPDATE tsconfig.json (630 bytes)
Migration completed (1 file modified).
Migration completed (1 file modified).

❯ Remove options from 'angular.json' that are no longer supported by the official builders.
Migration completed (No changes made).
Migration completed (No changes made).

** Executing migrations of package '@angular/core' **

❯ In Angular version 15, the deprecated `relativeLinkResolution` config parameter of the Router is removed.
This migration removes all `relativeLinkResolution` fields from the Router config objects.
This migration removes all `relativeLinkResolution` fields from the Router config objects.
UPDATE src/app/app-routing.module.ts (5473 bytes)
Migration completed (1 file modified).
Migration completed (1 file modified).

❯ Since Angular v15, the `RouterLink` contains the logic of the `RouterLinkWithHref` directive.
This migration replaces all `RouterLinkWithHref` references with `RouterLink`.
Migration completed (No changes made).
This migration replaces all `RouterLinkWithHref` references with `RouterLink`.
Migration completed (No changes made).
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'

import { DialogActionsDuplicatedMergedConfirmedComponent } from './dialog-actions-duplicated-merged-confirmed.component'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'

describe('DialogActionsDuplicatedMergedConfirmedComponent', () => {
let component: DialogActionsDuplicatedMergedConfirmedComponent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component, Inject, OnInit } from '@angular/core'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'
import { DuplicateRemoveEndpoint } from 'src/app/types/account-actions-duplicated'
import { environment } from 'src/environments/environment'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component, Inject, OnInit } from '@angular/core'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'
import { OauthService } from 'src/app/core/oauth/oauth.service'
import { DuplicateRemoveEndpoint } from 'src/app/types/account-actions-duplicated'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component, Inject, OnInit } from '@angular/core'
import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog'
import {
MatLegacyDialogRef as MatDialogRef,
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
} from '@angular/material/legacy-dialog'
import { PlatformInfoService } from 'src/app/cdk/platform-info'
import { DuplicateRemoveEndpoint } from 'src/app/types/account-actions-duplicated'
import { environment } from 'src/environments/environment'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'

import { DialogSecurityAlternateAccountDeleteComponent } from './dialog-security-alternate-account-delete.component'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'

describe('DialogSecurityAlternateAccountDeleteComponent', () => {
let component: DialogSecurityAlternateAccountDeleteComponent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component, Inject, OnInit } from '@angular/core'
import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog'
import {
MatLegacyDialogRef as MatDialogRef,
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
} from '@angular/material/legacy-dialog'
import { SocialAccount } from 'src/app/types/account-alternate-sign-in.endpoint'

@Component({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'
import { SettingsActionsDuplicatedComponent } from './settings-actions-duplicated.component'
import { HttpClientTestingModule } from '@angular/common/http/testing'
import { RouterTestingModule } from '@angular/router/testing'
import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog'
import {
MatLegacyDialog as MatDialog,
MatLegacyDialogModule as MatDialogModule,
} from '@angular/material/legacy-dialog'
import { WINDOW_PROVIDERS } from '../../../cdk/window'
import { UntypedFormBuilder } from '@angular/forms'
import { PlatformInfoService } from '../../../cdk/platform-info'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'
import { SettingsSecurityAlternateSignInComponent } from './settings-security-alternate-sign-in.component'
import { HttpClientTestingModule } from '@angular/common/http/testing'
import { RouterTestingModule } from '@angular/router/testing'
import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog'
import {
MatLegacyDialog as MatDialog,
MatLegacyDialogModule as MatDialogModule,
} from '@angular/material/legacy-dialog'
import { WINDOW_PROVIDERS } from '../../../cdk/window'
import { PlatformInfoService } from '../../../cdk/platform-info'
import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'

import { SettingsSharingComponent } from './settings-sharing.component'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'
import { WINDOW_PROVIDERS } from '../../../cdk/window'

describe('SettingsSharingComponent', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'
import { DialogAddTrustedIndividualsYourOwnEmailComponent } from './dialog-add-trusted-individuals-your-own-email.component'
import { HttpClientTestingModule } from '@angular/common/http/testing'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'

describe('DialogAddTrustedIndividualsComponent', () => {
let component: DialogAddTrustedIndividualsYourOwnEmailComponent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component, Inject, OnInit } from '@angular/core'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'
import { PlatformInfoService } from 'src/app/cdk/platform-info'
import { ExpandedSearchResultsContent } from 'src/app/types'
import { environment } from 'src/environments/environment'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component, Inject, OnInit } from '@angular/core'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'
import { PlatformInfoService } from 'src/app/cdk/platform-info'
import { ExpandedSearchResultsContent } from 'src/app/types'
import { environment } from 'src/environments/environment'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component, Inject, OnInit } from '@angular/core'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'
import { PlatformInfoService } from 'src/app/cdk/platform-info'
import { AccountTrustedIndividualsService } from 'src/app/core/account-trusted-individuals/account-trusted-individuals.service'
import { AccountTrustedIndividual } from 'src/app/types/account-trusted-individuals'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { Component, Inject, OnInit } from '@angular/core'
import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'
import {
MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,
MatLegacyDialogRef as MatDialogRef,
} from '@angular/material/legacy-dialog'
import { PlatformInfoService } from 'src/app/cdk/platform-info'
import { AccountTrustedOrganization } from 'src/app/types/account-trusted-organizations'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'
import { SettingsTrustedIndividualsSearchComponent } from './settings-trusted-individuals-search.component'
import { HttpClientTestingModule } from '@angular/common/http/testing'
import { RouterTestingModule } from '@angular/router/testing'
import { MatLegacyDialog as MatDialog, MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog'
import {
MatLegacyDialog as MatDialog,
MatLegacyDialogModule as MatDialogModule,
} from '@angular/material/legacy-dialog'
import { WINDOW_PROVIDERS } from '../../../cdk/window'
import { PlatformInfoService } from '../../../cdk/platform-info'
import { ErrorHandlerService } from '../../../core/error-handler/error-handler.service'
Expand Down
Loading

0 comments on commit 189e820

Please sign in to comment.