From dc26f9048641d43b0052e6261717d6ae12784228 Mon Sep 17 00:00:00 2001 From: sonallux <13821543+sonallux@users.noreply.github.com> Date: Fri, 14 May 2021 10:33:20 +0200 Subject: [PATCH 1/3] chore(deps)!: update to angular 12 fixes #972 BREAKING CHANGE: update to angular 12 --- package.json | 6 ++-- .../examples/full-cycle-app/package.json | 30 +++++++++---------- .../src/environments/environment.ts | 2 +- .../examples/full-cycle-app/src/polyfills.ts | 2 +- .../examples/full-cycle-app/src/test.ts | 2 +- .../examples/sanity-app/package.json | 30 +++++++++---------- .../src/environments/environment.ts | 2 +- .../examples/sanity-app/src/polyfills.ts | 2 +- .../examples/sanity-app/src/test.ts | 2 +- packages/custom-webpack/package.json | 8 ++--- .../src/browser/schema.ext.json | 2 +- .../src/dev-server/schema.ext.json | 2 +- .../src/extract-i18n/schema.ext.json | 2 +- .../custom-webpack/src/karma/schema.ext.json | 2 +- .../custom-webpack/src/server/schema.ext.json | 2 +- .../jest/examples/multiple-apps/angular.json | 20 +++++++++---- .../jest/examples/multiple-apps/package.json | 30 +++++++++---------- .../src/environments/environment.ts | 2 +- .../projects/my-first-app/src/polyfills.ts | 2 +- .../src/environments/environment.ts | 2 +- .../projects/my-second-app/src/polyfills.ts | 2 +- .../jest/examples/simple-app/angular.json | 10 +++++-- .../jest/examples/simple-app/package.json | 28 ++++++++--------- .../src/environments/environment.ts | 2 +- .../jest/examples/simple-app/src/polyfills.ts | 2 +- packages/jest/package.json | 6 ++-- packages/jest/src/schema.json | 2 +- packages/timestamp/example/angular.json | 10 +++++-- packages/timestamp/example/package.json | 28 ++++++++--------- .../example/src/environments/environment.ts | 2 +- packages/timestamp/example/src/polyfills.ts | 2 +- packages/timestamp/example/src/test.ts | 2 +- packages/timestamp/package.json | 6 ++-- packages/timestamp/src/schema.json | 2 +- 34 files changed, 136 insertions(+), 120 deletions(-) diff --git a/package.json b/package.json index ddd629f2a..a0d4e558a 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "author": "Evgeny Barabanov", "license": "MIT", "engines": { - "node": ">=10.0.0" + "node": ">=12.13.0" }, "scripts": { "bootstrap:packages": "lerna bootstrap --scope '@angular-builders/*'", @@ -25,8 +25,8 @@ "graduate": "lerna publish --conventional-commits --conventional-graduate" }, "devDependencies": { - "@angular/compiler": "^11.0.0", - "@angular/compiler-cli": "^11.0.0", + "@angular/compiler": "^12.0.0", + "@angular/compiler-cli": "^12.0.0", "@commitlint/cli": "^12.0.0", "@commitlint/config-conventional": "^12.0.0", "@types/jest": "^26.0.0", diff --git a/packages/custom-webpack/examples/full-cycle-app/package.json b/packages/custom-webpack/examples/full-cycle-app/package.json index 879ea902c..63662cf29 100644 --- a/packages/custom-webpack/examples/full-cycle-app/package.json +++ b/packages/custom-webpack/examples/full-cycle-app/package.json @@ -11,24 +11,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "^11.0.0", - "@angular/common": "^11.0.0", - "@angular/compiler": "^11.0.0", - "@angular/core": "^11.0.0", - "@angular/forms": "^11.0.0", - "@angular/platform-browser": "^11.0.0", - "@angular/platform-browser-dynamic": "^11.0.0", - "@angular/router": "^11.0.0", + "@angular/animations": "^12.0.0", + "@angular/common": "^12.0.0", + "@angular/compiler": "^12.0.0", + "@angular/core": "^12.0.0", + "@angular/forms": "^12.0.0", + "@angular/platform-browser": "^12.0.0", + "@angular/platform-browser-dynamic": "^12.0.0", + "@angular/router": "^12.0.0", "rxjs": "~6.5.2", "tslib": "^2.0.0", - "zone.js": "~0.10.2" + "zone.js": "~0.11.4" }, "devDependencies": { "@angular-builders/custom-webpack": "latest", - "@angular-devkit/build-angular": ">=0.1100.0 < 0.1200.0", - "@angular/cli": "^11.0.1", - "@angular/compiler-cli": "^11.0.0", - "@angular/language-service": "^11.0.0", + "@angular-devkit/build-angular": "^12.0.0", + "@angular/cli": "^12.0.0", + "@angular/compiler-cli": "^12.0.0", + "@angular/language-service": "^12.0.0", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", @@ -36,7 +36,7 @@ "html-webpack-plugin": "^3.2.0", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", - "karma": "~5.1.1", + "karma": "~6.3.2", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "^2.0.3", "karma-jasmine": "~4.0.0", @@ -45,6 +45,6 @@ "puppeteer": "^5.5.0", "ts-node": "~8.1.1", "tslint": "~6.1.0", - "typescript": "~4.0.5" + "typescript": "~4.2.4" } } diff --git a/packages/custom-webpack/examples/full-cycle-app/src/environments/environment.ts b/packages/custom-webpack/examples/full-cycle-app/src/environments/environment.ts index 99c3763ca..31cb7855f 100644 --- a/packages/custom-webpack/examples/full-cycle-app/src/environments/environment.ts +++ b/packages/custom-webpack/examples/full-cycle-app/src/environments/environment.ts @@ -13,4 +13,4 @@ export const environment = { * This import should be commented out in production mode because it will have a negative impact * on performance if an error is thrown. */ -// import 'zone.js/dist/zone-error'; // Included with Angular CLI. +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/packages/custom-webpack/examples/full-cycle-app/src/polyfills.ts b/packages/custom-webpack/examples/full-cycle-app/src/polyfills.ts index 2f258e56c..3eb385e4d 100644 --- a/packages/custom-webpack/examples/full-cycle-app/src/polyfills.ts +++ b/packages/custom-webpack/examples/full-cycle-app/src/polyfills.ts @@ -55,7 +55,7 @@ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. +import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS diff --git a/packages/custom-webpack/examples/full-cycle-app/src/test.ts b/packages/custom-webpack/examples/full-cycle-app/src/test.ts index e94b4bd6b..ee51ae25f 100644 --- a/packages/custom-webpack/examples/full-cycle-app/src/test.ts +++ b/packages/custom-webpack/examples/full-cycle-app/src/test.ts @@ -1,6 +1,6 @@ // This file is required by karma.conf.js and loads recursively all the .spec and framework files -import 'zone.js/dist/zone-testing'; +import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, diff --git a/packages/custom-webpack/examples/sanity-app/package.json b/packages/custom-webpack/examples/sanity-app/package.json index 9c017db06..6705d0d17 100644 --- a/packages/custom-webpack/examples/sanity-app/package.json +++ b/packages/custom-webpack/examples/sanity-app/package.json @@ -11,31 +11,31 @@ }, "private": true, "dependencies": { - "@angular/animations": "^11.0.0", - "@angular/common": "^11.0.0", - "@angular/compiler": "^11.0.0", - "@angular/core": "^11.0.0", - "@angular/forms": "^11.0.0", - "@angular/platform-browser": "^11.0.0", - "@angular/platform-browser-dynamic": "^11.0.0", - "@angular/router": "^11.0.0", + "@angular/animations": "^12.0.0", + "@angular/common": "^12.0.0", + "@angular/compiler": "^12.0.0", + "@angular/core": "^12.0.0", + "@angular/forms": "^12.0.0", + "@angular/platform-browser": "^12.0.0", + "@angular/platform-browser-dynamic": "^12.0.0", + "@angular/router": "^12.0.0", "rxjs": "~6.5.2", "tslib": "^2.0.0", - "zone.js": "~0.10.2" + "zone.js": "~0.11.4" }, "devDependencies": { "@angular-builders/custom-webpack": "latest", - "@angular-devkit/build-angular": ">=0.1100.0 < 0.1200.0", - "@angular/cli": "^11.0.1", - "@angular/compiler-cli": "^11.0.0", - "@angular/language-service": "^11.0.0", + "@angular-devkit/build-angular": "^12.0.0", + "@angular/cli": "^12.0.0", + "@angular/compiler-cli": "^12.0.0", + "@angular/language-service": "^12.0.0", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "codelyzer": "^6.0.0", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", - "karma": "~5.1.1", + "karma": "~6.3.2", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "^2.0.3", "karma-jasmine": "~4.0.0", @@ -44,6 +44,6 @@ "puppeteer": "^5.5.0", "ts-node": "~8.2.0", "tslint": "~6.1.0", - "typescript": "~4.0.5" + "typescript": "~4.2.4" } } diff --git a/packages/custom-webpack/examples/sanity-app/src/environments/environment.ts b/packages/custom-webpack/examples/sanity-app/src/environments/environment.ts index 99c3763ca..31cb7855f 100644 --- a/packages/custom-webpack/examples/sanity-app/src/environments/environment.ts +++ b/packages/custom-webpack/examples/sanity-app/src/environments/environment.ts @@ -13,4 +13,4 @@ export const environment = { * This import should be commented out in production mode because it will have a negative impact * on performance if an error is thrown. */ -// import 'zone.js/dist/zone-error'; // Included with Angular CLI. +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/packages/custom-webpack/examples/sanity-app/src/polyfills.ts b/packages/custom-webpack/examples/sanity-app/src/polyfills.ts index 2f258e56c..3eb385e4d 100644 --- a/packages/custom-webpack/examples/sanity-app/src/polyfills.ts +++ b/packages/custom-webpack/examples/sanity-app/src/polyfills.ts @@ -55,7 +55,7 @@ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. +import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS diff --git a/packages/custom-webpack/examples/sanity-app/src/test.ts b/packages/custom-webpack/examples/sanity-app/src/test.ts index e94b4bd6b..ee51ae25f 100644 --- a/packages/custom-webpack/examples/sanity-app/src/test.ts +++ b/packages/custom-webpack/examples/sanity-app/src/test.ts @@ -1,6 +1,6 @@ // This file is required by karma.conf.js and loads recursively all the .spec and framework files -import 'zone.js/dist/zone-testing'; +import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, diff --git a/packages/custom-webpack/package.json b/packages/custom-webpack/package.json index fe521c283..ea4f06cde 100644 --- a/packages/custom-webpack/package.json +++ b/packages/custom-webpack/package.json @@ -15,7 +15,7 @@ "author": "JeB Barabanov", "license": "MIT", "engines": { - "node": ">=10.13.0" + "node": ">=12.13.0" }, "keywords": [ "cli", @@ -37,9 +37,9 @@ }, "builders": "builders.json", "dependencies": { - "@angular-devkit/architect": ">=0.1100.0 < 0.1200.0", - "@angular-devkit/build-angular": ">=0.1100.0 < 0.1200.0", - "@angular-devkit/core": "^11.0.0", + "@angular-devkit/architect": ">=0.1200.0 < 0.1300.0", + "@angular-devkit/build-angular": "^12.0.0", + "@angular-devkit/core": "^12.0.0", "lodash": "^4.17.15", "ts-node": "^9.0.0", "tsconfig-paths": "^3.9.0", diff --git a/packages/custom-webpack/src/browser/schema.ext.json b/packages/custom-webpack/src/browser/schema.ext.json index 01854f65f..c7eaea884 100644 --- a/packages/custom-webpack/src/browser/schema.ext.json +++ b/packages/custom-webpack/src/browser/schema.ext.json @@ -1,5 +1,5 @@ { + "$id": "BuildCustomWebpackBrowserSchema", "title": "Custom webpack browser schema for Build Facade", - "id": "BuildCustomWebpackBrowserSchema", "description": "Browser target options" } diff --git a/packages/custom-webpack/src/dev-server/schema.ext.json b/packages/custom-webpack/src/dev-server/schema.ext.json index 3d084d6b6..d0a91ab5d 100644 --- a/packages/custom-webpack/src/dev-server/schema.ext.json +++ b/packages/custom-webpack/src/dev-server/schema.ext.json @@ -1,5 +1,5 @@ { + "$id": "CustomWebpackDevServerSchema", "title": "Custom webpack dev server schema for Angular build facade", - "id": "CustomWebpackDevServerSchema", "description": "Dev server target options" } diff --git a/packages/custom-webpack/src/extract-i18n/schema.ext.json b/packages/custom-webpack/src/extract-i18n/schema.ext.json index 857c957a8..04de77cf8 100644 --- a/packages/custom-webpack/src/extract-i18n/schema.ext.json +++ b/packages/custom-webpack/src/extract-i18n/schema.ext.json @@ -1,5 +1,5 @@ { + "$id": "BuildCustomWebpackExtractI18nSchema", "title": "Custom webpack extract-i18n schema for Build Facade", - "id": "BuildCustomWebpackExtractI18nSchema", "description": "Extract i18n target options" } diff --git a/packages/custom-webpack/src/karma/schema.ext.json b/packages/custom-webpack/src/karma/schema.ext.json index 1505560f4..50b65a7b1 100644 --- a/packages/custom-webpack/src/karma/schema.ext.json +++ b/packages/custom-webpack/src/karma/schema.ext.json @@ -1,5 +1,5 @@ { + "$id": "BuildCustomWebpackKarmaSchema", "title": "Custom webpack karma schema for Build Facade", - "id": "BuildCustomWebpackKarmaSchema", "description": "Karma target options" } diff --git a/packages/custom-webpack/src/server/schema.ext.json b/packages/custom-webpack/src/server/schema.ext.json index eb9b2b446..6e849b60c 100644 --- a/packages/custom-webpack/src/server/schema.ext.json +++ b/packages/custom-webpack/src/server/schema.ext.json @@ -1,5 +1,5 @@ { - "id": "BuildCustomWebpackServerSchema", + "$id": "BuildCustomWebpackServerSchema", "title": "Custom webpack server schema for Build Facade", "description": "Server target options" } diff --git a/packages/jest/examples/multiple-apps/angular.json b/packages/jest/examples/multiple-apps/angular.json index 994b047d9..0fd9627e2 100644 --- a/packages/jest/examples/multiple-apps/angular.json +++ b/packages/jest/examples/multiple-apps/angular.json @@ -13,7 +13,6 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "aot": true, "outputPath": "dist/my-first-app", "index": "projects/my-first-app/src/index.html", "main": "projects/my-first-app/src/main.ts", @@ -26,7 +25,13 @@ "styles": [ "projects/my-first-app/src/styles.css" ], - "scripts": [] + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "production": { @@ -40,7 +45,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, @@ -124,7 +128,6 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "aot": true, "outputPath": "dist/my-second-app", "index": "projects/my-second-app/src/index.html", "main": "projects/my-second-app/src/main.ts", @@ -137,7 +140,13 @@ "styles": [ "projects/my-second-app/src/styles.css" ], - "scripts": [] + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "production": { @@ -151,7 +160,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, diff --git a/packages/jest/examples/multiple-apps/package.json b/packages/jest/examples/multiple-apps/package.json index f749908bc..aabe0368e 100644 --- a/packages/jest/examples/multiple-apps/package.json +++ b/packages/jest/examples/multiple-apps/package.json @@ -11,24 +11,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "^11.0.0", - "@angular/common": "^11.0.0", - "@angular/compiler": "^11.0.0", - "@angular/core": "^11.0.0", - "@angular/forms": "^11.0.0", - "@angular/platform-browser": "^11.0.0", - "@angular/platform-browser-dynamic": "^11.0.0", - "@angular/router": "^11.0.0", + "@angular/animations": "^12.0.0", + "@angular/common": "^12.0.0", + "@angular/compiler": "^12.0.0", + "@angular/core": "^12.0.0", + "@angular/forms": "^12.0.0", + "@angular/platform-browser": "^12.0.0", + "@angular/platform-browser-dynamic": "^12.0.0", + "@angular/router": "^12.0.0", "rxjs": "~6.5.2", "tslib": "^2.0.0", - "zone.js": "~0.10.2" + "zone.js": "~0.11.4" }, "devDependencies": { "@angular-builders/jest": "latest", - "@angular-devkit/build-angular": ">=0.1100.0 < 0.1200.0", - "@angular/cli": "^11.0.1", - "@angular/compiler-cli": "^11.0.0", - "@angular/language-service": "^11.0.0", + "@angular-devkit/build-angular": "^12.0.0", + "@angular/cli": "^12.0.0", + "@angular/compiler-cli": "^12.0.0", + "@angular/language-service": "^12.0.0", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", @@ -36,10 +36,10 @@ "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", "jest": "^26.1.0", - "ng-packagr": "^11.0.2", + "ng-packagr": "^12.0.0", "protractor": "~7.0.0", "ts-node": "~8.2.0", "tslint": "~6.1.0", - "typescript": "~4.0.5" + "typescript": "~4.2.4" } } diff --git a/packages/jest/examples/multiple-apps/projects/my-first-app/src/environments/environment.ts b/packages/jest/examples/multiple-apps/projects/my-first-app/src/environments/environment.ts index 99c3763ca..31cb7855f 100644 --- a/packages/jest/examples/multiple-apps/projects/my-first-app/src/environments/environment.ts +++ b/packages/jest/examples/multiple-apps/projects/my-first-app/src/environments/environment.ts @@ -13,4 +13,4 @@ export const environment = { * This import should be commented out in production mode because it will have a negative impact * on performance if an error is thrown. */ -// import 'zone.js/dist/zone-error'; // Included with Angular CLI. +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/packages/jest/examples/multiple-apps/projects/my-first-app/src/polyfills.ts b/packages/jest/examples/multiple-apps/projects/my-first-app/src/polyfills.ts index 2f258e56c..3eb385e4d 100644 --- a/packages/jest/examples/multiple-apps/projects/my-first-app/src/polyfills.ts +++ b/packages/jest/examples/multiple-apps/projects/my-first-app/src/polyfills.ts @@ -55,7 +55,7 @@ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. +import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS diff --git a/packages/jest/examples/multiple-apps/projects/my-second-app/src/environments/environment.ts b/packages/jest/examples/multiple-apps/projects/my-second-app/src/environments/environment.ts index 99c3763ca..31cb7855f 100644 --- a/packages/jest/examples/multiple-apps/projects/my-second-app/src/environments/environment.ts +++ b/packages/jest/examples/multiple-apps/projects/my-second-app/src/environments/environment.ts @@ -13,4 +13,4 @@ export const environment = { * This import should be commented out in production mode because it will have a negative impact * on performance if an error is thrown. */ -// import 'zone.js/dist/zone-error'; // Included with Angular CLI. +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/packages/jest/examples/multiple-apps/projects/my-second-app/src/polyfills.ts b/packages/jest/examples/multiple-apps/projects/my-second-app/src/polyfills.ts index 2f258e56c..3eb385e4d 100644 --- a/packages/jest/examples/multiple-apps/projects/my-second-app/src/polyfills.ts +++ b/packages/jest/examples/multiple-apps/projects/my-second-app/src/polyfills.ts @@ -55,7 +55,7 @@ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. +import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS diff --git a/packages/jest/examples/simple-app/angular.json b/packages/jest/examples/simple-app/angular.json index 68248d213..a8635bb5b 100644 --- a/packages/jest/examples/simple-app/angular.json +++ b/packages/jest/examples/simple-app/angular.json @@ -17,7 +17,6 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "aot": true, "outputPath": "dist/simple-app", "index": "src/index.html", "main": "src/main.ts", @@ -30,7 +29,13 @@ "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "production": { @@ -44,7 +49,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, diff --git a/packages/jest/examples/simple-app/package.json b/packages/jest/examples/simple-app/package.json index 4f83fa136..2e512e80d 100644 --- a/packages/jest/examples/simple-app/package.json +++ b/packages/jest/examples/simple-app/package.json @@ -11,24 +11,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "^11.0.0", - "@angular/common": "^11.0.0", - "@angular/compiler": "^11.0.0", - "@angular/core": "^11.0.0", - "@angular/forms": "^11.0.0", - "@angular/platform-browser": "^11.0.0", - "@angular/platform-browser-dynamic": "^11.0.0", - "@angular/router": "^11.0.0", + "@angular/animations": "^12.0.0", + "@angular/common": "^12.0.0", + "@angular/compiler": "^12.0.0", + "@angular/core": "^12.0.0", + "@angular/forms": "^12.0.0", + "@angular/platform-browser": "^12.0.0", + "@angular/platform-browser-dynamic": "^12.0.0", + "@angular/router": "^12.0.0", "rxjs": "~6.5.2", "tslib": "^2.0.0", - "zone.js": "~0.10.2" + "zone.js": "~0.11.4" }, "devDependencies": { "@angular-builders/jest": "latest", - "@angular-devkit/build-angular": ">=0.1100.0 < 0.1200.0", - "@angular/cli": "^11.0.1", - "@angular/compiler-cli": "^11.0.0", - "@angular/language-service": "^11.0.0", + "@angular-devkit/build-angular": "^12.0.0", + "@angular/cli": "^12.0.0", + "@angular/compiler-cli": "^12.0.0", + "@angular/language-service": "^12.0.0", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", @@ -40,6 +40,6 @@ "protractor": "~7.0.0", "ts-node": "~8.2.0", "tslint": "~6.1.0", - "typescript": "~4.0.5" + "typescript": "~4.2.4" } } diff --git a/packages/jest/examples/simple-app/src/environments/environment.ts b/packages/jest/examples/simple-app/src/environments/environment.ts index 99c3763ca..31cb7855f 100644 --- a/packages/jest/examples/simple-app/src/environments/environment.ts +++ b/packages/jest/examples/simple-app/src/environments/environment.ts @@ -13,4 +13,4 @@ export const environment = { * This import should be commented out in production mode because it will have a negative impact * on performance if an error is thrown. */ -// import 'zone.js/dist/zone-error'; // Included with Angular CLI. +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/packages/jest/examples/simple-app/src/polyfills.ts b/packages/jest/examples/simple-app/src/polyfills.ts index 2f258e56c..3eb385e4d 100644 --- a/packages/jest/examples/simple-app/src/polyfills.ts +++ b/packages/jest/examples/simple-app/src/polyfills.ts @@ -55,7 +55,7 @@ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. +import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS diff --git a/packages/jest/package.json b/packages/jest/package.json index 16234f4bd..7fde3275b 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -10,7 +10,7 @@ "author": "JeB Barabanov", "license": "MIT", "engines": { - "node": ">=10.13.0" + "node": ">=12.13.0" }, "main": "dist/index.js", "files": [ @@ -39,8 +39,8 @@ "ci": "./scripts/ci.sh" }, "dependencies": { - "@angular-devkit/architect": ">=0.1100.0 < 0.1200.0", - "@angular-devkit/core": "^11.0.0", + "@angular-devkit/architect": ">=0.1200.0 < 0.1300.0", + "@angular-devkit/core": "^12.0.0", "jest-preset-angular": "^8.4.0", "lodash": "^4.17.15" }, diff --git a/packages/jest/src/schema.json b/packages/jest/src/schema.json index aa5fc59fb..b4ade259a 100644 --- a/packages/jest/src/schema.json +++ b/packages/jest/src/schema.json @@ -1,5 +1,5 @@ { - "id": "JestRunnerSchema", + "$id": "JestRunnerSchema", "title": "Jest runner for build facade", "description": "Jest runner options", "properties": { diff --git a/packages/timestamp/example/angular.json b/packages/timestamp/example/angular.json index e07465ef3..66479cd5c 100644 --- a/packages/timestamp/example/angular.json +++ b/packages/timestamp/example/angular.json @@ -17,7 +17,6 @@ "build": { "builder": "@angular-devkit/build-angular:browser", "options": { - "aot": true, "outputPath": "dist/example", "index": "src/index.html", "main": "src/main.ts", @@ -30,7 +29,13 @@ "styles": [ "src/styles.scss" ], - "scripts": [] + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true }, "configurations": { "production": { @@ -44,7 +49,6 @@ "outputHashing": "all", "sourceMap": false, "namedChunks": false, - "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true, diff --git a/packages/timestamp/example/package.json b/packages/timestamp/example/package.json index 29622b3d1..16101210c 100644 --- a/packages/timestamp/example/package.json +++ b/packages/timestamp/example/package.json @@ -11,24 +11,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "^11.0.0", - "@angular/common": "^11.0.0", - "@angular/compiler": "^11.0.0", - "@angular/core": "^11.0.0", - "@angular/forms": "^11.0.0", - "@angular/platform-browser": "^11.0.0", - "@angular/platform-browser-dynamic": "^11.0.0", - "@angular/router": "^11.0.0", - "rxjs": "~7.0.0", + "@angular/animations": "^12.0.0", + "@angular/common": "^12.0.0", + "@angular/compiler": "^12.0.0", + "@angular/core": "^12.0.0", + "@angular/forms": "^12.0.0", + "@angular/platform-browser": "^12.0.0", + "@angular/platform-browser-dynamic": "^12.0.0", + "@angular/router": "^12.0.0", + "rxjs": "~6.5.3", "tslib": "^2.0.0", - "zone.js": "~0.11.0" + "zone.js": "~0.11.4" }, "devDependencies": { "@angular-builders/timestamp": "latest", - "@angular-devkit/build-angular": ">=0.1100.0 < 0.1200.0", - "@angular/cli": "^11.0.1", - "@angular/compiler-cli": "^11.0.0", - "@angular/language-service": "^11.0.0", + "@angular-devkit/build-angular": "^12.0.0", + "@angular/cli": "^12.0.0", + "@angular/compiler-cli": "^12.0.0", + "@angular/language-service": "^12.0.0", "@types/jasmine": "~3.7.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^15.0.0", diff --git a/packages/timestamp/example/src/environments/environment.ts b/packages/timestamp/example/src/environments/environment.ts index 99c3763ca..31cb7855f 100644 --- a/packages/timestamp/example/src/environments/environment.ts +++ b/packages/timestamp/example/src/environments/environment.ts @@ -13,4 +13,4 @@ export const environment = { * This import should be commented out in production mode because it will have a negative impact * on performance if an error is thrown. */ -// import 'zone.js/dist/zone-error'; // Included with Angular CLI. +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/packages/timestamp/example/src/polyfills.ts b/packages/timestamp/example/src/polyfills.ts index 2f258e56c..3eb385e4d 100644 --- a/packages/timestamp/example/src/polyfills.ts +++ b/packages/timestamp/example/src/polyfills.ts @@ -55,7 +55,7 @@ /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. +import 'zone.js'; // Included with Angular CLI. /*************************************************************************************************** * APPLICATION IMPORTS diff --git a/packages/timestamp/example/src/test.ts b/packages/timestamp/example/src/test.ts index e94b4bd6b..ee51ae25f 100644 --- a/packages/timestamp/example/src/test.ts +++ b/packages/timestamp/example/src/test.ts @@ -1,6 +1,6 @@ // This file is required by karma.conf.js and loads recursively all the .spec and framework files -import 'zone.js/dist/zone-testing'; +import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, diff --git a/packages/timestamp/package.json b/packages/timestamp/package.json index deceb4b10..264bdbb6e 100644 --- a/packages/timestamp/package.json +++ b/packages/timestamp/package.json @@ -14,7 +14,7 @@ "builders.json" ], "engines": { - "node": ">=10.13.0" + "node": ">=12.13.0" }, "builders": "builders.json", "scripts": { @@ -29,8 +29,8 @@ "@types/dateformat": "^3.0.1" }, "dependencies": { - "@angular-devkit/architect": ">=0.1100.0 < 0.1200.0", - "@angular-devkit/core": "^11.0.0", + "@angular-devkit/architect": ">=0.1200.0 < 0.1300.0", + "@angular-devkit/core": "^12.0.0", "dateformat": "^4.3.1" } } diff --git a/packages/timestamp/src/schema.json b/packages/timestamp/src/schema.json index 0a0577043..f7dc65076 100644 --- a/packages/timestamp/src/schema.json +++ b/packages/timestamp/src/schema.json @@ -1,5 +1,5 @@ { - "id": "TimestampBuilderSchema", + "$id": "TimestampBuilderSchema", "title": "Timestamp builder", "description": "Timestamp builder options", "properties": { From 16c02854dc39b4a12f037eb72097a8227e31db72 Mon Sep 17 00:00:00 2001 From: sonallux <13821543+sonallux@users.noreply.github.com> Date: Fri, 14 May 2021 10:47:53 +0200 Subject: [PATCH 2/3] chore(deps): update to node 12.14 on CI --- .github/workflows/ci.yml | 2 +- .github/workflows/graduate.yml | 2 +- package.json | 2 +- packages/custom-webpack/package.json | 2 +- packages/jest/package.json | 2 +- packages/timestamp/package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0200a8ed..6017323fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: 12.12 + node-version: 12.14 registry-url: 'https://registry.npmjs.org' - name: Install dependencies diff --git a/.github/workflows/graduate.yml b/.github/workflows/graduate.yml index 5dda085ac..8c35912c1 100644 --- a/.github/workflows/graduate.yml +++ b/.github/workflows/graduate.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/setup-node@v2 with: - node-version: 12.12 + node-version: 12.14 registry-url: 'https://registry.npmjs.org' - name: Install dependencies diff --git a/package.json b/package.json index a0d4e558a..c08588243 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "author": "Evgeny Barabanov", "license": "MIT", "engines": { - "node": ">=12.13.0" + "node": ">=12.14.1" }, "scripts": { "bootstrap:packages": "lerna bootstrap --scope '@angular-builders/*'", diff --git a/packages/custom-webpack/package.json b/packages/custom-webpack/package.json index ea4f06cde..c3a7bcd70 100644 --- a/packages/custom-webpack/package.json +++ b/packages/custom-webpack/package.json @@ -15,7 +15,7 @@ "author": "JeB Barabanov", "license": "MIT", "engines": { - "node": ">=12.13.0" + "node": ">=12.14.1" }, "keywords": [ "cli", diff --git a/packages/jest/package.json b/packages/jest/package.json index 7fde3275b..02eefd615 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -10,7 +10,7 @@ "author": "JeB Barabanov", "license": "MIT", "engines": { - "node": ">=12.13.0" + "node": ">=12.14.1" }, "main": "dist/index.js", "files": [ diff --git a/packages/timestamp/package.json b/packages/timestamp/package.json index 264bdbb6e..95878c9e2 100644 --- a/packages/timestamp/package.json +++ b/packages/timestamp/package.json @@ -14,7 +14,7 @@ "builders.json" ], "engines": { - "node": ">=12.13.0" + "node": ">=12.14.1" }, "builders": "builders.json", "scripts": { From 90bb316ab42ecd53d68aafa1e6ee01e2d90536d9 Mon Sep 17 00:00:00 2001 From: sonallux <13821543+sonallux@users.noreply.github.com> Date: Fri, 14 May 2021 11:57:49 +0200 Subject: [PATCH 3/3] Update html-webpack-plugin in example --- packages/custom-webpack/examples/full-cycle-app/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/custom-webpack/examples/full-cycle-app/package.json b/packages/custom-webpack/examples/full-cycle-app/package.json index 63662cf29..768a21067 100644 --- a/packages/custom-webpack/examples/full-cycle-app/package.json +++ b/packages/custom-webpack/examples/full-cycle-app/package.json @@ -33,7 +33,7 @@ "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "codelyzer": "^6.0.0", - "html-webpack-plugin": "^3.2.0", + "html-webpack-plugin": "^5.3.1", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~6.3.2",