Skip to content

Commit 036bc52

Browse files
authored
chore: update to angular 21 (#458)
1 parent 50d91d7 commit 036bc52

File tree

5 files changed

+30
-23
lines changed

5 files changed

+30
-23
lines changed

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@
1313
},
1414
"private": true,
1515
"dependencies": {
16-
"@angular/animations": "^20.0.0",
17-
"@angular/common": "^20.0.0",
18-
"@angular/compiler": "^20.0.0",
19-
"@angular/core": "^20.0.0",
20-
"@angular/forms": "^20.0.0",
21-
"@angular/platform-browser": "^20.0.0",
22-
"@angular/platform-browser-dynamic": "^20.0.0",
23-
"@angular/router": "^20.0.0",
16+
"@angular/animations": "^21.0.1",
17+
"@angular/common": "^21.0.1",
18+
"@angular/compiler": "^21.0.1",
19+
"@angular/core": "^21.0.1",
20+
"@angular/forms": "^21.0.1",
21+
"@angular/platform-browser": "^21.0.1",
22+
"@angular/platform-browser-dynamic": "^21.0.1",
23+
"@angular/router": "^21.0.1",
2424
"@scarf/scarf": "^1.1.1",
2525
"rxjs": "~7.4.0",
2626
"tslib": "^2.3.0",
2727
"zone.js": "~0.15.0"
2828
},
2929
"devDependencies": {
30-
"@angular-devkit/build-angular": "^20.0.0",
31-
"@angular/cli": "^20.0.0",
32-
"@angular/compiler-cli": "^20.0.0",
30+
"@angular-devkit/build-angular": "^21.0.0",
31+
"@angular/cli": "^21.0.0",
32+
"@angular/compiler-cli": "^21.0.1",
3333
"@types/jasmine": "~3.10.0",
3434
"@types/node": "^12.11.1",
3535
"jasmine-core": "~3.10.0",
@@ -38,7 +38,7 @@
3838
"karma-coverage": "~2.1.0",
3939
"karma-jasmine": "~4.0.0",
4040
"karma-jasmine-html-reporter": "~1.7.0",
41-
"ng-packagr": "^20.0.0",
42-
"typescript": "~5.8.3"
41+
"ng-packagr": "^21.0.0",
42+
"typescript": "~5.9.3"
4343
}
4444
}

projects/demo/src/main.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { enableProdMode, importProvidersFrom } from '@angular/core';
1+
import { enableProdMode, importProvidersFrom, provideZoneChangeDetection } from '@angular/core';
22
import { bootstrapApplication } from "@angular/platform-browser";
33
import { AppComponent } from "./app/app.component";
44
import { BrowserModule } from '@angular/platform-browser';
@@ -8,5 +8,12 @@ if (environment.production) {
88
enableProdMode();
99
}
1010

11-
bootstrapApplication(AppComponent, {providers: [importProvidersFrom(BrowserModule)]})
11+
bootstrapApplication(
12+
AppComponent,
13+
{
14+
providers: [
15+
provideZoneChangeDetection(),
16+
importProvidersFrom(BrowserModule)
17+
]
18+
})
1219
.catch(err => console.error(err));

projects/ngx-infinite-scroll/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v 21.0.0 (2025/11/25)
2+
3+
- [UPGRADE] - now using Angular 21
4+
15
## v 20.0.0 (2025/05/29)
26

37
- [UPGRADE] - now using Angular 20

projects/ngx-infinite-scroll/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-infinite-scroll",
3-
"version": "20.0.0",
3+
"version": "21.0.0",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/orizens/ngx-infinite-scroll"
@@ -14,8 +14,8 @@
1414
"postinstall": "opencollective-postinstall || exit 0"
1515
},
1616
"peerDependencies": {
17-
"@angular/common": ">=20.0.0 <21.0.0",
18-
"@angular/core": ">=20.0.0 <21.0.0"
17+
"@angular/common": ">=21.0.0 <22.0.0",
18+
"@angular/core": ">=21.0.0 <22.0.0"
1919
},
2020
"dependencies": {
2121
"tslib": "^2.3.0"

tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@
2020
},
2121
"declaration": false,
2222
"experimentalDecorators": true,
23-
"moduleResolution": "node",
23+
"moduleResolution": "bundler",
2424
"importHelpers": true,
2525
"target": "ES2022",
2626
"module": "es2020",
27-
"lib": [
28-
"es2020",
29-
"dom"
30-
],
3127
"useDefineForClassFields": false,
3228
"removeComments": false
3329
},

0 commit comments

Comments
 (0)