Releases: ramsey/uuid
Releases · ramsey/uuid
2.8.3
3.0.0-alpha3
Added
- Enable use of custom
TimeGenerator
implementations - Add a
setTimeGenerator
method onUuidFactory
to override the default time
generator - Add option to enable
PeclUuidTimeGenerator
viaFeatureSet
Removed
- Remove
timeConverter
andtimeProvider
properties, setters, and getters in
bothFeatureSet
andUuidFactory
as those are now exclusively used by the
defaultTimeGenerator
3.0.0-alpha2
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
andPeclUuidRandomGenerator
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
3.0.0-alpha1
Added
- Allow dependency injection through
UuidFactory
and/or extendingFeatureSet
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 UUIDsOpenSslGenerator
to generate random bytes on systems where
openssql_random_pseudo_bytes()
is presentMtRandGenerator
to provide a fallback in the event other random generators
are not presentRandomLibAdapter
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 asfinal
; 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
- Move UUID Doctrine field type to ramsey/uuid-doctrine
- Move
uuid
console application to ramsey/uuid-console - Remove
Uuid::VERSION
package version constant