Worth knowing how this landed, because it is the pattern for framework deprecations generally and knowing it saves you from being surprised again.
It was deprecated for a couple of releases before it was removed: the old behaviour kept working and emitted a deprecation warning, and then a later major release removed it entirely. So the warning was in your test output for a year before anything broke.
The lesson is to run your tests with deprecation warnings turned into errors, or at least visible, on a scheduled job rather than only on every push. Most frameworks warn generously and for a long time. The upgrades that hurt are the ones where nobody was reading the warnings.
It costs one CI job and it converts "the upgrade broke everything" into a list of small tasks you can do at your own pace.