Perpetuity v0.3 Release Notes
-
- ๐ Use
Perpetuity[]
instead ofPerpetuity::Mapper[]
to get mapper instances - ๐ Allow subclassing of
Perpetuity::Mapper
with map macro - ๐ Fix
select
calls usingid
as criteria from returning invalid or missing data - ๐ Make MongoDB reads and writes fail fast
- โ Add indexing API to mappers
- ๐ป Raise an exception when calling
Perpetuity[]
with a class that has no mapper - โ Add unions and intersections to select queries for MongoDB adapter
- This allows for queries like
Perpetuity[Article].select { (created_at < Time.now) & (published == true) }
- This allows for queries like
- โก๏ธ Update object in memory when calling
Mapper#update
- โ Add
Mapper#save
to update an object's current state in the DB. Previously, we only had#update
(primarily forupdate
actions in Rails controllers). - โ Silenced some ugly warnings
๐ Version 0.2 and 0.1 have no changelog because I am a terrible developer
- ๐ Use