Upgrading uuid 2 to 3
Breaking2.2.2 → 3.0.7Breaking2New4Changed3Fixed3Other3
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- [Experimental][BREAKING CHANGE] Change toBytes in UuidValue to return Uint8List instead of List.
- [Experimental][BREAKING CHANGE] isValidUuid function signature has changed, now takes 2 optional parameters fromString and fromList that will do the appropriate validation on different sources.
Must act 2 items need code or config changes
Dart SDK requirement changed in 3.0.0-nullsafety.0: >=2.2.0 <3.0.0 → >=2.12.0-0 <3.0.0.
What you must change
Breaking2
[Experimental][BREAKING CHANGE] Change toBytes in UuidValue to return Uint8List instead of List.
toBytesUuidValueUint8ListList<int>[Experimental][BREAKING CHANGE] isValidUuid function signature has changed, now takes 2 optional parameters fromString and fromList that will do the appropriate validation on different sources.
isValidUuidfromStringfromListAPI changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- changed:
ctor Uuid({Map<String, dynamic> options}) → ctor Uuid({this.options}) - changed:
method Uuid.parse(String uuid, {List<int> buffer, int offset = …}): List<int> → static method Uuid.parse( String uuid, { List<int>? buffer, int offset = …, bool validate = …, ValidationMode validationMode = …, }): List<int> - changed:
method Uuid.unparse(List<int> buffer, {int offset = …}): String → static method Uuid.unparse(List<int> buffer, {int offset = …}): String - changed:
method Uuid.v1({Map<String, dynamic> options}): String → method Uuid.v1({Map<String, dynamic>? options}): String - changed:
method Uuid.v1buffer( List<int> buffer, { Map<String, dynamic> options, int offset = …, }): List<int> → method Uuid.v1buffer( List<int> buffer, { Map<String, dynamic>? options, int offset = …, }): List<int> - changed:
method Uuid.v4({Map<String, dynamic> options}): String → method Uuid.v4({Map<String, dynamic>? options}): String - changed:
method Uuid.v4buffer( List<int> buffer, { Map<String, dynamic> options, int offset = …, }): List<int> → method Uuid.v4buffer( List<int> buffer, { Map<String, dynamic>? options, int offset = …, }): List<int> - changed:
method Uuid.v5(String namespace, String name, {Map<String, dynamic> options}): String → method Uuid.v5(String? namespace, String? name, {Map<String, dynamic>? options}): String - changed:
method Uuid.v5buffer( String namespace, String name, List<int> buffer, { Map<String, dynamic> options, int offset = …, }): List<int> → method Uuid.v5buffer( String? namespace, String? name, List<int>? buffer, { Map<String, dynamic>? options, int offset = …, }): List<int> - added:
class UuidValue - added:
ctor UuidValue(String uuid, [bool validate = …, ValidationMode validationMode = …]) - added:
ctor UuidValue.fromByteList(Uint8List byteList, {int? offset}) - added:
ctor UuidValue.fromList(List<int> byteList, {int? offset}) - added:
enum ValidationMode - added:
field Uuid.options: final Map<String, dynamic>? - added:
field UuidValue.uuid: final String - added:
get UuidValue.hashCode: int - added:
member ValidationMode.nonStrict - added:
member ValidationMode.strictRFC4122 - added:
method Uuid.v1obj({Map<String, dynamic>? options}): UuidValue - added:
method Uuid.v4obj({Map<String, dynamic>? options}): UuidValue - added:
method Uuid.v5obj(String? namespace, String? name, {Map<String, dynamic>? options}): UuidValue - added:
method UuidValue.equals(UuidValue other): bool - added:
method UuidValue.operator ==(Object other): bool - added:
method UuidValue.toBytes(): Uint8List - added:
method UuidValue.toString(): String - added:
static field Uuid.dynamic>>(): final - added:
static method Uuid.isValidOrThrow( {String fromString = …, Uint8List? fromByteList, ValidationMode validationMode = …}): void - added:
static method Uuid.isValidUUID( {String fromString = …, Uint8List? fromByteList, ValidationMode validationMode = …}): bool - added:
static method Uuid.parseAsByteList(String uuid, {List<int>? buffer, int offset = …, bool validate = …, ValidationMode validationMode = …}): Uint8List
- changed:
static method UuidUtil.cryptoRNG(): List<int> → static method UuidUtil.cryptoRNG(): Uint8List - changed:
static method UuidUtil.mathRNG({int seed = …}): List<int> → static method UuidUtil.mathRNG({int seed = …}): Uint8List