From 9f65311e908798b5c359ed9a79090eeec79f410d Mon Sep 17 00:00:00 2001 From: "denys.oblohin" Date: Thu, 31 Mar 2022 18:05:18 +0000 Subject: [PATCH] Move Angular to peer deps. Add Angular version in Okta UA. OKTA-469350 <<>> Artifact: okta-angular Files changed count: 3 PR Link: "https://github.com/okta/okta-angular/pull/91" --- CHANGELOG.md | 7 +++++++ package.json | 6 +++++- src/okta/okta.module.ts | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a07bcc1..9087fda3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 5.2.0 + +### Others + +- [#89](https://github.com/okta/okta-angular/pull/89) Updates okta-auth-js to 6.2.0 in test apps and SDK +- [#91](https://github.com/okta/okta-angular/pull/91) Add Angular version in Okta UA. Add Angular to peerDependencies + # 5.1.1 ### Fixes diff --git a/package.json b/package.json index 405f5e6d..705eb4c7 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,11 @@ "zone.js": "~0.8.26" }, "peerDependencies": { - "@okta/okta-auth-js": "^5.4.3 || ^6.0.0" + "@okta/okta-auth-js": "^5.4.3 || ^6.0.0", + "@angular/core": ">= 7.0.0", + "@angular/router": ">= 7.0.0", + "@angular/common": ">= 7.0.0", + "rxjs": "^6.0.0 || ^7.0.0" }, "jest": { "coverageDirectory": "/test-reports/coverage", diff --git a/src/okta/okta.module.ts b/src/okta/okta.module.ts index 639f041d..89a05cbf 100644 --- a/src/okta/okta.module.ts +++ b/src/okta/okta.module.ts @@ -10,7 +10,7 @@ * See the License for the specific language governing permissions and limitations under the License. */ -import { NgModule, Inject, Optional } from '@angular/core'; +import { NgModule, Inject, Optional, VERSION } from '@angular/core'; import { Router } from '@angular/router'; import { Location } from '@angular/common'; import { OktaCallbackComponent } from './components/callback.component'; @@ -60,6 +60,7 @@ export class OktaAuthModule { // Add Okta UA oktaAuth._oktaUserAgent.addEnvironment(`${packageInfo.name}/${packageInfo.version}`); + oktaAuth._oktaUserAgent.addEnvironment(`Angular/${VERSION.full}`); // Provide a default implementation of `restoreOriginalUri` if (!oktaAuth.options.restoreOriginalUri && router && location) {