Skip to content

Releases: ramsey/uuid

2.8.3

31 Aug 13:35
Compare
Choose a tag to compare

Fixed

  • Fix exception message in Uuid::calculateUuidTime()

3.0.0-alpha3

28 Jul 20:40
Compare
Choose a tag to compare
3.0.0-alpha3 Pre-release
Pre-release

Added

  • Enable use of custom TimeGenerator implementations
  • Add a setTimeGenerator method on UuidFactory to override the default time
    generator
  • Add option to enable PeclUuidTimeGenerator via FeatureSet

Removed

  • Remove timeConverter and timeProvider properties, setters, and getters in
    both FeatureSet and UuidFactory as those are now exclusively used by the
    default TimeGenerator

3.0.0-alpha2

28 Jul 16:47
Compare
Choose a tag to compare
3.0.0-alpha2 Pre-release
Pre-release

Added

  • Refactor time-based (version 1) UUIDs into a TimeGeneratorInterface to allow
    for other sources to generate version 1 UUIDs in this library
  • Add PeclUuidTimeGenerator and PeclUuidRandomGenerator for creating version
    1 or version 4 UUIDs using the pecl-uuid extension
  • Add RandomBytesGenerator for use with PHP 7. ramsey/uuid will default to use
    this generator when running on PHP 7

Changed

  • Default RandomLibAdapter to a medium-strength generator with
    ircmaxell/random-lib; this is configurable, so other generator strengths may
    be used

Removed

  • Remove PeclUuidFactory in favor of using pecl-uuid with generators

2.8.2

23 Jul 19:04
Compare
Choose a tag to compare

Fixed

  • Ensure the release tag makes it into the rhumsaa/uuid package

3.0.0-alpha1

16 Jul 18:05
Compare
Choose a tag to compare
3.0.0-alpha1 Pre-release
Pre-release

Added

  • Allow dependency injection through UuidFactory and/or extending FeatureSet
    to override any package defaults
  • Add a number of generators that may be used to override the library defaults:
    • CombGenerator to allow generation of sequential UUIDs
    • OpenSslGenerator to generate random bytes on systems where
      openssql_random_pseudo_bytes() is present
    • MtRandGenerator to provide a fallback in the event other random generators
      are not present
    • RandomLibAdapter to allow use of ircmaxell/random-lib
  • Support GUID generation by configuring a FeatureSet to use GUIDs
  • Allow UUIDs to be serialized as JSON through JsonSerializable

Changed

  • Change root namespace from "Rhumsaa" to "Ramsey;" in most cases, simply
    making this change in your applications is the only upgrade path you will
    need—everything else should work as expected
  • No longer consider Uuid class as final; everything is now based around
    interfaces and factories, allowing you to use this package as a base to
    implement other kinds of UUIDs with different dependencies
  • Return an object of type DegradedUuid on 32-bit systems to indicate that
    certain features are not available

Removed

2.8.1

16 Jun 15:14
Compare
Choose a tag to compare

Fixed

  • Use passthru() and output buffering in getIfconfig()
  • Cache the system node in a static variable so that we process it only once per
    runtime

2.8.0

09 Nov 18:53
Compare
Choose a tag to compare

Added

  • Add static fromInteger() method to create UUIDs from string integer or
    Moontoast\Math\BigNumber

Fixed

  • Improve Doctrine conversion to Uuid or string for the ramsey/uuid [Doctrine
    field type]

2.7.4

30 Oct 03:40
Compare
Choose a tag to compare

Fixed

  • Change loop in generateBytes() from foreach to for

2.7.3

27 Aug 22:43
Compare
Choose a tag to compare

Fixed

  • Fix upper range for mt_rand used in version 4 UUIDs

2.7.2

28 Jul 17:53
Compare
Choose a tag to compare

Changed

  • Upgrade to PSR-4 autoloading