4.4
- Added a way to show a plugin icon on the "Dashboard -> Updates" page.
Usage: Add the following entry to your JSON file:See supported icon sizes and image formats."icons" : { "1x" : "http://example.com/assets/icon-128x128.png", "2x" : "http://example.com/assets/icon-256x256.png", "svg": "http://example.com/assets/icon.svg" }
- Added support for GitHub release assets.
Usage: Set up the update checker instance as usual, then call the newenableReleaseAssets()
method of the GitHub API class.You can make PUC look for a specific asset by passing a regular expression to$gitHubUpdateChecker->getVcsApi()->enableReleaseAssets();
enableReleaseAssets()
. For example,$api->enableReleaseAssets('/custom-asset/')
will make PUC use the first asset where the file name contains the string "custom-asset". - Improved error reporting when using the "check for updates" link. Previously, the check could fail with a generic message like "no updates available". Now the update checker will display the underlying API error (if available).