Skip to content

Releases: palantirnet/drupal-rector

0.12.2

04 May 15:27
Compare
Choose a tag to compare

What's Changed

0.12.1

21 Feb 15:18
Compare
Choose a tag to compare

Updates Drupal Rector for the most common Drupal 9.3 and 9.4 deprecations.

What's Changed

  • Update composer.json for allow-plugins by @mglaman in #186
  • Rectors for drupal_get_path & drupal_get_filename by @mglaman in #187
  • Handle custom message types by @mglaman in #190
  • Add Rector for deprecated render by @mglaman in #188
  • Use dev-main for rector-src by @mglaman in #193
  • Rectors for file_move, file_copy, file_save_data by @mglaman in #189
  • file_url_generator service Rector rules by @mglaman in #191
  • MetadataBag::clearCsrfTokenSeed replaced by stampNew by @mglaman in #192

Full Changelog: 0.12.0...0.12.1

0.12.0

19 Nov 15:18
8a7ea55
Compare
Choose a tag to compare

This release updates the codebase to support:

  • PHPStan 1.0
  • Rector 0.12.x

0.11.4

13 Oct 16:11
Compare
Choose a tag to compare

This is a maintenance release that includes updates to stay compatible with Rector.

0.11.3

03 Sep 18:49
Compare
Choose a tag to compare

This is a maintenance release that fixes a number of issues and updates the deprecations-index for Drupal 9 changes.

  • Cleans up internal function doc mismatches.
    
  • Fix entity_view(), entity_delete_multiple() and EntityTypeInterface::getLowercaseLabel deprecation message
    
  • Issue #3228110: Improve AssertNoUniqueTextRector documentation and scope
    
  • Adds AssertLegacy and other new items to the index.
    
  • Issue #3229896: Fix broken params on assert cache tag Rector rules
    
  • Ensure proper rector install on github ci.
    
  • Issue #3221584: Use "*" over sha for sandbox test
    
  • Issue #3228113: Make PassRector more specific and fix documentation
    
  • Prevents stubs used for testing from breaking end user's PHPUnit tests for Drupal
    
  • Fixes BuildXPathQuery docs.
    
  • Fix REQUEST_TIME deprecation message. Noted by @mglaman
    
  • Issue #3222671: Rector for assertNoFieldByName()
    
  • Issue #3222671: Rector for assertUniqueText() and assertNoUniqueText()
    
  • Issue #3222671: Rector for pass()
    

0.11.2

29 Jul 14:06
92d56b1
Compare
Choose a tag to compare

This release corrects an error in Rector 0.11.38 that was fixed in later versions (rectorphp/rector-src#484).

See https://www.drupal.org/project/rector/issues/3225019 and a hat-tip to Grimreaper for reporting and testing this issue.

0.11.1 - Drupal 9 deprecations

06 Jul 17:53
Compare
Choose a tag to compare

The release prepares drupal-rector to handle Drupal 9 deprecations, using PHP 8 and rector v 0.11.

This release also changes the file structure of the underlying code and introduced PHPUnit testing.

Note that this version can be run in PHP 7 without PHPUnit, which is not necessary for running rector upgrades on your code.

This release supports 8.x and 9.x code conversions and can be run with either Drupal 8 or Drupal 9.

0.11.0

30 Jun 15:26
Compare
Choose a tag to compare

This release brings us up-to-date with Rector 11 and adds support for PHPUnit testing.

PHPUnit testing requires PHP 8 and is used for development.

Creating new Rector rules and running the Rector update requires PHP 7 or higher.

0.10.0

23 Jun 15:29
Compare
Choose a tag to compare

This release updates to Rector version 0.10.0 and prepares for more substantial changes coming to prepare for Drupal 10.

Major changes

  • We now use rector.php instead of rector.yml for configuration.
  • Adds PHPStan for static code analysis.
  • We are deprecating the Behat tests in favor of PHPUnit (See #152)

New rules

  • entity_view

0.5.6

05 Jun 19:00
Compare
Choose a tag to compare

Summary of updates in this release:

  • 3 new Rector rules:
    • DatetimeDateStorageFormatRector
    • DatetimeDatetimeStorageFormatRector
    • DatetimeStorageTimezoneRector
  • Upgrade to rector-prefixed 0.7.27
  • Fix internal Github tests