Event.Changes module

Configuration changed event handling.

This module registers events

Usage

local Changes = require('__stdlib__/stdlib/event/changes')
Changes.register('mod_versions', 'path_to_version_file')
-- version files should return a dictionary of functions indexed by version number.
return {['1.0.0'] = function() end}
-- Other change files should return a single function and will run in the order they are added.
-- Multiple files can be registered to a change type.
Changes.register('any-first', 'path_to_file_1')
Changes.register('any-first', 'path_to_file_2')