diff --git a/CHANGELOG.md b/CHANGELOG.md index 261f9eb..188a6bf 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,5 @@ +## 1.0.1 +* [#1](https://github.com/roughike/streaming_shared_preferences/pull/1): Fix a bug where reusing a `Preference` between multiple listeners only propagated the change to the first one. + ## 1.0.0 * Initial stable release. \ No newline at end of file diff --git a/README.md b/README.md index 8ec8ae8..be5ccb2 100755 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ If you're already using `shared_preferences`, **you should replace the dependenc ```yaml dependencies: - streaming_shared_preferences: ^1.0.0 + streaming_shared_preferences: ^1.0.1 ``` To get a hold of `StreamingSharedPreferences`, _await_ on `instance`: diff --git a/pubspec.yaml b/pubspec.yaml index e0fa3d0..03900aa 100755 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: streaming_shared_preferences description: A stream based wrapper over shared_preferences, allowing reactive key-value storage. -version: 1.0.0 +version: 1.0.1 author: Iiro Krankka homepage: https://github.com/roughike/streaming_shared_preferences diff --git a/test/preference/preference_test.dart b/test/preference/preference_test.dart index ebee8c4..a39ae3e 100755 --- a/test/preference/preference_test.dart +++ b/test/preference/preference_test.dart @@ -118,16 +118,12 @@ void main() { expect(value2, 'default value'); expect(value3, 'default value'); - // The value passed to setValue does not matter in tests - it just merely - // triggers the preference that something just changed. await _updateValue('first change'); expect(value1, 'first change'); expect(value2, 'first change'); expect(value3, 'first change'); - // The value passed to setValue does not matter in tests - it just merely - // triggers the preference that something just changed. await _updateValue('second change'); expect(value1, 'second change');