Skip to content

Commit 9f49131

Browse files
Merge pull request #1357 from generalmotors/feat/angular-16
feat: update project to Angular 16
2 parents 3ba7303 + 0f19c0e commit 9f49131

36 files changed

+13821
-27447
lines changed

.eslintrc.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"plugin:@angular-eslint/recommended",
15+
"plugin:@angular-eslint/template/process-inline-templates"
16+
],
17+
"rules": {
18+
"@angular-eslint/directive-selector": [
19+
"error",
20+
{
21+
"type": "attribute",
22+
"prefix": "lib",
23+
"style": "camelCase"
24+
}
25+
],
26+
"@angular-eslint/component-selector": [
27+
"error",
28+
{
29+
"type": "element",
30+
"prefix": "lib",
31+
"style": "kebab-case"
32+
}
33+
]
34+
}
35+
},
36+
{
37+
"files": [
38+
"*.html"
39+
],
40+
"extends": [
41+
"plugin:@angular-eslint/template/recommended",
42+
"plugin:@angular-eslint/template/accessibility"
43+
],
44+
"rules": {}
45+
}
46+
]
47+
}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Support for OAuth 2 and OpenId Connect (OIDC) in Angular. Already prepared for t
2020

2121
## Tested Environment
2222

23-
Successfully tested with **Angular 4.3 to Angular 15** and its Router, PathLocationStrategy as well as HashLocationStrategy and CommonJS-Bundling via webpack.
23+
Successfully tested with **Angular 4.3 to Angular 16** and its Router, PathLocationStrategy as well as HashLocationStrategy and CommonJS-Bundling via webpack.
2424

2525
At server side we've used **IdentityServer** (.NET / .NET Core), Redhat's **Keycloak** (Java), and **Auth0** (Auth0 is officially supported since version 10 of this lib). For Auth0, please have a look into the respective documentation page here.
2626

2727
For using this library with **Azure Active Directory** (**Azure AD**), we recommend an additional look to this [blog post](https://dev.to/yuriburger/azure-active-directory-b2c-with-pkce-for-your-angular-app-1dcg) and the example linked at the end of this blog post.
2828

2929
Also, the Okta community created some guidelines on how to use this lib with Okta. See the links at the end of this page for more information.
3030

31-
**Angular 15**: Use 15.x versions of this library (**should also work with older Angular versions!**).
31+
**Angular 15 & 16**: Use 15.x versions of this library (**should also work with older Angular versions!**).
3232

3333
**Angular 14**: Use 14.x versions of this library (**should also work with older Angular versions!**).
3434

angular.json

+12-16
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@
2121
"tsConfig": "projects/lib/tsconfig.lib.prod.json"
2222
}
2323
}
24+
},
25+
"lint": {
26+
"builder": "@angular-eslint/builder:lint",
27+
"options": {
28+
"lintFilePatterns": [
29+
"projects/lib/**/*.ts",
30+
"projects/lib/**/*.html"
31+
]
32+
}
2433
}
2534
}
2635
},
@@ -118,7 +127,6 @@
118127
}
119128
}
120129
},
121-
122130
"quickstart-demo": {
123131
"projectType": "application",
124132
"schematics": {},
@@ -179,7 +187,6 @@
179187
"builder": "@angular-devkit/build-angular:dev-server",
180188
"options": {
181189
"browserTarget": "quickstart-demo:build"
182-
183190
},
184191
"configurations": {
185192
"production": {
@@ -207,22 +214,9 @@
207214
"styles": ["projects/quickstart-demo/src/styles.css"],
208215
"scripts": []
209216
}
210-
},
211-
"e2e": {
212-
"builder": "@angular-devkit/build-angular:protractor",
213-
"options": {
214-
"protractorConfig": "projects/quickstart-demo/e2e/protractor.conf.js",
215-
"devServerTarget": "quickstart-demo:serve"
216-
},
217-
"configurations": {
218-
"production": {
219-
"devServerTarget": "quickstart-demo:serve:production"
220-
}
221-
}
222217
}
223218
}
224219
},
225-
226220
"angular-oauth2-oidc-jwks": {
227221
"projectType": "library",
228222
"root": "projects/angular-oauth2-oidc-jwks",
@@ -344,6 +338,8 @@
344338
}
345339
},
346340
"cli": {
347-
"analytics": false
341+
"analytics": false,
342+
"schematicCollections": ["@angular-eslint/schematics"],
343+
"packageManager": "npm"
348344
}
349345
}

docs/dependencies.html

+3-7
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
<li>
7272
<b>@webcomponents/custom-elements</b> : ^1.4.3</li>
7373
<li>
74-
<b>angular-oauth2-oidc</b> : ^10.0.3</li>
74+
<b>angular-oauth2-oidc</b> : ^15.0.1</li>
7575
<li>
76-
<b>angular-oauth2-oidc-jwks</b> : ^9.0.0</li>
76+
<b>angular-oauth2-oidc-jwks</b> : ^15.0.1</li>
7777
<li>
7878
<b>base64-js</b> : ^1.5.1</li>
7979
<li>
@@ -82,18 +82,14 @@
8282
<b>fast-sha256</b> : ^1.3.0</li>
8383
<li>
8484
<b>jsrsasign</b> : ^10.3.0</li>
85-
<li>
86-
<b>ngx-semantic-version</b> : ^2.3.0</li>
8785
<li>
8886
<b>rxjs</b> : ^6.5.3</li>
8987
<li>
9088
<b>rxjs-compat</b> : ^6.6.7</li>
9189
<li>
9290
<b>text-encoder-lite</b> : ^2.0.0</li>
9391
<li>
94-
<b>tsickle</b> : ^0.43.0</li>
95-
<li>
96-
<b>tslib</b> : ^2.3.0</li>
92+
<b>tslib</b> : ^2.5.2</li>
9793
<li>
9894
<b>zone.js</b> : ~0.11.4</li>
9995
</ul>

e2e/protractor.conf.js

-28
This file was deleted.

e2e/src/app.e2e-spec.ts

-14
This file was deleted.

e2e/src/app.po.ts

-11
This file was deleted.

e2e/tsconfig.e2e.json

-13
This file was deleted.

0 commit comments

Comments
 (0)