Item.history not working after migrating to OpenHAB 4.20

See openHAB JavaScript library releases for a full list of changes.

Persistence actions have been enhanced. You now need to use persistence instead of history.