Skip to content

Commit 40f37b5

Browse files
committed
fix formatting and update dependencies
1 parent bc464c4 commit 40f37b5

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ Initial Version of the library.
1818
* Added support for `localhost` in `remote-devtools` url.
1919
* Added example for enum actions.
2020
* Added tests for `configure_store`.
21+
22+
## 0.1.3
23+
24+
* Updated `meta` dependency to support the latest version
25+
* Fixed formatting with `dartfmt`

example/lib/modules/status/reducer.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ final statusReducer = createReducer(
1212
(builder) => builder.addMatcher(
1313
(action) =>
1414
_isGeneric(action) &&
15-
['Pending', 'Fulfilled', 'Rejected'].contains(_typeOfAction(action)),
16-
(state, action) =>
17-
Map.unmodifiable({...state, _typeOfThunk(action): _typeOfAction(action)})));
15+
['Pending', 'Fulfilled', 'Rejected']
16+
.contains(_typeOfAction(action)),
17+
(state, action) => Map.unmodifiable(
18+
{...state, _typeOfThunk(action): _typeOfAction(action)})));

example/lib/modules/status/selectors.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import 'package:redux_toolkit/redux_toolkit.dart';
33

44
final _selectStatus = (AppState state) => state.status;
55

6-
final selectIsPending = (String key) => createSelector1(_selectStatus, (status) => status[key] == 'Pending');
7-
final selectWasFulfilled = (String key) => createSelector1(_selectStatus, (status) => status[key] == 'Fulfilled');
8-
final selectWasRejected = (String key) => createSelector1(_selectStatus, (status) => status[key] == 'Rejected');
6+
final selectIsPending = (String key) =>
7+
createSelector1(_selectStatus, (status) => status[key] == 'Pending');
8+
final selectWasFulfilled = (String key) =>
9+
createSelector1(_selectStatus, (status) => status[key] == 'Fulfilled');
10+
final selectWasRejected = (String key) =>
11+
createSelector1(_selectStatus, (status) => status[key] == 'Rejected');

example/lib/modules/todos/selectors.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ import 'package:example/modules/app_state.dart';
33
import 'package:redux_toolkit/redux_toolkit.dart';
44

55
final _selectTodos = (AppState state) => state.todos;
6-
final selectAllTodos = createSelector1(_selectTodos, (List<Todo> todos) => todos);
6+
final selectAllTodos =
7+
createSelector1(_selectTodos, (List<Todo> todos) => todos);

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: redux_toolkit
22
description: Dart port of the official, opinionated, batteries-included toolset
33
for efficient Redux development
4-
version: 0.1.1
4+
version: 0.1.3
55
homepage: https://github.com/mrnkr/redux_toolkit
66

77
environment:
@@ -13,7 +13,7 @@ dependencies:
1313
redux_thunk: ^0.3.0
1414
redux_dev_tools: ^0.5.2
1515
redux_remote_devtools: ^2.0.0
16-
meta: '>=1.1.8 <=1.2.2'
16+
meta: '>=1.1.8 <=1.2.3'
1717

1818
dev_dependencies:
1919
test: ^1.3.0

0 commit comments

Comments
 (0)