Skip to content

Commit

Permalink
chore: prepare release 4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsey committed Mar 26, 2022
1 parent a9d1aae commit 8ced2af
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 11 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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>`_

Expand Down
17 changes: 8 additions & 9 deletions docs/upgrading/3-to-4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------------
Expand Down

0 comments on commit 8ced2af

Please sign in to comment.