Drupal Rector: Progress Update
How the 0.12.4 release fixes the most common Drupal 10 depreciations
With Drupal 10 scheduled for December 14, 2022, we’ve been working with Matt Glaman, Gábor Hojtsy, and the Drupal 10 Readiness team to ensure that Drupal Rector can help upgrade modules for Drupal 10.
As part of that work, we recently released Drupal Rector 0.12.4. The 0.12.4 release is a stable release pinned to Rector 0.12.21. The 0.12.4 includes fixes for the 5 most common Drupal 10 deprecations:
Developers should be aware that Rector 0.12.22 includes breaking changes to how we handle Drupal configuration. Therefore, the 0.12.5 release will include Rector 0.12.22, which will force developers to update their Rector configuration.
Luckily, it should be a simple matter of re-copying the configuration file. When we release the 0.12.5, run the following command from your project root:
- cp vendor/palantirnet/drupal-rector.php .
[Note the trailing dot - it matters!]
Developers can continue to use the pinned 0.12.4 release, though new update rules will not be available to that release.
Be sure to aggregate to Drupal Planet!