Skip to content

Commit f695810

Browse files
Update for Angular 20
1 parent 2ed8cb3 commit f695810

27 files changed

+4043
-4230
lines changed

.browserslistrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
# npx browserslist
77

88
> 0.5%
9-
last 2 versions
9+
last 2 Chrome versions
10+
last 2 Firefox versions
11+
last 2 Edge versions
12+
last 2 Safari versions
1013
Firefox ESR
1114
not dead
12-
not IE 9-11 # For IE 9-11 support, remove 'not'.
15+
not IE 11 # IE is obsolete; modern Angular no longer supports it

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ indent_size = 2
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

11-
[*.ts]
12-
quote_type = single
13-
1411
[*.md]
1512
max_line_length = off
1613
trim_trailing_whitespace = false

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.5.0
2+
- Update to Angular 20
3+
- Update several dependencies
4+
15
# 2.4.0
26
- Update to Angular 19
37
- Update several dependencies

README.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Check out the [demo](https://abacritt.github.io/angularx-social-login/).
1111

1212
| Library Version | Angular Version |
1313
|---------------------------------------|-----------------|
14+
| @abacritt/angularx-social-login:2.5.X | 20 |
1415
| @abacritt/angularx-social-login:2.4.X | 19 |
1516
| @abacritt/angularx-social-login:2.3.X | 18 |
1617
| @abacritt/angularx-social-login:2.2.X | 17 |

angular.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,30 @@
171171
},
172172
"@angular-eslint/schematics:library": {
173173
"setParserOptionsProject": true
174+
},
175+
"@schematics/angular:component": {
176+
"type": "component"
177+
},
178+
"@schematics/angular:directive": {
179+
"type": "directive"
180+
},
181+
"@schematics/angular:service": {
182+
"type": "service"
183+
},
184+
"@schematics/angular:guard": {
185+
"typeSeparator": "."
186+
},
187+
"@schematics/angular:interceptor": {
188+
"typeSeparator": "."
189+
},
190+
"@schematics/angular:module": {
191+
"typeSeparator": "."
192+
},
193+
"@schematics/angular:pipe": {
194+
"typeSeparator": "."
195+
},
196+
"@schematics/angular:resolver": {
197+
"typeSeparator": "."
174198
}
175199
}
176200
}

package.json

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,55 +11,56 @@
1111
"test": "ng test",
1212
"lint": "ng lint",
1313
"e2e": "ng e2e",
14-
"prepare": "husky install"
14+
"prepare": "husky"
1515
},
1616
"private": true,
1717
"dependencies": {
18-
"@angular/animations": "^19.2.8",
19-
"@angular/common": "^19.2.8",
20-
"@angular/compiler": "^19.2.8",
21-
"@angular/core": "^19.2.8",
22-
"@angular/forms": "^19.2.8",
23-
"@angular/platform-browser": "^19.2.8",
24-
"@angular/platform-browser-dynamic": "^19.2.8",
25-
"@angular/router": "^19.2.8",
18+
"@angular/animations": "^20.1.3",
19+
"@angular/common": "^20.1.3",
20+
"@angular/compiler": "^20.1.3",
21+
"@angular/core": "^20.1.3",
22+
"@angular/forms": "^20.1.3",
23+
"@angular/platform-browser": "^20.1.3",
24+
"@angular/platform-browser-dynamic": "^20.1.3",
25+
"@angular/router": "^20.1.3",
2626
"rxjs": "~7.8.2",
2727
"tslib": "^2.8.1",
28-
"zone.js": "~0.15.0"
28+
"zone.js": "~0.15.1"
2929
},
3030
"devDependencies": {
31-
"@angular-devkit/build-angular": "^19.2.9",
32-
"@angular-eslint/builder": "19.3.0",
33-
"@angular-eslint/eslint-plugin": "19.3.0",
34-
"@angular-eslint/eslint-plugin-template": "19.3.0",
35-
"@angular-eslint/schematics": "19.3.0",
36-
"@angular-eslint/template-parser": "19.3.0",
37-
"@angular/cli": "^19.2.9",
38-
"@angular/compiler-cli": "^19.2.8",
39-
"@angular/language-service": "^19.2.8",
40-
"@types/google.accounts": "^0.0.15",
41-
"@types/jasmine": "^5.1.7",
31+
"@angular-devkit/build-angular": "^20.1.3",
32+
"@angular-eslint/builder": "20.1.1",
33+
"@angular-eslint/eslint-plugin": "20.1.1",
34+
"@angular-eslint/eslint-plugin-template": "20.1.1",
35+
"@angular-eslint/schematics": "20.1.1",
36+
"@angular-eslint/template-parser": "20.1.1",
37+
"@angular/cli": "^20.1.3",
38+
"@angular/compiler-cli": "^20.1.3",
39+
"@angular/language-service": "^20.1.3",
40+
"@types/google.accounts": "^0.0.17",
41+
"@types/karma": "^6.3.9",
42+
"@types/jasmine": "^5.1.8",
4243
"@types/jasminewd2": "^2.0.13",
43-
"@types/node": "^22.14.1",
44-
"@typescript-eslint/eslint-plugin": "^8.31.0",
45-
"@typescript-eslint/parser": "^8.31.0",
46-
"eslint": "^9.25.1",
44+
"@types/node": "^24.1.0",
45+
"@typescript-eslint/eslint-plugin": "^8.33.1",
46+
"@typescript-eslint/parser": "^8.33.1",
47+
"eslint": "^9.28.0",
4748
"husky": "^9.1.7",
48-
"jasmine-core": "~5.6.0",
49+
"jasmine-core": "~5.9.0",
4950
"jasmine-spec-reporter": "~7.0.0",
5051
"karma": "~6.4.4",
5152
"karma-chrome-launcher": "~3.2.0",
5253
"karma-coverage-istanbul-reporter": "~3.0.3",
5354
"karma-jasmine": "~5.1.0",
5455
"karma-jasmine-html-reporter": "^2.1.0",
55-
"lint-staged": "^15.5.1",
56-
"ng-packagr": "^19.2.2",
56+
"lint-staged": "^16.1.2",
57+
"ng-packagr": "^20.1.0",
5758
"protractor": "~7.0.0",
5859
"ts-node": "~10.9.2",
5960
"typescript": "5.8.3"
6061
},
6162
"engines": {
62-
"node": ">=22.14.0"
63+
"node": ">=22.17.1"
6364
},
6465
"lint-staged": {
6566
"*.js": "npm run lint -- --cache --fix"

projects/lib/README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ Check out the [demo](https://abacritt.github.io/angularx-social-login/).
1010
### Compatibility Matrix
1111

1212
| Library Version | Angular Version |
13-
|---------------------------------------|-------------|
14-
| @abacritt/angularx-social-login:2.1.X | 16 |
15-
| @abacritt/angularx-social-login:2.0.X | 15, 16 |
16-
| @abacritt/angularx-social-login:1 | 13, 14, 15 |
17-
| angularx-social-login:4 | 12, 13 |
18-
| angularx-social-login:3 | 9, 10, 11 |
19-
| angularx-social-login:2 | 5, 6, 7, 8 |
13+
|---------------------------------------|-----------------|
14+
| @abacritt/angularx-social-login:2.5.X | 20 |
15+
| @abacritt/angularx-social-login:2.4.X | 19 |
16+
| @abacritt/angularx-social-login:2.3.X | 18 |
17+
| @abacritt/angularx-social-login:2.2.X | 17 |
18+
| @abacritt/angularx-social-login:2.1.X | 16, 17 |
19+
| @abacritt/angularx-social-login:2.0.X | 15, 16 |
20+
| @abacritt/angularx-social-login:1 | 13, 14, 15 |
21+
| angularx-social-login:4 | 12, 13 |
22+
| angularx-social-login:3 | 9, 10, 11 |
23+
| angularx-social-login:2 | 5, 6, 7, 8 |
2024

2125
## Getting started
2226

projects/lib/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@abacritt/angularx-social-login",
3-
"version": "2.4.0",
3+
"version": "2.5.0",
44
"description": "Social login and authentication module for Angular 19. Supports authentication with Google, Facebook, Amazon, and VK. Can be extended to other providers also.",
55
"repository": {
66
"type": "git",
@@ -9,7 +9,7 @@
99
"author": "Jaibatrik Dutta <jaibatrik@gmail.com>",
1010
"keywords": [
1111
"angular",
12-
"angular19",
12+
"angular20",
1313
"angular-social-login",
1414
"social-authentication",
1515
"social-login",
@@ -25,8 +25,8 @@
2525
"tslib": ">=2.8.1"
2626
},
2727
"peerDependencies": {
28-
"@angular/common": ">=19.2.8",
29-
"@angular/core": ">=19.2.8"
28+
"@angular/common": ">=20.1.3",
29+
"@angular/core": ">=20.1.3"
3030
},
3131
"homepage": "https://github.com/abacritt/angularx-social-login#readme",
3232
"main": "bundles/abacrit-angularx-social-login.umd.js",

projects/lib/src/directives/google-signin-button.directive.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Directive, ElementRef, Input } from '@angular/core';
1+
import { Directive, ElementRef, Input, inject } from '@angular/core';
22
import { take } from 'rxjs/operators';
33
import { SocialAuthService } from '../socialauth.service';
44
import { isGoogleAccountsDefined } from '../utils/google';
@@ -33,7 +33,10 @@ export class GoogleSigninButtonDirective {
3333
@Input()
3434
locale: string = '';
3535

36-
constructor(el: ElementRef, socialAuthService: SocialAuthService) {
36+
constructor() {
37+
const el = inject(ElementRef);
38+
const socialAuthService = inject(SocialAuthService);
39+
3740
socialAuthService.initState.pipe(take(1)).subscribe(() => {
3841
Promise.resolve(this.width).then((value) => {
3942
if (value > 400 || (value < 200 && value != 0)) {

0 commit comments

Comments
 (0)