Skip to content

Commit

Permalink
Merge pull request #2 from roughike/release/v1.0.1
Browse files Browse the repository at this point in the history
v1.0.1
  • Loading branch information
roughike authored May 25, 2019
2 parents 610d919 + e02e046 commit ece9fb7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
homepage: https://github.com/roughike/streaming_shared_preferences

Expand Down
4 changes: 0 additions & 4 deletions test/preference/preference_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ece9fb7

Please sign in to comment.