Skip to content

Commit a161a26

Browse files
committed
chore: prepare for release 4.5.1
1 parent a180174 commit a161a26

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

88

9+
## 4.5.1 - 2022-09-16
10+
11+
### Fixed
12+
13+
* Update RFC 4122 validator to recognize version 6 and 7 UUIDs.
14+
15+
916
## 4.5.0 - 2022-09-15
1017

1118
### Added

docs/reference/uuid.rst

+12
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ the ramsey/uuid library.
4040
4141
*Deprecated.* Use :php:const:`Uuid::UUID_TYPE_REORDERED_TIME` instead.
4242

43+
.. php:const:: UUID_TYPE_UNIX_TIME
44+
45+
:ref:`rfc4122.version7` UUID.
46+
4347
.. php:const:: NAMESPACE_DNS
4448
4549
The name string is a fully-qualified domain name.
@@ -143,6 +147,14 @@ the ramsey/uuid library.
143147
:returns: A version 6 UUID
144148
:returntype: Ramsey\\Uuid\\Rfc4122\\UuidV6
145149

150+
.. php:staticmethod:: uuid7([$dateTime])
151+
152+
Generates a version 7, Unix Epoch time UUID. See :ref:`rfc4122.version7`.
153+
154+
:param DateTimeInterface|null $dateTime: The date from which to create the UUID instance
155+
:returns: A version 7 UUID
156+
:returntype: Ramsey\\Uuid\\Rfc4122\\UuidV7
157+
146158
.. php:staticmethod:: fromString($uuid)
147159
148160
Creates an instance of UuidInterface from the string standard

0 commit comments

Comments
 (0)