Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency yahnis-elsts/plugin-update-checker to v5.5 #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 25, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
yahnis-elsts/plugin-update-checker 5.0 -> 5.5 age adoption passing confidence

Release Notes

YahnisElsts/plugin-update-checker (yahnis-elsts/plugin-update-checker)

v5.5: 5.5

Compare Source

  • Removed information about plugins and themes that manage updates via PUC from data that WordPress core sends to api.wordpress.org when it checks for updates. Props to @​DavidAnderson684 (#​578).
    • You can turn this off and restore the default WP behaviour by using the new remove_from_default_update_checks filter. Example:
      $updateChecker->addFilter('remove_from_default_update_checks', '__return_false');
  • Improved handling of incorrect ZIP directory structure where plugin/theme files are at the root instead of in a subdirectory. The update checker will now attempt to automatically create a new subdirectory that matches the slug and move all the files into that subdirectory. Props to @​MehbubRashid (#​574).
  • Improved Debug Bar integration: The "Check Now" and "Request Info" buttons in the "PUC (your-slug)" panel are now also visible in the site front end. Previously, they only showed up if you opened the Debug Bar while on an admin page.
  • Added Greek translation (@​theo-gk).
  • Updated Simplified Chinese translation (@​seatonjiang).

v5.4: 5.4

Compare Source

  • Added automatic update checks before certain WP-CLI commands that read plugin/theme update status, such as wp plugin status, wp theme update, and so on. This just triggers the existing scheduling logic, so if you run multiple commands in very quick succession, PUC won't check for updates every time. See #​558.
  • Fixed an autoloading failure where the Ui class (YahnisElsts\PluginUpdateChecker\v5p3\Plugin\Ui) sometimes did not load correctly if multiple active plugins/themes were using different versions of PUC.
  • Fixed a conflict with "WP Last Modified Info" 1.8.8 that could cause a fatal error when updating a plugin. This should also improve compatibility with any other plugins that try to access update-related data inside an upgrader_process_complete callback.
  • Removed dev files like phpcs.xml from exported archives. Props to @​szepeviktor.

v5.3: 5.3

Compare Source

  • Fixed a fatal error that could happen in the unusual situation where the Debug_Bar class exists but Debug_Bar_Panel does not. See #​543.
  • Fixed PUC intermittently detecting an invalid "update" when using a GitHub branch and hitting the GitHub API rate limit. See #​526.

v5.2: 5.2

Compare Source

  • Fixed a few PHP 8.2 deprecation notices like Creation of dynamic property YahnisElsts\PluginUpdateChecker\vXpY\Plugin\PluginInfo::$example is deprecated.

v5.1: 5.1

Compare Source

  • Added a way to filter GitHub and GitLab releases.
    • Example of filtering releases by the version number:
      //Allow only beta versions (e.g. for testing).
      $updateChecker->getVcsApi()->setReleaseVersionFilter(
          '/beta/i', //Regex for the version number.
          Api::RELEASE_FILTER_ALL, //Disables the default filter(s).
          30 //Max number of recent releases to scan for matches.
      );
    • Alternatively, you can use a callback to implement custom filtering rules.
      //Set an arbitrary custom filter.
      $updateChecker->getVcsApi()->setReleaseFilter(
          function($versionNumber, $releaseObject) {
              /* 
              Put your custom logic here. The $releaseObject variable contains
              the release data returned by the GitHub/GitLab API. The format
              will vary depending on which service you're using.
              */
              return true;
          },
          Api::RELEASE_FILTER_ALL
      );
    • Aside from Api::RELEASE_FILTER_ALL, you can also use Api::RELEASE_FILTER_SKIP_PRERELEASE to filter out pre-releases.
    • Setting a new filter will override any previous filters, so you can't add a regex-based version filter and a custom callback at the same time.
  • Fixed a release asset filtering bug where an asset that matches the filter could be ignored if it was not the first in the list. Props to @​liedekef.
  • Changed the readme parser to use wp_strip_all_tags() instead of strip_tags() when available. Supposedly, it's better at stripping the contents of <script> and <style> tags.
  • The main branch is now treated as a default branch (in addition to master).

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/yahnis-elsts-plugin-update-checker-5.x-lockfile branch from 9010338 to 85e6c0b Compare February 24, 2024 10:45
@renovate renovate bot changed the title fix(deps): update dependency yahnis-elsts/plugin-update-checker to v5.3 fix(deps): update dependency yahnis-elsts/plugin-update-checker to v5.4 Feb 24, 2024
@renovate renovate bot force-pushed the renovate/yahnis-elsts-plugin-update-checker-5.x-lockfile branch from 85e6c0b to 7574fc4 Compare October 16, 2024 16:06
@renovate renovate bot changed the title fix(deps): update dependency yahnis-elsts/plugin-update-checker to v5.4 fix(deps): update dependency yahnis-elsts/plugin-update-checker to v5.5 Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants