-
Notifications
You must be signed in to change notification settings - Fork 403
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
build: add Angular 19 support #2269
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit c9f6d69. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targetsSent with 💌 from NxCloud. |
@ngxs/devtools-plugin
@ngxs/hmr-plugin
@ngxs/form-plugin
@ngxs/router-plugin
@ngxs/storage-plugin
@ngxs/store
@ngxs/websocket-plugin
commit: |
BundleMonFiles updated (3)
Unchanged files (3)
Total files change +371B +0.28% Groups removed (1)
Groups updated (1)
Final result: ❌ View report in BundleMon website ➡️ |
BundleMon (NGXS Plugins)Unchanged files (9)
Total files change -30B -0.15% Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
BundleMon (Integration Projects)Files added (1)
Files removed (3)
Total files change -139.27KB -67.72% Final result: ✅ View report in BundleMon website ➡️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, but it seems that in the following file:
packages\store\experimental\src\pending-tasks.ts
We import ExperimentalPendingTasks
from @angular/core
.
In Angular 19, this is now available as PendingTasks
from @angular/core
.
(as a side note, our tests didn't pick up this missing Angular API in this PR, so I think we are short on some test coverage of this feature)
This means that we can move the withExperimentalNgxsPendingTasks
utility from the @ngxs/store/experimental
sub package to withNgxsPendingTasks
in the main @ngxs/store
package (unless you can think of a more ideal place?).
Related to this change would be a version bump of NGXS v18 to NGXS v19 (especially because of this breaking change)🎉
I agree. |
But we should wait until the Nx allows migrating to Angular 19 in order to update the workspace version too. |
What is the dependency on NX which would be blocking us? PS. We should still keep the experimental subpackage around. |
We can but not with the pending tasks change. The workspace is using Angular 18 which doesn't expose |
Ok, so we are blocked until this NX PR is merged: Is there any way that we can decouple the angular version that our libraries reference from the version of NX? |
The experimental subpackage already references things from the
***@***.***/store` library.
We would be moving the functionality to the core lib and referencing it
there (having the same direction of reference as the existing refs).
…On Mon, 25 Nov 2024 at 14:05, Artur ***@***.***> wrote:
We can export the withExperimentalNgxsPendingTasks with a deprecation
notice.
This would throw an error that Entry point @ngxs/store has a circular
dependency on itself.
—
Reply to this email directly, view it on GitHub
<#2269 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO3U2JKPHI3EQNN5W72HFT2CMHALAVCNFSM6AAAAABSG3RGQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJXHAZTIMJWGE>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
I have looked at what NgRx did, they upgraded workspace version w/o waiting for the Nx upgrade. I upgraded the workspace version and had to update unit tests because components are standalone by default now. |
Great work!
There may be some usefulness to still have some components as `standalone:
false` where we are testing things about modules, but I think that most can
be converted.
…On Mon, 25 Nov 2024 at 14:17, Artur ***@***.***> wrote:
I have looked at what NgRx did, they upgraded workspace version w/o
waiting for the Nx upgrade.
I upgraded the workspace version and had to update unit tests because
components are standalone by default now.
—
Reply to this email directly, view it on GitHub
<#2269 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO3U2IAAR42EOPBCQ5GTWT2CMIO3AVCNFSM6AAAAABSG3RGQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJXHA3DAOBZG4>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
@markwhitfeld what do we with ng16/17/18 integrations? They're not compatible anymore because we're using |
Is anyone taking care of changes for this PR? Many users are waiting for Angular 19 support. |
Code Climate has analyzed commit c9f6d69 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 95.3% (0.0% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!!!!
Let's get this released!
Issue: #2268