chore: bump version to 1.4.0, refactor plugin updater #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request updates the plugin to version 1.4.0 and refactors the update mechanism to use a shared GitHub updater class. The main change is replacing the custom inline plugin updater with a reusable
class-github-updater.php, which simplifies maintenance and aligns with best practices. All references and documentation have been updated accordingly.Updater refactor and codebase simplification:
GitHubPluginUpdaterfromsrc/php/Update/GitHubPluginUpdater.phpand replaced it with a shared, minimal wrapperGitHubUpdaterin the newclass-github-updater.php, leveraging theyahnis-elsts/plugin-update-checkerlibrary. [1] [2]vmfa-rules-engine.phpto use the newGitHubUpdater::init()method for update checks, removed the old updater instantiation, and adjusted the initialization hook toplugins_loadedfor better compatibility.Versioning and documentation:
vmfa-rules-engine.php,package.json, andreadme.txt, and updated the stable tag. [1] [2] [3] [4]CHANGELOG.mdandreadme.txtdescribing the updater change for version 1.4.0. [1] [2]