diff --git a/CHANGELOG.md b/CHANGELOG.md index 65abf26..d486844 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.2.0] - 2022-01-25 +### Added +- Template: `categoryAttributes` +- Possibility to add validators for string properties +- `php_class_name` string property validator +- New default properties: + - `copyrightComments` + - `headerPHP` + - `headerXML` + - `headerHTML` + - `headerJS` + - `headerLESS` + +### Changed +- Header of each template file is now generated automatically basing on new default properties +- All templates with properties expecting PHP class name were updated to use new `php_class_name` string property validator + +### Fixed +- `required` validation fails if the answer to the question is "0" + ## [3.1.0] - 2021-08-31 ### Added - Template: `customerAttributes` diff --git a/README.md b/README.md index 4f189f3..40f0619 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,8 @@ Watchout: Minimal version of Magento's PHP is 7.4. `cache` - creates a cache type +`categoryAttributes` - creates data patches which add category attributes + `configField` - creates config field for already existent group of store configuration `configGroup` - creates group for already existent section of store configuration diff --git a/composer.json b/composer.json index 98f8afb..5270192 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "orba/magento2-codegen", "description": "Magento 2 Code Generator", - "version": "3.1.0", + "version": "3.2.0", "license": "MIT", "require": { "php": "~7.4", diff --git a/templates/categoryAttributes/.no-copied-config/config.yml b/templates/categoryAttributes/.no-copied-config/config.yml index e5ad17c..4389cc9 100644 --- a/templates/categoryAttributes/.no-copied-config/config.yml +++ b/templates/categoryAttributes/.no-copied-config/config.yml @@ -1,5 +1,5 @@ type: module -description: "This template creates data patches which adds category attributes." +description: "This template creates data patches which add category attributes." afterGenerate: "1. To apply patch, please run setup upgrade command: \n \nbin/magento setup:upgrade"