Skip to content

Commit

Permalink
Feature: Upgrade Angular v.15 (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciovigolo authored Nov 29, 2022
1 parent 3ad0cc9 commit 502bf3f
Show file tree
Hide file tree
Showing 36 changed files with 4,934 additions and 26,259 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
[![Known Vulnerabilities][vulnerabilities-badge]][vulnerabilities]
[![npm version][npm-version-badge]][npm]
[![npm][npm-badge]][npm]
[![All Contributors][contributors-badge]](#contributors)
[![Discord][discord-badge]][discord]
<!-- prettier-ignore-end -->

Expand Down Expand Up @@ -53,10 +52,11 @@ Note that `keycloak-js` is a peer dependency of Keycloak Angular. This change al

| Angular | keycloak-js | keycloak-angular | Support |
| :-----: | :---------: | :--------------: | :-----------------: |
| 14.x | 18 - 20 | 12.x.x | New Features / Bugs |
| 14.x | 10 - 17 | 11.x.x | New Features / Bugs |
| 13.x | 18 | 10.x.x | Bugs |
| 13.x | 10 - 17 | 9.x.x | Bugs |
| 15.x | 18 - 20 | 13.x.x | New Features / Bugs |
| 14.x | 18 - 19 | 12.x.x | Bugs |
| 14.x | 10 - 17 | 11.x.x | - |
| 13.x | 18 | 10.x.x | - |
| 13.x | 10 - 17 | 9.x.x | - |

Only the latest version of Angular in the table above is actively supported. This is due to the fact that compilation of Angular libraries is [incompatible between major versions](https://angular.io/guide/creating-libraries#ensuring-library-version-compatibility).

Expand Down Expand Up @@ -133,7 +133,7 @@ If you want to know more about these options and various other capabilities of t

## Example project

If you want to see an complete overview a pre-configured client together with a working Keycloak server make sure to check out the [example project](example/README.md) in this repository.
If you want to see a complete overview a pre-configured client together with a working Keycloak server make sure to check out the [example project](projects/example/README.md) in this repository.

## AuthGuard

Expand Down
91 changes: 91 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,97 @@
}
}
}
},
"example": {
"projectType": "application",
"schematics": {},
"root": "projects/example",
"sourceRoot": "projects/example/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/example",
"index": "projects/example/src/index.html",
"main": "projects/example/src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "projects/example/tsconfig.app.json",
"assets": [
"projects/example/src/favicon.ico",
"projects/example/src/assets"
],
"styles": ["projects/example/src/styles.css"],
"scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "example:build:production"
},
"development": {
"browserTarget": "example:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "example:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": ["zone.js", "zone.js/testing"],
"tsConfig": "projects/example/tsconfig.spec.json",
"assets": [
"projects/example/src/favicon.ico",
"projects/example/src/assets"
],
"styles": ["projects/example/src/styles.css"],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"projects/example/**/*.ts",
"projects/example/**/*.html"
]
}
}
}
}
},
"cli": {
Expand Down
17 changes: 0 additions & 17 deletions example/.browserslistrc

This file was deleted.

47 changes: 0 additions & 47 deletions example/.gitignore

This file was deleted.

9 changes: 0 additions & 9 deletions example/README.md

This file was deleted.

112 changes: 0 additions & 112 deletions example/angular.json

This file was deleted.

Loading

1 comment on commit 502bf3f

@vierlijner
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On file projects/example/src/app/app.component.ts there is still the ngOnInit(), but you removed the implements OnInit.
image

Please sign in to comment.