Skip to content

Commit 3567303

Browse files
Merge pull request #736 from Flutterando/publish-modular-5.0.3
feat: prepare to publish
2 parents 48c3a8d + fc406ce commit 3567303

File tree

8 files changed

+39
-11
lines changed

8 files changed

+39
-11
lines changed

flutter_modular/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [5.0.3] - 2022-06-03
2+
- Fix [#713](https://github.com/Flutterando/modular/issues/713)
3+
- Fix [#676](https://github.com/Flutterando/modular/issues/676)
4+
- Fix [#632](https://github.com/Flutterando/modular/issues/632)
5+
16
## [5.0.2] - 2022-04-22
27
- Fix: Parse params in RouteOutlet
38
## [5.0.1] - 2022-04-22

flutter_modular/lib/src/presenter/models/bind.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,22 @@ class AsyncBind<T extends Object> extends Bind<Future<T>>
126126
return Bind<T>((i) => bindValue,
127127
export: export, alwaysSerialized: true, onDispose: _localOnDispose);
128128
}
129+
130+
@override
131+
AsyncBind<T> copyWith(
132+
{Future<T> Function(Injector i)? factoryFunction,
133+
bool? isSingleton,
134+
bool? isLazy,
135+
bool? export,
136+
bool? isScoped,
137+
bool? alwaysSerialized,
138+
void Function(Future<T> value)? onDispose,
139+
Function(Future<T> value)? selector}) {
140+
return AsyncBind(
141+
factoryFunction ?? this.factoryFunction,
142+
export: export ?? this.export,
143+
);
144+
}
129145
}
130146

131147
/// Specific instance for modular_codegen

flutter_modular/pubspec.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
name: flutter_modular
22
description: Smart project structure with dependency injection and route management
3-
version: 5.0.2
3+
version: 5.0.3
44
homepage: https://github.com/Flutterando/modular
55

66
environment:
77
sdk: ">=2.12.0 <3.0.0"
88

99
dependencies:
1010
flutter_modular_annotations: ^0.0.2
11-
modular_core: ">=2.0.1 <3.0.0"
11+
modular_core: ">=2.0.3+1 <3.0.0"
1212
meta: ">=1.3.0 <2.0.0"
1313
flutter:
1414
sdk: flutter
1515

16-
dependency_overrides:
17-
modular_core:
18-
path: ../modular_core
19-
modular_interfaces:
20-
path: ../modular_interfaces
21-
2216
dev_dependencies:
2317
flutter_lints: ^1.0.4
2418
mocktail: ^0.1.4

flutter_modular/test/src/presenter/models/bind_test.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter_modular/src/presenter/models/bind.dart';
22
import 'package:flutter_test/flutter_test.dart';
3+
import 'package:modular_core/modular_core.dart';
34

45
void main() {
56
test('bind instance', () {
@@ -42,4 +43,9 @@ void main() {
4243
final bind = BindInject((i) => 'instance');
4344
expect(bind.copyWith(), isA<Bind>());
4445
});
46+
47+
test('copyWith asyncBind', () async {
48+
final asyncBind = AsyncBind((i) async => 'instance');
49+
expect(asyncBind.copyWith(), isA<AsyncBindContract>());
50+
});
4551
}

modular_core/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.0.3+1 - 2022/06/02
2+
* feat: Added type propertie in removeBindContext
3+
14
## 2.0.1 - 2022/05/12
25
* Fix: Inject.get should return instance
36

modular_core/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: modular_core
22
description: Smart project structure with dependency injection and route management
3-
version: 2.0.1
3+
version: 2.0.3+1
44
homepage: https://github.com/Flutterando/modular
55

66
environment:
@@ -9,7 +9,7 @@ environment:
99
dependencies:
1010
characters: ">=1.1.0 <2.0.0"
1111
meta: ">=1.3.0 <2.0.0"
12-
modular_interfaces: ">=2.0.1 <3.0.0"
12+
modular_interfaces: ">=2.0.2 <3.0.0"
1313

1414

1515
dev_dependencies:

modular_interfaces/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.2 - 2022/06/02
2+
3+
- feat: Added Type propertie in removeBindContext();
4+
15
## 2.0.1 - 2022/05/12
26

37
- Fix: Inject.get returns instance

modular_interfaces/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: modular_interfaces
22
description: Smart project structure with dependency injection and route management
3-
version: 2.0.1
3+
version: 2.0.2
44
homepage: https://github.com/Flutterando/modular
55
# homepage: https://www.example.com
66

0 commit comments

Comments
 (0)