chore: prepare release 4.3.0

This commit is contained in:
Ben Ramsey
2022-03-26 16:59:42 -05:00
parent a9d1aaed33
commit 8ced2afadd
3 changed files with 38 additions and 11 deletions
+26
View File
@@ -6,6 +6,32 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## 4.3.0 - 2022-03-26
### Changed
* Remove support for PHP 7.2, 7.3, and 7.4. This is not a BC break, since
Composer will do the right thing for your environment and select a compatible
version of this library.
* Require `ext-ctype` extension. For applications that run in environments where
the `ext-ctype` is not present, please require a polyfill, such as
[symfony/polyfill-ctype](https://packagist.org/packages/symfony/polyfill-ctype).
* Use `iterable<UuidBuilderInterface>` instead of `BuilderCollection` types.
* Use `iterable<NodeProviderInterface>` instead of `NodeProviderCollection` types.
### Deprecated
The following will be removed in ramsey/uuid 5.0.0:
* `Ramsey\Uuid\Builder\BuilderCollection`
* `Ramsey\Uuid\Provider\Node\NodeProviderCollection`
* Dependency on ramsey/collection
### Fixed
* Support valid UUIDs in uppercase in `LazyUuidFromString`.
## 4.2.3 - 2021-09-25
### Fixed
+4 -2
View File
@@ -10,7 +10,10 @@ Requirements
ramsey/uuid |version| requires the following:
* PHP 7.2+
* PHP 8.0+
* `ext-ctype <https://www.php.net/manual/en/book.ctype.php>`_ or a polyfill that
provides ext-ctype, such as `symfony/polyfill-ctype
<https://packagist.org/packages/symfony/polyfill-ctype>`_
* `ext-json <https://www.php.net/manual/en/book.json.php>`_
The JSON extension is normally enabled by default, but it is possible to disable
@@ -23,7 +26,6 @@ sources.
ramsey/uuid recommends installing/enabling the following extensions. While not
required, these extensions improve the performance of ramsey/uuid.
* `ext-ctype <https://www.php.net/manual/en/book.ctype.php>`_
* `ext-gmp <https://www.php.net/manual/en/book.gmp.php>`_
* `ext-bcmath <https://www.php.net/manual/en/book.bc.php>`_
+8 -9
View File
@@ -464,24 +464,23 @@ $timeConverter`` as its second constructor argument.
Provider\\Node\\FallbackNodeProvider
------------------------------------
Provider\\Node\\FallbackNodeProvider now requires a
Provider\\Node\\NodeProviderCollection as its constructor parameter. This
behaves like a typed array.
Provider\\Node\\FallbackNodeProvider now requires
``iterable<Ramsey\Uuid\Provider\NodeProviderInterface>`` as its constructor
parameter.
.. code-block::
use MyPackage\MyCustomNodeProvider;
use Ramsey\Uuid\Provider\Node\FallbackNodeProvider;
use Ramsey\Uuid\Provider\Node\NodeProviderCollection;
use Ramsey\Uuid\Provider\Node\RandomNodeProvider;
use Ramsey\Uuid\Provider\Node\SystemNodeProvider;
$collection = new NodeProviderCollection();
$collection[] = new MyCustomNodeProvider();
$collection[] = new SystemNodeProvider();
$collection[] = new RandomNodeProvider();
$nodeProviders = [];
$nodeProviders[] = new MyCustomNodeProvider();
$nodeProviders[] = new SystemNodeProvider();
$nodeProviders[] = new RandomNodeProvider();
$provider = new FallbackNodeProvider($collection);
$provider = new FallbackNodeProvider($nodeProviders);
Provider\\Time\\FixedTimeProvider
---------------------------------