Skip to content

Conversation

@EliasVal
Copy link

@EliasVal EliasVal commented Dec 11, 2025

I updated all dependencies to the latest (v21) Angular packages.
This includes fixing ESLint, updating runners, and replacing @Inject with inject, ngIf with @if, mostly removing deprecations.

The biggest deprecation left is substituting provideAnimations with animate.enter and animate.leave.
A few more things that would be good to do are using input signals wherever necessary, adding members to methods, and retiring all decorators (except injectable, component, and directive, of course) in favor of the new control flow

EDIT:
Since I was having issues with Zone.js and SCSS, I attempted to recreate the project from scratch to also align it with today's Angular.

It all seems to work. I got completely rid of anything deprecated, including provideAnimations, toPromise, etc.
I also moved the tests to a service and remove useless tests to more accurately display code coverage

Also, I don't really know how your CI pipeline really works, and I'm pretty sure this PR breaks it. With some guidance, I'll be happy fix it.

If this PR is deemed 'too big,' which is totally understandable, let me know.

Resolves #1035
Resolves #1039

@vercel
Copy link

vercel bot commented Dec 11, 2025

@EliasVal is attempting to deploy a commit to the Scott's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Dec 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
ngx-toastr Error Error Dec 12, 2025 5:01pm

@EliasVal EliasVal marked this pull request as draft December 12, 2025 20:05
@EliasVal
Copy link
Author

It seems I broke a good part of the toastr.service logic 😅
will fix

@EliasVal EliasVal marked this pull request as ready for review December 13, 2025 19:05
@EliasVal
Copy link
Author

Ight, I think I'm done here

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.

provideAnimations() deprecated in latest Angular versions Remove angular animations and use pure CSS animations

1 participant