Skip to content

0.23.0

Compare
Choose a tag to compare
@stephencelis stephencelis released this 08 Oct 20:01
· 5 commits to main since this release
edb84b3

What's Changed

Important

This release contains a breaking change (#203) that is necessary to avoid bugs related to subquery comparison operations, as well as bugs in synthesized Equatable conformances on Table types. Please start a discussion if this release introduces breaking changes that you need help fixing.

  • Added: New APIs for creating temporary triggers that "touch" columns (#202).
    -Reminder.createTemporaryTrigger(afterInsertTouch: { new in
    +Reminder.createTemporaryTrigger(after: .insert { new in
       new.position =
         Reminder
         .where { $0.remindersListID.eq(new.remindersListID) }
         .select { $0.position.max() + 1 }
         ?? 0
     })
    
    -Reminder.createTemporaryTrigger(afterUpdateTouch: \.updatedAt)
    +Reminder.createTemporaryTrigger(after: .update(touch: \.updatedAt))
    The old APIs have been deprecated in favor of these newer, more flexible APIs.
  • Fixed: Statement no longer inherits from Hashable (#203).
  • Fixed: Generate database functions as nonisolated for default main actor support (#205).

Full Changelog: 0.22.3...0.23.0