Skip to content

Releases: ramsey/uuid

3.8.0

19 Jul 23:42
3.8.0
d09ea80
Compare
Choose a tag to compare

Added

  • Support discovery of MAC addresses on FreeBSD systems
  • Use a polyfill to provide PHP ctype functions when running on systems where the
    ctype functions are not part of the PHP build
  • Disallow a trailing newline character when validating UUIDs
  • Annotate thrown exceptions for improved IDE hinting

3.7.3

20 Jan 00:53
3.7.3
44abcda
Compare
Choose a tag to compare

Fixed

  • Gracefully handle cases where glob() returns false when searching
    /sys/class/net/*/address files on Linux
  • Fix off-by-one error in DefaultTimeGenerator

Security

  • Switch to random_int() from mt_rand() for better random numbers

3.7.2

13 Jan 22:26
3.7.2
bba83ad
Compare
Choose a tag to compare

Fixed

  • Check sysfs on Linux to determine the node identifier; this provides a
    reliable way to identify the node on Docker images, etc.

3.7.1

22 Sep 20:49
3.7.1
45cffe8
Compare
Choose a tag to compare

Fixed

  • Set the multicast bit for random nodes, according to RFC 4122, §4.5

Security

  • Use random_bytes() when generating random nodes

3.7.0

04 Aug 13:42
3.7.0
0ef23d1
Compare
Choose a tag to compare

Added

  • Add the following UUID version constants:
    • Uuid::UUID_TYPE_TIME
    • Uuid::UUID_TYPE_IDENTIFIER
    • Uuid::UUID_TYPE_HASH_MD5
    • Uuid::UUID_TYPE_RANDOM
    • Uuid::UUID_TYPE_HASH_SHA1

3.6.1

26 Mar 20:44
3.6.1
4ae32dd
Compare
Choose a tag to compare

Fixed

  • Optimize UUID string decoding by using str_pad() instead of sprintf()

3.6.0

18 Mar 15:53
3.6.0
0b7bdfb
Compare
Choose a tag to compare

Added

  • Add InvalidUuidStringException, which is thrown when attempting to decode an
    invalid string UUID; this does not introduce any BC issues, since the new
    exception inherits from the previously used InvalidArgumentException

Fixed

  • Improve memory usage when generating large quantities of UUIDs (use str_pad()
    and dechex() instead of sprintf())

3.5.2

22 Nov 21:38
5677cfe
Compare
Choose a tag to compare

Fixed

  • Improve test coverage

3.5.1

02 Oct 15:52
a07797b
Compare
Choose a tag to compare

Fixed

  • Fix issue where the same UUIDs were not being treated as equal when using
    mixed cases

3.5.0

02 Aug 18:41
Compare
Choose a tag to compare

Added

  • Add OrderedTimeCodec to store UUID in an optimized way for InnoDB

Fixed

  • Fix invalid node generation in RandomNodeProvider
  • Avoid multiple unnecessary system calls by caching failed attempt to retrieve
    system node