Skip to content

Commit c354fdb

Browse files
committed
feat: Update to Angular 17
BREAKING CHANGE: Angular 15 and 17 no longer supported
1 parent 38462c7 commit c354fdb

File tree

67 files changed

+8663
-9179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+8663
-9179
lines changed

.eslintrc.json

Lines changed: 40 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"root": true,
33
"ignorePatterns": ["projects/**/*"],
4-
"plugins": ["unused-imports"],
54
"overrides": [
65
{
76
"files": ["*.ts"],
@@ -11,16 +10,30 @@
1110
},
1211
"extends": [
1312
"eslint:recommended",
14-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
13+
"plugin:@typescript-eslint/eslint-recommended",
1514
"plugin:@angular-eslint/all",
16-
"plugin:prettier/recommended" // This should always be the last in the extends array
15+
"plugin:prettier/recommended"
1716
],
1817
"rules": {
1918
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
2019
"@angular-eslint/prefer-on-push-component-change-detection": "off",
21-
"unused-imports/no-unused-imports": "error",
22-
"no-console": ["error", { "allow": ["warn", "error"] }],
23-
"@typescript-eslint/unbound-method": "off"
20+
"no-console": [
21+
"error",
22+
{
23+
"allow": ["warn", "error"]
24+
}
25+
],
26+
"@typescript-eslint/unbound-method": "off",
27+
"@angular-eslint/sort-lifecycle-methods": "off",
28+
"no-unused-vars": "off",
29+
"@typescript-eslint/no-unused-vars": [
30+
"error",
31+
{ "argsIgnorePattern": "^_" }
32+
],
33+
"@typescript-eslint/restrict-template-expressions": "off",
34+
"@angular-eslint/prefer-standalone": "off",
35+
"@angular-eslint/prefer-standalone-component": "off",
36+
"@angular-eslint/consistent-component-styles": "off"
2437
}
2538
},
2639
{
@@ -33,23 +46,34 @@
3346
"eslint:recommended",
3447
"plugin:@typescript-eslint/recommended-requiring-type-checking",
3548
"plugin:@angular-eslint/all",
36-
"plugin:prettier/recommended" // This should always be the last in the extends array
49+
"plugin:prettier/recommended"
3750
],
3851
"rules": {
3952
"@angular-eslint/sort-ngmodule-metadata-arrays": "off",
4053
"@angular-eslint/prefer-on-push-component-change-detection": "off",
41-
"unused-imports/no-unused-imports": "error",
42-
"no-console": ["error", { "allow": ["warn", "error"] }],
54+
"no-console": [
55+
"error",
56+
{
57+
"allow": ["warn", "error"]
58+
}
59+
],
4360
"@typescript-eslint/unbound-method": "off",
4461
"@typescript-eslint/no-explicit-any": "off",
45-
"@typescript-eslint/ban-types": "off"
62+
"@typescript-eslint/ban-types": "off",
63+
"@angular-eslint/prefer-standalone": "off",
64+
"@angular-eslint/prefer-standalone-component": "off",
65+
"no-unused-vars": "off",
66+
"@typescript-eslint/no-unused-vars": [
67+
"error",
68+
{ "argsIgnorePattern": "^_" }
69+
]
4670
}
4771
},
4872
{
4973
"files": ["*.html"],
5074
"extends": [
5175
"plugin:@angular-eslint/template/all",
52-
"plugin:prettier/recommended" // This should always be the last in the extends array
76+
"plugin:prettier/recommended"
5377
],
5478
"rules": {
5579
"@angular-eslint/template/i18n": "off",
@@ -59,8 +83,11 @@
5983
"@angular-eslint/template/no-interpolation-in-attributes": "off",
6084
"@angular-eslint/template/button-has-type": "off",
6185
"@angular-eslint/template/no-inline-styles": "off",
62-
"@angular-eslint/template/accessibility-interactive-supports-focus": "off",
63-
"@angular-eslint/template/attributes-order": "off"
86+
"@angular-eslint/template/attributes-order": "off",
87+
"@angular-eslint/template/interactive-supports-focus": "off",
88+
"@angular-eslint/template/prefer-ngsrc": "off",
89+
"@angular-eslint/template/prefer-control-flow": "off",
90+
"@angular-eslint/template/prefer-self-closing-tags": "off"
6491
}
6592
}
6693
]

.github/workflows/workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- master
6-
- polls
6+
- v7
77
pull_request:
88
branches:
99
- master

README.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,43 +52,37 @@ Check out our current openings and apply via [Stream's website](https://getstrea
5252

5353
### Install with NPM
5454

55-
Supported Angular versions: **Angular 15-20**
55+
Supported Angular versions: **Angular 17-21**
5656

57-
Run this command if you are using **Angular 20**:
58-
59-
```shell
60-
# Not all dependencies support Anglar 20 yet, so --force is required
61-
npm install stream-chat-angular stream-chat @ngx-translate/core@16 ngx-float-ui@19 --force
62-
```
63-
64-
Run this command if you are using **Angular 19**:
57+
Run this command if you are using **Angular 21**:
6558

6659
```shell
67-
npm install stream-chat-angular stream-chat @ngx-translate/core@16 ngx-float-ui@19
60+
# Not all dependencies support Anglar 21 yet, so --force is required
61+
npm install stream-chat-angular stream-chat @ngx-translate/core ngx-float-ui@20 --force
6862
```
6963

70-
Run this command if you are using **Angular 18**:
64+
Run this command if you are using **Angular 20**:
7165

7266
```shell
73-
npm install stream-chat-angular stream-chat @ngx-translate/core@16 ngx-float-ui@18
67+
npm install stream-chat-angular stream-chat @ngx-translate/core ngx-float-ui@20
7468
```
7569

76-
Run this command if you are using **Angular 17**:
70+
Run this command if you are using **Angular 19**:
7771

7872
```shell
79-
npm install stream-chat-angular stream-chat @ngx-translate/core@16 ngx-float-ui@17
73+
npm install stream-chat-angular stream-chat @ngx-translate/core ngx-float-ui@19
8074
```
8175

82-
Run this command if you are using **Angular 16**:
76+
Run this command if you are using **Angular 18**:
8377

8478
```shell
85-
npm install stream-chat-angular stream-chat @ngx-translate/core@16 ngx-float-ui@16
79+
npm install stream-chat-angular stream-chat @ngx-translate/core ngx-float-ui@18
8680
```
8781

88-
Run this command if you are using **Angular 15**:
82+
Run this command if you are using **Angular 17**:
8983

9084
```shell
91-
npm install stream-chat-angular stream-chat @ngx-translate/core@14 ngx-float-ui@15
85+
npm install stream-chat-angular stream-chat @ngx-translate/core ngx-float-ui@17
9286
```
9387

9488
Supported node verisons: 18+

angular.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,18 @@
135135
"builder": "@angular-devkit/build-angular:dev-server",
136136
"configurations": {
137137
"production": {
138-
"browserTarget": "sample-app:build:production"
138+
"buildTarget": "sample-app:build:production"
139139
},
140140
"development": {
141-
"browserTarget": "sample-app:build:development"
141+
"buildTarget": "sample-app:build:development"
142142
}
143143
},
144144
"defaultConfiguration": "development"
145145
},
146146
"extract-i18n": {
147147
"builder": "@angular-devkit/build-angular:extract-i18n",
148148
"options": {
149-
"browserTarget": "sample-app:build"
149+
"buildTarget": "sample-app:build"
150150
}
151151
},
152152
"test": {
@@ -283,18 +283,18 @@
283283
"builder": "@angular-devkit/build-angular:dev-server",
284284
"configurations": {
285285
"production": {
286-
"browserTarget": "customizations-example:build:production"
286+
"buildTarget": "customizations-example:build:production"
287287
},
288288
"development": {
289-
"browserTarget": "customizations-example:build:development"
289+
"buildTarget": "customizations-example:build:development"
290290
}
291291
},
292292
"defaultConfiguration": "development"
293293
},
294294
"extract-i18n": {
295295
"builder": "@angular-devkit/build-angular:extract-i18n",
296296
"options": {
297-
"browserTarget": "customizations-example:build"
297+
"buildTarget": "customizations-example:build"
298298
}
299299
},
300300
"test": {

0 commit comments

Comments
 (0)