diff --git a/CHANGELOG.md b/CHANGELOG.md index 881fe7be..b752dc66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## Angular Lib for OpenID Connect/OAuth2 Changelog +### 2025-11-02 21.0.0 + +- Angular 21 + ### 2025-11-02 20.0.3 - Fix: prevent clear() from destroying all sessionStorage diff --git a/README.md b/README.md index 92ced8f7..634614c7 100644 --- a/README.md +++ b/README.md @@ -122,14 +122,11 @@ export class AppComponent implements OnInit { private readonly oidcSecurityService = inject(OidcSecurityService); ngOnInit() { - this.oidcSecurityService - .checkAuth() - .subscribe((loginResponse: LoginResponse) => { - const { isAuthenticated, userData, accessToken, idToken, configId } = - loginResponse; - - /*...*/ - }); + this.oidcSecurityService.checkAuth().subscribe((loginResponse: LoginResponse) => { + const { isAuthenticated, userData, accessToken, idToken, configId } = loginResponse; + + /*...*/ + }); } login() { @@ -137,9 +134,7 @@ export class AppComponent implements OnInit { } logout() { - this.oidcSecurityService - .logoff() - .subscribe((result) => console.log(result)); + this.oidcSecurityService.logoff().subscribe((result) => console.log(result)); } } ``` @@ -185,8 +180,9 @@ AuthModule.forRoot({ ## Versions -Current Version is Version 20.x +Current Version is Version 21.x +- [Info about Version 20](https://github.com/damienbod/angular-auth-oidc-client/tree/version-20) - [Info about Version 19](https://github.com/damienbod/angular-auth-oidc-client/tree/version-19) - [Info about Version 18](https://github.com/damienbod/angular-auth-oidc-client/tree/version-18) - [Info about Version 17](https://github.com/damienbod/angular-auth-oidc-client/tree/version-17) diff --git a/package-lock.json b/package-lock.json index 3a97e1eb..f0bc688d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "angular-auth-oidc-client", - "version": "20.0.3", + "version": "21.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "angular-auth-oidc-client", - "version": "20.0.3", + "version": "21.0.0", "dependencies": { "@angular/animations": "^21.0.1", "@angular/common": "^21.0.1", @@ -6759,7 +6759,7 @@ } }, "node_modules/cacache": { - "version": "20.0.3", + "version": "21.0.0", "resolved": "https://registry.npmjs.org/cacache/-/cacache-20.0.3.tgz", "integrity": "sha512-3pUp4e8hv07k1QlijZu6Kn7c9+ZpWWk4j3F8N3xPuCExULobqJydKYOTj1FTq58srkJsXvO7LbGAH4C0ZU3WGw==", "dev": true, diff --git a/package.json b/package.json index 509c0bb7..5a5314c5 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "bugs": { "url": "https://github.com/damienbod/angular-auth-oidc-client/issues" }, - "version": "20.0.3", + "version": "21.0.0", "scripts": { "ng": "ng", "build": "npm run build-lib", diff --git a/projects/angular-auth-oidc-client/package.json b/projects/angular-auth-oidc-client/package.json index 5dff2812..b616e744 100644 --- a/projects/angular-auth-oidc-client/package.json +++ b/projects/angular-auth-oidc-client/package.json @@ -36,7 +36,7 @@ "authorization" ], "license": "MIT", - "version": "20.0.3", + "version": "21.0.0", "description": "Angular Lib for OpenID Connect & OAuth2", "schematics": "./schematics/collection.json", "ng-add": { diff --git a/projects/schematics/package.json b/projects/schematics/package.json index b3eadf01..0350260b 100644 --- a/projects/schematics/package.json +++ b/projects/schematics/package.json @@ -1,6 +1,6 @@ { "name": "schematics", - "version": "20.0.3", + "version": "21.0.0", "description": "A schematic for the Angular Lib for OpenID Connect & OAuth2", "scripts": { "build": "tsc -p tsconfig.json", diff --git a/projects/schematics/src/ng-add/actions/add-dependencies.ts b/projects/schematics/src/ng-add/actions/add-dependencies.ts index 1ea17ccc..f54f794c 100644 --- a/projects/schematics/src/ng-add/actions/add-dependencies.ts +++ b/projects/schematics/src/ng-add/actions/add-dependencies.ts @@ -5,7 +5,7 @@ import { NgAddOptions } from '../models/ng-add-options'; const dependenciesToAdd: any[] = [ { name: 'angular-auth-oidc-client', - version: '20.0.3', + version: '21.0.0', }, ];