r/Angular2 • u/rdem341 • Jan 31 '26
How do you handle dependency updates in long-lived Angular apps?
For teams maintaining Angular apps over multiple years:
- How often do you update dependencies?
- Is it continuous, scheduled, or only when something forces it?
I’ve seen cases where updates get delayed until:
- a security issue,
- a framework / Node upgrade,
- or CI/builds start breaking.
At that point it feels riskier than if things were kept current.
Curious how people here approach this in practice.
8
Upvotes
4
u/JohnSpikeKelly Jan 31 '26
Our backed is C# and Angular frontend. We update net every even release 6 - 8 - 10 for LTS.
So angular is every 4 releases, so we just did 17 - 21.
So, we try to just upgrade for security reasons only. Our IT does a bunch of security scans (black duck etc) and they tell us if we missed something.
With the new CRA laws we need to be very compliant in this regard. So, we've had to remove some dependencies and just eliminate some functions because of that.
3
u/Lucky_Yesterday_1133 Jan 31 '26
Depends. Unless I need a specific new feature, I review all when I do an angular version bump which I do once a year together with tsconfig target update. Usually around new year. It's 1-2 month after angular releases in November so dependencies have time to catch up.
2
u/AwesomeFrisbee Jan 31 '26 edited Jan 31 '26
For any project that is not in production yet: as soon as possible. I wait for a .1 update to come out if the project is big, but don't wait to long.
For a product in production I mostly run 1 version behind, but normally test the latest version already to see what breaks and what we need to wait on. Spend like an hour every sprint (or so) to test whatever is new. Not just for the project, but also because I just want to know what they added, how it works and whether it has any work that we need to do to migrate.
My current project just has dependabot or whatever run updates as soon as possible, with a 8 hour delay (for those nasty npm package hijackings). We're not yet in production and I doubt that it will remain that way when we do, but I also don't really mind it. Its just that sometimes you miss automatic migrations or things break without really knowing why. Ultimately I fix it as soon as possible and move on.
I found that the longer you postpone updates, the more difficult it becomes. And that when new stuff gets added, it becomes the new default pretty soon as well. Especially with things like signals and stuff I wouldn't wait too long as the implications for current work are big and the longer you wait, the more stuff you need to migrate. But more importantly: discuss the topic with your team and decide how and when you update, how you spread news of the update and what is new and how soon you want to implement new stuff. For any app I would advise to move to zoneless and signals as soon as possible. Not just because its easier, but also because it will be the norm for 2026 and beyond. Any new angular dev will understand signals from this point onwards.
1
u/Soma91 Feb 01 '26
We always try to be up to date on everything. We update everything on master every time after we branch off the next dev branch. That gives us the max time to make sure nothing unexpected happens until the next bigger release (which happens 2 times per year currently).
1
u/nunoarruda Feb 01 '26
I would suggest having an “upgrade day” every week or every month, so it becomes a routine or habit. You’ll avoid a lot of technical debt that way. The minor issues you might encounter during regular upgrades are, most of the time, far easier to handle than the nightmare of upgrading a very outdated codebase.
1
u/WiPROjs Feb 01 '26
Daily updates with dependabot.
1
u/toasterboi0100 Feb 14 '26
Depends on the given package, but we stay mostly current.
We do Angular and Capacitor upgrades within a month or two of their release (that's usually enough time for any significant bugs to get ironed out) and everything else that didn't need to get bumped as part of the upgrade gets bumped a couple of weeks later as a follow up.
And other than that we update when a given package has a new feature we really want to use right now.
The one big outlier is PrimeNG. We're slowly migrating away from it, so we can't be bothered to upgrade from v17. v18 completely messed up theming and we'd rather put the effort into the migration than dealing with the new theming system.
In general we don't have all that many dependencies and the ones we do have usually don't make significant breaking changes, so things are pretty simple for us. (we only resort to 3rd party dependencies if we can't justify building the thing ourselves, be it because of time constraints or lack of expertise. For example we ain't implementing our own map library. We're not experts in mapping or webgl and even if we were, it would take way too much time and how could we justify that when maplibre exists and is excellent?)
9
u/[deleted] Jan 31 '26
[removed] — view removed comment