George Kalpakas
eef7d8aa11
fix(upgrade): call `ngOnInit()` after `ngOnChanges()` (on components with inputs)
...
Fixes #18913
2017-10-02 16:01:07 -07:00
George Kalpakas
617b3d2ba5
fix(upgrade): correctly run change detection when `propagateDigest` is false
2017-10-02 16:01:07 -07:00
George Kalpakas
546eb7d851
test(upgrade): ensure AngularJS is bootstraped inside the Angular zone in tests
2017-10-02 16:01:07 -07:00
George Kalpakas
29dbc3b67c
refactor(upgrade): remove redundant call to `appRef.detach()`
...
Once a `ViewRef` is attached to the `ApplicationRef`, destroying the corresponding `ComponentRef` will automatically detach the `ViewRef`.
2017-10-02 16:01:07 -07:00
George Kalpakas
4e6aa9c2db
fix(upgrade): ensure downgraded components are destroyed in the Angular zone
2017-10-02 16:01:07 -07:00
Tobias Bosch
745b59f49c
perf(compiler): only emit changed files for incremental compilation
...
For now, we always create all generated files, but diff them
before we pass them to TypeScript.
For the user files, we compare the programs and only emit changed
TypeScript files.
This also adds more diagnostic messages if the `—diagnostics` flag
is passed to the command line.
2017-10-02 08:24:50 -07:00
Tobias Bosch
b0868915ae
perf(compiler): don’t emit summaries for jit by default
...
This re-adds the flag `enableSummariesForJit` to the compiler options
that already existed in Angular 4.
2017-10-02 08:24:50 -07:00
Tobias Bosch
0038712474
fix(compiler): add typings for `COMPILED`.
...
Note: This commit has to be synced into G3 again.
2017-09-29 09:26:38 -07:00
Tobias Bosch
db74f44a97
fix: don’t rely on `goog.DEBUG` but on `COMPILED` instead
...
`good.DEBUG` can also be true when using advanced compilation.
Attention: This change has be applied in G3 already as a local mod!
2017-09-29 09:26:38 -07:00
Victor Berchet
30d5a2ca83
docs: add changelog for 5.0.0-rc.0
2017-09-28 16:29:39 -07:00
Victor Berchet
6d3487f1c1
release: cut the 5.0.0-rc.0 release
2017-09-28 16:26:00 -07:00
Alex Rickabaugh
d442b6855f
feat(service-worker): introduce the @angular/service-worker package ( #19274 )
...
This service worker is a conceptual derivative of the existing @angular/service-worker maintained at github.com/angular/mobile-toolkit, but has been rewritten to support use across a much wider variety of applications.
Entrypoints include:
@angular/service-worker: a library for use within Angular client apps to communicate with the service worker.
@angular/service-worker/gen: a library for generating ngsw.json files from glob-based SW config files.
@angular/service-worker/ngsw-worker.js: the bundled service worker script itself.
@angular/service-worker/ngsw-cli.js: a CLI tool for generating ngsw.json files from glob-based SW config files.
2017-09-28 16:18:12 -07:00
Tobias Bosch
7c1d3e0f5a
fix(compiler): make watch mode work with `declaration: false`
...
closes #19464
2017-09-28 14:21:05 -07:00
Tobias Bosch
2f6ae527d1
fix(compiler): make sure our out path calculation is correct
2017-09-28 14:20:20 -07:00
Tobias Bosch
ec2be5dccb
fix(compiler): allow to use flat modules and summaries
...
The combination of flat modules, flat module redirects and summaries
lead to errors before.
2017-09-28 14:20:20 -07:00
Victor Berchet
14e8e88022
Revert "refactor(core): Change `abstract get` to `readonly` ( #19226 )"
...
This reverts commit 3aa3d5c548
.
2017-09-28 13:36:56 -07:00
Victor Berchet
6a9ce67714
Revert "refactor(core): Removed readonly getters and changed to readonly ( #19225 )"
...
This reverts commit 2b84b86fc0
.
2017-09-28 13:36:44 -07:00
Victor Berchet
bed8ac70f7
docs: add changelog for 4.4.4
2017-09-28 12:19:21 -07:00
Victor Savkin
a9d32a3f89
fix(router): resolve and guards should be able to reject with null and undefined ( #19418 )
...
Closes #17148
2017-09-28 11:06:08 -07:00
Chuck Jazdzewski
ff5b050a92
fix(compiler): correctly map error message locations ( #19424 )
2017-09-28 10:53:04 -07:00
Chuck Jazdzewski
b3db3f80ba
fix(compiler): do not consider a reference with members as a reference ( #19454 )
...
Fixes : #18170
2017-09-28 10:52:52 -07:00
tinayuangao
2b84b86fc0
refactor(core): Removed readonly getters and changed to readonly ( #19225 )
...
variables
2017-09-28 09:36:29 -07:00
tinayuangao
3aa3d5c548
refactor(core): Change `abstract get` to `readonly` ( #19226 )
2017-09-28 09:36:13 -07:00
Matias Niemelä
2d2300e118
docs(animations): document usage of negative limit values for query ( #19451 )
2017-09-28 09:34:36 -07:00
Chuck Jazdzewski
f24ea59f74
fix(compiler-cli): don't rewrite imports when annotating for closure ( #19444 )
...
Closure no longer needs to have the imports rewritten avoid rewriting
as this can cause issues when the source directory structure differs
from what is deployed.
Fixes : #19026
2017-09-28 09:31:28 -07:00
Chuck Jazdzewski
c1b029a413
fix(language-service): do not report errors for `OpaqueToken` ( #19427 )
...
`OpaqueToken` was removed from angular but the language-service
should not report errors when it is used for older versions of
angular.
2017-09-28 09:30:34 -07:00
Alex Eagle
82e49230ff
build: Give names to the AMD modules nested in Angular UMD distro ( #19425 )
2017-09-28 09:29:22 -07:00
George Kalpakas
f7199aa8c8
build(aio): remove `--` from more yarn commands ( #19421 )
2017-09-28 09:29:04 -07:00
George Kalpakas
0e00265647
build(aio): disable cache when building a new docker image for the preview server ( #19391 )
2017-09-28 09:28:54 -07:00
Alex Eagle
5406a49f06
docs: add 'bazel' as an Angular component ( #19346 )
2017-09-28 09:28:42 -07:00
Victor Berchet
8dbe2af0bc
test: increase polyfills size upper limit in CLI integration tests
...
tests started failing after 0.8.18 was release
2017-09-27 17:04:24 -07:00
Kapunahele Wong
334caf8e7c
docs(aio): add copy about NgForOf ( #18686 )
2017-09-27 15:25:41 -07:00
Kapunahele Wong
8d8995f1ab
docs(aio): edit summary and next step headers ( #16962 )
2017-09-27 13:45:47 -07:00
Kapunahele Wong
48c6ece2be
docs(aio): remove links to top of documents ( #16971 )
2017-09-27 13:45:25 -07:00
Kapunahele Wong
f7c7038171
docs(aio): update metadata documentation to include expression lowering ( #19203 )
2017-09-27 13:43:19 -07:00
Tobias Bosch
627f04883a
fix(compiler): implement i18n with new compiler
...
This commit is from vikerman@
closes #19429
2017-09-27 10:10:49 -07:00
Tobias Bosch
a7798f2a93
fix: don’t use the global `ng` at all with closure enhanced optimizations
...
This is needed as:
- closure declares globals itself for minified names, which sometimes clobber our `ng` global
- we can't declare a closure extern as the namespace `ng` is already used within Google for typings for angularJS (via `goog.provide('ng....')`).
2017-09-27 10:09:56 -07:00
Tobias Bosch
b21a1d1961
fix: create proper externs so that closure does not clobber e.g. `ng` for internal variables ( #19423 )
2017-09-26 15:02:33 -07:00
Jeremy Elbourn
8a0e45826a
fix(http): introduce named type for HttpParams options ( #19360 )
...
This is necessary to enable type-based optimizations with Closure.
Without explicity making these options the same named type, Closure
thinks they are different types and cannot disambiguate the `fromObject`
property.
2017-09-26 15:02:08 -07:00
Chuck Jazdzewski
dfb8d21ef4
feat(compiler): enabled strict checking of parameters to an `@Injectable` ( #19412 )
...
Added the compiler options `strictInjectionParameters` that defaults
to `false`. If enabled the compiler will report errors for parameters
of an `@Injectable` that cannot be determined instead of generating a
warning.
This is planned to be switched to default to `true` for Angular 6.0.
2017-09-26 13:40:47 -07:00
Chuck Jazdzewski
a75040d0a1
refactor(compiler): bump metadata version to 4 ( #19338 )
...
Also adds auto upgrade from lower version based
on the .d.ts file (e.g. from version 3 to 4).
This is needed as we are now also capturing type aliases
in metadata files (and we rely on this),
see 6e3498ca8e
.
2017-09-26 13:31:59 -07:00
Matias Niemelä
86ffacf7ce
feat(animations): support negative query option values
...
closes #19259
2017-09-26 12:02:56 -07:00
Matias Niemelä
b54368bf35
fix(animations): properly support the query limit option value
...
Closes #19232
2017-09-26 12:02:43 -07:00
Filipe Silva
e889c68aff
fix(compiler-cli): don't join errors with comma ( #19331 )
2017-09-26 11:25:57 -07:00
George Kalpakas
2e1fec17f5
ci(aio): temporarily disable aot-compiler example e2e tests ( #19410 )
2017-09-26 10:21:43 -07:00
Olivier Combe
f9b0863c8a
fix(common): use correct pipe name in error messages ( #19403 )
...
Fixes #19373
2017-09-26 10:18:26 -07:00
Chuck Jazdzewski
f57b7df4d7
fix(compiler): remove deprecated `Compiler.ngGetContentSelectors()` ( #19347 )
...
BREAKING CHANGE:
The method `ngGetConentSelectors()`, deprecated in Angular 4.0, has been
removed.
Use `ComponentFactory.ngContentSelectors` instead.
2017-09-26 10:18:10 -07:00
Alex Eagle
2cf52c1b55
test: Enable sass compiler for bazel integration test ( #19357 )
2017-09-26 09:44:47 -07:00
Chuck Jazdzewski
27c6638913
fix(compiler-cli): set source file ranges in node emitter ( #19348 )
...
Enables source mapping from the template to the generated files.
2017-09-26 09:26:18 -07:00
George Kalpakas
3f100eb23a
build(aio): fix the build script ( #19390 )
...
`ng build ...` must be the last command on the corresponding yarn script,
because it needs to be passed extra arguments (such as the target environment)
in specific cases.
2017-09-25 16:22:27 -07:00