CHANGELOG.md in ecoportal-api-v2-0.8.30 vs CHANGELOG.md in ecoportal-api-v2-0.8.31

- old
+ new

@@ -1,8 +1,30 @@ # Change Log All notable changes to this project will be documented in this file. -## [0.8.30] - 2022-07-xx +## [0.8.31] - 2022-08-xx + +### Added + - `Ecoportal::API:V2::Common::Content::ClassHelpers.uid` to generate a random uid + +### Changed + - added **inheritable attributes** to + - `Ecoportal::API:V2::Common::Content::ArrayModel` (:order_matteres, :uniq) + - `Ecoportal::API:V2::Common::Content::CollectionModel` (klass, :order_matters, :order_key, :items_key, :new_item) + - `Ecoportal::API:V2::Common::Content::DoubleModel` (:key) + - moved `SecureRandom` dependency to `Ecoportal::API:V2::Common::Content::ClassHelpers` + +### Fixed + - `Ecoportal::API::V2::Page::Component::SelectionOption#numeric!` fix conversion + - `Ecoportal::API:V2::Common::Content::ClassHelpers`, `new_class` + - **Added** parameter `namespace` (default: the class `inherits` parameter): it's purpose is to define the namespace where the new class will sit + - **Fixed** also the namespace where the new class constant will sit (it was using always the source class `self`) + - **Improved** `name` parameter to have a default value that is randomized. This is useful when we just want to do something like `SomeClass.new_class`, where the name of the new class doesn't really matter. + - **Fixed** lost reference of class resolvers when using `embeds_many` + - `Ecoportal::API:V2::Common::Content::ClassHelpers`, `resolve_class` accepts now a `Hash` with `key` referrer class, and `value` any of the previously accepted ones (i.e. `Symbol` or `String`). To this purpose, `source_class` parameter has been added. + - This has been natively wrapped in `Ecoportal::API:V2::Common::Content::DoubleModel.embeds_many`, as it naturally shares the `class_resolver` with a third party class that loses the reference. + +## [0.8.30] - 2022-07-11 ### Added - `Ecoportal::API::V2::Page::MoultCounter` - Available on `Ecoportal::API::V2::Pages::PageStage` - `Ecoportal::API::V2::Page::Component#Law` added support for `LawField` content