Alex Rickabaugh
e95062d1df
release: cut the 4.2.2 release
2017-06-12 15:50:10 -07:00
Tobias Bosch
ed73d4f3ac
refactor(compiler): don’t always compile .ngfactory.ts files by default
...
This puts the behavior introduced in https://github.com/angular/angular/commit/573b8611bc4ab85a7436ee110526678a0ecf6c76 behind the new flag
`alwaysCompileGeneratedCode` to not break users that might have relied
on this behavior.
2017-06-12 15:27:02 -07:00
Alex Rickabaugh
8575e3f71c
release: cut the 4.2.1 release
2017-06-09 16:04:09 -07:00
Tobias Bosch
90b0713e32
refactor(compiler): don’t write summaries for jit by default
...
The default is false externally but true internally at Google.
2017-06-09 15:58:53 -07:00
Alex Rickabaugh
8e5beb024f
release: cut the 4.2.0 release
2017-06-08 15:38:20 -07:00
Alex Eagle
b00b80a45b
feat(compiler-cli): introduce synchronous codegen API
2017-06-06 14:12:02 -07:00
Victor Berchet
8e7a3f031b
release: cut the 4.2.0-rc.2 release
2017-06-01 14:25:19 -07:00
Chuck Jazdzewski
230255f887
feat(compiler-cli): produce template diagnostics error messages ( #17125 )
...
Refactoring the compiler to use transformers moves the code generation
after type-checking which suppresses the errors TypeScript would
generate in the user code.
`TypeChecker` currently produces the same factory code that was
generated prior the switch to transfomers, getting back the same
diagnostics as before. The refactoring will allow the code to
diverge from the factory code and allow better diagnostic error
messages than was previously possible by type-checking the factories.
2017-06-01 10:13:50 -07:00
Chuck Jazdzewski
18bf77204e
feat(compiler): emit typescript nodes from an output ast ( #16823 )
2017-05-30 10:43:13 -07:00
Chuck Jazdzewski
a1724f7816
release: cut the 4.2.0-rc.1 release
2017-05-26 14:32:20 -07:00
Tobias Bosch
7ffb75f476
refactor(compiler): change bundle to flatModuleIndex in the code ( #17028 )
2017-05-26 09:13:28 -07:00
Chuck Jazdzewski
80e506563c
Revert "refactor(compiler): change bundle to flatModuleIndex in the code ( #17028 )"
...
This reverts commit 5aa53d70aa .
2017-05-26 08:54:50 -07:00
Tobias Bosch
5aa53d70aa
refactor(compiler): change bundle to flatModuleIndex in the code ( #17028 )
2017-05-25 19:02:35 -06:00
Tobias Bosch
573b8611bc
fix(compiler): compile .ngfactory.ts files even if nobody references them. ( #16899 )
...
This is especially important for library authors, as they will
not reference the .ngfactory.ts files.
Fixes #16741
2017-05-25 11:00:26 -06:00
Tobias Bosch
eba59aaf87
refactor(compiler): add ability to produce stub .ngfactory / .ngsummary files ( #16963 )
...
These files are needed so that:
- user code can compile even without real codegen
- as tsc transformers cannot create but only change existing files
in the transformation pipeline.
2017-05-23 14:40:50 -06:00
Tobias Bosch
5af143e8e4
refactor(compiler): allow sync AOT compilation ( #16832 ).
...
AOT compilation can be executed synchronously now,
if the `ReosurceLoader` returns a string directly
(and no `Promise`).
2017-05-23 10:41:23 -06:00
Tobias Bosch
50abca4583
refactor(compiler): don’t rely on global reflector ( #16832 )
...
Using the global reflector made it impossible
to compile multiple programs at the same time.
2017-05-23 10:41:23 -06:00
Tobias Bosch
de8d7c65f2
refactor(compiler): emit OutputAst and not sources ( #16832 )
...
This is in preparation for creating typescript nodes
directly from `OutputAst` nodes.
2017-05-23 10:41:23 -06:00
Olivier Combe
08dfe91b95
feat(compiler): add location note to extracted xliff2 files ( #16791 )
...
Add source location as a note tag as `<note category="location">path/to/file.ts:start_line[,end_line]</note>`.
`[,end_line]` part is optional and specified only if the end line is different from the start line.
Fixes #16531
2017-05-22 12:20:45 -06:00
Jason Aden
9081f84543
release: cut the 4.2.0-rc.0 release
2017-05-19 15:54:52 -07:00
Chuck Jazdzewski
d761059e4d
fix(compiler-cli): allow '==' to compare nullable types ( #16731 )
...
Fixes : #16729
* fix(compiler-cli): diagnose issues in conditional of ternary
Fixes : #16730
2017-05-16 16:36:51 -07:00
Adol1111
1eba623d12
fix(compiler-cli): import routing module with forRoot ( #16438 )
2017-05-15 13:11:39 -07:00
Chuck Jazdzewski
b9521b568f
feat(compiler): support a non-null postfix assert ( #16672 )
...
Template expressions can now use a post-fix `!` operator
that asserts the target of the operator is not null. This is
similar to the TypeScript non-null assert operator. Expressions
generated in factories will be generated with the non-null assert
operator.
Closes : #10855
2017-05-11 10:15:54 -07:00
Jason Aden
0f0b9896b7
release: cut the 4.2.0-beta.1 release
2017-05-10 16:26:34 -07:00
Chuck Jazdzewski
bb0902c592
refactor(compiler-cli): move the expression expression type checker ( #16562 )
...
The expression type checker moved from the language service
to the compiler-cli in preparation to using it to check
template expressions.
2017-05-09 16:16:50 -07:00
Tobias Bosch
547c363473
feat: add .ngsummary.ts files to support AOT unit tests
...
Design doc: https://docs.google.com/document/d/1VmTkz0EbEVSWfEEWEvQ5sXyQXSCvtMOw4t7pKU-jOwc/edit?usp=sharing
2017-05-05 13:23:53 -04:00
Matias Niemelä
59d62bc5aa
release: cut the 4.2.0-beta.0 version
2017-05-04 14:37:20 -07:00
Olivier Combe
109229246c
test(compiler-cli): add test for missingTranslation parameter
2017-05-04 15:07:27 -04:00
Olivier Combe
6e2abcd5fc
feat(compiler-cli): add param to set MissingTranslationStrategy on ngc ( #15987 )
...
This commit adds a new parameter to ngc named `missingTranslation` to set the MissingTranslationStrategy for AoT, it takes the value `error`, `warning` or `ignore`.
Fixes #15808
PR Close #15987
2017-04-27 17:38:59 -05:00
Miško Hevery
cb35c26d70
release: cut the 4.1.0 release
2017-04-26 10:49:19 -05:00