diff --git a/CHANGELOG.md b/CHANGELOG.md index 518da99..685fbb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,16 @@ This library adheres to [Semantic Versioning](https://semver.org/) and [Keep a CHANGELOG](https://keepachangelog.com/en/1.0.0/). -## 1.0.0 - -Initial release. - ## Unreleased Nothing yet. + +## 2.0.0 + +### Changed + +- `Features` class renamed `Group`. + +## 1.0.0 + +Initial release. diff --git a/composer.json b/composer.json index e62063e..7d24418 100644 --- a/composer.json +++ b/composer.json @@ -19,8 +19,8 @@ "require": { "php": "^8.1", "alleyinteractive/laminas-validator-extensions": "^2.0", - "spatie/once": "^3.1", - "alleyinteractive/wp-match-blocks": "^3.0" + "alleyinteractive/wp-match-blocks": "^3.0", + "spatie/once": "^3.1" }, "require-dev": { "alleyinteractive/alley-coding-standards": "^1.0.0", diff --git a/docs/feature.md b/docs/feature.md index a5ff235..df6f2e8 100644 --- a/docs/feature.md +++ b/docs/feature.md @@ -13,7 +13,7 @@ interface Feature { ## Bundled implementations - [Conditional_Feature](https://github.com/alleyinteractive/wp-type-extensions/blob/main/src/alley/wp/features/class-conditional-feature.php): Boot a feature only when a condition is met. -- [Features](https://github.com/alleyinteractive/wp-type-extensions/blob/main/src/alley/wp/features/class-features.php): Bundle many features. +- [Group](https://github.com/alleyinteractive/wp-type-extensions/blob/main/src/alley/wp/features/class-group.php): Group related features. - [Lazy_Feature](https://github.com/alleyinteractive/wp-type-extensions/blob/main/src/alley/wp/features/class-lazy-feature.php): Instantiate a feature only when called upon. - [Quick_Feature](https://github.com/alleyinteractive/wp-type-extensions/blob/main/src/alley/wp/features/class-quick-feature.php): Make a callable a feature. - [Template_Feature](https://github.com/alleyinteractive/wp-type-extensions/blob/main/src/alley/wp/features/class-template-feature.php): Boot a feature only when templates load. @@ -22,7 +22,7 @@ interface Feature { ## Basic usage ```php -use Alley\WP\Features\Features; +use Alley\WP\Features\Group; use Alley\WP\Features\Quick_Feature; use Alley\WP\Features\Template_Feature; @@ -30,8 +30,8 @@ $queries = new Project\Post_Queries_Implementation( /* ... */ ); -$project = new Features( - new Features( +$project = new Group( + new Group( new Project\Ads_Backend_Feature(), new Template_Feature( origin: new Project\Ads_Frontend_Feature(), diff --git a/src/alley/wp/features/class-features.php b/src/alley/wp/features/class-group.php similarity index 84% rename from src/alley/wp/features/class-features.php rename to src/alley/wp/features/class-group.php index 1c52515..81959f2 100644 --- a/src/alley/wp/features/class-features.php +++ b/src/alley/wp/features/class-group.php @@ -1,6 +1,6 @@