|
| 1 | +<a name="8.0.0-beta.12"></a> |
| 2 | +# [8.0.0-beta.12](https://github.com/angular/angular/compare/8.0.0-beta.11...8.0.0-beta.12) (2019-04-13) |
| 3 | + |
| 4 | + |
| 5 | +### Bug Fixes |
| 6 | + |
| 7 | +* **bazel:** add configuration_env_vars = ["compile"] to generated [@npm](https://github.com/npm)//[@angular](https://github.com/angular)/bazel/bin:ngc-wrapped nodejs_binary ([#29694](https://github.com/angular/angular/issues/29694)) ([2e66ddf](https://github.com/angular/angular/commit/2e66ddf)) |
| 8 | +* **bazel:** docs formatting ([#29817](https://github.com/angular/angular/issues/29817)) ([cc2e4b6](https://github.com/angular/angular/commit/cc2e4b6)) |
| 9 | +* **bazel:** remove karma-jasmine from ts_web_test_suite ([#29695](https://github.com/angular/angular/issues/29695)) ([2bd9214](https://github.com/angular/angular/commit/2bd9214)) |
| 10 | +* **bazel:** support running ng-add on minimal applications ([#29681](https://github.com/angular/angular/issues/29681)) ([9810c6c](https://github.com/angular/angular/commit/9810c6c)), closes [#29680](https://github.com/angular/angular/issues/29680) |
| 11 | +* **common:** add `@Injectable()` to common pipes ([#29834](https://github.com/angular/angular/issues/29834)) ([387fbb8](https://github.com/angular/angular/commit/387fbb8)) |
| 12 | +* **compiler-cli:** ensure LogicalProjectPaths always start with a slash ([#29627](https://github.com/angular/angular/issues/29627)) ([e02684e](https://github.com/angular/angular/commit/e02684e)) |
| 13 | +* **core:** add missing migration to npm package ([#29705](https://github.com/angular/angular/issues/29705)) ([96b76dc](https://github.com/angular/angular/commit/96b76dc)) |
| 14 | +* **core:** call ngOnDestroy for tree-shakeable providers ([#28943](https://github.com/angular/angular/issues/28943)) ([30b0442](https://github.com/angular/angular/commit/30b0442)), closes [#28927](https://github.com/angular/angular/issues/28927) |
| 15 | +* **core:** Deprecate TestBed.get(...):any ([#29290](https://github.com/angular/angular/issues/29290)) ([609024f](https://github.com/angular/angular/commit/609024f)), closes [#13785](https://github.com/angular/angular/issues/13785) [#26491](https://github.com/angular/angular/issues/26491) |
| 16 | +* **core:** resolve ts compile issues due to lenient tsconfig ([#29843](https://github.com/angular/angular/issues/29843)) ([54058ba](https://github.com/angular/angular/commit/54058ba)) |
| 17 | +* **platform-browser:** insert APP_ID in styles, contentAttr and hostAttr ([#17745](https://github.com/angular/angular/issues/17745)) ([712d60e](https://github.com/angular/angular/commit/712d60e)) |
| 18 | + |
| 19 | + |
| 20 | +### Features |
| 21 | + |
| 22 | +* **bazel:** update the build to use the new architect api ([#29720](https://github.com/angular/angular/issues/29720)) ([902a53a](https://github.com/angular/angular/commit/902a53a)) |
| 23 | + |
| 24 | + |
| 25 | +### DEPRECATIONS |
| 26 | + |
| 27 | +* `TestBed.get()` has two signatures, one which is typed and another which accepts and returns `any`. The signature for `any` is deprecated; all usage of `TestBed.get()` should go through the typed API. This mainly affects string tokens |
| 28 | +(which aren't supported) and abstract class tokens. |
| 29 | + |
| 30 | +Before: |
| 31 | + |
| 32 | +```ts |
| 33 | +TestBed.configureTestingModule({ |
| 34 | + providers: [{provide: "stringToken", useValue: new Service()}], |
| 35 | +}); |
| 36 | + |
| 37 | +let service = TestBed.get("stringToken"); // type any |
| 38 | +``` |
| 39 | + |
| 40 | +After: |
| 41 | + |
| 42 | +```ts |
| 43 | +const SERVICE_TOKEN = new InjectionToken<Service>("SERVICE_TOKEN"); |
| 44 | + |
| 45 | +TestBed.configureTestingModule({ |
| 46 | + providers: [{provide: SERVICE_TOKEN, useValue: new Service()}], |
| 47 | +}); |
| 48 | + |
| 49 | +let service = TestBed.get(SERVICE_TOKEN); // type Service |
| 50 | +``` |
| 51 | + |
1 | 52 | <a name="7.2.13"></a> |
2 | 53 | ## [7.2.13](https://github.com/angular/angular/compare/7.2.12...7.2.13) (2019-04-12) |
3 | 54 |
|
|
0 commit comments