From ef5b8da66596d7455ff4ccc680c2ade701a979a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Z=C3=A9fling?= Date: Wed, 20 Nov 2024 01:00:28 +0100 Subject: [PATCH] Angular 19 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ng update @angular/cdk @angular/cli @angular/core @angular-eslint/schematics The installed Angular CLI version is outdated. Installing a temporary Angular CLI versioned 19.0.0 to perform the update. Using package manager: npm Collecting installed dependencies... Found 52 dependencies. Fetching dependency metadata from registry... Package "@angular-eslint/eslint-plugin" has a missing peer dependency of "@typescript-eslint/utils" @ "^7.11.0 || ^8.0.0". Package "@angular-eslint/eslint-plugin-template" has a missing peer dependency of "@typescript-eslint/types" @ "^7.11.0 || ^8.0.0". Package "@angular-eslint/eslint-plugin-template" has a missing peer dependency of "@typescript-eslint/utils" @ "^7.11.0 || ^8.0.0". Package "@angular-eslint/schematics" has a missing peer dependency of "@angular-devkit/core" @ ">= 18.0.0 < 19.0.0". Package "@angular-eslint/schematics" has a missing peer dependency of "@angular-devkit/schematics" @ ">= 18.0.0 < 19.0.0". Updating package.json with dependency @angular-devkit/build-angular @ "19.0.0" (was "18.0.2")... Updating package.json with dependency @angular-eslint/builder @ "18.4.1" (was "18.0.1")... Updating package.json with dependency @angular-eslint/eslint-plugin @ "18.4.1" (was "18.0.1")... Updating package.json with dependency @angular-eslint/eslint-plugin-template @ "18.4.1" (was "18.0.1")... Updating package.json with dependency @angular-eslint/schematics @ "18.4.1" (was "18.0.1")... Updating package.json with dependency @angular-eslint/template-parser @ "18.4.1" (was "18.0.1")... Updating package.json with dependency @angular/cli @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/compiler-cli @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/language-service @ "19.0.0" (was "18.1.2")... Updating package.json with dependency ng-packagr @ "19.0.0" (was "18.1.0")... Updating package.json with dependency typescript @ "5.6.3" (was "5.4.5")... Updating package.json with dependency @angular/animations @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/cdk @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/common @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/compiler @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/core @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/forms @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/platform-browser @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/platform-browser-dynamic @ "19.0.0" (was "18.1.2")... Updating package.json with dependency @angular/router @ "19.0.0" (was "18.1.2")... Updating package.json with dependency zone.js @ "0.15.0" (was "0.14.8")... UPDATE package.json (2545 bytes) ✔ Cleaning node modules directory ✔ Installing packages ** Executing migrations of package '@angular-eslint/schematics' ** ❯ Updates @angular-eslint to v18.2. Migration completed (No changes made). ** Executing migrations of package '@angular/cli' ** ❯ Update '@angular/ssr' import paths to use the new '/node' entry point when 'CommonEngine' is detected. Migration completed (No changes made). ❯ Update the workspace configuration by replacing deprecated options in 'angular.json' for compatibility with the latest Angular CLI changes. Migration completed (No changes made). ** Optional migrations of package '@angular/cli' ** This package has 1 optional migration that can be executed. Optional migrations may be skipped and executed after the update process, if preferred. Select the migrations that you'd like to run [use-application-builder] Migrate application projects to the new build system. (https://angular.dev/tools/cli/build-system-migration) ❯ Migrate application projects to the new build system. Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder. You can read more about this, including known issues and limitations, here: https://angular.dev/tools/cli/build-system-migration UPDATE tsconfig.json (620 bytes) Migration completed (1 file modified). ** Executing migrations of package '@angular/cdk' ** ❯ Updates the Angular CDK to v19. Skipping migration for project ng-select2-e2e. Unable to determine 'tsconfig.json' file in workspace config. ✓ Updated Angular CDK to version 19 Migration completed (No changes made). ** Executing migrations of package '@angular/core' ** ❯ Updates non-standalone Directives, Component and Pipes to 'standalone:false' and removes 'standalone:true' from those who are standalone. UPDATE projects/ng-select2-component/src/lib/select2.component.ts (40142 bytes) UPDATE projects/ng-select2-component/src/lib/select2-hint.component.ts (140 bytes) UPDATE projects/ng-select2-component/src/lib/select2-label.component.ts (142 bytes) UPDATE src/app/app-examples.component.ts (6503 bytes) UPDATE src/app/app-gen.component.ts (17275 bytes) UPDATE src/app/app.component.ts (281 bytes) Migration completed (6 files modified). ❯ Updates ExperimentalPendingTasks to PendingTasks. Migration completed (No changes made). ** Optional migrations of package '@angular/core' ** This package has 1 optional migration that can be executed. Optional migrations may be skipped and executed after the update process, if preferred. Select the migrations that you'd like to run [provide-initializer] Replaces `APP_INITIALIZER`, `ENVIRONMENT_INITIALIZER` & `PLATFORM_INITIALIZER` respectively with `provideAppInitializer`, `provideEnvironmentInitializer` & `providePlatformInitializer`. ❯ Replaces `APP_INITIALIZER`, `ENVIRONMENT_INITIALIZER` & `PLATFORM_INITIALIZER` respectively with `provideAppInitializer`, `provideEnvironmentInitializer` & `providePlatformInitializer`. Migration completed (No changes made). --- package.json | 42 +++++++++---------- .../src/lib/select2-hint.component.ts | 5 ++- .../src/lib/select2-label.component.ts | 5 ++- .../src/lib/select2.component.ts | 1 + src/app/app-examples.component.ts | 1 + src/app/app-gen.component.ts | 1 + src/app/app.component.ts | 1 + 7 files changed, 33 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index 388f13b..b0ed9f4 100644 --- a/package.json +++ b/package.json @@ -17,15 +17,15 @@ }, "private": false, "dependencies": { - "@angular/animations": "^18.0.1", - "@angular/cdk": "^18.0.1", - "@angular/common": "^18.0.1", - "@angular/compiler": "^18.0.1", - "@angular/core": "^18.0.1", - "@angular/forms": "^18.0.1", - "@angular/platform-browser": "^18.0.1", - "@angular/platform-browser-dynamic": "^18.0.1", - "@angular/router": "^18.0.1", + "@angular/animations": "^19.0.0", + "@angular/cdk": "^19.0.0", + "@angular/common": "^19.0.0", + "@angular/compiler": "^19.0.0", + "@angular/core": "^19.0.0", + "@angular/forms": "^19.0.0", + "@angular/platform-browser": "^19.0.0", + "@angular/platform-browser-dynamic": "^19.0.0", + "@angular/router": "^19.0.0", "@ikilote/json2html": "0.4.1", "bowser": "2.11.0", "core-js": "^2.5.4", @@ -34,18 +34,18 @@ "ngx-highlightjs": "12.0.0", "ngx-infinite-scroll": ">=18.0.0", "rxjs": "^7.8.1", - "zone.js": "~0.14.2" + "zone.js": "~0.15.0" }, "devDependencies": { - "@angular-devkit/build-angular": "18.0.2", - "@angular-eslint/builder": "18.0.1", - "@angular-eslint/eslint-plugin": "18.0.1", - "@angular-eslint/eslint-plugin-template": "18.0.1", - "@angular-eslint/schematics": "18.0.1", - "@angular-eslint/template-parser": "18.0.1", - "@angular/cli": "^18.0.2", - "@angular/compiler-cli": "^18.0.1", - "@angular/language-service": "^18.0.1", + "@angular-devkit/build-angular": "19.0.0", + "@angular-eslint/builder": "18.4.1", + "@angular-eslint/eslint-plugin": "18.4.1", + "@angular-eslint/eslint-plugin-template": "18.4.1", + "@angular-eslint/schematics": "18.4.1", + "@angular-eslint/template-parser": "18.4.1", + "@angular/cli": "^19.0.0", + "@angular/compiler-cli": "^19.0.0", + "@angular/language-service": "^19.0.0", "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", @@ -65,11 +65,11 @@ "karma-coverage-istanbul-reporter": "~2.0.0", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", - "ng-packagr": "^18.0.0", + "ng-packagr": "^19.0.0", "prettier": "^3.3.3", "protractor": "^7.0.0", "ts-node": "~7.0.1", "tslib": "^2.3.0", - "typescript": "~5.4.5" + "typescript": "~5.6.3" } } diff --git a/projects/ng-select2-component/src/lib/select2-hint.component.ts b/projects/ng-select2-component/src/lib/select2-hint.component.ts index b61663d..2365fbf 100644 --- a/projects/ng-select2-component/src/lib/select2-hint.component.ts +++ b/projects/ng-select2-component/src/lib/select2-hint.component.ts @@ -1,4 +1,7 @@ import { Directive } from '@angular/core'; -@Directive({ selector: 'select2-hint' }) +@Directive({ + selector: 'select2-hint', + standalone: false +}) export class Select2Hint {} diff --git a/projects/ng-select2-component/src/lib/select2-label.component.ts b/projects/ng-select2-component/src/lib/select2-label.component.ts index 3a54069..a20758e 100644 --- a/projects/ng-select2-component/src/lib/select2-label.component.ts +++ b/projects/ng-select2-component/src/lib/select2-label.component.ts @@ -1,4 +1,7 @@ import { Directive } from '@angular/core'; -@Directive({ selector: 'select2-label' }) +@Directive({ + selector: 'select2-label', + standalone: false +}) export class Select2Label {} diff --git a/projects/ng-select2-component/src/lib/select2.component.ts b/projects/ng-select2-component/src/lib/select2.component.ts index 4518fd4..17c4a6b 100644 --- a/projects/ng-select2-component/src/lib/select2.component.ts +++ b/projects/ng-select2-component/src/lib/select2.component.ts @@ -54,6 +54,7 @@ const displaySearchStatusList = ['default', 'hidden', 'always']; selector: 'select2', templateUrl: './select2.component.html', styleUrls: ['./select2.component.scss'], + standalone: false }) export class Select2 implements ControlValueAccessor, OnInit, DoCheck, AfterViewInit { _data: Select2Data; diff --git a/src/app/app-examples.component.ts b/src/app/app-examples.component.ts index da85c7d..fbf5082 100644 --- a/src/app/app-examples.component.ts +++ b/src/app/app-examples.component.ts @@ -36,6 +36,7 @@ import { selector: 'app-root', templateUrl: './app-examples.component.html', styleUrls: ['./app-examples.component.scss'], + standalone: false }) export class AppExamplesComponent { data1 = data1; diff --git a/src/app/app-gen.component.ts b/src/app/app-gen.component.ts index 73cc99c..a5d88db 100644 --- a/src/app/app-gen.component.ts +++ b/src/app/app-gen.component.ts @@ -11,6 +11,7 @@ import { data24 } from './app.data'; selector: 'app-root', templateUrl: './app-gen.component.html', styleUrls: ['./app-gen.component.scss'], + standalone: false }) export class AppGenComponent implements AfterContentInit { data = data24; diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 12e4830..69f17bd 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -5,5 +5,6 @@ import { Component, ViewEncapsulation } from '@angular/core'; templateUrl: './app.component.html', encapsulation: ViewEncapsulation.None, styleUrls: ['./app.component.scss'], + standalone: false }) export class AppComponent {}