Releases: palantirnet/drupal-rector
0.18.3
New rector
Bugfix
Other changes
- Remove latest release from readme, unneeded maintainance, its already… by @bbrala in #270
- Better workflows by @bbrala in #275
Full Changelog: 0.18.2...0.18.3
0.18.2
0.18.1
New rector
What's Changed
- Update README.md by @bbrala in #264
- Restructure rules by major and generate rule list (docs) by @bbrala in #267
- Fix db_query.php expected test. by @bbrala in #268
- Update README-automated-testing.md by @bbrala in #266
- Add php-cs-fixer by @bbrala in #265
- Add $defaultTheme property if missing on BrowserTestBase by @mglaman in #211
Full Changelog: 0.18.0...0.18.1
0.18.0
Release highlights
This release of Drupal Rector introduces backwards compatible fixes for new rectors that target deprecations in Drupal 10. This is made possible by using the new DeprecationHelper
class introduced in Drupal 10.1.
We also worked on making the code more sustainable by employing ConfigurableRectorInterface
. This interface allows passing configuration to a rector to set certain variables. This means it is easier to reuse rectors that for example rewrite a function to a static call without introducing new code.
Rector has also been upgraded from 0.15 to 0.18, bringing a lot of improvement, but also making it harder to add comments to code generated by Rector. This there are instances where the previous version added comments, that the current does not.
- Support for Drupal 10 deprecations and testing by @bbrala in #252
- Support for backwards compatible rector rules and version scoping of rules by @bbrala in #250
Upgrade notes
Because rector moved to Laravel dependency injection a new version of rector.php
must be copies/configured in your project root.
New rectors
- Issue #3354343: Add TwigSetList::TWIG_240 to D9 deprecations. by @m4olivei in #223
- Add new Rector for system_sort_modules_by_info_name() by @bbrala in #253
- module_load_install() is deprecated in 9.4 and removed in 10. by @bbrala in #239
- Implement watchdog_exception rector by @bbrala in #262
- 9.3 Multiple taxonomy rectors by @bbrala in #254
What's Changed
- Remove NodesToAddCollector by @bbrala in #225
- Remove dependency on rector-src by @bbrala in #236
- Update PHPUnit configuration by @agentrickard in #237
- Phase 1 - Refactor to support Rector 0.17 by @bbrala in #238
- Simplify codebase: replace EntityLoadBase with configurable rule by @bbrala in #228
- Refactor AssertLegacyTraitBase and ConstantToClassConstantBase to configurable rule by @bbrala in #229
- Improve AssertNoFieldByIdRector by @mglaman in #213
- Create FunctionToServiceRector to replace all function to service call deprecations by @bbrala in #242
- New StaticToFunctionRector to replace StaticToFunctionBase by @bbrala in #243
- Remove single use FunctionToImmutableConfigBase by @bbrala in #245
- StaticArgumentRenameBase and DrupalServiceRenameBase are now covered with StaticArgumentRenameRector by @bbrala in #241
- New ExtensionPathRector to replace ExtensionPathBase by @bbrala in #244
- New DBRector to replace DbBase with configurable rector. by @bbrala in #246
- GetMockRector as configurable rule by @bbrala in #248
- Upgrade to PHPStan level 6 by @bbrala in #249
- MethodToMethodWithCheckRector to replace methods with a certainty check by @bbrala in #247
- Refactor Base\FunctionToStatic to configurable rule. by @bbrala in #251
- Upgrade to Rector 0.18.x by @bbrala in #240
- Refactored BC rules with configuration by @bbrala in #255
- Add better labels to readme by @bbrala in #256
- Add failing unit test for ExtensionPathRector when assining by @bbrala in #258
- Add WatchdogExceptionRector the 10.1 setlist by @bbrala in #263
- PHPUnit deprecations should be checked in Drupal 9 to 10 by @bbrala in #261
- Fix MethodToMethodWithCheckRector by also matching on MethodCall. by @bbrala in #260
- ExtensionPathRector does not handle Assignments by @bbrala in #259
New Contributors
Full Changelog: 0.15.1...0.18.0
0.15.1
0.15.0
What's Changed
- Update to rector 15 and github setup v3. by @agentrickard in #218 and @FlorentTorregrosa in #217
- Fix function signature in tests by @chrfritsch in #216
New Contributors
- @chrfritsch made their first contribution in #216
Full Changelog: 0.13.1...0.15.0
0.13.1
0.13.0
What's Changed
- #3295386 Bump to rector/rector:0.13.8 by @mglaman in #204
- Remove unneeded assert for $pathValue by @mglaman in #206
- Scope may not be available when detecting delcaring source by @mglaman in #207
- Prevent @doesNotPerformAssertions from being added to tests by @mglaman in #208
Full Changelog: 0.12.4...0.13.0
0.12.4
Release notes
-
The 0.12.4 is a stable release pinned to Rector 0.12.21. Developers should be aware that Rector 0.12.22 introduces breaking changes to how we handle Drupal configuration.
-
The 0.12.5 release of drupal-rector will include Rector 0.12.22. The upgrade path should be as simple as re-copying the configuration file.
cp vendor/palantirnet/drupal-rector/rector.php
What's Changed
- Add integration test for user_password() deprecation by @claudiu-cristea in #201
- Issue #3282217: file_build_uri() is deprecated by @claudiu-cristea in #202
- Remove remaining Rector conflicts up to 0.12.21 by @mglaman in #203
Full Changelog: 0.12.3...0.12.4
0.12.3
The 0.12.3 release bypasses a known conflict with Rector 0.12.18. The current preferred version is Rector 0.12.19.
What's Changed
- Fix PHP 8 warnings on
null
tofile_exists
by @mglaman in #196 - Issue #3277704: Remove PHPUNIT_75 constant in Rector by @FlorentTorregrosa in #197
- Issue #3280205: drupalPostForm() with 1st param NULL by @claudiu-cristea in #198
- user_password() deprecation by @claudiu-cristea in #199
- Remove conflicts on rector/rector by @mglaman in #200
New Contributors
- @claudiu-cristea made their first contribution in #198
Full Changelog: 0.12.2...0.12.3