Rvsession.pyevaluate return value different between 2022.0.0 and previous versions


When I use rvsession.pyevaluate, to run a python plugin code from javascript, in rv 2022.0.0, I get back a javascript Promise from which I can get the value returned by the python code.

When doing the same in previous versions (tried 7.6.0, 7.9.2 and 2021.1.0) the python code is executed but “undefined” is always returned.

Is this mismatch expected? If yes, is there a different way of running the python code in previous versions - especially 2021.1.0 - so that the value can be returned?


ps. apologies if this is already answered in the docs or release notes - I searched in them, but could not find something.