From ac30bb598946b0fbfb9e278e73cf9451c01e237c Mon Sep 17 00:00:00 2001 From: Simon Binder Date: Fri, 28 May 2021 22:05:34 +0200 Subject: [PATCH] Prepare to release moor 4.3.2 --- moor/CHANGELOG.md | 6 ++++++ moor/lib/src/utils/synchronized.dart | 2 -- moor/pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/moor/CHANGELOG.md b/moor/CHANGELOG.md index c97f39a9..99a9f11e 100644 --- a/moor/CHANGELOG.md +++ b/moor/CHANGELOG.md @@ -1,3 +1,9 @@ +## 4.3.2 + +- Fix `insertReturning` not updating streams +- Fix streams emitting stale data if a new subscriber attaches immediately + after an update. + ## 4.3.1 - Fix encoding table updates without a kind over isolates diff --git a/moor/lib/src/utils/synchronized.dart b/moor/lib/src/utils/synchronized.dart index aebe8b6b..d5f3648f 100644 --- a/moor/lib/src/utils/synchronized.dart +++ b/moor/lib/src/utils/synchronized.dart @@ -13,8 +13,6 @@ class Lock { final blockCompleted = Completer(); _last = blockCompleted.future; - // Note: We can't use async/await here because this future must complete - // just before the blockCompleted completer. Future callBlockAndComplete() async { try { return await block(); diff --git a/moor/pubspec.yaml b/moor/pubspec.yaml index b0ddfef5..c67c10b1 100644 --- a/moor/pubspec.yaml +++ b/moor/pubspec.yaml @@ -1,6 +1,6 @@ name: moor description: Moor is a safe and reactive persistence library for Dart applications -version: 4.3.1 +version: 4.3.2 repository: https://github.com/simolus3/moor homepage: https://moor.simonbinder.eu/ issue_tracker: https://github.com/simolus3/moor/issues