Skip to content

feat: add support for Angular 20 #1040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2025

Conversation

jsaguet
Copy link
Contributor

@jsaguet jsaguet commented Jul 26, 2025

🎯 Changes

This PR adds support for Angular 20.
AfterRenderPhase was removed in Angular 20 so I've updated the code to switch to the new afterNextRender API available since 18.1.0 instead.

The minimal required Angular version is now 18.1.0

Note:
Angular 18.1 requires Typescript 5.4 so I've updated the typescript version to 5.4 in every package devDependencies for consistency.

Closes #1034

✅ Checklist

  • I have followed the steps listed in the Contributing guide.
  • I have tested and linted this code locally.
  • I have generated a changeset for this PR, or this PR should not release a new version.

This is technically a breaking change but I'm guessing bumping only one package is not what's expected here.
Let me know and I'll adjust the changeset.

Copy link

changeset-bot bot commented Jul 26, 2025

🦋 Changeset detected

Latest commit: 72dfd29

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@tanstack/angular-virtual Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jsaguet jsaguet force-pushed the feat/drop-angular-17-support branch from 71f1fda to 8193130 Compare July 26, 2025 13:25
@jsaguet jsaguet changed the title feat: support Angular 20 feat: add support for Angular 20 Jul 26, 2025
Copy link

nx-cloud bot commented Jul 31, 2025

View your CI Pipeline Execution ↗ for commit 72dfd29

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 2m 19s View ↗
nx run-many --target=build --exclude=examples/** ✅ Succeeded 18s View ↗

☁️ Nx Cloud last updated this comment at 2025-08-05 12:24:38 UTC

Copy link

pkg-pr-new bot commented Jul 31, 2025

More templates

@tanstack/angular-virtual

npm i https://pkg.pr.new/@tanstack/angular-virtual@1040

@tanstack/lit-virtual

npm i https://pkg.pr.new/@tanstack/lit-virtual@1040

@tanstack/react-virtual

npm i https://pkg.pr.new/@tanstack/react-virtual@1040

@tanstack/solid-virtual

npm i https://pkg.pr.new/@tanstack/solid-virtual@1040

@tanstack/svelte-virtual

npm i https://pkg.pr.new/@tanstack/svelte-virtual@1040

@tanstack/virtual-core

npm i https://pkg.pr.new/@tanstack/virtual-core@1040

@tanstack/vue-virtual

npm i https://pkg.pr.new/@tanstack/vue-virtual@1040

commit: 72dfd29

This commit switches to the new afterNextRender API available since 18.1.0 to remove usage of `AfterRenderPhase` that was removed in Angular 20.

The minimal required Angular version is now 18.1.0
@jsaguet jsaguet force-pushed the feat/drop-angular-17-support branch from cc24c39 to 72dfd29 Compare August 2, 2025 16:18
@piecyk piecyk merged commit 81e6ac8 into TanStack:main Aug 5, 2025
4 checks passed
@github-actions github-actions bot mentioned this pull request Aug 5, 2025
@piecyk
Copy link
Collaborator

piecyk commented Aug 5, 2025

@jsaguet Thank you for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Angular 20: No matching export in "node_modules/@angular/core/fesm2022/core.mjs" for import "AfterRenderPhase"
2 participants