Perpetuity v0.5.0 Release Notes

    • ๐Ÿ‘ Allow querying based on referenced class/id or embedded-object data
    • โœ‚ Remove duplicate references when loading associations on referenced objects
    • โšก๏ธ Optimize loading associations with zero/one/many objects. It is similar to Array#detect vs Array#select. detect is faster if you only need one.
    • ๐Ÿ›  Fixed a bug in defining methods on generated mapper classes which would mistakenly define them on the class instead of the mapper objects
    • โž• Add none?/one?/all?/any? methods to mappers.
    • โž• Add block functionality to Mapper#count, similar to Enumerable#count
    • Alias Mapper#find_all to Mapper#select
    • Alias Mapper#detect to Mapper#find
    • โž• Add Mapper#reject method to negate queries
    • ๐Ÿ‘ Allow Mapper#find to take a block like Mapper#select
    • โž• Add atomic incrementation