From a161a26d917604dc6d3aa25100fddf2556e9f35d Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Thu, 15 Sep 2022 22:22:46 -0500 Subject: [PATCH] chore: prepare for release 4.5.1 --- CHANGELOG.md | 7 +++++++ docs/reference/uuid.rst | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3086d5a0..4332a36b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ 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.5.1 - 2022-09-16 + +### Fixed + +* Update RFC 4122 validator to recognize version 6 and 7 UUIDs. + + ## 4.5.0 - 2022-09-15 ### Added diff --git a/docs/reference/uuid.rst b/docs/reference/uuid.rst index 447dbad6..c77ab11d 100644 --- a/docs/reference/uuid.rst +++ b/docs/reference/uuid.rst @@ -40,6 +40,10 @@ the ramsey/uuid library. *Deprecated.* Use :php:const:`Uuid::UUID_TYPE_REORDERED_TIME` instead. + .. php:const:: UUID_TYPE_UNIX_TIME + + :ref:`rfc4122.version7` UUID. + .. php:const:: NAMESPACE_DNS The name string is a fully-qualified domain name. @@ -143,6 +147,14 @@ the ramsey/uuid library. :returns: A version 6 UUID :returntype: Ramsey\\Uuid\\Rfc4122\\UuidV6 + .. php:staticmethod:: uuid7([$dateTime]) + + Generates a version 7, Unix Epoch time UUID. See :ref:`rfc4122.version7`. + + :param DateTimeInterface|null $dateTime: The date from which to create the UUID instance + :returns: A version 7 UUID + :returntype: Ramsey\\Uuid\\Rfc4122\\UuidV7 + .. php:staticmethod:: fromString($uuid) Creates an instance of UuidInterface from the string standard