From 99b631e8b49b0573669c9e8691aba968f46aed76 Mon Sep 17 00:00:00 2001 From: sumeyye Date: Tue, 21 Jan 2025 15:23:32 +0300 Subject: [PATCH 1/3] update: angular dependencies to 19.1.x for ng-packs --- npm/ng-packs/migrations.json | 156 ++--------------------------------- npm/ng-packs/package.json | 56 ++++++------- 2 files changed, 36 insertions(+), 176 deletions(-) diff --git a/npm/ng-packs/migrations.json b/npm/ng-packs/migrations.json index 6fb305ede9..e89bc86d78 100644 --- a/npm/ng-packs/migrations.json +++ b/npm/ng-packs/migrations.json @@ -1,159 +1,19 @@ { "migrations": [ { - "version": "20.0.0-beta.7", - "description": "Migration for v20.0.0-beta.7", - "implementation": "./src/migrations/update-20-0-0/move-use-daemon-process", - "package": "nx", - "name": "move-use-daemon-process" - }, - { - "version": "20.0.1", - "description": "Set `useLegacyCache` to true for migrating workspaces", - "implementation": "./src/migrations/update-20-0-1/use-legacy-cache", - "x-repair-skip": true, - "package": "nx", - "name": "use-legacy-cache" - }, - { - "version": "20.2.0-beta.5", - "description": "Update TypeScript ESLint packages to v8.13.0 if they are already on v8", - "implementation": "./src/migrations/update-20-2-0/update-typescript-eslint-v8-13-0", + "version": "20.3.0-beta.1", + "description": "Update ESLint flat config to include .cjs, .mjs, .cts, and .mts files in overrides (if needed)", + "implementation": "./src/migrations/update-20-3-0/add-file-extensions-to-overrides", "package": "@nx/eslint", - "name": "update-typescript-eslint-v8.13.0" - }, - { - "cli": "nx", - "version": "19.6.0-beta.4", - "description": "Update ciWebServerCommand to use static serve for the application.", - "implementation": "./src/migrations/update-19-6-0/update-ci-webserver-for-static-serve", - "package": "@nx/cypress", - "name": "update-19-6-0-update-ci-webserver-for-vite" - }, - { - "cli": "nx", - "version": "20.0.0-beta.5", - "description": "replace getJestProjects with getJestProjectsAsync", - "implementation": "./src/migrations/update-20-0-0/replace-getJestProjects-with-getJestProjectsAsync", - "package": "@nx/jest", - "name": "replace-getJestProjects-with-getJestProjectsAsync" - }, - { - "cli": "nx", - "version": "19.6.0-beta.4", - "description": "Ensure Module Federation DTS is turned off by default.", - "factory": "./src/migrations/update-19-6-0/turn-off-dts-by-default", - "package": "@nx/angular", - "name": "update-19-6-0" - }, - { - "cli": "nx", - "version": "19.6.0-beta.7", - "requires": { "@angular/core": ">=18.2.0" }, - "description": "Update the @angular/cli package version to ~18.2.0.", - "factory": "./src/migrations/update-19-6-0/update-angular-cli", - "package": "@nx/angular", - "name": "update-angular-cli-version-18-2-0" - }, - { - "cli": "nx", - "version": "19.6.1-beta.0", - "description": "Ensure Target Defaults are set correctly for Module Federation.", - "factory": "./src/migrations/update-19-6-1/ensure-depends-on-for-mf", - "package": "@nx/angular", - "name": "update-19-6-1-ensure-module-federation-target-defaults" - }, - { - "cli": "nx", - "version": "20.2.0-beta.2", - "description": "Update the ModuleFederationConfig import use @nx/module-federation.", - "factory": "./src/migrations/update-20-2-0/migrate-mf-imports-to-new-package", - "package": "@nx/angular", - "name": "update-20-2-0-update-module-federation-config-import" - }, - { - "cli": "nx", - "version": "20.2.0-beta.2", - "description": "Update the withModuleFederation import use @nx/module-federation/angular.", - "factory": "./src/migrations/update-20-2-0/migrate-with-mf-import-to-new-package", - "package": "@nx/angular", - "name": "update-20-2-0-update-with-module-federation-import" - }, - { - "cli": "nx", - "version": "20.2.0-beta.5", - "requires": { "@angular/core": ">=19.0.0" }, - "description": "Update the @angular/cli package version to ~19.0.0.", - "factory": "./src/migrations/update-20-2-0/update-angular-cli", - "package": "@nx/angular", - "name": "update-angular-cli-version-19-0-0" - }, - { - "cli": "nx", - "version": "20.2.0-beta.5", - "requires": { "@angular/core": ">=19.0.0" }, - "description": "Add the '@angular/localize/init' polyfill to the 'polyfills' option of targets using esbuild-based executors.", - "factory": "./src/migrations/update-20-2-0/add-localize-polyfill-to-targets", - "package": "@nx/angular", - "name": "add-localize-polyfill-to-targets" - }, - { - "cli": "nx", - "version": "20.2.0-beta.5", - "requires": { "@angular/core": ">=19.0.0" }, - "description": "Update '@angular/ssr' import paths to use the new '/node' entry point when 'CommonEngine' is detected.", - "factory": "./src/migrations/update-20-2-0/update-angular-ssr-imports-to-use-node-entry-point", - "package": "@nx/angular", - "name": "update-angular-ssr-imports-to-use-node-entry-point" + "name": "add-file-extensions-to-overrides" }, { "cli": "nx", - "version": "20.2.0-beta.6", - "requires": { "@angular/core": ">=19.0.0" }, - "description": "Disable the Angular ESLint prefer-standalone rule if not set.", - "factory": "./src/migrations/update-20-2-0/disable-angular-eslint-prefer-standalone", + "version": "20.3.0-beta.2", + "description": "If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.", + "factory": "./src/migrations/update-20-3-0/ensure-nx-module-federation-package", "package": "@nx/angular", - "name": "disable-angular-eslint-prefer-standalone" - }, - { - "cli": "nx", - "version": "20.2.0-beta.8", - "requires": { "@angular/core": ">=19.0.0" }, - "description": "Remove Angular ESLint rules that were removed in v19.0.0.", - "factory": "./src/migrations/update-20-2-0/remove-angular-eslint-rules", - "package": "@nx/angular", - "name": "remove-angular-eslint-rules" - }, - { - "cli": "nx", - "version": "20.2.0-beta.8", - "requires": { "@angular/core": ">=19.0.0" }, - "description": "Remove the deprecated 'tailwindConfig' option from ng-packagr executors. Tailwind CSS configurations located at the project or workspace root will be picked up automatically.", - "factory": "./src/migrations/update-20-2-0/remove-tailwind-config-from-ng-packagr-executors", - "package": "@nx/angular", - "name": "remove-tailwind-config-from-ng-packagr-executors" - }, - { - "version": "19.0.0", - "description": "Updates non-standalone Directives, Component and Pipes to 'standalone:false' and removes 'standalone:true' from those who are standalone", - "factory": "./bundles/explicit-standalone-flag#migrate", - "package": "@angular/core", - "name": "explicit-standalone-flag" - }, - { - "version": "19.0.0", - "description": "Updates ExperimentalPendingTasks to PendingTasks", - "factory": "./bundles/pending-tasks#migrate", - "package": "@angular/core", - "name": "pending-tasks" - }, - { - "version": "19.0.0", - "description": "Replaces `APP_INITIALIZER`, `ENVIRONMENT_INITIALIZER` & `PLATFORM_INITIALIZER` respectively with `provideAppInitializer`, `provideEnvironmentInitializer` & `providePlatformInitializer`.", - "factory": "./bundles/provide-initializer#migrate", - "optional": true, - "package": "@angular/core", - "name": "provide-initializer" + "name": "ensure-nx-module-federation-package" } ] } diff --git a/npm/ng-packs/package.json b/npm/ng-packs/package.json index dfb3bc458e..3046c6abde 100644 --- a/npm/ng-packs/package.json +++ b/npm/ng-packs/package.json @@ -46,38 +46,38 @@ "devDependencies": { "@abp/ng.theme.lepton-x": "~4.1.0-rc.1", "@abp/utils": "~9.1.0-rc.1", - "@angular-devkit/build-angular": "~19.0.0", - "@angular-devkit/core": "~19.0.0", - "@angular-devkit/schematics": "~19.0.0", - "@angular-devkit/schematics-cli": "~19.0.0", + "@angular-devkit/build-angular": "~19.1.0", + "@angular-devkit/core": "~19.1.0", + "@angular-devkit/schematics": "~19.1.0", + "@angular-devkit/schematics-cli": "~19.1.0", "@angular-eslint/eslint-plugin": "~19.0.0", "@angular-eslint/eslint-plugin-template": "~19.0.0", "@angular-eslint/template-parser": "~19.0.0", - "@angular/animations": "~19.0.0", - "@angular/cli": "~19.0.0", - "@angular/common": "~19.0.0", - "@angular/compiler": "~19.0.0", - "@angular/compiler-cli": "~19.0.0", - "@angular/core": "~19.0.0", - "@angular/forms": "~19.0.0", - "@angular/language-service": "~19.0.0", - "@angular/localize": "~19.0.0", - "@angular/platform-browser": "~19.0.0", - "@angular/platform-browser-dynamic": "~19.0.0", - "@angular/router": "~19.0.0", + "@angular/animations": "~19.1.0", + "@angular/cli": "~19.1.0", + "@angular/common": "~19.1.0", + "@angular/compiler": "~19.1.0", + "@angular/compiler-cli": "~19.1.0", + "@angular/core": "~19.1.0", + "@angular/forms": "~19.1.0", + "@angular/language-service": "~19.1.0", + "@angular/localize": "~19.1.0", + "@angular/platform-browser": "~19.1.0", + "@angular/platform-browser-dynamic": "~19.1.0", + "@angular/router": "~19.1.0", "@fortawesome/fontawesome-free": "^6.0.0", - "@ng-bootstrap/ng-bootstrap": "~18.0.0-rc.0", + "@ng-bootstrap/ng-bootstrap": "~18.0.0", "@ngneat/spectator": "~19.1.0", "@ngx-validate/core": "^0.2.0", - "@nx/angular": "~20.2.0", - "@nx/cypress": "~20.2.0", - "@nx/devkit": "~20.2.0", - "@nx/eslint": "~20.2.0", - "@nx/eslint-plugin": "~20.2.0", - "@nx/jest": "~20.2.0", - "@nx/js": "~20.2.0", - "@nx/plugin": "~20.2.0", - "@nx/workspace": "~20.2.0", + "@nx/angular": "~20.3.0", + "@nx/cypress": "~20.3.0", + "@nx/devkit": "~20.3.0", + "@nx/eslint": "~20.3.0", + "@nx/eslint-plugin": "~20.3.0", + "@nx/jest": "~20.3.0", + "@nx/js": "~20.3.0", + "@nx/plugin": "~20.3.0", + "@nx/workspace": "~20.3.0", "@popperjs/core": "~2.11.0", "@schematics/angular": "~19.0.0", "@swc-node/register": "1.9.2", @@ -111,9 +111,9 @@ "just-compare": "^2.0.0", "lerna": "^4.0.0", "lint-staged": "^13.0.0", - "ng-packagr": "~19.0.0", + "ng-packagr": "~19.1.0", "ng-zorro-antd": "^19.0.0-beta.0", - "nx": "~20.2.0", + "nx": "~20.3.0", "postcss": "^8.0.0", "postcss-import": "14.1.0", "postcss-preset-env": "7.5.0", From 10793e59325815f001df97a47ea572ec2d282383 Mon Sep 17 00:00:00 2001 From: sumeyye Date: Tue, 21 Jan 2025 15:24:02 +0300 Subject: [PATCH 2/3] update: angular dependencies to 19.1.x for schematics and theme-shared --- npm/ng-packs/packages/schematics/package.json | 8 ++++---- npm/ng-packs/packages/theme-shared/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/npm/ng-packs/packages/schematics/package.json b/npm/ng-packs/packages/schematics/package.json index 361bf77604..c0358c2abc 100644 --- a/npm/ng-packs/packages/schematics/package.json +++ b/npm/ng-packs/packages/schematics/package.json @@ -4,16 +4,16 @@ "author": "", "schematics": "./collection.json", "dependencies": { - "@angular-devkit/core": "~19.0.0", - "@angular-devkit/schematics": "~19.0.0", - "@angular/cli": "~19.0.0", + "@angular-devkit/core": "~19.1.0", + "@angular-devkit/schematics": "~19.1.0", + "@angular/cli": "~19.1.0", "got": "^11.5.2", "jsonc-parser": "^2.3.0", "should-quote": "^1.0.0", "typescript": "~5.6.0" }, "devDependencies": { - "@schematics/angular": "~19.0.0", + "@schematics/angular": "~19.1.0", "@types/jest": "29.4.4", "@types/node": "20.2.5", "jest": "29.4.3", diff --git a/npm/ng-packs/packages/theme-shared/package.json b/npm/ng-packs/packages/theme-shared/package.json index b8376770b7..f1f78d5cd5 100644 --- a/npm/ng-packs/packages/theme-shared/package.json +++ b/npm/ng-packs/packages/theme-shared/package.json @@ -9,7 +9,7 @@ "dependencies": { "@abp/ng.core": "~9.1.0-rc.1", "@fortawesome/fontawesome-free": "^5.0.0", - "@ng-bootstrap/ng-bootstrap": "~17.0.0", + "@ng-bootstrap/ng-bootstrap": "~18.0.0", "@ngx-validate/core": "^0.2.0", "@popperjs/core": "~2.11.0", "@swimlane/ngx-datatable": "^20.0.0", From 6b73b45663e6d1045f5a08812b272434e768aeb9 Mon Sep 17 00:00:00 2001 From: sumeyye Date: Tue, 21 Jan 2025 15:24:28 +0300 Subject: [PATCH 3/3] update: angular dependencies to 19.1.x for templates --- templates/app-nolayers/angular/package.json | 26 ++++++++--------- templates/app/angular/package.json | 26 ++++++++--------- templates/module/angular/package.json | 28 +++++++++---------- .../projects/my-project-name/package.json | 4 +-- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/templates/app-nolayers/angular/package.json b/templates/app-nolayers/angular/package.json index d5c530a12a..5d35381f99 100644 --- a/templates/app-nolayers/angular/package.json +++ b/templates/app-nolayers/angular/package.json @@ -21,15 +21,15 @@ "@abp/ng.tenant-management": "~9.1.0-rc.1", "@abp/ng.theme.lepton-x": "~4.1.0-rc.1", "@abp/ng.theme.shared": "~9.1.0-rc.1", - "@angular/animations": "~19.0.0", - "@angular/common": "~19.0.0", - "@angular/compiler": "~19.0.0", - "@angular/core": "~19.0.0", - "@angular/forms": "~19.0.0", - "@angular/localize": "~19.0.0", - "@angular/platform-browser": "~19.0.0", - "@angular/platform-browser-dynamic": "~19.0.0", - "@angular/router": "~19.0.0", + "@angular/animations": "~19.1.0", + "@angular/common": "~19.1.0", + "@angular/compiler": "~19.1.0", + "@angular/core": "~19.1.0", + "@angular/forms": "~19.1.0", + "@angular/localize": "~19.1.0", + "@angular/platform-browser": "~19.1.0", + "@angular/platform-browser-dynamic": "~19.1.0", + "@angular/router": "~19.1.0", "bootstrap-icons": "~1.8.0", "rxjs": "~7.8.0", "tslib": "^2.0.0", @@ -37,15 +37,15 @@ }, "devDependencies": { "@abp/ng.schematics": "~9.1.0-rc.1", - "@angular-devkit/build-angular": "~19.0.0", + "@angular-devkit/build-angular": "~19.1.0", "@angular-eslint/builder": "~19.0.0", "@angular-eslint/eslint-plugin": "~19.0.0", "@angular-eslint/eslint-plugin-template": "~19.0.0", "@angular-eslint/schematics": "~19.0.0", "@angular-eslint/template-parser": "~19.0.0", - "@angular/cli": "~19.0.0", - "@angular/compiler-cli": "~19.0.0", - "@angular/language-service": "~19.0.0", + "@angular/cli": "~19.1.0", + "@angular/compiler-cli": "~19.1.0", + "@angular/language-service": "~19.1.0", "@types/jasmine": "~3.6.0", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "7.16.0", diff --git a/templates/app/angular/package.json b/templates/app/angular/package.json index d5c530a12a..5d35381f99 100644 --- a/templates/app/angular/package.json +++ b/templates/app/angular/package.json @@ -21,15 +21,15 @@ "@abp/ng.tenant-management": "~9.1.0-rc.1", "@abp/ng.theme.lepton-x": "~4.1.0-rc.1", "@abp/ng.theme.shared": "~9.1.0-rc.1", - "@angular/animations": "~19.0.0", - "@angular/common": "~19.0.0", - "@angular/compiler": "~19.0.0", - "@angular/core": "~19.0.0", - "@angular/forms": "~19.0.0", - "@angular/localize": "~19.0.0", - "@angular/platform-browser": "~19.0.0", - "@angular/platform-browser-dynamic": "~19.0.0", - "@angular/router": "~19.0.0", + "@angular/animations": "~19.1.0", + "@angular/common": "~19.1.0", + "@angular/compiler": "~19.1.0", + "@angular/core": "~19.1.0", + "@angular/forms": "~19.1.0", + "@angular/localize": "~19.1.0", + "@angular/platform-browser": "~19.1.0", + "@angular/platform-browser-dynamic": "~19.1.0", + "@angular/router": "~19.1.0", "bootstrap-icons": "~1.8.0", "rxjs": "~7.8.0", "tslib": "^2.0.0", @@ -37,15 +37,15 @@ }, "devDependencies": { "@abp/ng.schematics": "~9.1.0-rc.1", - "@angular-devkit/build-angular": "~19.0.0", + "@angular-devkit/build-angular": "~19.1.0", "@angular-eslint/builder": "~19.0.0", "@angular-eslint/eslint-plugin": "~19.0.0", "@angular-eslint/eslint-plugin-template": "~19.0.0", "@angular-eslint/schematics": "~19.0.0", "@angular-eslint/template-parser": "~19.0.0", - "@angular/cli": "~19.0.0", - "@angular/compiler-cli": "~19.0.0", - "@angular/language-service": "~19.0.0", + "@angular/cli": "~19.1.0", + "@angular/compiler-cli": "~19.1.0", + "@angular/language-service": "~19.1.0", "@types/jasmine": "~3.6.0", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "7.16.0", diff --git a/templates/module/angular/package.json b/templates/module/angular/package.json index 4134fead2b..223a33d92a 100644 --- a/templates/module/angular/package.json +++ b/templates/module/angular/package.json @@ -22,30 +22,30 @@ "@abp/ng.tenant-management": "~9.1.0-rc.1", "@abp/ng.theme.basic": "~9.1.0-rc.1", "@abp/ng.theme.shared": "~9.1.0-rc.1", - "@angular/animations": "~19.0.0", - "@angular/common": "~19.0.0", - "@angular/compiler": "~19.0.0", - "@angular/core": "~19.0.0", - "@angular/forms": "~19.0.0", - "@angular/localize": "~19.0.0", - "@angular/platform-browser": "~19.0.0", - "@angular/platform-browser-dynamic": "~19.0.0", - "@angular/router": "~19.0.0", + "@angular/animations": "~19.1.0", + "@angular/common": "~19.1.0", + "@angular/compiler": "~19.1.0", + "@angular/core": "~19.1.0", + "@angular/forms": "~19.1.0", + "@angular/localize": "~19.1.0", + "@angular/platform-browser": "~19.1.0", + "@angular/platform-browser-dynamic": "~19.1.0", + "@angular/router": "~19.1.0", "rxjs": "~7.8.0", "tslib": "^2.0.0", "zone.js": "~0.15.0" }, "devDependencies": { "@abp/ng.schematics": "~9.1.0-rc.1", - "@angular-devkit/build-angular": "~19.0.0", + "@angular-devkit/build-angular": "~19.1.0", "@angular-eslint/builder": "~19.0.0", "@angular-eslint/eslint-plugin": "~19.0.0", "@angular-eslint/eslint-plugin-template": "~19.0.0", "@angular-eslint/schematics": "~19.0.0", "@angular-eslint/template-parser": "~19.0.0", - "@angular/cli": "~19.0.0", - "@angular/compiler-cli": "~19.0.0", - "@angular/language-service": "~19.0.0", + "@angular/cli": "~19.1.0", + "@angular/compiler-cli": "~19.1.0", + "@angular/language-service": "~19.1.0", "@types/jasmine": "~3.6.0", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "7.16.0", @@ -57,7 +57,7 @@ "karma-coverage": "~2.1.0", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.7.0", - "ng-packagr": "~19.0.0", + "ng-packagr": "~19.1.0", "symlink": "^2.0.0", "typescript": "~5.6.0" } diff --git a/templates/module/angular/projects/my-project-name/package.json b/templates/module/angular/projects/my-project-name/package.json index 6ac5d309fb..7af2340ee2 100644 --- a/templates/module/angular/projects/my-project-name/package.json +++ b/templates/module/angular/projects/my-project-name/package.json @@ -2,8 +2,8 @@ "name": "@my-company-name/my-project-name", "version": "0.0.1", "peerDependencies": { - "@angular/common": "~19.0.0", - "@angular/core": "~19.0.0", + "@angular/common": "~19.1.0", + "@angular/core": "~19.1.0", "@abp/ng.core": "~9.1.0-rc.1", "@abp/ng.theme.shared": "~9.1.0-rc.1" },