php-basics/.phpdoc/guide/changelog.rst

76 lines
2.6 KiB
ReStructuredText
Raw Normal View History

2024-02-15 11:13:57 +01:00
.. title:: Changelog
Changelog
#########
2024-03-26 20:10:30 +01:00
.. sidebar:: Table of Contents
.. contents::
2024-02-15 11:13:57 +01:00
v2.0.0
======
**Breaking Changes:**
2024-02-19 14:52:57 +01:00
* Raised minimum PHP version from 8.0 to 8.1 in order to use `new features <https://www.php.net/releases/8.1/>`_ like
`array_is_list() <https://www.php.net/array_is_list>`_ and the spread operator on string-keyed arrays
* :php:namespace:`OCC\Basics\Interfaces` traits renamed and moved to different namespace
.. code-block::
OCC\Basics\InterfaceTraits\ArrayAccess -> OCC\Basics\Interfaces\ArrayAccessTrait
OCC\Basics\InterfaceTraits\Countable -> OCC\Basics\Interfaces\CountableTrait
OCC\Basics\InterfaceTraits\IteratorAggregate -> OCC\Basics\Interfaces\IteratorAggregateTrait
OCC\Basics\InterfaceTraits\Iterator -> OCC\Basics\Interfaces\IteratorTrait
2024-03-31 17:41:04 +02:00
* Prefixed internal methods for :php:trait:`OCC\Basics\Traits\Getter` and :php:trait:`OCC\Basics\Traits\Setter` with
`_` to avoid confusion with regular class methods
2024-02-15 11:13:57 +01:00
.. code-block:: php
// old methods
2024-03-31 17:41:04 +02:00
function magicGet{Property}(): mixed
function magicSet{Property}(mixed $value): void
2024-02-15 11:13:57 +01:00
.. code-block:: php
// new methods
2024-03-31 17:41:04 +02:00
function _magicGet{Property}(): mixed
function _magicSet{Property}(mixed $value): void
2024-02-15 11:13:57 +01:00
**New Features:**
* Added new datastructure :php:class:`OCC\Basics\DataStructures\StrictCollection`
2024-03-27 12:19:43 +01:00
* Added new datastructure :php:class:`OCC\Basics\DataStructures\StrictArray`
2024-02-15 11:13:57 +01:00
* Added new error handler :php:class:`OCC\Basics\ErrorHandlers\TriggerExceptionError`
* Added new trait :php:trait:`OCC\Basics\Traits\OverloadingGetter`
* Added new trait :php:trait:`OCC\Basics\Traits\OverloadingSetter`
2024-03-26 20:10:30 +01:00
* Added new trait :php:trait:`OCC\Basics\Traits\TypeChecker`
* Extended API for all datastructures (see :php:trait:`OCC\Basics\DataStructures\Traits\StrictSplDatastructureTrait`)
* Introduced :php:class:`OCC\Basics\DataStructures\Exceptions\InvalidDataTypeException` for strict datastructures
2024-02-15 11:16:18 +01:00
* Extended `documentation <https://opencultureconsulting.github.io/php-basics/>`_
2024-02-15 11:13:57 +01:00
v1.1.0
======
**Breaking Changes:**
* Changed the constructor's signature for all :php:namespace:`OCC\Basics\DataStructures` to improve compatibility with
the corresponding `SPL datastructures <https://www.php.net/spl.datastructures>`_
.. code-block:: php
// old constructor signature
public function __construct(iterable $items = [], array $allowedTypes = [])
.. code-block:: php
// new constructor signature
public function __construct(array $allowedTypes = [])
v1.0.1
======
**New Features:**
* Improved exception handling in :php:trait:`Singleton <OCC\Basics\Traits\Singleton>` trait
v1.0.0
======
**Initial Release**