`) were allowed but most of the time
+ were leading to undesired result. It is possible that a small number
+ of applications will see template parse errors that should be fixed by
+ nesting elements or using `
` tags explicitly.
+* DomEventsPlugin and KeyEventsPlugin previously exported from core are no longer public - these classes are implementation detail.
+
+ Previously deprecated BROWSER_PROVIDERS was completely removed from platform-browser.
+* core/testing compiler/testing: `TestComponentBuilder` is now imported from `@angular/core/testing`. Imports
+ from `@angular/compiler/testing` are deprecated.
+
+ Before:
+
+ ```
+ import {TestComponentBuilder, TestComponentRenderer, ComponentFixtureAutoDetect} from '@angular/compiler/testing';
+ ```
+
+ After:
+ ```
+ import {TestComponentBuilder, TestComponentRenderer, ComponentFixtureAutoDetect} from '@angular/core/testing';
+ ```
+* common/testing: MockLocationStrategy was intended to be internal only and is now removed
+ from the `@angular/common/testing` public api.
+
+ Use `SpyLocation` from `@angular/common/testing` for location testing.
+* compiler: `TestComponentBuilder.createSync` now takes a component type
+ and throws if not all templates are either inlined
+ are compiled before via `createAsync`.
+* core/testing: Remove the following APIs from `@angular/core/testing`, which have been deprecated or were
+ never intended to be publicly exported:
+
+ ```
+ injectAsync
+ clearPendingTimers
+ Log
+ MockAppliacationHref
+ MockNgZone
+ clearPendingTimers
+ getTypeOf
+ instantiateType
+ ```
+
+ Instead of `injectAsync`, use `async(inject())`.
+
+ `clearPendingTimers` is no longer required.
+* platform-browser/testing: The following are no longer publicly exported APIs. They were intended as internal
+ utilities and you should use your own util:
+
+ ```
+ browserDetection,
+ dispatchEvent,
+ el,
+ normalizeCSS,
+ stringifyElement,
+ expect (and custom matchers for Jasmine)
+ ```
+* testing: Before:
+
+ expect(...).toThrowErrorWith(msg);
+
+ After:
+
+ expect(...).toThrowError(msg);
+ * testing: Before:
+
+ expect(...).toMatchPattern(pattern);
+
+ After:
+
+ expect(...).toMatch(pattern);
+* core/testing: `ComponentFixture` will be moving out of `@angular/compiler/testing` to `@angular/core/testing` in
+ this release. For now, it is deprecated from `@angular/compiler/testing`.
+
+
+* The async function now determines whether it should return a promise
+ or instead call a done function parameter. Importing Jasmine functions
+ from `@angular/core/testing` is no longer necessary and is now deprecated.
+
+ Additionally, beforeEachProviders is also deprecated, as it is specific
+ to the testing framework. Instead, use the new addProviders method directly.
+
+ Before:
+ ```js
+ import {beforeEachProviders, it, describe, inject} from '@angular/testing/core';
+
+ describe('my code', () => {
+ beforeEachProviders(() => [MyService]);
+
+ it('does stuff', inject([MyService], (service) => {
+ // actual test
+ });
+ });
+ ```
+
+ After:
+ ```js
+ import {addProviders, inject} from '@angular/testing/core';
+
+ describe('my code', () => {
+ beforeEach(() => {
+ addProviders([MyService]);
+ });
+
+ it('does stuff', inject([MyService], (service) => {
+ // actual test
+ });
+ });
+ ```
+
# 2.0.0-rc.3 (2016-06-21)
diff --git a/package.json b/package.json
index 3eef36bf35..5d2ae645ee 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "angular-srcs",
- "version": "2.0.0-rc.3",
+ "version": "2.0.0-rc.4",
"private": true,
"branchPattern": "2.0.*",
"description": "Angular 2 - a web framework for modern web apps",