Skip to content

Commit e85d81a

Browse files
authored
Merge pull request #2389 from matictrebusak/upgrade/angular-21-support
Added support for angular 21
2 parents d8306e5 + 9628bbf commit e85d81a

File tree

9 files changed

+4982
-5212
lines changed

9 files changed

+4982
-5212
lines changed

.changeset/fresh-beans-crash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'apollo-angular': major
3+
---
4+
5+
Drop support for Angular 18

.changeset/goofy-hotels-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'apollo-angular': major
3+
---
4+
5+
Support for Angular 21

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
runs-on: ubuntu-latest
113113
strategy:
114114
matrix:
115-
angular_version: [18, 19, 20]
115+
angular_version: [18, 19, 20, 21]
116116
graphql_version: [16]
117117
node_version: [20, 22, 24]
118118
exclude:

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ We are using `Changeset` to manage and publish our releasing flow.
165165
1. Make your changes to the code and test them thoroughly.
166166
2. Run the command `yarn changeset` in your terminal. This will prompt you to select the type of
167167
change you made. The available options are patch, minor, and major.
168-
169168
1. `Patch` for backward-compatible bug fixes.
170169
2. `Minor` for new features and backward-compatible changes.
171170
3. `Major` for breaking changes.

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,40 +24,40 @@
2424
"test:e2e": "./scripts/run-e2e-locally.sh"
2525
},
2626
"devDependencies": {
27-
"@angular-devkit/build-angular": "^18.0.1",
28-
"@angular-devkit/core": "^18.0.1",
29-
"@angular-devkit/schematics": "^18.0.1",
30-
"@angular/animations": "^18.0.0",
31-
"@angular/cli": "^18.0.1",
32-
"@angular/common": "^18.0.0",
33-
"@angular/compiler": "^18.0.0",
34-
"@angular/compiler-cli": "^18.0.0",
35-
"@angular/core": "^18.0.0",
36-
"@angular/platform-browser": "^18.0.0",
37-
"@angular/platform-browser-dynamic": "^18.0.0",
38-
"@angular/platform-server": "^18.0.0",
39-
"@angular/router": "^18.0.0",
27+
"@angular-devkit/build-angular": "^19.2.0",
28+
"@angular-devkit/core": "^19.2.0",
29+
"@angular-devkit/schematics": "^19.2.0",
30+
"@angular/animations": "^19.2.0",
31+
"@angular/cli": "^19.2.0",
32+
"@angular/common": "^19.2.0",
33+
"@angular/compiler": "^19.2.0",
34+
"@angular/compiler-cli": "^19.2.0",
35+
"@angular/core": "^19.2.0",
36+
"@angular/platform-browser": "^19.2.0",
37+
"@angular/platform-browser-dynamic": "^19.2.0",
38+
"@angular/platform-server": "^19.2.0",
39+
"@angular/router": "^19.2.0",
4040
"@apollo/client": "4.0.1",
4141
"@babel/core": "^7.24.6",
4242
"@babel/preset-env": "^7.24.6",
4343
"@changesets/changelog-github": "^0.5.0",
4444
"@changesets/cli": "^2.27.3",
45-
"@schematics/angular": "^18.0.1",
45+
"@schematics/angular": "^19.2.0",
4646
"@theguild/prettier-config": "^2.0.1",
4747
"@types/node": "^20.12.12",
4848
"browserlist": "^1.0.1",
4949
"graphql": "^16.8.0",
5050
"husky": "^9.0.0",
5151
"lint-staged": "^15.2.5",
52-
"ng-packagr": "^19.0.0",
53-
"prettier": "^3.5.3",
52+
"ng-packagr": "^19.2.0",
53+
"prettier": "^3.7.1",
5454
"react": "^18.3.1",
5555
"rimraf": "^5.0.7",
5656
"rxjs": "~7.8.0",
5757
"shelljs": "^0.8.5",
5858
"tslib": "^2.3.0",
59-
"typescript": "5.4.5",
60-
"zone.js": "~0.14.6"
59+
"typescript": "~5.7.2",
60+
"zone.js": "~0.15.0"
6161
},
6262
"husky": {
6363
"hooks": {

packages/apollo-angular/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,24 @@
3838
"test:schematics": "tsc -p schematics/tsconfig.test.json && node scripts/move-schematics.js && jasmine --config=schematics/jasmine.json"
3939
},
4040
"peerDependencies": {
41-
"@angular/core": "^18.0.0 || ^19.0.0 || ^20.0.0",
41+
"@angular/core": "^19.0.0 || ^20.0.0 || ^21.0.0",
4242
"@apollo/client": "^4.0.1",
4343
"graphql": "^16.0.0",
44-
"rxjs": "^7.3.0"
44+
"rxjs": "^7.8.0"
4545
},
4646
"dependencies": {
4747
"tslib": "^2.6.2"
4848
},
4949
"devDependencies": {
50-
"@analogjs/vite-plugin-angular": "^1.14.0",
51-
"@analogjs/vitest-angular": "^1.14.0",
50+
"@analogjs/vite-plugin-angular": "^2.1.1",
51+
"@analogjs/vitest-angular": "^2.1.1",
52+
"@angular/build": "^19.2.0",
5253
"@types/jasmine": "^5.1.7",
5354
"@types/node": "^20.12.12",
5455
"jasmine": "^5.6.0",
5556
"jsdom": "^26.0.0",
5657
"vite-tsconfig-paths": "^5.1.4",
57-
"vitest": "^3.0.7"
58+
"vitest": "^4.0.14"
5859
},
5960
"publishConfig": {
6061
"directory": "build",

packages/apollo-angular/tests/Apollo.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,8 @@ describe('Apollo', () => {
460460
loading: false,
461461
});
462462

463+
await expect(stream.takeComplete()).resolves.toBeUndefined();
464+
463465
await expect(stream).not.toEmitAnything();
464466
});
465467

@@ -502,6 +504,8 @@ describe('Apollo', () => {
502504
loading: false,
503505
});
504506

507+
await expect(stream.takeComplete()).resolves.toBeUndefined();
508+
505509
await expect(stream).not.toEmitAnything();
506510
});
507511
});

website/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/building-your-application/configuring/typescript for more information.

0 commit comments

Comments
 (0)