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
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
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
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
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
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
Zhicheng Wang
05d1312306
refactor(core): Replace all `var` with `const` and `let`
2016-08-14 10:10:07 -07:00
Zhicheng Wang
bc6d1c87a6
fix(core): don't strip sourceMappingURL ( #9664 )
...
fix #9664
2016-08-14 10:10:07 -07:00
Victor Berchet
e9479b30e8
refactor(OutputAst): BuiltinMethod.bind renamed to Bind ( #10739 )
2016-08-14 10:04:37 -07:00
Julie Ralph
87fe47737a
fix(testing): override metadata subclasses properly ( #10767 )
...
This fixes an issue where `TestBed.overrideComponent(MyComp, {})`
would remove some properties including `providers` from the component.
This was due to the override not properly dealing with getter fields
on subclasses.
2016-08-12 17:39:33 -07:00
Matias Niemelä
6580d67875
feat(i18n): pass translation config directly into ngc ( #10622 )
2016-08-12 14:45:36 -07:00
Victor Berchet
39c0f9ebb3
fix(ExtractorMerger): returns errors together with nodes (as a ParseTreeResult)
2016-08-11 23:24:22 -07:00
Victor Berchet
91dd672aa4
style(xmb): add a space after ICU message cases
2016-08-11 23:24:22 -07:00
Victor Berchet
50345b8c36
feat(i18n): add an HtmlParser decorator ( #10645 )
...
* fix(i18n): merge retains attributes w/o value
* feat(i18n): allow attributes on ng-container (i.e. i18n)
* feat(i18n): add an HtmlParser decorator
* style: clang format
2016-08-11 21:00:35 -07:00
Miško Hevery
b96869afd2
refactor(Type): merge Type and ConcreType<?> into Type<?> ( #10616 )
...
Closes #9729
BREAKING CHANGE:
`Type` is now `Type<T>` which means that in most cases you have to
use `Type<any>` in place of `Type`.
We don't expect that any user applications use the `Type` type.
2016-08-10 18:21:28 -07:00
Alex Eagle
6f4ee6101c
chore(imports): don't import ExceptionHandler from facade ( #10620 )
...
This lets us skip src/facade/exception* when compiling modules other than core.
It prevents having many conflicting declarations
2016-08-10 15:55:18 -07:00
Victor Berchet
43512aa5eb
fix(i18n): ICU placeholders are replaced by their translations ( #10586 )
...
They were replaced by the original message.
2016-08-09 21:05:04 -07:00
Victor Berchet
b65f66feff
feat(i18n): switch to sha1 for message fingerprinting
2016-08-09 09:52:11 -07:00
Victor Berchet
dd68ae3ef1
feat(ExtractorMerger): ignore implicit tags in translatable sections
2016-08-09 09:52:11 -07:00
Victor Berchet
1b04d70626
feat(ExtractorMerger): allow nested implicit tags
2016-08-09 09:52:11 -07:00
Matias Niemelä
0b08dd8674
chore(animations): make sure host-prop animation deprecation is correctly emitted
...
Closes #10581
2016-08-08 23:39:22 -07:00
Victor Berchet
74b57dfa7d
refactor(i18n): remove circular dep
2016-08-05 13:39:54 -07:00
Victor Berchet
8c9c0986e9
refatcor(digestMessage): takes a `i18n.Message`
2016-08-05 13:39:54 -07:00
Victor Berchet
4028fcaa51
refactor(i18n): Drop `html.Message` and create `i18n.Message` right away
2016-08-05 13:39:54 -07:00
Victor Berchet
7a8ef1eae5
feat(i18n): merge translations
2016-08-05 13:39:54 -07:00
Victor Berchet
e811a5d97f
refactor(i18n): misc updates
2016-08-05 13:39:54 -07:00
Victor Berchet
df44e3e425
fix(i18n extractor): array manipulation
2016-08-05 13:39:54 -07:00
Victor Berchet
cdb1a237e5
refactor(compiler): html_parser -> ml_parser
2016-08-05 13:39:54 -07:00
Jason Choi
99989f5d3f
chore(facade): remove most facade/async functions
2016-08-05 12:26:28 -07:00
Jason Choi
83e2d3d1cb
refactor(RegExpWrapper): remove the facade ( #10512 )
2016-08-05 09:50:49 -07:00
Victor Berchet
b4613ab2d2
fix(ExpressionParser): undefined is undefined (was null)
2016-08-05 09:45:13 -07:00
Victor Berchet
0ca05eee45
feat(ExpressionParser): add support for `this`
2016-08-05 09:45:13 -07:00
Marc Laval
cd18de7a21
refactor(compiler): use Object.keys instead of Object.getOwnPropertyNames ( #10498 )
2016-08-04 10:35:41 -07:00
Tobias Bosch
8e6091de6c
refactor(core): use `ngOnDestroy` in providers
...
Note about the addition of `beforeEach(fakeAsync(inject(…))))` in some tests:
`ApplicationRef` is now using `ngOnDestroy` and there is eager,
including all of its dependencies which contain `NgZone`.
The additional `fakeAsync` in `beforeEach` ensures that `NgZone`
uses the fake async zone as parent, and not the root zone.
BREAKING CHANGE (via deprecations):
- `ApplicationRef.dispose` is deprecated. Destroy the module that was
created during bootstrap instead by calling `NgModuleRef.destroy`.
- `AplicationRef.registerDisposeListener` is deprecated.
Use the `ngOnDestroy` lifecycle hook for providers or
`NgModuleRef.onDestroy` instead.
- `disposePlatform` is deprecated. Use `destroyPlatform` instead.
- `PlatformRef.dipose()` is deprecated. Use `PlatformRef.destroy()`
instead.
- `PlatformRef.registerDisposeListener` is deprecated. Use
`PlatformRef.onDestroy` instead.
- `PlaformRef.diposed` is deprecated. Use `PlatformRef.destroyed`
instead.
2016-08-02 11:23:26 -07:00
Tobias Bosch
c161ed415d
feat(core): support `ngOnDestroy` on providers of a directive.
...
Such providers also become eager as they will be instantiated
anyways on destruction.
2016-08-02 11:23:26 -07:00
Tobias Bosch
ff3b71f7b3
refactor(core): collect lifecycle hooks for all injectable classes
2016-08-02 11:23:26 -07:00
Misko Hevery
a55d796c4b
fix: Better error message in case of unknown property binding
2016-08-02 09:28:04 -07:00
Misko Hevery
73f02c7861
fix: throw useful error on missing platform module.
2016-08-02 09:28:04 -07:00
Victor Berchet
2dfc9c653b
refactor: dart
2016-08-01 11:34:51 -07:00
Victor Berchet
106db0aba8
refactor: IS_DART === false
2016-08-01 11:34:51 -07:00
Victor Berchet
28c4852cd6
refactor: remove ts2dart annotations
2016-08-01 11:34:51 -07:00
Victor Berchet
13c8211065
fix: String.split(str, n) stops after n separator ( #10408 )
2016-08-01 11:33:35 -07:00
Victor Berchet
e73d0511cf
fix(TemplateParser): report empty expression ( #10391 )
...
fixes #3754
2016-08-01 11:24:49 -07:00
Victor Berchet
e34a04d2ad
feat(xmb/xtb): support dtd
2016-07-29 14:18:34 -07:00
Victor Berchet
11fd2eccec
refactor: fix merge glitches
2016-07-29 13:40:58 -07:00
Victor Berchet
0eee1d5de3
feat(i18n): xtb serializer
2016-07-29 13:40:58 -07:00