z_mirror/CursorEnhancements
git clone https://git.raiguard.me/z_mirror/CursorEnhancements
55b779d
trunk
1local migrations ={ 2[ "2.0.0" ] =function () 3storage . built_item ={} 4storage . last_item ={} 5end , 6[ "2.2.0" ] =function () 7storage . subgroups =nil 8end , 9[ "2.3.0" ] =function () 10storage . last_item =nil 11end , 12} 13 14--- @type event_handler 15local M ={} 16 17function M . on_configuration_changed ( e ) 18local old_version =e . mod_changes [ script . mod_name ] and e . mod_changes [ script . mod_name ]. old_version 19if not old_version then 20return 21end 22 23for version , migration in pairs ( migrations ) do 24if helpers . compare_versions ( old_version , version ) < 0 then 25migration () 26end 27end 28end 29 30return M