Skip to content

Commit

Permalink
chore(deps)!: update to angular 12 (#980)
Browse files Browse the repository at this point in the history
* chore(deps)!: update to angular 12

fixes #972

BREAKING CHANGE: update to angular 12

* chore(deps): update to node 12.14 on CI

* Update html-webpack-plugin in example
  • Loading branch information
sonallux committed May 14, 2021
1 parent 25fa8bf commit ad2772b
Show file tree
Hide file tree
Showing 36 changed files with 139 additions and 123 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/graduate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Evgeny Barabanov",
"license": "MIT",
"engines": {
"node": ">=10.0.0"
"node": ">=12.14.1"
},
"scripts": {
"bootstrap:packages": "lerna bootstrap --scope '@angular-builders/*'",
Expand All @@ -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",
Expand Down
32 changes: 16 additions & 16 deletions packages/custom-webpack/examples/full-cycle-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,32 @@
},
"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",
"html-webpack-plugin": "^3.2.0",
"html-webpack-plugin": "^5.3.1",
"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",
Expand All @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
30 changes: 15 additions & 15 deletions packages/custom-webpack/examples/sanity-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/custom-webpack/examples/sanity-app/src/test.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
8 changes: 4 additions & 4 deletions packages/custom-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "JeB Barabanov",
"license": "MIT",
"engines": {
"node": ">=10.13.0"
"node": ">=12.14.1"
},
"keywords": [
"cli",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/custom-webpack/src/browser/schema.ext.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "BuildCustomWebpackBrowserSchema",
"title": "Custom webpack browser schema for Build Facade",
"id": "BuildCustomWebpackBrowserSchema",
"description": "Browser target options"
}
2 changes: 1 addition & 1 deletion packages/custom-webpack/src/dev-server/schema.ext.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "CustomWebpackDevServerSchema",
"title": "Custom webpack dev server schema for Angular build facade",
"id": "CustomWebpackDevServerSchema",
"description": "Dev server target options"
}
2 changes: 1 addition & 1 deletion packages/custom-webpack/src/extract-i18n/schema.ext.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "BuildCustomWebpackExtractI18nSchema",
"title": "Custom webpack extract-i18n schema for Build Facade",
"id": "BuildCustomWebpackExtractI18nSchema",
"description": "Extract i18n target options"
}
2 changes: 1 addition & 1 deletion packages/custom-webpack/src/karma/schema.ext.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "BuildCustomWebpackKarmaSchema",
"title": "Custom webpack karma schema for Build Facade",
"id": "BuildCustomWebpackKarmaSchema",
"description": "Karma target options"
}
2 changes: 1 addition & 1 deletion packages/custom-webpack/src/server/schema.ext.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "BuildCustomWebpackServerSchema",
"$id": "BuildCustomWebpackServerSchema",
"title": "Custom webpack server schema for Build Facade",
"description": "Server target options"
}
20 changes: 14 additions & 6 deletions packages/jest/examples/multiple-apps/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -40,7 +45,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand Down Expand Up @@ -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",
Expand All @@ -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": {
Expand All @@ -151,7 +160,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
Expand Down
30 changes: 15 additions & 15 deletions packages/jest/examples/multiple-apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,35 @@
},
"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",
"codelyzer": "^6.0.0",
"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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit ad2772b

Please sign in to comment.