Releases: ramsey/uuid
Releases · ramsey/uuid
3.9.1
3.9.0
Added
- Add function API as convenience. The functions are available in the
Ramsey\Uuid
namespace.v1(int|string|null $node = null, int|null $clockSeq = null): string
v3(string|UuidInterface $ns, string $name): string
v4(): string
v5(string|UuidInterface $ns, string $name): string
Changed
- Use paragonie/random-lib instead of ircmaxell/random-lib. This is a
non-breaking change. - Use a high-strength generator by default, when using
RandomLibAdapter
. This
is a non-breaking change.
Deprecated
These will be removed in ramsey/uuid version 4.0.0:
MtRandGenerator
,OpenSslGenerator
, andSodiumRandomGenerator
are
deprecated in favor of using the defaultRandomBytesGenerator
.
Fixed
- Set
ext-json
as a required dependency incomposer.json
. - Use
PHP_OS
instead ofphp_uname()
when determining the system OS, for
cases whenphp_uname()
is disabled for security reasons.
3.8.0
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
3.7.2
3.7.1
3.7.0
3.6.1
3.6.0
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 usedInvalidArgumentException
Fixed
- Improve memory usage when generating large quantities of UUIDs (use
str_pad()
anddechex()
instead ofsprintf()
)