For future reference, when an api disapears, go back a version and look at the docs. It will mention if it is deprecated and if so what it is replaced with.
Also pay attention to deprecations in release notes/docs so you can transition before they get removed, they almost always give a grace period of at least 1 version.
That’s an important information. I never would have considered to read the old documentation, because I would not have expected to be changed. Thank you.