UnlockStrategy uiautomator not working in uiautomator2-driver v2.42.2?

Updated to latest appium stuff yesterday:
“dependencies”: {
“appium”: “2.4.1”,
“appium-uiautomator2-driver”: “2.42.2”,
“appium-xcuitest-driver”: “5.14.1”

It seems that when I have “unlockStrategy”: “uiautomator”, set in capabilities, I get error in when unlocking:

2024-01-26 08:00:33:939 [AppiumDriver@f62c] Encountered internal error running command: TypeError: Cannot read properties of undefined (reading ‘stringKeyToArr’)
2024-01-26 08:00:33:939 [AppiumDriver@f62c] at pinUnlock (/node_modules/appium-uiautomator2-driver/node_modules/appium-android-driver/lib/helpers/unlock.ts:173:23)
2024-01-26 08:00:33:939 [AppiumDriver@f62c] at Object.unlock (/node_modules/appium-uiautomator2-driver/node_modules/appium-android-driver/lib/helpers/android.ts:939:7)

What could be the problem and how to fix it?

Answering my own question, seems to work OK in “appium-uiautomator2-driver”: “2.43.1”. For reasons I don’t know. But I think this case is closed.