Update RFC 4122 validator to recognize version 6 and 7 UUIDs.
4.5.0
Added
Promote version 6, reordered time UUIDs from the Nonstandard namespace to the Rfc4122 namespace. Version 6 UUIDs are defined in New UUID Formats, section 5.1. While still an Internet-Draft version 6 is stable and unlikely to change in any way that breaks compatibility.
Add support for version 7, Unix Epoch time UUIDs, as defined in New UUID Formats, section 5.2. While still an Internet-Draft, version 7 is stable and unlikely to change in any way that breaks compatibility.
Use Ramsey\Uuid\Uuid::uuid7() to generate version 7 UUIDs.
Version 7 UUIDs are of type Ramsey\Uuid\Rfc4122\UuidV7.
The constant Ramsey\Uuid\Uuid::UUID_TYPE_UNIX_TIME exists for version 7 UUIDs.
Add Ramsey\Uuid\Converter\Time\UnixTimeConverter and Ramsey\Uuid\Generator\UnixTimeGenerator to support version 7 UUID generation.
Add support for max UUIDs through Ramsey\Uuid\Uuid::MAX and Ramsey\Uuid\Rfc4122\MaxUuid.
Changed
The lowest version of brick/math allowed is now ^0.8.8.
Deprecated
The following will be removed in ramsey/uuid 5.0.0:
Ramsey\Uuid\Nonstandard\UuidV6 is deprecated in favor of Ramsey\Uuid\Rfc4122\UuidV6.
Ramsey\Uuid\Uuid::UUID_TYPE_PEABODY; use Ramsey\Uuid\Uuid::UUID_TYPE_REORDERED_TIME instead.
Fixed
For Ramsey\Uuid\Uuid::isValid(), Psalm now asserts the UUID is a non-empty-string when it is valid.
Nil UUIDs are properly treated as RFC 4122 variants, and getVariant() now returns a 2 when called on a nil UUID.
4.4.0
Changed
Allow brick/math 0.10.
Remove dev dependency to moontoast/math.
Un-deprecate UuidInterface::getUrn().
4.3.1
Deprecated
The following will be removed in ramsey/uuid 5.0.0:
Update RFC 4122 validator to recognize version 6 and 7 UUIDs.
4.5.0 - 2022-09-15
Added
Promote version 6, reordered time UUIDs from the Nonstandard namespace to
the Rfc4122 namespace. Version 6 UUIDs are defined in
[draft-ietf-uuidrev-rfc4122bis-00, section 5.6][version6]. While still an
Internet-Draft version 6 is stable and unlikely to change in any way that
breaks compatibility.
Add support for version 7, Unix Epoch time UUIDs, as defined in
[draft-ietf-uuidrev-rfc4122bis-00, section 5.7][version7]. While still an
Internet-Draft, version 7 is stable and unlikely to change in any way that
breaks compatibility.
Use Ramsey\Uuid\Uuid::uuid7() to generate version 7 UUIDs.
Version 7 UUIDs are of type Ramsey\Uuid\Rfc4122\UuidV7.
The constant Ramsey\Uuid\Uuid::UUID_TYPE_UNIX_TIME exists for version
7 UUIDs.
Add Ramsey\Uuid\Converter\Time\UnixTimeConverter and
Ramsey\Uuid\Generator\UnixTimeGenerator to support version 7 UUID generation.
Add support for [max UUIDs][] through Ramsey\Uuid\Uuid::MAX and
Ramsey\Uuid\Rfc4122\MaxUuid.
Changed
The lowest version of brick/math allowed is now ^0.8.8.
Deprecated
The following will be removed in ramsey/uuid 5.0.0:
Ramsey\Uuid\Nonstandard\UuidV6 is deprecated in favor of
Ramsey\Uuid\Rfc4122\UuidV6.
Ramsey\Uuid\Uuid::UUID_TYPE_PEABODY; use
Ramsey\Uuid\Uuid::UUID_TYPE_REORDERED_TIME instead.
Fixed
For Ramsey\Uuid\Uuid::isValid(), Psalm now asserts the UUID is a
non-empty-string when it is valid.
Nil UUIDs are properly treated as RFC 4122 variants, and getVariant() now
returns a 2 when called on a nil UUID.
Most Recent Ignore Conditions Applied to This Pull Request
| Dependency Name | Ignore Conditions |
| --- | --- |
| ramsey/uuid | [>= 4.7.a, < 4.8] |
| ramsey/uuid | [>= 4.6.a, < 4.7] |
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps ramsey/uuid from 4.2.3 to 4.5.1.
Release notes
Sourced from ramsey/uuid's releases.
... (truncated)
Changelog
Sourced from ramsey/uuid's changelog.
... (truncated)
Commits
a161a26
chore: prepare for release 4.5.1a180174
fix: update validation to support versions 6 & 7ae247f1
chore: clean up types and PHP 8-ify the codeef84248
chore: prepare for release 4.5.0685c2f3
feat: support max UUIDse6164bd
docs: update copyright year on documentation4f4deb1
feat: add UUIDv7 documentation and customization28f509b
chore: update composer lock file1d71a2d
chore: add composer-repl for local testingaa1e488
feat: support version 7 (Unix Epoch time) UUIDsMost Recent Ignore Conditions Applied to This Pull Request
| Dependency Name | Ignore Conditions | | --- | --- | | ramsey/uuid | [>= 4.7.a, < 4.8] | | ramsey/uuid | [>= 4.6.a, < 4.7] |Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show