Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps)!: update to Angular 16 #1357

Merged
merged 1 commit into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16.13.0
node-version: 16.14.0
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
Expand Down
11 changes: 11 additions & 0 deletions MIGRATION.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Migration from version 15 to version 16

## Custom Webpack builder

- No breaking changes (except for updating to Angular 16)

## Jest builder

1. Jest 29 is required now, refer to its [CHANGELOG](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md#2900-2022-09-08) for details.
2. `jest-preset-angular` has been updated to version 13. Make sure you understand the implications and perform all the necessary changes to your code base as described in `jest-preset-angular` [CHANGELOG](https://github.com/thymikee/jest-preset-angular/blob/main/CHANGELOG.md#1300-2023-02-18).

# Migration from version 14 to version 15

## Custom Webpack builder
Expand Down
4 changes: 2 additions & 2 deletions examples/bazel/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "bazel-example",
"version": "15.0.0",
"version": "16.0.0",
"scripts": {
"build": "ng build"
},
"private": true,
"devDependencies": {
"@angular-builders/bazel": "workspace:*",
"@angular/cli": "15.0.1"
"@angular/cli": "16.0.0"
}
}
32 changes: 16 additions & 16 deletions examples/custom-webpack/full-cycle-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "full-cycle-app",
"version": "15.0.0",
"version": "16.0.0",
"scripts": {
"start": "ng serve",
"build": "ng build",
Expand All @@ -12,24 +12,24 @@
},
"private": true,
"dependencies": {
"@angular/animations": "15.0.1",
"@angular/common": "15.0.1",
"@angular/compiler": "15.0.1",
"@angular/core": "15.0.1",
"@angular/forms": "15.0.1",
"@angular/platform-browser": "15.0.1",
"@angular/platform-browser-dynamic": "15.0.1",
"@angular/router": "15.0.1",
"rxjs": "7.5.7",
"@angular/animations": "16.0.0",
"@angular/common": "16.0.0",
"@angular/compiler": "16.0.0",
"@angular/core": "16.0.0",
"@angular/forms": "16.0.0",
"@angular/platform-browser": "16.0.0",
"@angular/platform-browser-dynamic": "16.0.0",
"@angular/router": "16.0.0",
"rxjs": "7.8.1",
"tslib": "2.4.1",
"zone.js": "0.12.0"
"zone.js": "0.13.0"
},
"devDependencies": {
"@angular-builders/custom-webpack": "workspace:*",
"@angular-devkit/build-angular": "15.0.1",
"@angular/cli": "15.0.1",
"@angular/compiler-cli": "15.0.1",
"@angular/language-service": "15.0.1",
"@angular-devkit/build-angular": "16.0.0",
"@angular/cli": "16.0.0",
"@angular/compiler-cli": "16.0.0",
"@angular/language-service": "16.0.0",
"@types/jasmine": "4.3.0",
"@types/node": "16.18.3",
"cypress": "10.11.0",
Expand All @@ -42,6 +42,6 @@
"karma-jasmine-html-reporter": "2.0.0",
"puppeteer": "19.3.0",
"ts-node": "10.9.1",
"typescript": "4.8.2"
"typescript": "5.0.4"
}
}
30 changes: 15 additions & 15 deletions examples/custom-webpack/sanity-app-esm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanity-app-esm",
"version": "2.0.0",
"version": "16.0.0",
"type": "module",
"scripts": {
"ng": "ng",
Expand All @@ -16,23 +16,23 @@
},
"private": true,
"dependencies": {
"@angular/animations": "15.0.1",
"@angular/common": "15.0.1",
"@angular/compiler": "15.0.1",
"@angular/core": "15.0.1",
"@angular/forms": "15.0.1",
"@angular/platform-browser": "15.0.1",
"@angular/platform-browser-dynamic": "15.0.1",
"@angular/router": "15.0.1",
"rxjs": "7.5.7",
"@angular/animations": "16.0.0",
"@angular/common": "16.0.0",
"@angular/compiler": "16.0.0",
"@angular/core": "16.0.0",
"@angular/forms": "16.0.0",
"@angular/platform-browser": "16.0.0",
"@angular/platform-browser-dynamic": "16.0.0",
"@angular/router": "16.0.0",
"rxjs": "7.8.1",
"tslib": "2.4.1",
"zone.js": "0.12.0"
"zone.js": "0.13.0"
},
"devDependencies": {
"@angular-builders/custom-webpack": "workspace:*",
"@angular-devkit/build-angular": "15.0.1",
"@angular/cli": "15.0.1",
"@angular/compiler-cli": "15.0.1",
"@angular-devkit/build-angular": "16.0.0",
"@angular/cli": "16.0.0",
"@angular/compiler-cli": "16.0.0",
"@cypress/schematic": "2.3.0",
"@types/jasmine": "4.3.0",
"@types/node": "16.18.3",
Expand All @@ -44,6 +44,6 @@
"karma-jasmine": "5.1.0",
"karma-jasmine-html-reporter": "2.0.0",
"puppeteer": "19.3.0",
"typescript": "4.8.2"
"typescript": "5.0.4"
}
}
32 changes: 16 additions & 16 deletions examples/custom-webpack/sanity-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sanity-app",
"version": "15.0.0",
"version": "16.0.0",
"scripts": {
"start": "ng serve",
"build": "ng build",
Expand All @@ -12,24 +12,24 @@
},
"private": true,
"dependencies": {
"@angular/animations": "15.0.1",
"@angular/common": "15.0.1",
"@angular/compiler": "15.0.1",
"@angular/core": "15.0.1",
"@angular/forms": "15.0.1",
"@angular/platform-browser": "15.0.1",
"@angular/platform-browser-dynamic": "15.0.1",
"@angular/router": "15.0.1",
"rxjs": "7.5.7",
"@angular/animations": "16.0.0",
"@angular/common": "16.0.0",
"@angular/compiler": "16.0.0",
"@angular/core": "16.0.0",
"@angular/forms": "16.0.0",
"@angular/platform-browser": "16.0.0",
"@angular/platform-browser-dynamic": "16.0.0",
"@angular/router": "16.0.0",
"rxjs": "7.8.1",
"tslib": "2.4.1",
"zone.js": "0.12.0"
"zone.js": "0.13.0"
},
"devDependencies": {
"@angular-builders/custom-webpack": "workspace:*",
"@angular-devkit/build-angular": "15.0.1",
"@angular/cli": "15.0.1",
"@angular/compiler-cli": "15.0.1",
"@angular/language-service": "15.0.1",
"@angular-devkit/build-angular": "16.0.0",
"@angular/cli": "16.0.0",
"@angular/compiler-cli": "16.0.0",
"@angular/language-service": "16.0.0",
"@types/jasmine": "4.3.0",
"@types/node": "16.18.3",
"cypress": "10.11.0",
Expand All @@ -41,6 +41,6 @@
"karma-jasmine-html-reporter": "2.0.0",
"puppeteer": "19.3.0",
"ts-node": "10.9.1",
"typescript": "4.8.2"
"typescript": "5.0.4"
}
}
36 changes: 18 additions & 18 deletions examples/jest/multiple-apps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "multiple-apps",
"version": "15.0.1-beta.2",
"version": "16.0.0",
"scripts": {
"start": "ng serve",
"build": "ng build",
Expand All @@ -12,31 +12,31 @@
},
"private": true,
"dependencies": {
"@angular/animations": "15.0.1",
"@angular/common": "15.0.1",
"@angular/compiler": "15.0.1",
"@angular/core": "15.0.1",
"@angular/forms": "15.0.1",
"@angular/platform-browser": "15.0.1",
"@angular/platform-browser-dynamic": "15.0.1",
"@angular/router": "15.0.1",
"rxjs": "7.5.7",
"@angular/animations": "16.0.0",
"@angular/common": "16.0.0",
"@angular/compiler": "16.0.0",
"@angular/core": "16.0.0",
"@angular/forms": "16.0.0",
"@angular/platform-browser": "16.0.0",
"@angular/platform-browser-dynamic": "16.0.0",
"@angular/router": "16.0.0",
"rxjs": "7.8.1",
"tslib": "2.4.1",
"zone.js": "0.12.0"
"zone.js": "0.13.0"
},
"devDependencies": {
"@angular-builders/jest": "workspace:*",
"@angular-devkit/build-angular": "15.0.1",
"@angular/cli": "15.0.1",
"@angular/compiler-cli": "15.0.1",
"@angular/language-service": "15.0.1",
"@angular-devkit/build-angular": "16.0.0",
"@angular/cli": "16.0.0",
"@angular/compiler-cli": "16.0.0",
"@angular/language-service": "16.0.0",
"@types/jasmine": "4.3.0",
"@types/node": "16.18.3",
"cypress": "10.11.0",
"jasmine-core": "4.5.0",
"jest": "28.1.3",
"ng-packagr": "15.0.1",
"jest": "29.5.0",
"ng-packagr": "16.0.0",
"ts-node": "10.9.1",
"typescript": "4.8.2"
"typescript": "5.0.4"
}
}
7 changes: 7 additions & 0 deletions examples/jest/multiple-apps/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec"
},
"include": ["**/*.spec.ts", "**/*.d.ts"]
}
34 changes: 17 additions & 17 deletions examples/jest/simple-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple-app",
"version": "15.0.1-beta.1",
"version": "16.0.0",
"scripts": {
"start": "ng serve",
"build": "ng build",
Expand All @@ -14,31 +14,31 @@
},
"private": true,
"dependencies": {
"@angular/animations": "15.0.1",
"@angular/common": "15.0.1",
"@angular/compiler": "15.0.1",
"@angular/core": "15.0.1",
"@angular/forms": "15.0.1",
"@angular/platform-browser": "15.0.1",
"@angular/platform-browser-dynamic": "15.0.1",
"@angular/router": "15.0.1",
"rxjs": "7.5.7",
"@angular/animations": "16.0.0",
"@angular/common": "16.0.0",
"@angular/compiler": "16.0.0",
"@angular/core": "16.0.0",
"@angular/forms": "16.0.0",
"@angular/platform-browser": "16.0.0",
"@angular/platform-browser-dynamic": "16.0.0",
"@angular/router": "16.0.0",
"rxjs": "7.8.1",
"tslib": "2.4.1",
"zone.js": "0.12.0"
"zone.js": "0.13.0"
},
"devDependencies": {
"@angular-builders/jest": "workspace:*",
"@angular-devkit/build-angular": "15.0.1",
"@angular/cli": "15.0.1",
"@angular/compiler-cli": "15.0.1",
"@angular/language-service": "15.0.1",
"@angular-devkit/build-angular": "16.0.0",
"@angular/cli": "16.0.0",
"@angular/compiler-cli": "16.0.0",
"@angular/language-service": "16.0.0",
"@types/jasmine": "4.3.0",
"@types/node": "16.18.3",
"cypress": "10.11.0",
"jasmine-core": "4.5.0",
"jest": "28.1.3",
"jest": "29.5.0",
"jest-junit": "15.0.0",
"ts-node": "10.9.1",
"typescript": "4.8.2"
"typescript": "5.0.4"
}
}
32 changes: 16 additions & 16 deletions examples/timestamp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "timestamp-example",
"version": "15.0.0",
"version": "16.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -13,24 +13,24 @@
},
"private": true,
"dependencies": {
"@angular/animations": "15.0.1",
"@angular/common": "15.0.1",
"@angular/compiler": "15.0.1",
"@angular/core": "15.0.1",
"@angular/forms": "15.0.1",
"@angular/platform-browser": "15.0.1",
"@angular/platform-browser-dynamic": "15.0.1",
"@angular/router": "15.0.1",
"rxjs": "7.5.7",
"@angular/animations": "16.0.0",
"@angular/common": "16.0.0",
"@angular/compiler": "16.0.0",
"@angular/core": "16.0.0",
"@angular/forms": "16.0.0",
"@angular/platform-browser": "16.0.0",
"@angular/platform-browser-dynamic": "16.0.0",
"@angular/router": "16.0.0",
"rxjs": "7.8.1",
"tslib": "2.4.1",
"zone.js": "0.12.0"
"zone.js": "0.13.0"
},
"devDependencies": {
"@angular-builders/timestamp": "workspace:*",
"@angular-devkit/build-angular": "15.0.1",
"@angular/cli": "15.0.1",
"@angular/compiler-cli": "15.0.1",
"@angular/language-service": "15.0.1",
"@angular-devkit/build-angular": "16.0.0",
"@angular/cli": "16.0.0",
"@angular/compiler-cli": "16.0.0",
"@angular/language-service": "16.0.0",
"@cypress/schematic": "2.3.0",
"@types/jasmine": "4.3.0",
"@types/node": "16.18.3",
Expand All @@ -42,6 +42,6 @@
"karma-jasmine": "5.1.0",
"karma-jasmine-html-reporter": "2.0.0",
"ts-node": "10.9.1",
"typescript": "4.8.2"
"typescript": "5.0.4"
}
}
12 changes: 6 additions & 6 deletions jest-common.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
globals: {
'ts-jest': {
diagnostics: false,
},
},
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.tsx?$': [
'ts-jest',
{
diagnostics: false,
},
],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
testEnvironment: './jest-custom-environment',
Expand Down
Loading