Skip to content

Commit 2d396f5

Browse files
authored
Add Angular 15 support (#9)
* Pre migration dependency updates * Run migrations * package.json and readme tweaks for Angular 15 support * npm audit fix * formatting
1 parent 33c3870 commit 2d396f5

9 files changed

+4195
-3818
lines changed

angular.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"options": {
135135
"tsConfig": "libs/ngx-http-request-state/tsconfig.lib.json",
136136
"project": "libs/ngx-http-request-state/ng-package.json",
137-
"updateBuildableProjectDepsInPackageJson": true
137+
"updateBuildableProjectDepsInPackageJson": false
138138
},
139139
"configurations": {
140140
"production": {

apps/examples/.browserslistrc

-17
This file was deleted.

apps/examples/tsconfig.app.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
5-
"types": []
5+
"types": [],
6+
"target": "ES2022",
7+
"useDefineForClassFields": false
68
},
79
"files": ["src/main.ts", "src/polyfills.ts"],
810
"exclude": ["jest.config.ts"]

libs/ngx-http-request-state/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ of state changes, simplifying handling of loading, loaded & error states.
77

88
## Versions
99

10-
Use version `2.x.x` for Angular 14.
11-
Use version `1.2.0` for Angular 13 or earlier.
10+
Use version `2.1.x` for Angular 14 or 15.
11+
Use version `1.2.0` for Angular 8 to 13.
12+
Angular versions 7 and earlier are not supported.
1213

1314
## API
1415

libs/ngx-http-request-state/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
"loading",
99
"error"
1010
],
11-
"version": "2.0.0",
11+
"version": "2.1.0",
1212
"peerDependencies": {
13-
"rxjs": "^6.2.0 || ^7.4.0"
13+
"rxjs": "^6.2.0 || ^7.4.0",
14+
"@angular/common": "^14.2.10 || ^15.0.1",
15+
"@angular/core": "^14.2.10 || ^15.0.1"
1416
},
1517
"dependencies": {
1618
"tslib": "^2.0.0"

libs/ngx-http-request-state/tsconfig.lib.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
5-
"target": "ES2020",
5+
"target": "ES2022",
66
"declaration": true,
77
"declarationMap": true,
88
"inlineSources": true,
99
"types": [],
10-
"lib": ["dom", "es2018"]
10+
"lib": ["dom", "es2018"],
11+
"useDefineForClassFields": false
1112
},
1213
"angularCompilerOptions": {
1314
"skipTemplateCodegen": true,

libs/ngx-http-request-state/tsconfig.lib.prod.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"extends": "./tsconfig.lib.json",
33
"compilerOptions": {
4-
"declarationMap": false
4+
"declarationMap": false,
5+
"target": "ES2022",
6+
"useDefineForClassFields": false
57
},
68
"angularCompilerOptions": {
79
"compilationMode": "partial"

0 commit comments

Comments
 (0)