Skip to content

Releases: ramsey/uuid

4.8.1

01 Jun 06:30
4.8.1
fdf4dd4
Compare
Choose a tag to compare

Fixed

  • This tagged release ensures the stable documentation build matches the current stable release.

Full Changelog: 4.8.0...4.8.1

4.8.0

01 Jun 02:42
4.8.0
6700833
Compare
Choose a tag to compare

Deprecated

The following will be removed in ramsey/uuid 5.0.0:

  • Ramsey\Uuid\Codec\OrderedTimeCodec is deprecated; please migrate to version 6 UUIDs.
  • Ramsey\Uuid\Codec\TimestampFirstCombCodec is deprecated; please migrate to version 7 UUIDs.
  • Ramsey\Uuid\Codec\TimestampLastCombCodec is deprecated; please use Ramsey\Uuid\Codec\StringCodec instead.
  • Ramsey\Uuid\Generator\CombGenerator is deprecated; please migrate to version 7 UUIDs.

Fixed

  • Allow brick/math version ^0.13; fixed in #589.
  • Update call to str_getcsv() to avoid deprecation notice in PHP 8.4; fixed in #590.
  • Hexadecimal is never an empty string; fixed in #593.
  • Update docblocks for Uuid::fromBytes(), Uuid::fromString(), Uuid::fromDateTime(), Uuid::fromHexadecimal(), and Uuid::fromInteger() to note that each can throw InvalidArgumentException, addressing PHPStan errors occurring at call sites; fixed in #552.
  • getVariant() for MaxUuid now correctly returns Uuid::RESERVED_FUTURE, as specified in RFC 9562, section 5.10.
  • getVariant() for NilUuid now correctly returns Uuid::RESERVED_NCS, as specified in RFC 9562, section 5.9.

New Contributors

Full Changelog: 4.7.6...4.8.0

4.7.6

28 Apr 18:56
4.7.6
91039bc
Compare
Choose a tag to compare

Fixed

  • Allow brick/math version ^0.12.

4.7.5

08 Nov 05:55
4.7.5
5f0df49
Compare
Choose a tag to compare

Fixed

  • Protect against UUIDv7 collisions within the same millisecond, as reported in #518 and fixed in #522.
  • Improve the return type hint for UuidInterface::compareTo().

4.7.4

15 Apr 23:40
4.7.4
60a4c63
Compare
Choose a tag to compare

Fixed

  • Allow brick/math version ^0.11.
  • Add explicit Stringable interface to UuidInterface.
  • Fix namespace conflict reported in #490.
  • Fix unserialize error with OrderedTimeCodec reported in #494.

4.7.3

12 Jan 18:17
4.7.3
433b201
Compare
Choose a tag to compare

Fixed

  • The original 4.7.2 tag accidentally pointed to a commit in the 5.x branch. I have replaced the 4.7.2 tag with a new tag that points to the correct commit, but I am creating this tag to help notify users and automated processes who might have already updated to the bad 4.7.2 tag (#487).

4.7.2

12 Jan 18:16
4.7.2
c1de830
Compare
Choose a tag to compare

Fixed

  • Amend Psalm assertion syntax on Uuid::isValid() to prevent incorrect type inference (#486).
  • Re-tagged with the correct commit hash, since the first tag was pointing to a commit in the 5.x branch (#487).

4.7.1

31 Dec 22:22
4.7.1
a1acf96
Compare
Choose a tag to compare

Fixed

  • Allow the use of ramsey/collection ^2.0 with ramsey/uuid.

4.7.0

19 Dec 22:32
4.7.0
5ed9ad5
Compare
Choose a tag to compare

Added

  • Add Uuid::fromHexadecimal() and UuidFactory::fromHexadecimal(). These methods are not required by the interfaces.

Fixed

  • Ignore MAC addresses consisting of all zeroes (i.e., 00:00:00:00:00:00).

3.9.7

19 Dec 22:25
3.9.7
dc75aa4
Compare
Choose a tag to compare

Fixed

  • Add #[ReturnTypeWillChange] to Uuid::jsonSerialize() method.