Miško Hevery
8a5eb08672
fix(fakeAsync): have fakeAsync use Proxy zone. ( #10797 )
...
Closes #10503
It is possible for code in `beforeEach` to capture and fork a zone
(for example creating `NgZone` in `beforeEach`). Subsequently the code
in `it` may chose to do `fakeAsync`. The issue is that because the
code in `it` can use `NgZone` from the `beforeEach`. it effectively can
escape the `fakeAsync` zone. A solution is to run all of the test in
`ProxyZone` which allows a test to dynamically replace the rules at any
time. This allows the `beforeEach` to fork a zone, and then `it` to
retroactively became `fakeAsync` zone.
2016-08-19 12:10:53 -07:00
Alex Rickabaugh
477e425f57
fix(http): inline HTTP_PROVIDERS and JSONP_PROVIDERS until the metadata collector can do it automatically. ( #10928 )
2016-08-18 15:01:07 -07:00
Marcus Krahl
654ff6115a
fix(http): deep copy for constructor using existing Headers ( #10679 )
...
When creating a new Headers object using an existing Headers object
the existing Headers map is copied by reference. Therefore adding a
new Header value to the new Headers object also added this value to
the existing Headers object which is not in accordance with the
spec.
This commit alters the constructor to create a deep copy of existing
Headers maps and therefore unlink existing Headers from new Headers.
Closes #6845
BREAKING CHANGE:
any code which relies on the fact that a newly
created Headers object is referencing an existing Headers map is
now broken, but that should normally not be the case since this
behavior is not documented and not in accordance with the spec.
2016-08-18 15:00:44 -07:00
Alex Rickabaugh
628d06c17c
feat(core): Throw a descriptive error when BrowserModule is installed a second time (via lazy loading). ( #10899 )
...
Such a configuration is unsupported and causes all kinds of problems.
2016-08-18 13:34:28 -07:00
John-David Dalton
91980382e8
fix(pipes): remove bidi control chars ( #10870 )
...
Fix inconsistent results in Edge vs. other browsers.
Closes #10080 .
2016-08-18 13:31:33 -07:00
Chuck Jazdzewski
2f41b5c8a0
refactor(core): Removed test deprecated references from runtime_compiler ( #10927 )
...
Removed reference to TestComponentBuilder from runtime_compiler_spec.ts
2016-08-18 11:20:02 -07:00
Alex Eagle
cd8cbd3762
fix(ngc): don't codegen foo.d.ngfactory.ts from foo.d.ts ( #10833 )
2016-08-18 10:11:06 -07:00
Kara
292ccf882a
test(forms): update reactive form integration tests to use TestBed ( #10908 )
2016-08-17 17:10:56 -07:00
Alex Rickabaugh
a0e13b9797
refactor(core): remove deprecated functions ReflectiveInjector.fromResolvedBindings and ResolvedReflectiveBinding ( #10819 )
2016-08-17 16:53:09 -07:00
Chuck Jazdzewski
a5c0349d88
refactor(core): Removed linker test references to TestComponentBuilder ( #10903 )
...
Removed references to TestComponentBuilder from:
query_integration_spec.ts
regression_integration_spec.ts
security_integration_spec.ts
view_injector_integration_spec.ts
2016-08-17 16:52:39 -07:00
Jason Choi
c48021ab97
refactor(compiler): move test/test_bindings to testing/test_bindings ( #10081 )
...
`test_bindings` is used in core test cases too, but `test` should be
private to the package, so it should live in `testing`.
2016-08-17 16:37:31 -07:00
Julie Ralph
beb79e75bf
refactor(various): remove a few lingering but unused deprecated apis ( #10896 )
...
Removes deprecated APPLICATION_COMMON_PROVIDERS, as well as some
internal apis that were deprecated.
2016-08-17 16:36:10 -07:00
Craig
0b62b6f783
refactor(debug): switch tests from TCB to use TestBed ( #10756 )
2016-08-17 16:27:54 -07:00
Craig
895c542a20
refactor(directiveLifecycle): switch test from TCB to use TestBed ( #10768 )
2016-08-17 16:17:07 -07:00
Alex Rickabaugh
c4fd862e15
fix(metadata): throw better errors when components are passed to imports or modules are passed to declarations. ( #10888 )
...
Closes #10823
2016-08-17 15:57:02 -07:00
Chuck Jazdzewski
6f18bd18bb
refactor(core): Removed linker test reference to TestComponentBuilder ( #10867 )
...
Removed TestComponentBuilder references from ng_container_integration_spect.ts
2016-08-17 15:45:29 -07:00
Victor Savkin
00e157dc3b
refactor(router): update stability labels ( #10902 )
2016-08-17 15:35:30 -07:00
Victor Savkin
4be863c223
Remove TCB ( #10900 )
...
* refactor(webworker): change tests not to use TestComponentBuilder
* refactor(core): change tests not to use TestComponentBuilder
2016-08-17 15:05:22 -07:00
Martin Probst
3009be8d6e
docs(security): mark the various DomAdapters as unsafe. ( #10868 )
...
Part of #8511 .
2016-08-17 13:42:18 -07:00
Chuck Jazdzewski
4829fbb95c
refactor(core): Remove linker test references to TestComponentBuilder ( #10869 )
...
Removed TestComponentBuilder references from projection_integration_spec.ts
2016-08-17 11:19:38 -07:00
Hans
40e160c22c
fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER ( #10866 )
...
* fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER
Closes #9741
BREAKING CHANGE:
`CACHED_TEMPLATE_PROVIDER` is now renamed to `RESOURCE_CACHE_PROVIDER`
Before:
```js
import {CACHED_TEMPLATE_PROVIDER} from '@angular/platform-browser-dynamic';
```
After:
```js
import {RESOURCE_CACHE_PROVIDER} from '@angular/platform-browser-dynamic';
```
* Rename XHR -> ResourceLoader
2016-08-17 09:24:44 -07:00
vsavkin
951ecb4d90
feat(core): update public api
2016-08-17 08:06:32 -07:00
vsavkin
9318033294
refactor(router): update router spec not to use TestComponentBuilder
2016-08-17 08:06:32 -07:00
vsavkin
4648b3e5de
feat(testing): add TestBed.get
2016-08-17 08:06:32 -07:00
vsavkin
740e80492d
refactor(core): update entry_components_integration_spec not to use TestComponentBuilder
2016-08-17 08:06:32 -07:00
vsavkin
cc22b051e3
refactor(core): update change_detection_integration_spec not to use TestComponentBuilder
2016-08-17 08:06:32 -07:00
vsavkin
75405ae0f5
refactor(core): update forward_ref_integration_spec not to use TestComponentBuilder
2016-08-17 08:06:32 -07:00
Matias Niemelä
f12d51992d
fix(animations): report errors for missing host-level referenced animations ( #10650 )
...
Closes #10650
2016-08-17 08:00:49 -07:00
Kara
6fd5bc075d
chore(forms): update forms labels ( #10873 )
2016-08-17 07:44:39 -07:00
Chuck Jazdzewski
675e582ffd
refactor(http): Removed deprecated HTTP_PROVIDERS and JSONP_PROVIDERS ( #10864 )
...
BREAKING CHANGE: previously deprecated HTTP_PROVIDERS and JSONP_PROVIDERS were removed; see deprecation notice for migration instructions.
2016-08-17 07:43:31 -07:00
Chuck Jazdzewski
0a22e8eefd
refactor(core): Removing linker test references to TestComponentBuilder ( #10865 )
...
Removed references to TestComponentBuilder from integration_spec.ts
2016-08-17 07:15:35 -07:00
Josh Thomas
44a4814766
Update package.json ( #10609 )
...
Update compiler-cli dependencies to increment tsc-wrapped to 0.2.2. It appears this was missed in the rc5 release.
2016-08-16 19:40:25 -07:00
Suguru Inatomi
3c23238129
docs(ngFor): add documentation for ngForTrackBy ( #10780 )
...
* docs(ngFor): add documentation for ngForTrackBy
* wo/ prefix
2016-08-16 19:39:22 -07:00
Suguru Inatomi
916ed55d82
chore(docs): remove sentences for dart ( #10781 )
2016-08-16 19:38:49 -07:00
Trotyl Yu
2451eb9ded
docs(router): Explanation in code should be comment ( #10790 )
2016-08-16 19:38:23 -07:00
Trotyl Yu
ed639784d4
docs(router): Fix mismatching of code and comment ( #10791 )
2016-08-16 19:37:53 -07:00
Cindy
b77a3794b8
docs(changelog): added missing closing parenthesis ( #10783 )
2016-08-16 19:37:24 -07:00
Igor Minar
73a9ee4a05
Remove component resolver ( #10858 )
...
* refactor(core): remove deprecated ComponentResolver
BREAKING CHANGE: deprecated ComponentResolver was removed
Please follow deprecation instruction and migrate your code to use ComponentFactoryResolver.
* refactor(common): remove deprecated NgSwitchWhen directive
BREAKING CHANGE: previously deprecated NgSwitchWhen directive was removed, use NgSwitchCase instead
2016-08-16 16:48:32 -07:00
Matias Niemelä
9adf80385b
fix(animations): remove deprecated trigger APIs ( #10825 )
...
BREAKING CHANGE: Animations defined using an at-symbol prefix that are
not property bound are now invalid.
```html
<!-- this is now invalid -->
<div @flip="flipState"></div>
<!-- change that to -->
<div [@flip]="flipState"></div>
```
BREAKING CHANGE: Animations that are not bound using the at-symbol
prefix using `animate-` must now be preixed using `bind-animate-`.
```html
<!-- this is now invalid -->
<div animate-flip="flipState"></div>
<!-- is valid now -->
<div bind-animate-flip="flipState"></div>
```
Closes #10825
2016-08-16 14:09:21 -07:00
Julie Ralph
a86c554a8e
refactor(core/testing): remove deprecated ViewMetadata ( #10837 )
...
Note that this doesn't actually remove all uses, but makes them
private.
2016-08-16 13:59:06 -07:00
Matias Niemelä
62078eee45
chore(tsconfig): emit decorator metadata so that tsc watch works with demos ( #10863 )
2016-08-16 13:53:04 -07:00
Victor Savkin
24e280a21a
refactor(router): remove deprecated apis ( #10658 )
2016-08-16 13:40:28 -07:00
Victor Savkin
f7ff6c5a12
refactor(core): remove deprecated 'bootstrap' ( #10831 )
2016-08-16 11:15:01 -07:00
Victor Berchet
f6a7d6504c
feat(i18n): xliff integration
2016-08-15 22:28:38 -07:00
Victor Berchet
96bf42261b
fix(XmlHelper): declaration
2016-08-15 22:21:40 -07:00
Victor Berchet
72bb38f83b
feat(i18n): xliff
2016-08-15 22:21:40 -07:00
Julie Ralph
4c9900dc3a
refactor(testing): remove deprecated testing functions ( #10832 )
...
Remove TestComponentBuilder, addProviders, and withProviders. These
were deprecated in rc5 - see the changelog for update information.
Note - this does not actually remove the functions, but makes them
internal only. They will be removed from the codebase entirely
at a later time.
2016-08-15 21:40:37 -07:00
Victor Savkin
6b26102931
feat(router): extend support for lazy loading children ( #10705 )
2016-08-15 21:11:09 -07:00
Miško Hevery
bec5c5fdad
refactor(Provider): remove deprecated provider/bind API ( #10652 )
...
Closes #9751
BREAKING CHANGE:
These forms of providers are no longer accepted:
bind(MyClass).toFactory(...)
new Provider(MyClass, toFactory: ...)
We now only accept:
{provider: MyClass, toFactory: ...}
2016-08-15 19:37:42 -07:00
Kara
04c11bb749
test(forms): update template-driven form tests to use testbed ( #10830 )
2016-08-15 16:37:59 -07:00