Skip to content

Commit

Permalink
Move Angular to peer deps.
Browse files Browse the repository at this point in the history
Add Angular version in Okta UA.

OKTA-469350
<<<Jenkins Check-In of Tested SHA: fe79711 for [email protected]>>>
Artifact: okta-angular
Files changed count: 3
PR Link: "#91"
  • Loading branch information
denys.oblohin authored and eng-prod-CI-bot-okta committed Mar 31, 2022
1 parent cd4fd7d commit 9f65311
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "<rootDir>/test-reports/coverage",
Expand Down
3 changes: 2 additions & 1 deletion src/okta/okta.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 9f65311

Please sign in to comment.