From 580ea8ee106348bc7056ca6ce051b5b7ab6b22c6 Mon Sep 17 00:00:00 2001 From: Brendon Muir Date: Thu, 7 Nov 2024 10:50:27 +1300 Subject: [PATCH] Version 0.4.0 --- CHANGELOG.md | 5 +++++ lib/positioning/version.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86d0277..05231ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## [Unreleased] +## [0.4.0] - 2024-10-12 + +- BREAKING CHANGE: Advisory Lock has been removed. If you explicitly define `advisory_lock: false` in your `positioned` call, you'll need to remove this. +- CAUTION: The Advisory Lock replacement is row locking. Where `belongs_to` associations exist, we lock the associated record(s), and that limits the locking scope down to the record's current scope, and potentially the scope it belonged to before a change in scope. If there are no `belongs_to` associations then the records that belong to the current (and potentially new) scope are locked, or all the records in the table are locked if there is no scope. Please report any deadlock issues. + ## [0.3.0] - 2024-10-12 - POSSIBLY BREAKING: Clear all position columns on a duplicate created with `dup`. diff --git a/lib/positioning/version.rb b/lib/positioning/version.rb index 78ca5d6..435759b 100644 --- a/lib/positioning/version.rb +++ b/lib/positioning/version.rb @@ -1,3 +1,3 @@ module Positioning - VERSION = "0.3.0" + VERSION = "0.4.0" end