Skip to content

Commit

Permalink
Prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronef committed Jan 29, 2023
1 parent 4fa8ef9 commit 2763c66
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# (MODX)EvolutionCMS.libraries.ddTools changelog


## Version 0.56 (2023-01-29)
* \+ `\ddTools::sort2dArray` → Parameters → `$array[$i]`: Can also be set as object.
* \* `\DDTools\Base\Base`:
* \* The class has been renamed from `\DDTools\BaseClass`. Backward compatibility is maintained (you can still use `\DDTools\BaseClass`, but it is not recommended).
* \* The class has become abstract.
* \- `createChildInstance`: The method has been removed, use `\DDTools\Base\AncestorTrait::createChildInstance` instead. Backward compatibility is maintained (you can still use `\DDTools\BaseClass::createChildInstance`, but it is not recommended).
* \+ `toJSON`: Returns JSON-array if `$this->toArray` returns indexed array.
* \+ `\DDTools\Base\AncestorTrait`: The new trait.
* \+ `\DDTools\ObjectCollection`:
* \+ `toJSON`, `__toString`: The new public methods. Get an JSON-array of all collection items.
* \+ `\DDTools\ObjectCollection::setOneItemData`, `getOneItemData`: The new protected methods.


## Version 0.55.1 (2022-12-03)
* \* `\DDTools\FilesTools::modifyImage`: Included PHP.libraries.phpThumb has been updated from 1.7.15-202004301145 to 1.7.19-202210110924 (now supports WebP, PHP8, etc).

Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG_ru.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# (MODX)EvolutionCMS.libraries.ddTools changelog


## Версия 0.56 (2023-01-29)
* \+ `\ddTools::sort2dArray` → Параметры → `$array[$i]`: Также может быть задан, как объект.
* \* `\DDTools\Base\Base`:
* \* Класс переименован из `\DDTools\BaseClass`. Обратная совместимость сохранена (множно использовать `\DDTools\BaseClass`, но не рекомендуется).
* \* Класс стал абстрактным.
* \- `createChildInstance`: Метод удалён, используйте вместо него `\DDTools\Base\AncestorTrait::createChildInstance`. Обратная совместимость сохранена (можно использовать `\DDTools\BaseClass::createChildInstance`, но не рекомендуется).
* \+ `toJSON`: Возвращает JSON-массив если `$this->toArray` возвращает индексированный массив.
* \+ `\DDTools\Base\AncestorTrait`: Новый trait.
* \+ `\DDTools\ObjectCollection`:
* \+ `toJSON`, `__toString`: Новые публичные методы. Возвращают JSON-массив всех элементов коллекции.
* \+ `\DDTools\ObjectCollection::setOneItemData`, `getOneItemData`: Новые protected методы.


## Версия 0.55.1 (2022-12-03)
* \* `\DDTools\FilesTools::modifyImage`: PHP.libraries.phpThumb, включённая в репозиторий, обновлена с 1.7.15-202004301145 до 1.7.19-202210110924 (теперь поддерживает WebP, PHP8, etc).

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dd/evolutioncms-libraries-ddtools",
"type": "modxevo-library-ddtools",
"version": "0.55.1",
"version": "0.56.0",
"description": "A library with various tools facilitating your work.",
"keywords": [
"modx",
Expand Down
4 changes: 2 additions & 2 deletions modx.ddtools.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* EvolutionCMS.libraries.ddTools
* @version 0.55.1 (2022-12-03)
* @version 0.56 (2023-01-29)
*
* @see README.md
*
* @copyright 2012–2022 DD Group {@link https://DivanDesign.biz }
* @copyright 2012–2023 DD Group {@link https://DivanDesign.biz }
*/

global $modx;
Expand Down

0 comments on commit 2763c66

Please sign in to comment.