@@ -6,6 +6,47 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
7
7
8
8
9
+ ## 4.5.0 - 2022-09-15
10
+
11
+ ### Added
12
+
13
+ * Promote version 6, reordered time UUIDs from the ` Nonstandard ` namespace to
14
+ the ` Rfc4122 ` namespace. Version 6 UUIDs are defined in
15
+ [ New UUID Formats, section 5.1] [ version6 ] . While still an Internet-Draft
16
+ version 6 is stable and unlikely to change in any way that breaks compatibility.
17
+ * Add support for version 7, Unix Epoch time UUIDs, as defined in
18
+ [ New UUID Formats, section 5.2] [ version7 ] . While still an Internet-Draft,
19
+ version 7 is stable and unlikely to change in any way that breaks compatibility.
20
+ * Use ` Ramsey\Uuid\Uuid::uuid7() ` to generate version 7 UUIDs.
21
+ * Version 7 UUIDs are of type ` Ramsey\Uuid\Rfc4122\UuidV7 ` .
22
+ * The constant ` Ramsey\Uuid\Uuid::UUID_TYPE_UNIX_TIME ` exists for version
23
+ 7 UUIDs.
24
+ * Add ` Ramsey\Uuid\Converter\Time\UnixTimeConverter ` and
25
+ ` Ramsey\Uuid\Generator\UnixTimeGenerator ` to support version 7 UUID generation.
26
+ * Add support for [ max UUIDs] [ ] through ` Ramsey\Uuid\Uuid::MAX ` and
27
+ ` Ramsey\Uuid\Rfc4122\MaxUuid ` .
28
+
29
+ ### Changed
30
+
31
+ * The lowest version of brick/math allowed is now ` ^0.8.8 ` .
32
+
33
+ ### Deprecated
34
+
35
+ The following will be removed in ramsey/uuid 5.0.0:
36
+
37
+ * ` Ramsey\Uuid\Nonstandard\UuidV6 ` is deprecated in favor of
38
+ ` Ramsey\Uuid\Rfc4122\UuidV6 ` .
39
+ * ` Ramsey\Uuid\Uuid::UUID_TYPE_PEABODY ` ; use
40
+ ` Ramsey\Uuid\Uuid::UUID_TYPE_REORDERED_TIME ` instead.
41
+
42
+ ### Fixed
43
+
44
+ * For ` Ramsey\Uuid\Uuid::isValid() ` , Psalm now asserts the UUID is a
45
+ non-empty-string when it is valid.
46
+ * Nil UUIDs are properly treated as RFC 4122 variants, and ` getVariant() ` now
47
+ returns a ` 2 ` when called on a nil UUID.
48
+
49
+
9
50
## 4.4.0 - 2022-08-05
10
51
11
52
### Changed
@@ -1315,3 +1356,6 @@ versions leading up to this release.*
1315
1356
[ doctrine field type ] : http://doctrine-dbal.readthedocs.org/en/latest/reference/types.html
1316
1357
[ ramsey/uuid-doctrine ] : https://github.com/ramsey/uuid-doctrine
1317
1358
[ ramsey/uuid-console ] : https://github.com/ramsey/uuid-console
1359
+ [ version6 ] : https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.1
1360
+ [ version7 ] : https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.2
1361
+ [ max uuids ] : https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04#section-5.4
0 commit comments