From 8ced2afadd9ce455e2d5919d27c57e344bae4a09 Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Sat, 26 Mar 2022 16:59:42 -0500 Subject: [PATCH] chore: prepare release 4.3.0 --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ docs/quickstart.rst | 6 ++++-- docs/upgrading/3-to-4.rst | 17 ++++++++--------- 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdf3eec..0453166 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` instead of `BuilderCollection` types. +* Use `iterable` 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 diff --git a/docs/quickstart.rst b/docs/quickstart.rst index d964a73..6cd310c 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -10,7 +10,10 @@ Requirements ramsey/uuid |version| requires the following: -* PHP 7.2+ +* PHP 8.0+ +* `ext-ctype `_ or a polyfill that + provides ext-ctype, such as `symfony/polyfill-ctype + `_ * `ext-json `_ 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 `_ * `ext-gmp `_ * `ext-bcmath `_ diff --git a/docs/upgrading/3-to-4.rst b/docs/upgrading/3-to-4.rst index 2b6b2e6..aef7706 100644 --- a/docs/upgrading/3-to-4.rst +++ b/docs/upgrading/3-to-4.rst @@ -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`` 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 ---------------------------------