ulid 2.1.0 copy "ulid: ^2.1.0" to clipboard
ulid: ^2.1.0 copied to clipboard

Lexicographically sortable, 128-bit identifier (UUID) with 48-bit timestamp and 80 random bits. Canonically encoded as a 26 character string, as opposed to the 36 character UUID.

Changelog #

2.1.0 #

  • Fixed minor correctness bugs, invalid ULID string will throw FormatException.
  • Added Ulid.toBase32(): uppercase, spec-aligned 26-character format, with an optional lowercase parameter. Added a matching uppercase parameter to Ulid.toUuid().
  • Clarified method docs on which format and casing each toXxx() method emits.
  • Ulid.parse doc clarifies it accepts both upper- and lowercase input (unchanged behavior).
  • Deprecated Ulid.toCanonical() in favor of Ulid.toBase32(); it will be removed in a future major version.
  • Warning: Ulid.toString() currently returns the lowercase canonical format, but a future major version will switch it to the uppercase toBase32() format. Call toBase32() or toCanonical() explicitly if your code depends on a specific casing.

2.0.2 #

  • Updated lints and readme.

2.0.1 #

  • Updated lints.

2.0.0 #

1.1.0 #

  • Updated code to 2.7 Dart and latest pedantic lints.
  • Added Ulid.toBytes and Ulid.fromBytes.

1.0.4 #

  • implement operator == and hashCode

1.0.3 #

  • Fixed bit loss in browser's int handling.

1.0.2 #

  • Using package:pedantic.
  • Removed leftover main method.

1.0.1 #

  • Declared support for Dart 2.
  • Upgraded dependencies.

1.0.0 #

  • First public version.
56
likes
160
points
39.9k
downloads

Documentation

API reference

Publisher

verified publisheragilord.com

Weekly Downloads

Lexicographically sortable, 128-bit identifier (UUID) with 48-bit timestamp and 80 random bits. Canonically encoded as a 26 character string, as opposed to the 36 character UUID.

Repository (GitHub)
View/report issues

Topics

#uuid #random

License

BSD-3-Clause (license)

More

Packages that depend on ulid