Releases: infinum/eightshift-libs
Releases · infinum/eightshift-libs
6.2.0
6.1.0
6.0.0
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
5.0.2
5.0.1
5.0.0
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
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
/
toDIRECTORY_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
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);
}