Releases: daegalus/dart-uuid
Releases · daegalus/dart-uuid
4.5.1
Changelog
- Add
UuidValue.fromNamespace
to let you make constant variants of the namespace, as due to language limitations on Enums,Namespace.*.uuidValue
can't be constant. - Added
isV#()
,isNil()
, andisMax()
functions toUuidValue
for matching Dart standards.
Full Changelog: 4.5.0...4.5.1
4.5.0
Changelog
- Change to CryptoRNG by default, you will now need to use MathRNG explicitly if you want speed over security. (thanks @Rexios80)
- This also works around a regression in the Dart SDK on WASM targets: dart-lang/sdk#56609
- Deprecate the use of
Uuid.NAMESPACE*
andUuidV5.NAMESPACE
, and switch to using a proper const enum for this. (thanks @bymoye)- These will be removed once sufficient time has been made for the deprecation notice to be seen. Most likely v5.0.
- Please use the new
Namespace
enum inenums.dart
.
- Re-add
Uuid.NAMESPACE*
andUuidV5.NAMESPACE
in order to give deprecation time. - Add missing MAX UUID option from RFC9562
- Add
bytes
getter toNamespace
enum. - [PARTIAL BREAKING CHANGE]
Namespace
is now an enum, and the entries are now of theNamespace
type. They all have avalue
function to return the internalstring
What's Changed
- remove multiple individually defined Namespaces and use enumerations instead by @bymoye in #122
- Always use
CryptoRNG
as the default by @Rexios80 in #126
New Contributors
Full Changelog: 4.4.2...4.5.0
4.4.2
4.4.1
v4.4.1
- Fix UUIDv1 to use millisecondsSinceEpoch instead of microsecondsSinceEpoch. Matches UUIDv6 and passes vector tests. (#119)
What's Changed
- Update renovate.json by @daegalus in #114
- Update All (major) by @renovate in #115
- Update dependency lints to v4 by @renovate in #116
New Contributors
Full Changelog: 4.4.0...4.4.1
4.4.0
- Fix MathRNG with Seed being recreated on each use, generating the same list of bytes. (thanks @showband)
- Fix UUIDv5 UTF8 inconsistencies. (thanks @vjamrich)
- Use static state storage for random number generator to prevent MathRNG issue.
- Replace V1, v6, V7, V8 MathRNG preventively, the issue didn't exhibit there due to other factors in the UUID generation (primarily time, and clockseq)
What's Changed
- fixed MathRNG - it now uses the initial seed properly by @showband in #109
- Fix V5 UUID inconsistencies when using UTF-8 characters by @vjamrich in #112
New Contributors
Full Changelog: 4.3.3...4.4.0
4.3.3
v4.3.3
- Fix UUIDv7 in Javascript
- Using bitshifts on anything over 32bits get truncated. Switched to a more naive solution for now. Hopefully dart2wasm fixes things.
- Remove unnecessary
_randomData()
functions - Add
fixnum
package to handle issues in v6, time, and javascript.
Full Changelog: 4.3.2...4.3.3
4.3.2
- Added
toFormattedString()
toUuidValue
to handle cases where the UUID used has no hyphens but you wnt them for output. - Changed constraint for
meta
to1.10.0
to not conflict withflutter_test
Full Changelog: 4.3.1...4.3.2
4.3.1
Full Changelog: 4.3.0...4.3.1
4.3.0
Full Changelog: 4.2.2...4.3.0
4.2.2
Full Changelog: 4.2.1...4.2.2