Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Commit 655d2b4

Browse files
committed
Update CHANGELOG and pubspec for 2.2.0.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140605397
1 parent f455cbe commit 655d2b4

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
## 2.2.0
2+
3+
### API changes
4+
* Breaking changes
5+
* Using `@ViewQuery|Children|Content|` in a constructor is no longer valid.
6+
This caused significant extra code to need to be generated for a case that
7+
is relatively rare. Code can safely be moved into a setter in most cases.
8+
9+
**BEFORE**
10+
```dart
11+
class MyComponent {
12+
QueryList<ChildComponent> _childComponents;
13+
14+
MyComponent(@ContentChildren(ChildComponent) this._childComponents);
15+
}
16+
```
17+
18+
**AFTER**
19+
```dart
20+
class MyComponent {
21+
QueryList<ChildComponent> _childComponents;
22+
23+
@ContentChildren(ChildComponent)
24+
set childComponents(QueryList<ChildComponent> childComponents) {
25+
_childComponents = childComponents;
26+
}
27+
}
28+
```
29+
30+
### Bug fixes
31+
* Importing `angular2/reflection.dart` now works properly.
32+
133
## 2.1.1
234

335
### API changes

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: angular2
2-
version: 2.1.1
2+
version: 2.2.0
33
author: Dart Team <[email protected]>
44
description: Framework for modern web applications
55
homepage: 'https://angulardart.org'

0 commit comments

Comments
 (0)