All notable changes to this project will be documented in this file.
- Fixed: Incorrect docblock types in ACF_Settings. (thanks @szepeviktor).
- Added: Gallery_Collection field model for automatic mapping of the ACF Gallery Field.
- Added: SVG storage system that parses SVGs on upload to capture their markup for quick access to display inline in components.
- Added: The SVG store command to add or remove SVG markup to the database. Run
wp s1 help svg store
for details. - Added: Codeception unit testing suite utilizing Brain Monkey for mocking.
- Changed: Base
Test_Case
class to allow developers to build a container with specific definers/subscribers for their specific test cases. - Added: More composer commands to run automated tests:
composer test:all
- run all test suites.composer test:unit
- run unit tests.compser test:integration
- run integration tests.
- Added: All YouTube oEmbeds will use youtube-nocookie.com, but can be disabled in your project with
define( 'TRIBE_ENABLE_YOUTUBE_NOCOOKIE_URI', false )
in your wp-config.php.
- Fixed: splitting packages into existing, specific branches in monorepo.yml using a forked action https://github.com/moderntribe/monorepo-split-github-action
- Updated: monorepo release GitHub workflow to use https://github.com/symplify/monorepo-split-github-action
- Updated: monorepo-builder library to the 11.1 version
- Fixed: phpstan no longer detecting monorepo-builder packages
- Released:
4.x
branch
- Fixed: Added the missing https://github.com/moderntribe/square1-routes sub-repo that was never originally created.
- Added: Create branches in sub-repos GitHub workflow - in order for the monorepo to create tags on specific branches, those branches need to first exist. This workflow will create a branch in all the sub-repos.
- Bugfix: Use correct class-string docblock for Taxonomy_Subscriber.
- Changed: Create the
4.x
branch/major version, which has a minimum version ofPHP7.4
for use with legacy PHP7.4 Square One projects where their hosts will be force upgrading to PHP8.0. This is intermediate release to allow an ease of upgrading, however new projects should use the upcoming5.x
releases which will be optimized for PHP8.0+. - Changed:
composer.lock
has been removed to be more in line with other monorepo libraries and to allow more flexible versions of packages to be installed when using Tribe Libs in the Square One framework. - Changed: Force
phpcompatibility/php-compatibility
to a development version to prevent PHPCS errors when using PHP8.0+. - Added: New repo: Square1 Field Models now that we are on PHP7.4+
- Added: New repo: Square1 WP Downloader that adds a CLI tool to download WordPress and plugins for automated testing purposes.
- Added:
composer test:setup
to automate downloading test dependencies,composer test:integration
to run integration tests.
- Added:
wp s1 generate block <name> --with-post-loop-middleware
that gives a base configuration for a block with Post Loop Middleware. - Changed: The
Block_Config
class now uses theWith_Field_Prefix
out of the box so those methods are available to all blocks when needed. - Changed:
Block_Config
's generated with the block generator now use\Tribe\Project\Blocks\Block_Category::CUSTOM_BLOCK_CATEGORY_SLUG
if the project has it available, otherwise it uses thetext
category.
- Added:
With_Field_Prefix
trait to make fetching full key names easier for conditional logic and block middleware.
- Added:
wp s1 generate block:middleware <name>
CLI command to create sample block middleware. - Added:
wp s1 generate block <name> --with-middleware
that adds the appropriate interface and a stub middleware parameters method to a generated block config. - Updated: Block model generator template
model.php.tmpl
will use a different method name depending on if block middleware is detected in the version of Square One this library is included in. - Added:
With_Field_Finder
trait, that can search a block object's fields for a specific field key.
- Updated:
so wp s1 generate block <name>
will useesc_html__()
instead of__()
for field labels.
- Updated: Block_Config class to allow for mutation for upcoming block middleware.
- Updated: security updates for mustache / guzzle.
- Added:
With_Get_Field
ACF trait. - Fixed: Added missing
thenReturn()
method to the Pipeline interface.
- Fixed: tests that use
wp_mail
with the latest WordPress, making validation fail withInvalid address: (From): wordpress@localhost
by adjusting the test domains we use to build a valid email address.
- Updated the
wp s1 genereate block
command to generate block model views using the container as a companion update to #970.
- Fixed Missing titles and missing post type prefixes in P2P metaboxes (take 2)
- Fixed missing post titles in the P2P metabox
- Added command constants to make building WP CLI commands with arguments and options easier.
- Added a "mutable container", to allow us to flush the PHP-DI container in specific situations and create completely fresh instances.
- Added
wp s1 queues run
command, which is now used bywp s1 queues process <name>
command to run each queue task as a child PHP process. - Updated the Cron Queue processing to also create task instances from the container.
- Updated the MySQL Queue backend to force use UTC time for comparing jobs.
- Fixed nesting issue when using ACF classes to build Flexible Content Fields with Layout Fields in #105
- Allow composer plugins in #108
- Update block templates to match coding standards (#98)
- Added
.gitattributes
file to make package smaller - Added the Pipeline feature
- Added custom Log package to use WordPress actions to log via Monolog.
- Fixed allowing composer v1 + v2.
- Fixed Routes having the wrong PHP version.
- Added informative message when running the
wp s1 queues process
CLI command.
- Added
--timeout=<time in seconds>
to thewp s1 queues process
command - Updated Queue Tasks to be created by the container so that dependency injection works.
- Update Queues documentation with examples.
- Update wp-cli to ^2.5
- Replace deleted repo https://github.com/hautelook/phpass with https://github.com/bordoni/phpass
- Updated wp-browser to 3.0.9
- Updated wp-config-environment.php from square-one
- Add composer v2 support
- Fix cron queues from cleaning up before finishing
- Fix router query vars
- Fix query vars in routing package
- Adds docs for routing
- Adds update for routing
- Added a CLI block generator
- Reworks Block_Config to remove sections and add method if doing this in the plugin instead
- Adds Field_Section
- Force Composer v1 instead of v2 to avoid failing installs and tests due to unsupported dependencies.
- Adds CLI helper method for freeing up memory during long running processes.
- Added SVG support to the Media package. This replaces the Safe SVG plugin with a more
robust implementation that efficiently handles sanitization, scaling, and metadata
regeneration. This is backwards compatible, but to take advantage of SVG minification,
the new
Media_Definer
should be registered with the DI container.
- Added Field_Group class
- Improvements to Repeater and Block_Config
- Added missing packages to the monorepo config
- Update release script for monorepo-builder 8.0 compatibility
- Minimum PHP version bump to 7.2
- Many updates to libs in support of the SquareOne framework Fidgety Feet epic.
- Added post type registration for blog copier internal post type for compatibility with WP 5.1+
- Ignored and removed OS/IDE files
- Added support for ACF Gutenberg Blocks
- Migrated repository to a monorepo structure
- Migrated queues package from Square One