model_interfaces 0.3.4
model_interfaces: ^0.3.4 copied to clipboard
Common interfaces for your models that have IDs, titles, etc.
0.3.4 #
- Added
MultilingualString.getFirstNonEmpty().
0.3.3 #
- Added
Iterable<WithId>.getById(),.getByIds(),.ids, and.mapByIds(), deprecated the corresponding static methods onWithId.
0.3.2 #
- Added
MultilingualString. - In
Range, renamed all methods containing 'overlap' to 'intersect' as it is the preferred math term for ranges overlapping deeper than their endpoints. Added deprecated forwarders for the old methods.
0.3.1 #
- Const constructor in
WithId.
0.3.0 #
- BREAKING: Added
ancestorIdsDownstreamandancestorIdsUpstreamtoWithAncestorIds. - Deprecated
WithAncestorIds.ancestorIds. - Added
WithSlug,WithIdSlug,WithIdSlugTitle. - Moved many instance methods to extensions so implementing is possible instead of extending.
- Renamed methods in
Rangeto be more precise. The older ones are deprecated. Added instance method equivalents.
0.2.0 #
- BREAKING:
WithHomogenousParent.withAncestorsis now non-static and returns anIterable. - BREAKING:
Normalizable.toJsonsreturns anIterableinstead of aList. - Added
Normalizable.toJsonList. - Added
growableparam toNormalizable.toJsons. - Using
total_lints, fixed issues, fixed formatting. - Re-licensed under MIT-0.
- Improved doc comments.
0.1.4 #
WithId.mapByIdsacceptsIterable.
0.1.3 #
Rangeis now non-abstract.
0.1.2 #
- Added
Range.
0.1.1 #
- Added
WithHomogenousParent.
0.1.0 #
- BREAKING:
WithIdTitleconstructor uses positional arguments.
0.0.5 #
- Added
WithAncestorIds. - Added
WithIdHomogenousChildrenParent. - Added
WithIdTitleHomogenousChildrenParent. - Changed
Normalizable.toJsons()fromIterabletoList.
0.0.4 #
- Added
Normalizable.
0.0.3 #
- Added
WithId.mapByIds().
0.0.2 #
- Accept
Iterableinstead ofListfor many inputs. - Added
WithChildren<C>. - Added
WithParent<P>. - Added
WithIdChildrenParent<I, C, P>. - Added
WithIdTitleChildrenParent<I, C, P>.
0.0.1 #
- Initial release.