Skip to content

Releases: infinum/eightshift-libs

6.2.0

06 Sep 13:06
Compare
Choose a tag to compare

Updated

  • Geolocation method getGeolocation is now public.
  • Geolocation method getGeolocation better error handling while files are missing.

6.1.0

01 Aug 13:07
Compare
Choose a tag to compare

Updated

  • Manifest fetching in tests bug.
  • All methods to be PHP8 safe in case of arguments naming.
  • Allow all blocks that was broken from the last deploy.

Added

  • New tests.

6.0.0

12 Jul 07:03
2152c14
Compare
Choose a tag to compare

Removed

  • Bin cli command.
  • Ei-exclude cli command.
  • Build cli command.

Changed

  • Updated packages.
  • Updated tests.
  • Refactored all cli commands for better usability and output.
  • Most of the cli command names and prefixes.
  • Internal way of moving blocks and files to the project to be faster.

Added

  • Descriptions for all cli commands with examples and links to repos.
  • New service class for Geolocation.
  • New service class for WebP and helpers.

5.1.0

09 May 10:45
Compare
Choose a tag to compare

Added:

  • new WP-CLI command for reusable blocks

Fixed:

  • Css variables combine output small fix if no blocks are added to dom.
  • Windows compatibility fixes.

5.0.2

21 Apr 13:24
Compare
Choose a tag to compare

Fixed

  • Abstract blocks correct order of store registration.

5.0.1

20 Apr 08:45
Compare
Choose a tag to compare

Fixed

  • WP-CLI command for only necessary blocks and components in the init phase.

5.0.0

19 Apr 21:17
Compare
Choose a tag to compare

Migration guide

  • Major braking changes do to updates on css variables, and helpers and updating min PHP version to 7.4.
  • Full change log can be checked on eightshift-frontend-libs releases.

4.1.0

03 Feb 08:00
Compare
Choose a tag to compare

Added

  • Eightshift-forms as default allow block types.
  • New WP-CLI command to create custom WP-CLI command. Example: wp boilerplate create_cli_command.
  • New attribute to outputCssVariables called $customSelector.
  • DI container caching on production or staging.
  • Option to remove default paragraph block placeholder from the frontend if the content is empty.
  • Custom post type revisions as default.
  • Option to override default block class prefix in the blocks global settings manifest.

Fixed

  • Changed directory separator from / to DIRECTORY_SEPARATOR constant to be able to work cross-platform.
  • Various fixes and improvements.

Changed

  • Limit enqueue admin only to admin area but not to the block editor.

3.1.0

01 Feb 11:59
0de1312
Compare
Choose a tag to compare

WP 5.8 BC break fix

Added

  • Added two methods that will make libs work with WP 5.8+ and older versions

WP 5.8 made a breaking change in two hooks block_categories -> block_categories_all and allowed_block_types -> allowed_block_types_all.

Implementation:

// Create new custom category for custom blocks.
if (\is_wp_version_compatible('5.8')) {
    \add_filter('block_categories_all', [$this, 'getCustomCategory'], 10, 2);
} else {
    \add_filter('block_categories', [$this, 'getCustomCategoryOld'], 10, 2);
}

// Only allow custom-built blocks.
if (\is_wp_version_compatible('5.8')) {
    \add_filter('allowed_block_types_all', [$this, 'allowOnlyCustomBlocks'], 21, 2);
} else {
    \add_filter('allowed_block_types', [$this, 'allowOnlyCustomBlocksOld'], 21, 2);
}

3.0.8

14 Sep 11:27
Compare
Choose a tag to compare

Fixed

  • Make CLI commands cross-os compatible