RC of Angular Adapter - #11516
RC of Angular Adapter#11516benjavicente wants to merge 5 commits into
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
| @@ -0,0 +1,7 @@ | |||
| --- | |||
| '@tanstack/angular-query': major | |||
There was a problem hiding this comment.
have you set the libs to 4.0 and the changeset to major so that we get a 5.x then? I’m not sure if that will work 🤷
There was a problem hiding this comment.
Yes 😅
It doesn't seem to be a check for verifying 4.0 exists (or any existing published version). Audited that plan with Astra, it had an issue with the versioning group fixed in the new commit, it only seems to consider those groups versions to create the prerelease.
🎯 Changes
Creates a prerelease of the Angular Adapter. It follow the same API, but has changes in the implementation to better support some edge cases present in the experimental version (better pending tasks support #9981, immediate updates #9735, invalidate the delayed subscription #9020, improved signal aliasing #7488, and remove shape that would easelly allowed accidentally sharing a query client between requests in SSR [Discord]).
This changes originated from PR #9893, that would also have introduced breaking changes, but has since then deviated a lot to resolve other reported issues while improving the internal shape of the adapter. The older Angular version supported is updated to Angular 20.1, matching the long term support. The update includes some additional features:
toResourcehelper, to integrate queries into new Angular APIs like SIgnal FormsinjectQueriessupportinjectIsFetchingandinjectIsMutatingIt removed deprecated APIs of the experimental package, imrpoves some consistency issues (like the missing dynamic filters and options that accepted 2 different shapes), and moved the devtools to a separate package matching other adapters.
Made as a prerelease targeting the release as
@tanstack/angular-query@5.0.0-rc(similar on how the Solid 2.0 adapter), to match the version of the other adapters and how it is displayed in the docs, while not publishing a stable package yet. The experimental adapter isn't changed since it has been too "stable".AI was used to help to write code, but it was heavelly reviewed.
✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact