11154 Commits

Author SHA1 Message Date
Alex Eagle
22e7f7e99f build(bazel): update to rules_typescript 0.16.1 ()
PR Close 
2018-08-23 15:26:21 -04:00
George Kalpakas
3d41739021 fix(aio): show aio-themed 404 page for unknown resources ()
Fixes 

PR Close 
2018-08-23 15:25:47 -04:00
Matias Niemelä
668bfcec9d fix(docs-infra): fix closure warning issue for improper internal flag ()
PR Close 
2018-08-22 21:59:22 -04:00
Alex Rickabaugh
eb1fe19088 fix(ivy): ngtsc directive compilation should use shared ConstantPool ()
This fixes a bug in ngtsc where each @Directive was compiled using a
separate ConstantPool. This resulted in two issues:

* Directive constants were not shared across the file
* Extra statements from directive compilation were dropped instead of
added to the file

This commit fixes both issues and adds a test to verify @Directive is
working properly.

PR Close 
2018-08-22 21:14:54 -04:00
Greg Magolan
22d58fc89b build(bazel): remove workaround no longer needed for module names for ngfactory & ngsummary files ()
Workaround was added in https://github.com/angular/angular/pull/25335. It was necessary for .ngfactory & .ngsummary files to have proper AMD module names starting with @angular when building angular downstream from source using Bazel. The underlying issue has been resolved in the compiler and these files now get proper AMD module names without the need for this workaround. The workaround had an unexpected consequence https://github.com/angular/angular-cli/issues/11835 which is fixed by its removal.

PR Close 
2018-08-22 21:11:18 -04:00
Kara Erickson
27e2039630 fix(compiler): update compiler to generate new slot allocations ()
PR Close 
2018-08-22 21:08:39 -04:00
Alex Rickabaugh
5c95b4b3a3 feat(ivy): support enum values in static resolution ()
This commit adds support for enumeration values. An enumeration value
is now a first-class return value of the resolver, which provides both
a Reference to the enum type itself and the name of the value from that
enum. Resolving an enum itself returns a Map<string, EnumValue>.

PR Close 
2018-08-22 19:30:23 -04:00
Alex Rickabaugh
61218f5f0b fix(ivy): ensure factory statements are emitted correctly ()
PR Close 
2018-08-22 19:28:56 -04:00
Pete Bacon Darwin
7500f0eafb feat(ivy): find all packages to be compiled by ngcc ()
PR Close 
2018-08-22 19:28:56 -04:00
Pete Bacon Darwin
68acc5b355 feat(ivy): compile all package formats in ngcc ()
PR Close 
2018-08-22 19:28:56 -04:00
Pete Bacon Darwin
7d3b70c2af fix(ivy): ngcc is resilient to bad source-map comments ()
PR Close 
2018-08-22 19:28:56 -04:00
Pete Bacon Darwin
7ce291c72a feat(ivy): implement Esm5ReflectionHost.getGenericArityOfClass() ()
PR Close 
2018-08-22 19:28:56 -04:00
Pete Bacon Darwin
6ae1e63c89 refactor(ivy): rename Esm2015ReflectionHost to Fesm2015ReflectionHost ()
PR Close 
2018-08-22 19:28:56 -04:00
Alex Rickabaugh
c8baace554 test(ivy): add an integration test for ngcc ()
This commit adds an integration test for ngcc, which runs ngcc
against most @angular packages. It does not yet make any assertions
on the result.

PR Close 
2018-08-22 19:28:56 -04:00
Alex Rickabaugh
d33e0091df fix(ivy): emit generic types when needed in defs in .d.ts file ()
Ivy definitions in .d.ts files often reference the type of a class.
Sometimes, those classes have generic type parameters. When this is
the case, ngtsc needs to emit generic type parameters in the .d.ts
files (usually by passing 'any').

PR Close 
2018-08-22 19:28:56 -04:00
George Kalpakas
b97d770e60 feat(ivy): add support for typings in ngcc ()
PR Close 
2018-08-22 19:28:56 -04:00
George Kalpakas
a3158bff27 refactor(ivy): minor re-organization of ngcc PackageTransformer#transform ()
In preparation of adding support for transforming `.d.ts` files.

PR Close 
2018-08-22 19:28:56 -04:00
George Kalpakas
d6e91ba545 feat(ivy): support getting the corresponding .d.ts file in ngcc ()
PR Close 
2018-08-22 19:28:56 -04:00
George Kalpakas
cdb0215d0b test(ivy): clean up ngcc spec ()
PR Close 
2018-08-22 19:28:56 -04:00
George Kalpakas
396766104b refactor(ivy): rename spec files to match corresponding source files ()
PR Close 
2018-08-22 19:28:56 -04:00
George Kalpakas
e77f0fd6e6 refactor(ivy): export ngcc import prefix into constant ()
PR Close 
2018-08-22 19:28:56 -04:00
George Kalpakas
cdd4c9be63 feat(ivy): support custom prefix for imports in DtsFileTransformer ()
PR Close 
2018-08-22 19:28:56 -04:00
George Kalpakas
29705dd8f2 refactor(ivy): make ReflectionHost a parameter of Renderer ()
PR Close 
2018-08-22 19:28:56 -04:00
George Kalpakas
ea68ba048a refactor(ivy): minor refactorings ()
PR Close 
2018-08-22 19:28:55 -04:00
George Kalpakas
9081efa961 feat(ivy): enable processing of esm5 format in ngcc ()
PR Close 
2018-08-22 19:28:55 -04:00
George Kalpakas
9e179cb311 fix(ivy): correctly detect classes in ngcc Esm5ReflectionHost ()
PR Close 
2018-08-22 19:28:55 -04:00
George Kalpakas
3211432d2a feat(ivy): add support for esm2015 and esm5 in ngcc PackageParser ()
Since non-flat module formats (esm2015, esm5) have different structure
than their flat counterparts (and since we are operating on JS files
inside `node_modules/`, we need to configure TS to include deeply nested
JS files (by specifying a sufficiently high `maxNodeModuleJsDepth`).

Remains to be determined if this has any (noticeable) performance
implications.

PR Close 
2018-08-22 19:28:55 -04:00
George Kalpakas
a7134dbc37 refactor(ivy): remove unused arg from ngcc Analyzer ()
PR Close 
2018-08-22 19:28:55 -04:00
Pete Bacon Darwin
a528636f56 fix(ivy): allow FunctionExpression to indicate a method declaration ()
In some code formats (e.g. ES5) methods can actually be function
expressions. For example:

```js
function MyClass() {}
// this static method is declared as a function expression
MyClass.staticMethod = function() { ... };
```

PR Close 
2018-08-22 19:28:55 -04:00
Pete Bacon Darwin
f87b499dde feat(ivy): implement getDefinitionOfFunction on ES2015 and ES5 reflection hosts ()
PR Close 
2018-08-22 19:28:55 -04:00
Alex Rickabaugh
a45f2bfb8f feat(ivy): use the ReflectionHost to resolve parameters and initializers ()
ngtsc's static resolver can evaluate function calls where parameters
have default values. In TypeScript code these default values live on the
function definition, but in ES5 code the default values are represented
by statements in the function body.

A new ReflectionHost method getDefinitionOfFunction() abstracts over
this difference, and allows the static reflector to more accurately
evaluate ES5 code.

PR Close 
2018-08-22 19:28:55 -04:00
Jason Aden
94332affd3 release: cut the v7.0.0-beta.3 release 2018-08-22 15:49:11 -07:00
Jason Aden
52605aa2d8 docs: release notes for the v6.1.4 release 2018-08-22 15:43:55 -07:00
George Kalpakas
4e36f0cd68 build: remove NGBUILDS_IO_KEY now that it is not used any more ()
This is a follow-up to .

PR Close 
2018-08-22 15:59:14 -04:00
Kara Erickson
d5b70e0c66 fix(ivy): create LViewData from blueprint ()
PR Close 
2018-08-22 15:58:42 -04:00
Jason Aden
f33dbf42fd docs(changelog): add v6.1.3 release to main CHANGELOG.md ()
Fixes  

PR Close 
2018-08-21 14:01:59 -07:00
Marc Laval
6176974832 test(compiler-cli): fix failing test after bad merge ()
PR Close 
2018-08-21 11:30:42 -07:00
Bert Verhelst
69b57b2dca docs: Improve docs for downgrading a service ()
PR Close 
2018-08-21 10:49:00 -07:00
Kara Erickson
831e71ea3c fix(ivy): host bindings should support array/object literals ()
PR Close 
2018-08-21 10:48:42 -07:00
Jason Aden
fc89479044 fix(router): default scroll position restoration to disabled ()
Fixes 
FW-305 #resolve

PR Close 
2018-08-21 10:48:14 -07:00
Ben Lesh
f54f3856cb feat(ivy): add query inheritance ()
Adds inheritance handling for the following:

- viewQuery
- contentQueries
- contentQueriesRefresh

PR Close 
2018-08-20 16:36:22 -07:00
Wei Huang
c8b70ae8e4 build(bazel): Run build-packages-dist on RBE ()
PR Close 
2018-08-20 16:34:45 -07:00
Vikram Subramanian
9ed3bd6b4f refactor(bazel): allow and ignore extra args for _ts_expected_outs ()
This is needed to let ts_compile_actions take explicit list of srcs and deps to generate tsc actions from another rule. This is no-op for ngc for now.

PR Close 
2018-08-20 16:25:19 -07:00
Pawel Kozlowski
11e2d9da1a feat(ivy): add support to template local refs in the compiler ()
Fixes 

PR Close 
2018-08-20 16:24:56 -07:00
Sergey Koshechkin
b05d4a5007 docs: fix typo in service worker getting started guide ()
PR Close 
2018-08-20 11:09:52 -07:00
JinBeom Hong
469d5e0448 docs: fix typo in reactive forms guide ()
PR Close 
2018-08-20 11:08:32 -07:00
Kara Erickson
21a14407f6 refactor(ivy): generate vars in component defs ()
PR Close 
2018-08-20 11:08:10 -07:00
Judy Bogart
d2be3d5775 docs: copy edit glossary ()
PR Close 
2018-08-17 14:33:51 -07:00
Kara Erickson
f2aa9c6a7f refactor(ivy): use generated consts value to set binding index ()
PR Close 
2018-08-17 14:32:55 -07:00
Kara Erickson
4708cb91ef refactor(ivy): remove reserveSlots instruction ()
PR Close 
2018-08-17 14:32:55 -07:00