From 1537166eb974221bc6b78081d03a54dbb08baaa0 Mon Sep 17 00:00:00 2001 From: muhammedaltug Date: Wed, 14 Sep 2022 17:29:45 +0300 Subject: [PATCH] bump angular version of angular libs update target to es2020 --- npm/ng-packs/migrations.json | 217 ++++---------------------------- npm/ng-packs/package.json | 77 ++++++------ npm/ng-packs/tsconfig.base.json | 2 +- 3 files changed, 62 insertions(+), 234 deletions(-) diff --git a/npm/ng-packs/migrations.json b/npm/ng-packs/migrations.json index 9e7c97ed2e..b724b6f446 100644 --- a/npm/ng-packs/migrations.json +++ b/npm/ng-packs/migrations.json @@ -2,216 +2,43 @@ "migrations": [ { "cli": "nx", - "version": "14.0.6", - "description": "Remove root property from project.json files", - "implementation": "./src/migrations/update-14-0-6/remove-roots", - "package": "nx", - "name": "14-0-6-remove-root" - }, - { - "cli": "nx", - "version": "14.2.0-beta.0", - "description": "Add JSON Schema to Nx configuration files", - "implementation": "./src/migrations/update-14-2-0/add-json-schema", - "package": "nx", - "name": "14-2-0-add-json-schema" - }, - { - "cli": "nx", - "version": "14.2.0-beta.0", - "description": "Remove default collection from configuration to switch to prompts for collection", - "implementation": "./src/migrations/update-14-2-0/remove-default-collection", - "package": "nx", - "name": "14-2-0-remove-default-collection" - }, - { - "cli": "nx", - "version": "14.2.0-beta.5", - "description": "Replace all ./ and ../ in outputs with absolute paths", - "implementation": "./src/migrations/update-14-2-0/replace-all-relative-outputs-with-absolute", - "package": "nx", - "name": "14-2-0-replace-relative-outputs-with-absolute" - }, - { - "cli": "nx", - "version": "14.3.4-beta.1", - "description": "Replace targetDependencies with targetDefaults", - "implementation": "./src/migrations/update-14-3-4/create-target-defaults", - "package": "nx", - "name": "14.3.4-create-target-defaults" - }, - { - "version": "14.0.0-beta.0", - "description": "Changes the presets in nx.json to come from the nx package", - "cli": "nx", - "implementation": "./src/migrations/update-14-0-0/change-nx-json-presets", - "package": "@nrwl/workspace", - "name": "14-0-0-change-nx-json-presets" - }, - { - "version": "14.0.0-beta.0", - "description": "Migrates from @nrwl/workspace:run-script to nx:run-script", - "cli": "nx", - "implementation": "./src/migrations/update-14-0-0/change-npm-script-executor", - "package": "@nrwl/workspace", - "name": "14-0-0-change-npm-script-executor" - }, - { - "version": "14.2.0", - "description": "Explicitly enable sourceAnalysis for all workspaces extending from npm.json or core.json (this was default behavior prior to 14.2)", - "cli": "nx", - "implementation": "./src/migrations/update-14-2-0/enable-source-analysis", - "package": "@nrwl/workspace", - "name": "14-2-0-enable-source-analysis" - }, - { - "cli": "nx", - "version": "14.0.0-beta.1", - "description": "Rename mfe.config.js to module-federation.config.js for consistent terminology.", - "factory": "./src/migrations/update-14-0-0/rename-mf-config", - "package": "@nrwl/angular", - "name": "rename-module-federation-config" - }, - { - "cli": "nx", - "version": "14.2.0-beta.0", - "description": "Remove 'showCircularDependencies' option from browser and server executors.", - "factory": "./src/migrations/update-14-2-0/remove-show-circular-dependencies-option", - "package": "@nrwl/angular", - "name": "remove-show-circular-dependencies-option" - }, - { - "cli": "nx", - "version": "14.2.0-beta.0", - "description": "Update the @angular/cli package version.", - "factory": "./src/migrations/update-14-2-0/update-angular-cli", - "package": "@nrwl/angular", - "name": "update-angular-cli-version" - }, - { - "cli": "nx", - "version": "14.2.0-beta.0", - "description": "Remove 'package.json' files from library projects secondary entrypoints.", - "factory": "./src/migrations/update-14-2-0/update-libraries-secondary-entrypoints", + "version": "14.6.0-beta.0", + "description": "Update the @angular/cli package version to ~14.2.0.", + "factory": "./src/migrations/update-14-6-0/update-angular-cli", "package": "@nrwl/angular", - "name": "update-libraries-secondary-entrypoints" + "name": "update-angular-cli-version-14-2-0" }, { "cli": "nx", - "version": "14.2.0-beta.0", - "description": "Update postinstall script running ngcc to use ES2020 target.", - "factory": "./src/migrations/update-14-2-0/update-ngcc-target", - "package": "@nrwl/angular", - "name": "update-postinstall-script-ngcc-target" - }, - { - "cli": "nx", - "version": "14.2.0-beta.0", - "description": "Update TypeScript compilation target to 'ES2020'.", - "factory": "./src/migrations/update-14-2-0/update-tsconfig-target", - "package": "@nrwl/angular", - "name": "update-tsconfig-target" - }, - { - "cli": "nx", - "version": "14.2.0-beta.6", - "description": "Update `initialNavigation: 'enabled'` to `initialNavigation: 'enabledBlocking'`.", - "factory": "./src/migrations/update-14-2-0/update-router-initial-navigation", - "package": "@nrwl/angular", - "name": "update-router-initial-navigation" - }, - { - "cli": "nx", - "version": "14.5.0-beta.0", - "description": "Update any references of MFE to MF.", - "factory": "./src/migrations/update-14-5-0/migrate-mfe-to-mf", - "package": "@nrwl/angular", - "name": "migrate-mfe-to-mf" - }, - { - "cli": "nx", - "version": "14.5.2-beta.0", - "description": "Update the @angular/cli package version to ~14.1.0.", - "factory": "./src/migrations/update-14-5-2/update-angular-cli", - "package": "@nrwl/angular", - "name": "update-angular-cli-version-14-1-0" - }, - { - "version": "14.0.0-beta", - "description": "As of Angular version 13, `entryComponents` are no longer necessary.", - "factory": "./migrations/entry-components/index", - "package": "@angular/core", - "name": "migration-entry-components" - }, - { - "version": "14.0.0-beta", - "description": "As of Angular version 14, Forms model classes accept a type parameter, and existing usages must be opted out to preserve backwards-compatibility.", - "factory": "./migrations/typed-forms/index", - "package": "@angular/core", - "name": "migration-v14-typed-forms" - }, - { - "version": "14.0.0-beta", - "description": "In Angular version 14, the `pathMatch` property of `Routes` was updated to be a strict union of the two valid options: `'full'|'prefix'`. `Routes` and `Route` variables need an explicit type so TypeScript does not infer the property as the looser `string`.", - "factory": "./migrations/path-match-type/index", - "package": "@angular/core", - "name": "migration-v14-path-match-type" + "version": "14.6.1-beta.0", + "description": "Change Cypress e2e and component testing presets to use __filename instead of __dirname and include a devServerTarget for component testing.", + "factory": "./src/migrations/update-14-6-1/update-cypress-configs-presets", + "package": "@nrwl/cypress", + "name": "update-cypress-configs-preset" }, { - "version": "14.0.0-beta.2", "cli": "nx", - "description": "Update move jest config files to .ts files.", - "factory": "./src/migrations/update-14-0-0/update-jest-config-ext", - "package": "@nrwl/jest", - "name": "update-jest-config-extensions" + "version": "14.7.0-beta.0", + "description": "Update Cypress if using v10 to support latest component testing features", + "factory": "./src/migrations/update-14-7-0/update-cypress-version-if-10", + "package": "@nrwl/cypress", + "name": "update-cypress-if-v10" }, { - "version": "14.1.5-beta.0", + "version": "14.6.0-beta.0", "cli": "nx", - "description": "Update to export default in jest config and revert jest.preset.ts to jest.preset.js", - "factory": "./src/migrations/update-14-1-5/update-exports-jest-config", + "description": "Update jest configs to support jest 28 changes (https://jestjs.io/docs/upgrading-to-jest28#configuration-options)", + "factory": "./src/migrations/update-14-6-0/update-configs-jest-28", "package": "@nrwl/jest", - "name": "update-to-export-default" + "name": "update-configs-jest-28" }, { - "version": "14.5.5-beta.0", + "version": "14.6.0-beta.0", "cli": "nx", - "description": "Exclude jest.config.ts from tsconfig where missing.", - "factory": "./src/migrations/update-14-0-0/update-jest-config-ext", + "description": "Update jest test files to support jest 28 changes (https://jestjs.io/docs/upgrading-to-jest28)", + "factory": "./src/migrations/update-14-6-0/update-tests-jest-28", "package": "@nrwl/jest", - "name": "exclude-jest-config-from-ts-config" - }, - { - "cli": "nx", - "version": "14.1.9-beta.0", - "description": "Adds @swc/core and @swc-node as a dev dep if you are using them", - "factory": "./src/migrations/update-14-1-9/add-swc-deps-if-needed", - "package": "@nrwl/linter", - "name": "add-swc-deps" - }, - { - "cli": "nx", - "version": "14.2.3-beta.0", - "description": "Adds @swc/core and @swc-node as a dev dep if you are using them (repeated due to prior mistake)", - "factory": "./src/migrations/update-14-1-9/add-swc-deps-if-needed", - "package": "@nrwl/linter", - "name": "add-swc-deps-again" - }, - { - "cli": "nx", - "version": "14.4.4", - "description": "Adds @typescript-eslint/utils as a dev dep", - "factory": "./src/migrations/update-14-4-4/experimental-to-utils-deps", - "package": "@nrwl/linter", - "name": "experimental-to-utils-deps" - }, - { - "cli": "nx", - "version": "14.4.4", - "description": "Switch from @typescript-eslint/experimental-utils to @typescript-eslint/utils in all rules and rules.spec files", - "factory": "./src/migrations/update-14-4-4/experimental-to-utils-rules", - "package": "@nrwl/linter", - "name": "experimental-to-utils-rules" + "name": "update-tests-jest-28" } ] } diff --git a/npm/ng-packs/package.json b/npm/ng-packs/package.json index 23d0968a26..ec541eeede 100644 --- a/npm/ng-packs/package.json +++ b/npm/ng-packs/package.json @@ -28,7 +28,7 @@ "workspace-generator": "nx workspace-generator", "dep-graph": "nx dep-graph", "help": "nx help", - "compile:ivy": "yarn ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points --tsconfig './tsconfig.prod.json' --source node_modules", + "compile:ivy": "yarn ngcc --properties es2020 browser module main --first-only --create-ivy-entry-points --tsconfig './tsconfig.prod.json' --source node_modules", "postinstall": "node ./decorate-angular-cli.js && yarn compile:ivy", "build:schematics": "cd scripts && yarn && yarn build:schematics && cd ..", "dev:schematics": "tsc -p packages/schematics/tsconfig.json -w", @@ -40,25 +40,6 @@ }, "private": true, "devDependencies": { - "@abp/utils": "~6.0.0-rc.3", - "@angular-devkit/build-angular": "14.1.3", - "@angular-devkit/build-ng-packagr": "^0.1002.0", - "@angular-devkit/schematics-cli": "~12.2.0", - "@angular-eslint/eslint-plugin": "14.0.3", - "@angular-eslint/eslint-plugin-template": "14.0.3", - "@angular-eslint/template-parser": "14.0.3", - "@angular/animations": "14.1.3", - "@angular/cli": "~14.1.0", - "@angular/common": "14.1.3", - "@angular/compiler": "14.1.3", - "@angular/compiler-cli": "14.1.3", - "@angular/core": "14.1.3", - "@angular/forms": "14.1.3", - "@angular/language-service": "14.1.3", - "@angular/localize": "14.1.3", - "@angular/platform-browser": "14.1.3", - "@angular/platform-browser-dynamic": "14.1.3", - "@angular/router": "14.1.3", "@abp/ng.account": "~6.0.0-rc.3", "@abp/ng.account.core": "~6.0.0-rc.3", "@abp/ng.core": "~6.0.0-rc.3", @@ -70,23 +51,43 @@ "@abp/ng.tenant-management": "~6.0.0-rc.3", "@abp/ng.theme.basic": "~6.0.0-rc.3", "@abp/ng.theme.shared": "~6.0.0-rc.3", + "@abp/utils": "~6.0.0-rc.3", + "@angular-devkit/build-angular": "14.2.2", + "@angular-devkit/build-ng-packagr": "^0.1002.0", + "@angular-devkit/schematics-cli": "~12.2.0", + "@angular-eslint/eslint-plugin": "14.0.3", + "@angular-eslint/eslint-plugin-template": "14.0.3", + "@angular-eslint/template-parser": "14.0.3", + "@angular/animations": "14.2.1", + "@angular/cli": "~14.2.0", + "@angular/common": "14.2.1", + "@angular/compiler": "14.2.1", + "@angular/compiler-cli": "14.2.1", + "@angular/core": "14.2.1", + "@angular/forms": "14.2.1", + "@angular/language-service": "14.2.1", + "@angular/localize": "14.2.1", + "@angular/platform-browser": "14.2.1", + "@angular/platform-browser-dynamic": "14.2.1", + "@angular/router": "14.2.1", "@fortawesome/fontawesome-free": "^5.15.4", "@ng-bootstrap/ng-bootstrap": "~12.0.0-beta.4", "@ngneat/spectator": "^10.0.0", "@ngx-validate/core": "^0.1.2", - "@nrwl/angular": "14.5.10", - "@nrwl/cli": "14.5.10", - "@nrwl/cypress": "14.5.10", - "@nrwl/eslint-plugin-nx": "14.5.10", - "@nrwl/jest": "14.5.10", - "@nrwl/linter": "14.5.10", - "@nrwl/workspace": "14.5.10", - "@schematics/angular": "14.1.3", + "@nrwl/angular": "14.7.5", + "@nrwl/cli": "14.7.5", + "@nrwl/cypress": "14.7.5", + "@nrwl/eslint-plugin-nx": "14.7.5", + "@nrwl/jest": "14.7.5", + "@nrwl/linter": "14.7.5", + "@nrwl/workspace": "14.7.5", + "@popperjs/core": "~2.11.2", + "@schematics/angular": "14.2.2", "@swimlane/ngx-datatable": "^20.0.0", - "@types/jest": "27.4.1", + "@types/jest": "28.1.8", "@types/node": "14.14.33", - "@typescript-eslint/eslint-plugin": "5.36.1", - "@typescript-eslint/parser": "5.36.1", + "@typescript-eslint/eslint-plugin": "5.33.1", + "@typescript-eslint/parser": "5.33.1", "angular-oauth2-oidc": "^13.0.1", "bootstrap": "^5.1.1", "chart.js": "^3.5.1", @@ -96,16 +97,17 @@ "eslint-config-prettier": "8.1.0", "eslint-plugin-cypress": "^2.10.3", "got": "^11.5.2", - "jest": "27.5.1", + "jest": "28.1.3", "jest-canvas-mock": "^2.3.1", - "jest-preset-angular": "11.1.2", + "jest-environment-jsdom": "28.1.1", + "jest-preset-angular": "12.2.2", "jsonc-parser": "^2.3.0", "just-clone": "^3.2.1", "just-compare": "^1.4.0", "lerna": "^4.0.0", - "ng-packagr": "14.1.0", + "ng-packagr": "14.2.1", "ng-zorro-antd": "^13.0.0", - "@popperjs/core": "~2.11.2", + "nx": "14.7.5", "postcss": "^8.3.9", "postcss-import": "14.1.0", "postcss-preset-env": "7.5.0", @@ -114,15 +116,14 @@ "protractor": "~7.0.0", "rxjs": "7.5.6", "should-quote": "^1.0.0", - "ts-jest": "27.1.4", + "ts-jest": "28.0.8", "ts-node": "10.9.1", "ts-toolbelt": "6.15.4", "tsickle": "^0.39.1", "tslib": "^2.0.0", "tslint": "~6.1.0", "typescript": "4.7.4", - "zone.js": "0.11.4", - "nx": "14.5.10" + "zone.js": "0.11.4" }, "dependencies": {} } diff --git a/npm/ng-packs/tsconfig.base.json b/npm/ng-packs/tsconfig.base.json index 6671ad47e5..e9cd6ac6b6 100644 --- a/npm/ng-packs/tsconfig.base.json +++ b/npm/ng-packs/tsconfig.base.json @@ -8,7 +8,7 @@ "emitDecoratorMetadata": true, "experimentalDecorators": true, "importHelpers": true, - "target": "es2015", + "target": "es2020", "module": "esnext", "lib": ["es2017", "dom"], "baseUrl": "./",