Alex Rickabaugh
30380d010b
fix(platform-server): render styles in app component instead of <head>
...
This ensures when the tree is serialized to the client and the app is later bootstrapped,
the <style> tags created during server-side rendering are destroyed.
2017-02-15 09:14:59 -08:00
Vikram Subramanian
17486fd696
fix(platform-server): allow multiple instances of platformServer and platformDynamicServer
2017-02-15 09:14:59 -08:00
Tobias Bosch
4e7752a12a
feat(compiler): integrate compiler with view engine ( #14487 )
...
Aspects: di, query, content projection
Included refactoring:
- use a number as query id
- use a bloom filter for aggregating matched queries of nested elements
- separate static vs dynamic queries
Part of #14013
2017-02-15 08:36:49 -08:00
Victor Berchet
bb9c7ae6e7
feat: RendererV2 integration ( #14469 )
2017-02-14 21:03:18 -08:00
vikerman
b4d444a0a7
feat(platform-server): add API to render Module and ModuleFactory to string ( #14381 )
...
- PlatformState provides an interface to serialize the current Platform State as a string or Document.
- renderModule and renderModuleFactory are convenience methods to wait for Angular Application to stabilize and then render the state to a string.
- refactor code to remove defaultDoc from DomAdapter and inject DOCUMENT where it's needed.
2017-02-14 16:14:40 -08:00
Alex Eagle
5279d06e88
ci: re-format sources ( #14413 )
...
PR Close #14413
2017-02-10 19:05:45 -06:00
Miško Hevery
563334e2c9
ci: remove left over fdescribe
2017-02-10 19:05:00 -06:00
Alex Rickabaugh
9e28568a8f
feat(platform-server): Implement PlatformLocation for platformServer() ( #14405 )
...
This gives server-side apps a current URL including hash, but doesn't implement a state stack,
so back-and-forward navigation isn't possible.
PR Close #14405
2017-02-10 15:03:05 -06:00
Alex Eagle
b9d293af03
build: first pass of de-duplicating tsconfig.json content ( #14369 )
...
PR Close #14369
2017-02-09 14:32:40 -08:00
Alex Eagle
5c431cee02
build: remove post-processing of .d.ts files ( #13294 )
...
Note that the duplication in tsconfig.json files will be fixed in a followup CL now that we have tsconfig inheritance
BREAKING CHANGE: Angular 4 will support only TypeScript 2.1, so we no longer provide backwards compatibility to TS 1.8.
2017-02-08 11:32:34 -06:00
Matias Niemelä
21030e9a1c
fix(core): animations no longer silently exits if the element is not apart of the DOM ( #13763 )
2017-01-05 11:33:40 -08:00
Victor Berchet
eed83443b8
chore(tslint): update tslint to 4.x ( #13603 )
2016-12-27 14:55:58 -08:00
Matias Niemelä
842f52e841
fix(animations): always recover from a failed animation step ( #13604 )
2016-12-21 14:14:45 -08:00
Miško Hevery
16efb13dd1
fix: display framework version on bootstrapped component ( #13252 )
2016-12-06 16:21:07 -08:00
Victor Savkin
e628b66cca
feat(build): record angular version in the dom ( #13164 )
2016-11-30 13:52:08 -08:00
Bowen Ni
2c02d34c05
refactor(lint): Don't allow console.log
...
Enable tslint check for `console.log` as a follow-up to
https://github.com/angular/angular/issues/13018
2016-11-23 15:47:01 -08:00
Alex Eagle
664a6273e1
feature(tsc-wrapped): add option for closure compiler JSDoc annotations
2016-11-18 09:37:40 -08:00
Matias Niemelä
9de76ebfa5
fix(animations): retain styling when transition destinations are changed ( #12208 )
...
Closes #9661
Closes #12208
2016-11-14 16:59:06 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Tobias Bosch
e3687706c7
refactor(compiler): minor cleanup
2016-11-03 16:29:51 -07:00
Tobias Bosch
d708a8859c
perf(platform-browser): don’t use `DomAdapter` any more
...
But use the DOM apis directly.
This also creates a separate `ServerRenderer` implementation
for `platform-server` as it previously reused the `BrowserRenderer`.
2016-11-03 16:29:51 -07:00
Victor Berchet
57051f01ce
refactor: remove most facades ( #12399 )
2016-10-21 15:14:44 -07:00
Tobias Bosch
acda82c1ed
refactor(compiler): remove private exports
...
All of `@angular/compiler` is private, so we can export
everything we need directly.
2016-10-20 10:41:43 -07:00
Victor Berchet
cf269d9ff4
refactor: add license header to JS files & format files ( #12081 )
2016-10-04 20:39:20 -07:00
Chuck Jazdzewski
43d3a84df3
Revert "refactor: add license header to JS files & format files ( #12035 )"
...
This reverts commit 8310c91823
.
2016-10-04 14:06:41 -07:00
Victor Berchet
8310c91823
refactor: add license header to JS files & format files ( #12035 )
2016-10-04 13:15:49 -07:00
Alex Eagle
b64b5ece65
refactor(facade): Remove most of StringMapWrapper facade. ( #12022 )
...
This change mostly automated by
12012b07a2
with some manual fixes.
2016-10-03 16:46:05 -07:00
Victor Berchet
9a049be67f
feat(Parse5): update to the latest version 2.2.1
...
fixes #6237
2016-09-30 10:46:49 -07:00
Alex Eagle
0286956107
refactor(facade): Inline isBlank called with object-type argument ( #11992 )
2016-09-30 09:26:53 -07:00
Alex Eagle
41c8c30973
chore(lint): remove unused imports ( #11923 )
...
This was done automatically by tslint, which can now fix issues it finds.
The fixer is still pending in PR https://github.com/palantir/tslint/pull/1568
Also I have a local bugfix for https://github.com/palantir/tslint/issues/1569
which causes too many imports to be deleted.
2016-09-27 17:12:25 -07:00
Victor Berchet
58605cf350
refactor(facade): remove useless facades
2016-09-27 16:13:09 -07:00
Victor Berchet
671f73448c
refactor: misc cleanup ( #11654 )
2016-09-19 17:15:57 -07:00
Igor Minar
cb657c4b55
docs: update descriptions in package.jsons
2016-09-14 16:44:39 -07:00
Rob Wormald
d296298282
fix(build): prevent package tsconfigs from shadowing main tsconfig ( #11454 )
2016-09-08 15:01:22 -07:00
Igor Minar
174c016104
fix(bundles): correct RxJS mapping in rollup config for umd/es5 bundles
2016-08-30 21:07:45 -07:00
Igor Minar
71ae2c4525
refactor(webworkers): move webworkers to separate @angular/platform-webworker and @angular/platform-webworker-dynamic packages
...
BREAKING CHANGE: web worker platform is now exported via separate packages.
Please use @angular/platform-webworker and @angular/platform-webworker-dynamic
2016-08-30 21:07:45 -07:00
Marc Laval
6e40ef0f6d
refactor: remove requestAnimationFrame from polyfills and platforms ( #10528 )
2016-08-30 19:58:22 -07:00
Miško Hevery
979657989b
fix(packages): use ES modules for primary build ( #11120 )
2016-08-30 18:07:40 -07:00
Misko Hevery
7c07bfff97
fix(errors): [2/2] Rename Exception to Error; remove from public API
...
BREAKING CHANGE:
Exceptions are no longer part of the public API. We don't expect that anyone should be referring to the Exception types.
ExceptionHandler.call(exception: any, stackTrace?: any, reason?: string): void;
change to:
ErrorHandler.handleError(error: any): void;
2016-08-26 10:37:17 -07:00
Igor Minar
ea2e5521e8
refactor: replace any[] with Provider[] where possible
2016-08-25 13:29:03 -07:00
vikerman
5c93a8800a
fix(core): Share private types through an exported interface. ( #11009 )
...
Instead of using declare namespace to share the types. This allows the generated code to be compiled with closure with full optimizations.
2016-08-23 16:18:11 -07:00
Igor Minar
3c2b2ff332
test: fix existing tests by removing usage of obsolete stuff like component level directives, AsyncCompleter and TestComponentBuilder
2016-08-23 09:59:00 -07:00
Chuck Jazdzewski
39a2c39cef
feat(compiler): Added "strictMetadataEmit" option to ngc ( #10951 )
...
ngc can now validate metadata before emitting to verify it doesn't
contain an error symbol that will result in a runtime error if
it is used by the StaticReflector.
To enable this add the section,
"angularCompilerOptions": {
"strictMetadataEmit": true
}
to the top level of the tsconfig.json file passed to ngc.
Enabled metadata validation for packages that are intended to be
used statically.
2016-08-22 17:37:48 -07:00
Victor Savkin
c56f3f2246
fix(compiler): do not autoinclude components declared as entry points ( #10898 )
2016-08-19 15:59:50 -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
Martin Probst
3009be8d6e
docs(security): mark the various DomAdapters as unsafe. ( #10868 )
...
Part of #8511 .
2016-08-17 13:42:18 -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
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
Victor Savkin
60b10134df
cleanup(platform): removed webworker and server deprecated apis ( #10745 )
2016-08-15 13:44:01 -07:00
Chuck Jazdzewski
d2825077b1
fix(core): Removed depricated disposePlatform
...
BREAKING CHANGE: previously deprecated disposePlatform was removed; see deprecation notice for migration instructions.
2016-08-12 17:52:13 -07:00