github daegalus/dart-uuid 4.0.0-beta2

latest releases: 4.5.2, 4.5.1, 4.5.0...
pre-release2 years ago

What's Changed

  • Provide constants for RFC4122 namespaces in UuidValue by @SpencerC in #85
  • Fix classes to be properly const by @daegalus in #88

New Contributors

Version diff: 4.0.0-beta1-1...4.0.0-beta2

More Details

  • [BREAKING CHANGE] The Uuid class now takes a GlobalOptions class instead of a Map<String, dynamic>.
  • Added options classes to eventually replace the Map parameter.
  • [BREAKING CHANGE] Since v6,v7,v8 are new for 4.0, I have made it so they only take the new options class.
  • Reworked the constructors, and moved state out of the classes. Const is now supported properly again
  • Switched tests to use const Uuid to catch regressions.
  • Set the options parameter in v1, v4, and v5 to deprecated.
  • [BREAKING CHANGE] Make UuidValue properly const also
    • Can no longer run validation on the const variant.
    • Added UuidValue.withValidation() to handle this usecase, it can't be const.
    • If you need const and validation. Create the UuidValue with the UUID, then call the validate() function on it.

Don't miss a new dart-uuid release

NewReleases is sending notifications on new releases.