Repository navigation
Read the upgrade notes before you upgrade.
Breaking changes
- Ruby 3.3 or newer and Rails 8.1 or newer are required. The older versions reached their end of life.
- Do not call internal methods on your models anymore.
join_read_marks,mark_collection_as_read,mark_collection_item_as_read,reset_read_marks_for_user,readable_parent, the assert helpers andforget_memoized_read_mark_globalare now private or moved toUnread::Internal.using_postgresql?is removed. The upgrade notes list the replacements. mark_as_read!(:all)on a relation marks only the records of the relation. Before, it marked all records of the class (#119).- The migration generator creates a new migration for new installations: current migration version, no
latin1character set on MySQL,reader_idisNOT NULL, the columntimestamphasprecision: 6. Existing tables need no change, but the upgrade notes recommend a migration for the precision (#135). - The generator
unread:polymorphic_reader_migrationis removed.
New features
read?(reader)is the opposite ofunread?(reader)(#116).- The migration generator has the option
--primary-key-type, for example--primary-key-type=uuid(#105, #122). - The
trilogyadapter for MySQL is supported.
Bug fixes
reloadon a reader also clears the memoized global read mark.- The association
ReadMark#readableis explicitly optional. Before, this depended on the load order of the app. - With UUIDs,
with_read_marks_forneeds only one query. Before, each call ofunread?orhave_read?sent an additional query.
Documentation
- The README has new sections about performance and about new readers (#115, #133).
- The usage example in the README gave wrong results. It is fixed (#85).
Full Changelog: v0.14.0...v1.0.0