|
| 1 | +<a name="v1.0"></a> |
| 2 | +# v1.0 industrious-pangolin (2014-10-10) |
| 3 | +## Highlights |
| 4 | + |
| 5 | +Angular.Dart v1.0 is our first production-ready release. |
| 6 | + |
| 7 | +This release contains a bit of everything: new features, performance improvements |
| 8 | +and bug fixes. Angular expressions now evaluate in the context of the |
| 9 | +surrounding component instead of the current scope. This reduces the boilerplate |
| 10 | +component authors need to write; no more 'ctrl' prefixes in your templates. |
| 11 | + |
| 12 | +In the same vein, the templateUrl and cssUrls in Component annotations take |
| 13 | +paths relative to the library defining the Component. The contents of the |
| 14 | +template likewise use relative paths. You no longer to to specify the full |
| 15 | +paths to your templates, CSS and resources. Absolute paths are left unchanged. |
| 16 | + |
| 17 | +The new touch module adds support for swipe left and swipe right. Change |
| 18 | +detection now understands Observable objects (through dart:observe). A number |
| 19 | +of small changes enable more seamless integration with web-components. Finally, |
| 20 | +instantiating components is nearly 40% faster. |
| 21 | + |
| 22 | +The new PendingAsync module allows you to be notified when all background |
| 23 | +asynchronous operations known to Angular (XHR, timers, microtasks, etc.) are |
| 24 | +complete. The Testability API exposes this in the JavsScript API for use |
| 25 | +by Protractor E2E tests. |
| 26 | + |
| 27 | +## Bug Fixes |
| 28 | + |
| 29 | +- **Component:** Remove deprecated applyAuthorStyles & resetStyleInheritance |
| 30 | + ([059b76e7](https://github.com/angular/angular.dart/commit/059b76e71766329549542d3f84b5d9e5a0b2adc5), |
| 31 | + [#1345](https://github.com/angular/angular.dart/issues/1345)) |
| 32 | +- **DirectiveInjector:** fix exceptions |
| 33 | + ([87fcd1eb](https://github.com/angular/angular.dart/commit/87fcd1ebbe57c66c6e74cad7ba595cac2617949c), |
| 34 | + [#1484](https://github.com/angular/angular.dart/issues/1484)) |
| 35 | +- **WTFramework:** add back traceDetectWTF call in application start |
| 36 | + ([de824080](https://github.com/angular/angular.dart/commit/de824080b00531d1df6aafa26a287a1d3ab05254)) |
| 37 | +- **animate:** Remove a reference to dart:mirrors |
| 38 | + ([9a60bcb6](https://github.com/angular/angular.dart/commit/9a60bcb614786dae15145d65ec81ee03bbdc4a12)) |
| 39 | +- **application:** set injector property when bootstraping the app |
| 40 | + ([bf5d15a7](https://github.com/angular/angular.dart/commit/bf5d15a74c76c316e41c63e8a4e53cc55d2dbf0b), |
| 41 | + [#1391](https://github.com/angular/angular.dart/issues/1391)) |
| 42 | +- **benchmark:** update benchmark to work with new context. |
| 43 | + ([22a50a75](https://github.com/angular/angular.dart/commit/22a50a757936250f11558817c4671f71cf440de8)) |
| 44 | +- **bind-*:** zone.run scope.apply on bind- change events |
| 45 | + ([77fdc617](https://github.com/angular/angular.dart/commit/77fdc617aa8b4686686256537802240d1803b7bf)) |
| 46 | +- **compiler:** Support camelCase property bindings |
| 47 | + ([4cb23914](https://github.com/angular/angular.dart/commit/4cb23914ab1e77ad75e3f219a989bd569785bc5a), |
| 48 | + [#1460](https://github.com/angular/angular.dart/issues/1460), [#1462](https://github.com/angular/angular.dart/issues/1462)) |
| 49 | +- **components:** |
| 50 | + - do not reinsert nodes during redistribution if they have not changed |
| 51 | + ([013f18d4](https://github.com/angular/angular.dart/commit/013f18d4dcfc6d42422512a8aa7c902b41400fbe)) |
| 52 | + - TranscludingComponentFactory passes a wrong element to onShadowRoot |
| 53 | + ([2c87e84f](https://github.com/angular/angular.dart/commit/2c87e84f880fdc5e7fdc127b59311e84be590636), |
| 54 | + [#1435](https://github.com/angular/angular.dart/issues/1435), [#1436](https://github.com/angular/angular.dart/issues/1436)) |
| 55 | + - the content tag duplicates elements |
| 56 | + ([ff46fb7b](https://github.com/angular/angular.dart/commit/ff46fb7b3354d9d7e6ec4cd71e57c5d2464159b7), |
| 57 | + [#1422](https://github.com/angular/angular.dart/issues/1422)) |
| 58 | +- **directive-injector:** wrong variable name in error thrown. |
| 59 | + ([c533eb55](https://github.com/angular/angular.dart/commit/c533eb558cf65765ee77fe3bd99f9d26039ad2fa), |
| 60 | + [#1397](https://github.com/angular/angular.dart/issues/1397)) |
| 61 | +- **form example:** |
| 62 | + - watched collections can not be mutated |
| 63 | + ([d39e62a3](https://github.com/angular/angular.dart/commit/d39e62a33c7553ffaa5d62e1a843058a85edf068)) |
| 64 | + - type() has been replaced by bind() |
| 65 | + ([e5584e16](https://github.com/angular/angular.dart/commit/e5584e16855700b61281a7f80cc8697c47268211)) |
| 66 | +- **introspection:** fix ngProbe with introspected bindings and findElements returning only elements |
| 67 | + ([3ea2b10e](https://github.com/angular/angular.dart/commit/3ea2b10e828643edafcf5c63d7b5986e757f9984)) |
| 68 | +- **metadata_extractor:** Do not try to guess the selector |
| 69 | + ([28f9ee48](https://github.com/angular/angular.dart/commit/28f9ee48a204c251f45f0d6a6dae6eaeecf5a665)) |
| 70 | +- **mock:** Fix unitialized variable in MockWindow. |
| 71 | + ([862f46c3](https://github.com/angular/angular.dart/commit/862f46c3e80267c29e3d41447ce9d6d623b5ad44)) |
| 72 | +- **perf_api:** updgrade the pkg minimum version to fix an analyzer error |
| 73 | + ([09d3c830](https://github.com/angular/angular.dart/commit/09d3c830961dfda57ab5bcf434563711724e679d), |
| 74 | + [#1408](https://github.com/angular/angular.dart/issues/1408)) |
| 75 | +- **resource_url_resolver:** |
| 76 | + - IE/Safari compatible HTML parsing |
| 77 | + ([ecb7db27](https://github.com/angular/angular.dart/commit/ecb7db27f27b0acf52044b841f42fabe6d809bfb)) |
| 78 | + - correct type for Node |
| 79 | + ([a760ec19](https://github.com/angular/angular.dart/commit/a760ec19ef7d6ea5fb829fa44972dfccf8e9fe12)) |
| 80 | + - fix DOM parsing for Safari |
| 81 | + ([50025832](https://github.com/angular/angular.dart/commit/50025832947a2121e999c68fdc81dccb5ef0cf9e), |
| 82 | + [#1439](https://github.com/angular/angular.dart/issues/1439)) |
| 83 | +- **scope:** fix a potential memory leak |
| 84 | + ([97410f7d](https://github.com/angular/angular.dart/commit/97410f7d4bc12d429c146f19add40df9fe0cca86)) |
| 85 | +- **shadow_boundary:** change ShadowBoundary not to reorder styles when prepending them |
| 86 | + ([81bab3ea](https://github.com/angular/angular.dart/commit/81bab3ea35383fc0f7abd1804e3cc9a7c5a3b0ec)) |
| 87 | +- **source_metadata_extractor:** Extract config from controllers |
| 88 | + ([a981feb2](https://github.com/angular/angular.dart/commit/a981feb2df849fbe5aa30c4d1a60ca329287571b)) |
| 89 | +- **test:** remove at trailing "," in JS object literal |
| 90 | + ([e6387cff](https://github.com/angular/angular.dart/commit/e6387cff067371b79761553a7c8ae32cd155ac74)) |
| 91 | +- **travis:** BUILD_LEADER is not available in build.sh |
| 92 | + ([0720c3c5](https://github.com/angular/angular.dart/commit/0720c3c58442d5733df6c82faa2b2b39cc7dca91), |
| 93 | + [#1362](https://github.com/angular/angular.dart/issues/1362), [#1393](https://github.com/angular/angular.dart/issues/1393)) |
| 94 | +- **web components:** Fix tests in IE10 |
| 95 | + ([43b6f4f0](https://github.com/angular/angular.dart/commit/43b6f4f069f938146a998dabbe8385efb5adbbe2), |
| 96 | + [#1372](https://github.com/angular/angular.dart/issues/1372)) |
| 97 | +- **core:** remove analyze warnings |
| 98 | + ([298f0fed](https://github.com/angular/angular.dart/commit/298f0fed0bcdd1208dfe708cfd7def923b9347da)) |
| 99 | + |
| 100 | + |
| 101 | +## Features |
| 102 | + |
| 103 | +- **Touch:** |
| 104 | + - New touch module including ng-swipe-left/ng-swipe-right directives |
| 105 | + ([5d84c6db](https://github.com/angular/angular.dart/commit/5d84c6db655b4f553f419d5fe449b4f9e19008d4)) |
| 106 | +- **TestBed:** add whitespace handling to compile |
| 107 | + ([5f5ce353](https://github.com/angular/angular.dart/commit/5f5ce353d04b77da2018c59a0a98c89205d15dca), |
| 108 | + [#1262](https://github.com/angular/angular.dart/issues/1262), [#1346](https://github.com/angular/angular.dart/issues/1346), [#1445](https://github.com/angular/angular.dart/issues/1445)) |
| 109 | +- **compiler:** |
| 110 | + - support ScopeAware for decorators |
| 111 | + ([943d6193](https://github.com/angular/angular.dart/commit/943d61936c2d9296dd31838d4dfb014f5292b9ae)) |
| 112 | +- **components:** |
| 113 | + - change shadow boundary to ignore duplicate styles |
| 114 | + ([5b04b17b](https://github.com/angular/angular.dart/commit/5b04b17b526097a33ba13bd8d84f832f605ec4a0)) |
| 115 | + - implement css encapsulation for transcluding components |
| 116 | + ([18843e1c](https://github.com/angular/angular.dart/commit/18843e1ca9e69f274e7d6e2bf0c37b217e770973)) |
| 117 | + - add support for multiple insertion points for transcluding components |
| 118 | + ([0d5c99e8](https://github.com/angular/angular.dart/commit/0d5c99e8324bb29d12e651b1cc1e69de6db08310), |
| 119 | + [#1290](https://github.com/angular/angular.dart/issues/1290)) |
| 120 | +- **core, testability:** PendingAsync service |
| 121 | + ([1d29b79c](https://github.com/angular/angular.dart/commit/1d29b79ca2369336bcba91dae48a8cf963cd621e)) |
| 122 | +- **dccd:** add Support for ObservableList, ObservableMap & ChangeNotifier |
| 123 | + ([85eceef5](https://github.com/angular/angular.dart/commit/85eceef5afad1d220d125b97277b3dc32be88f11), |
| 124 | + [#773](https://github.com/angular/angular.dart/issues/773), [#1156](https://github.com/angular/angular.dart/issues/1156)) |
| 125 | +- **directive-injector:** |
| 126 | + - Assert that the injector has been initialized |
| 127 | + ([060eb550](https://github.com/angular/angular.dart/commit/060eb550f17f1ddb27ccf22c450329a90effff13)) |
| 128 | + - DiCircularDependencyError -> _CircularDependencyError |
| 129 | + ([9f46fb95](https://github.com/angular/angular.dart/commit/9f46fb95e7bc6e56f5c7b839a6a26992169ade00), |
| 130 | + [#1399](https://github.com/angular/angular.dart/issues/1399)) |
| 131 | + - detect and throw on circular deps |
| 132 | + ([0b0080b4](https://github.com/angular/angular.dart/commit/0b0080b445f5d0f58cc05e13b416e9956be076b2), |
| 133 | + [#1364](https://github.com/angular/angular.dart/issues/1364)) |
| 134 | + - component directive injector injects parent |
| 135 | + ([3af94348](https://github.com/angular/angular.dart/commit/3af94348c56813fda667ccfcd68275bcea6e9edf), |
| 136 | + [#1351](https://github.com/angular/angular.dart/issues/1351)) |
| 137 | +- **directives:** remove the @Controller directive |
| 138 | + ([5f8e2765](https://github.com/angular/angular.dart/commit/5f8e27659ffb0140e0c153f8cecd627df273bfd2), |
| 139 | + [#1401](https://github.com/angular/angular.dart/issues/1401)) |
| 140 | +- **eventHandler:** Support snake-case event names instead of camelCase. |
| 141 | + ([fd54c304](https://github.com/angular/angular.dart/commit/fd54c304c2ac533ea7128e5abebd00593abf8c7e), |
| 142 | + [#1434](https://github.com/angular/angular.dart/issues/1434), [#1478](https://github.com/angular/angular.dart/issues/1478), [#1477](https://github.com/angular/angular.dart/issues/1477)) |
| 143 | +- **examples:** Add a compelling Shadow DOM example |
| 144 | + ([028b2373](https://github.com/angular/angular.dart/commit/028b23730ef993d93045c04eebd908dea7aa68ed), |
| 145 | + [#1377](https://github.com/angular/angular.dart/issues/1377)) |
| 146 | +- **mocks:** change MockHttpBackend to define the assertion on flush. |
| 147 | + ([635f9d0c](https://github.com/angular/angular.dart/commit/635f9d0cf2ac9f50e9190047bde080d468d7cfe8), |
| 148 | + [#900](https://github.com/angular/angular.dart/issues/900)) |
| 149 | +- **scope:** |
| 150 | + - component is the new context |
| 151 | + ([a4f08a79](https://github.com/angular/angular.dart/commit/a4f08a798df7525132ec7b0e18c4c6a8091480e8)) |
| 152 | + - add new createProtoChild method |
| 153 | + ([caac098f](https://github.com/angular/angular.dart/commit/caac098f2d109622b05251c340e981bd8e58e562)) |
| 154 | + - move domWrite and domRead from RootScope to Scope |
| 155 | + ([c18a8f33](https://github.com/angular/angular.dart/commit/c18a8f33f355996f9d63a77c7af3f9559bc898f8), |
| 156 | + [#1161](https://github.com/angular/angular.dart/issues/1161), [#1341](https://github.com/angular/angular.dart/issues/1341)) |
| 157 | +- **tests:** run tests on all browsers |
| 158 | + ([8c1f79a4](https://github.com/angular/angular.dart/commit/8c1f79a42d2411373cddbb2ff89b20434bf99add)) |
| 159 | +- **travis:** Also check for dart2js sizes that are unexpectedly small |
| 160 | + ([e90fa606](https://github.com/angular/angular.dart/commit/e90fa606358a106ecba23657702d25b05c7c80d2), |
| 161 | + [#1427](https://github.com/angular/angular.dart/issues/1427)) |
| 162 | +- **urls:** support relative CSS / template URLs in components |
| 163 | + ([50e26453](https://github.com/angular/angular.dart/commit/50e26453efc79d2db3a335112b37d13c5b0becbb)) |
| 164 | +- **web components:** Support custom events for element property binding |
| 165 | + ([94c35225](https://github.com/angular/angular.dart/commit/94c3522512ba7089a524fce0f7fd8bdedffe3f88), |
| 166 | + [#1449](https://github.com/angular/angular.dart/issues/1449), [#1453](https://github.com/angular/angular.dart/issues/1453)) |
| 167 | + |
| 168 | + |
| 169 | +## Performance Improvements |
| 170 | + |
| 171 | +- **component:** add a benchmark that measures component creation with and without css files |
| 172 | + ([29f39470](https://github.com/angular/angular.dart/commit/29f394703afb58bf342a072fd901c85583060c80), |
| 173 | + [#1421](https://github.com/angular/angular.dart/issues/1421)) |
| 174 | +- **util:** call toLowerCase() only where needed |
| 175 | + ([2bcd29e7](https://github.com/angular/angular.dart/commit/2bcd29e7b284ed3a32c0698a6820ca161ea8f99f), |
| 176 | + [#1468](https://github.com/angular/angular.dart/issues/1468)) |
| 177 | +- **view:** increase view instantiation speed 40% |
| 178 | + ([00960bb9](https://github.com/angular/angular.dart/commit/00960bb95f298640a46a8e58a42f68396e776ead), |
| 179 | + [#1358](https://github.com/angular/angular.dart/issues/1358)) |
| 180 | +- **view_factory:** add a benchmark that measures view_factory in isolation |
| 181 | + ([abbe4efb](https://github.com/angular/angular.dart/commit/abbe4efbb80546df0a615591f44e8fafabd29f89), |
| 182 | + [#1384](https://github.com/angular/angular.dart/issues/1384)) |
| 183 | + |
| 184 | + |
| 185 | +## Breaking Changes |
| 186 | + |
| 187 | +- **mocks:** due to [635f9d0c](https://github.com/angular/angular.dart/commit/635f9d0cf2ac9f50e9190047bde080d468d7cfe8), |
| 188 | +Unexpected requests are detected only when `flush` is called. |
| 189 | + |
| 190 | +Before: |
| 191 | + |
| 192 | + backend("GET", /some"); //throws here if `/some` has not been defined |
| 193 | + |
| 194 | +After: |
| 195 | + |
| 196 | + backend("GET", /some"); //no problem, just records the request |
| 197 | + backend.flush(); //throws here |
| 198 | + |
| 199 | +Closes #900 |
| 200 | +- **scope:** due to [a4f08a79](https://github.com/angular/angular.dart/commit/a4f08a798df7525132ec7b0e18c4c6a8091480e8), |
| 201 | + |
| 202 | + |
| 203 | +Scope context is set to the component instance that trigged the creation |
| 204 | +of the scope (previously it was of a PrototypeMap.) |
| 205 | + |
| 206 | +Repercussions: |
| 207 | +1) You can not inject a scope in a component or in the root context any |
| 208 | +more. |
| 209 | + |
| 210 | +As the Scope context is set to the Component instance, the scope could |
| 211 | +not be injected any more. Components should implements the "ScopeAware" |
| 212 | +interface and declare a "scope" setter in order to get a reference to |
| 213 | +the scope. |
| 214 | + |
| 215 | +before: |
| 216 | + |
| 217 | + @Component(...) |
| 218 | + class MyComponent { |
| 219 | + Watch watch; |
| 220 | + Scope scope; |
| 221 | + |
| 222 | + MyComponent(Dependency myDep, Scope scope) { |
| 223 | + watch = scope.rootScope.watch("expression", (v, p) => ...); |
| 224 | + } |
| 225 | + } |
| 226 | + |
| 227 | +after: |
| 228 | + |
| 229 | + @Component(...) |
| 230 | + class MyComponent implements ScopeAware { |
| 231 | + Watch watch; |
| 232 | + |
| 233 | + MyComponent(Dependency myDep) { |
| 234 | + // It is an error to add a Scope argument to the |
| 235 | + // ctor and will result in a DI circular dependency error |
| 236 | + // The scope is never accessible in the class constructor |
| 237 | + } |
| 238 | + |
| 239 | + void set scope(Scope scope) { |
| 240 | + // This setter gets called to initialize the scope |
| 241 | + watch = scope.watch("expression", (v, p) => ...); |
| 242 | + } |
| 243 | + } |
| 244 | + |
| 245 | +or: |
| 246 | + |
| 247 | + @Component(...) |
| 248 | + class MyComponent implements ScopeAware { |
| 249 | + Scope scope; |
| 250 | + |
| 251 | + MyComponent(Dependency myDep) { |
| 252 | + // It is an error to add a Scope argument to the |
| 253 | + // ctor and will result in a DI circular dependency error |
| 254 | + // The scope is never accessible in the class constructor |
| 255 | + } |
| 256 | + } |
| 257 | + |
| 258 | +2) The parent component to an NgForm must have a "$name" field to store |
| 259 | + the form instance. |
| 260 | + |
| 261 | +closes #919 |
| 262 | +closes #917 |
| 263 | +- **urls:** due to [50e26453](https://github.com/angular/angular.dart/commit/50e26453efc79d2db3a335112b37d13c5b0becbb), |
| 264 | + |
| 265 | + |
| 266 | +You must update relative paths to your templates and in ng-include's to |
| 267 | +be relative to the component's library / ng-include'd file. |
| 268 | + |
| 269 | +NOTE: This feature is defaulted to an "on" state. To get back the old |
| 270 | +behavior, you may disable this feature for your application. This is |
| 271 | +only to help you adjust to this change and will go away in a later |
| 272 | +version. Here's how you can get the old behavior: |
| 273 | + |
| 274 | +```dart |
| 275 | +module.bind(ResourceResolverConfig, toValue: |
| 276 | + new ResourceResolverConfig.useRelativeUrls(false)); |
| 277 | +``` |
| 278 | + |
| 279 | +*Testing*: |
| 280 | +- e2e transformer tests can now be done on the sample application found |
| 281 | + in the test_transformers folder |
| 282 | + |
| 283 | + |
1 | 284 | <a name="v0.14.0"></a>
|
2 | 285 | # v0.14.0 symbiotic-meerkat (2014-08-22)
|
3 | 286 |
|
@@ -55,7 +338,6 @@ smoother developer experience.
|
55 | 338 | ([dba6727b](https://github.com/angular/angular.dart/commit/dba6727b90cd6dc0dbf8257061482e88b05939b9),
|
56 | 339 | [#1276](https://github.com/angular/angular.dart/issues/1276), [#1382](https://github.com/angular/angular.dart/issues/1382))
|
57 | 340 |
|
58 |
| - |
59 | 341 | ## Features
|
60 | 342 |
|
61 | 343 | - **Context:** Add ability to set the Type for the rootScope context
|
|
0 commit comments