Skip to content

Releases: drupal-code-builder/drupal-code-builder

4.6.3

17 Mar 17:40

Choose a tag to compare

Bugfixes & improvements:

  • Fixed ordering of admin route handler option; converted entity handler options to use OptionDefinition objects.
  • Fixed surplus 'none' option appearing in UIs for entity handlers.
  • Fixed Drush command option description using wrong variable.
  • Changed order of plugin types so deprecated annotation type is last.
  • Changed UI text about forcing handler classes to be on the option set description rather than repeated on each option.
  • Changed option label to be clearer.

4.6.2

06 Mar 11:27

Choose a tag to compare

Bug fixes:

  • Fixed warning when Drupal's container namespaces contains array items.
  • Fixed naive loading of test trait files not working for trait inheritance and non-installed modules. Fixes #420.

4.6.1

09 Feb 14:00

Choose a tag to compare

New features:

  • Added content entity properties for revisions UI. Fixes #402.

Fixes:

  • Fixed missing revision metadata keys on content entities using revisions.
  • Fixed (temporarily!) crash caused by analysis of BlockContentCreationTrait.
  • Fixed DI code on constraint plugin going in the plugin rather than the validator class. Fixes #381.
  • Fixed generator type for generator classes with version attributes. Fixes #384.
  • Fixed NULL offset.
  • Added default container injection interface to base DI class.
  • Fixed implicit nullable param deprecation.

4.6.0

26 Jan 11:52

Choose a tag to compare

New features:

  • Added dependencies on plugin deriver injected services, and parent plugin replacement.
  • Added dependent values system to data properties.
  • Added DI to plugin deriver classes. Fixes #410.
  • Added lastUpdatedDate() to ReportSummary using metadata, overriding method in parent class.
  • Added collect task for the analysis timestamp. Fixes #118.
  • Added method for getting differentiated labels for different delta items. Fixes #341.
  • Added default class name for hooks classes.
  • Changed CodeFile::getFilePath() to be public API. Fixes #344.
  • Changed CodeFileInterface to inherit from Stringable. Fixes #345.

Fixed:

  • Fixed services whose name is a class-like producing broken variable and property names. Fixes #415.
  • Fixed plugin deriver class name incorrectly formed when the plugin type name contains a dot.
  • Changed preprocess_ hooks to be available for OO. Fixes #417.

Other:

  • Deprecated ReportHookDataFolder::lastUpdatedDate(). Fixes #418.

4.5.7

09 Dec 13:59

Choose a tag to compare

New features:

  • Added options for custom plugin class with DI to Yaml plugins. Fixes #411.

Fixes:

  • Fixed adopting service with no arguments crashes.
  • Fixed $module property of PHPUnit tests not using inheritdoc tag. Fixes #414.

Internal:

  • Upgraded test requirements to drupal/coder 9.0 alpha and PHPCS 4.0.
  • Added interface for generators to get the environment injected. Fixes #338.
  • Fixed annotation renderer not handling boolean and null values.

4.5.6

15 Sep 21:53

Choose a tag to compare

Fixes:

  • Fixed content entity types without a bundle entity type don’t have a Field UI base route. Fixes #254.
  • Fixed title of admin settings form page. Fixes #316.
  • Fixed ordering of getEditableConfigNames() method in admin settings form. Fixes #317.
  • Fixed entity add task links should be in sentence case. Fixes #328.
  • Fixed hook_post_update_NAME() not going in right file.
  • Fixed hook classes appearing as adoptable services. Fixes #407.
  • Added strict_types to PHP files. Fixes #362.

4.5.5

26 Aug 18:24

Choose a tag to compare

Fixes:

  • Added aliasing of repeated short class names in class imports. Fixes #388.
  • Fixed non-default annotation or attribute class name not used in plugin type manager. Fixes #406.
  • Fixed plugin type managers appearing in list of adoptable services.
  • Fixed surplus ‘definition’ property with adoption of annotation plugin type.

New features:

  • Added BC handling of annotations to plugin type manager.

4.5.4

22 Aug 19:30

Choose a tag to compare

Added:

  • Added adoption of annotation-based plugin types.
  • Added inactive properties for plugin type annotation properties.

Fixed:

  • Fixed namespace of Drush command class for Drush 13. Fixes #357.

Internal:

  • Added helper for loading a class from a Drupal extension.
  • Changed DrupalExtension properties to readonly.

4.5.3

03 Aug 21:39

Choose a tag to compare

Fixed:

  • Fixed crash in analysis when event name has no docblock.

4.5.2

03 Aug 16:50

Choose a tag to compare

New features:

  • Route generator can have injected services.
  • Added descriptions to entity UI options. Fixes #398.

Fixed:

  • Fixed analysis crash when entity label is a string. Fixes #403.
  • Fixed ordering of injected services property in form and admin settings form generators. Fixes #400.
  • Fixed lifecycle property missing a description. Fixes #397.

Internal:

  • Added helpers to rearrange properties.
  • Added class constant for the interface to add to a class with DI.