What action should be taken to clear the javascript adapter legacy promise warning?

After upgrading to Keycloak 11, the keycloak.js is throwing this warning in the console.
[KEYCLOAK] Usage of legacy style promise methods such as .error() and .success() has been deprecated and support will be removed in future versions. Use standard style promise methods such as .then() and .catch()` instead.

What action should be taken to clear this warning? Right after this, we also get an error. But this is within the keycloak.js so I’m not sure how I can do something about it.

I would like to bump this, which version of keycloak should we expect to have them fully deprecated.

Same here… I’d be curious when the legacy style promise will be fully removed from KC.