Skip to content
This repository has been archived by the owner on Dec 6, 2017. It is now read-only.

Commit

Permalink
chore(pubspec): release 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Anting Shen committed Aug 8, 2014
1 parent 19c72e9 commit eefd517
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# 2.0.2

## Features

- It is now possible to inject parameterized types by using `TypeLiteral`:

```dart
import 'package:di/type_literal.dart';
class DependencyWithParameterizedMap {
Map<int, String> map;
DependencyWithParameterizedMap(this.map);
}
var injector = new ModuleInjector([moduleFactory()
..bind(new TypeLiteral<Map<int, String>>().type, toValue: {1 : 'first', 2: 'second'})
..bind(DependencyWithParameterizedMap)
]);
```
## Breaking Change

- **annotations:** Users must now explicitly import `di/annotations.dart` to use `@injectable`

## Fixes

- Supports newer versions of barback, code transformers, and analyzer

# 2.0.1

## Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: di
version: 2.0.1
version: 2.0.2
authors:
- Vojta Jina <vojta.jina@gmail.com>
- Pavel Jbanov <pavelgj@gmail.com>
Expand Down

0 comments on commit eefd517

Please sign in to comment.