objectid 2.0.0
objectid: ^2.0.0 copied to clipboard
Blazing fast, cross-platform ObjectId implementation for the dart language.
2.0.0 #
- Stable nullsafety release
- Fixed a bug that caused the counter value to overflow at
0xfffffe.- Enabled counter overflow unit test.
toStringmethod now instead ofruntimeType(hexString), returns objectid'shexString.
TIP:/// Before: print(ObjectId()) // => "ObjectId(606eed9d7203bfbbb7fffffe)" /// Now: print(ObjectId()) // => "606eed9d7203bfbbb7fffffe"
If you still want to use thetoStringmethod withruntimeType, you can override theObjectIdclass. Example:class MyObjectId extends ObjectId { @override String toString() => '$runtimeType($hexString)'; }
2.0.0-nullsafety.0 #
- Initial move towards nullsafety
- Updated changelog (removed release dates)
1.1.1 #
- Use StringBuffer instead of String class for hexString generation (almost 5 times faster generation of hexStrings).
1.1.0 #
- Migrate package to effective dart style.
- 100% tests coverage.
- Improve readme docs.
- Added badges.
- Added benchmark section.
1.0.0 #
- Added readme documentation
0.2.0 #
- Added unit tests
- Restructured projects
- Added
fromBytes,fromValuesandfromTimestampconstructors. - Renamed
generationTimeproperty totimestamp. - Added missing
hashCodeimplementation based onmurmurHash2. - Added
bytesproperty.
0.1.0-dev.1 #
- Added ObjectId class.
- Added
ObjectId()andObjectId.fromHexString()constructors. - Added
isValidhelper method. - Added equality operator overload
==. - Added
hexStringandgenerationTimegetters with caching support.
- Added